Skip to content

Make the adaptive-paper tests hermetic from the host STOP kill switch - #137

Merged
seathatflowsinourveins merged 2 commits into
mainfrom
claude/hermetic-stop-tests-20260923
Sep 23, 2026
Merged

seathatflowsinourveins merged 2 commits into
mainfrom
claude/hermetic-stop-tests-20260923

Conversation

@seathatflowsinourveins

Copy link
Copy Markdown
Collaborator

An owned STOP hold on a host (~/.local/state/native-agent-stack/alpaca-paper/STOP) made 32 local adaptive-paper tests fail, because the engine reads safety.DEFAULT_STOP at call time. tests/adaptive_paper_hermetic.py patches it to a per-module temp path (setUpModule/tearDownModule) in the six affected modules; per-test patches still shadow it. No engine code changes.

Checks, with the host STOP present and unchanged:

  • adaptive-paper interpreter, six modules: 345 tests OK (1 skipped); same with an empty HOME.
  • system python3, recovery/safety/sessions: 194 OK (31 skipped, native runtime absent).
  • python3 scripts/validate.py passed; guarded gitleaks on origin/main..HEAD: no leaks.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-23T18:32:26.986285Z 1ce1ca8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1ce1ca862a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/test_adaptive_paper_safety.py Resolved
The engine reads safety.DEFAULT_STOP (under the real home state root) at call time, so
an owned STOP hold on the host made 32 local tests fail. tests/adaptive_paper_hermetic.py
patches DEFAULT_STOP to a per-module temp path in setUpModule and restores it in
tearDownModule; the six adaptive-paper and native-fault test modules use it. Per-test
patches still shadow it. Engine code is unchanged.

With the host STOP present (unchanged size/mtime/md5): 345 tests OK (1 skipped) under the
adaptive-paper interpreter, the same with an empty HOME, and 194 OK (31 skipped) under
system python3.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… hash set (Codex review)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@seathatflowsinourveins
seathatflowsinourveins force-pushed the claude/hermetic-stop-tests-20260923 branch from 1ce1ca8 to 16db3e9 Compare September 23, 2026 18:47
@seathatflowsinourveins
seathatflowsinourveins merged commit ae3b729 into main Sep 23, 2026
21 checks passed
@seathatflowsinourveins
seathatflowsinourveins deleted the claude/hermetic-stop-tests-20260923 branch September 23, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant