fix: add durable watcher session runner#131
Open
JTInventory wants to merge 10 commits into
Open
Conversation
Adopt upstream baseline and active watcher fix
feat: adopt deterministic route resolver
* feat(cognee): add local lookup manifest checker * feat(cognee): verify local source hints
fbedb2a to
bcde1e4
Compare
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Active supervision can now stay alive in harness lanes where tracked background tasks are not durable.
bin/fm-watch-session.sh startcreates one tmux runner perFM_HOME/state pair and loops through the existing verifiedfm-watch-arm.shpath, so it does not use broad process matching or disturb sibling homes.The guard now requires real watcher proof before staying quiet:
state/.watch.lockmust name a livebin/fm-watch.shprocess for the same home, with matching pid identity, and the liveness beat must be fresh. A fresh.last-watcher-beatby itself now warns instead of hiding a stopped watcher.Docs now point Codex/API-style lanes at the session runner and describe the stronger liveness proof.
Tests
bash -n bin/fm-guard.sh bin/fm-watch-session.sh tests/fm-watcher-lock.test.sh tests/fm-watch-session.test.sh tests/fm-wake-queue.test.shgit diff --checkbash tests/fm-watch-session.test.sh && bash tests/fm-watcher-lock.test.shbash tests/fm-wake-queue.test.sh && bash tests/fm-watch-triage.test.sh && bash tests/fm-wake-daemon-lifecycle-e2e.test.sh