Skip to content

fix: retain Codex checkpoint supervision - #2514

Open
AdamRoch wants to merge 1 commit into
kunchenguid:mainfrom
AdamRoch:fm/fm-watch-repair
Open

fix: retain Codex checkpoint supervision#2514
AdamRoch wants to merge 1 commit into
kunchenguid:mainfrom
AdamRoch:fm/fm-watch-repair

Conversation

@AdamRoch

Copy link
Copy Markdown

Codex foreground checkpoints release the watcher lock before the next turn boundary. The old generic stop-hook loop guard treated stop_hook_active=true as enough to let that continuation end, leaving active work without supervision.

This adds an explicit Codex guard mode that re-checks the strict watcher ownership predicate on every stop. A heartbeat from an exited checkpoint is not accepted as watcher liveness. The tracked Codex hook selects that mode.

Validation: bin/fm-lint.sh, bin/fm-doc-audience-check.sh, bin/fm-test-run.sh tests/fm-turnend-guard.test.sh, and bin/fm-test-run.sh tests/fm-watch-checkpoint.test.sh.

The credentialed Codex continuity E2E regression was added but not run because FM_CODEX_LIVE_E2E is opt-in.

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