Repository navigation
fix(watch): add durable active watcher session - #108
Closed
JTInventory wants to merge 1 commit into
Closed
JTInventory wants to merge 1 commit into
JTInventory wants to merge 1 commit into
Conversation
JTInventory
force-pushed
the
fm/active-watcher-reliability-0627
branch
from
June 27, 2026 20:59
6fe8cdf to
74f6879
Compare
Author
|
Closing because this work is maintained in the JTInventory fork. We are not expecting upstream review or merge for this branch. |
This was referenced Aug 10, 2026
fritznoff
pushed a commit
to fritznoff/starship
that referenced
this pull request
Nov 2, 2026
…rotation (kunchenguid#108) * feat(primary): add Claude Opus profile * no-mistakes(review): quiet chain-exhausted check; document shared Claude quota rotation * no-mistakes(review): let exhausted quota chain fall through to context refresh * no-mistakes(document): docs: point handoff example note at owner doc
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-mode supervision no longer treats a fresh watcher beacon as proof by itself. The guard now requires a live watcher lock for the same
FM_HOMEand watcher path, so a one-shot watcher that exited after writing a wake cannot leave firstmate falsely quiet.This also adds a home-scoped durable watcher session runner for harnesses where foreground background calls are not reliable. The runner has
--start,--status,--stop,--foreground, and--tmuxmodes, records only the current home instate/.watch-session.lock, and avoids broad process killing.Validation
bash tests/fm-watcher-lock.test.shbash tests/fm-wake-queue.test.shbash tests/fm-wake-daemon-lifecycle-e2e.test.shbash tests/fm-watch-session.test.shbash -n bin/fm-guard.sh bin/fm-watch-session.sh tests/fm-wake-daemon-lifecycle-e2e.test.sh tests/fm-wake-queue.test.sh tests/fm-watcher-lock.test.sh tests/fm-watch-session.test.sh tests/wake-helpers.shfor test_script in tests/*.test.sh; do echo "== $test_script"; bash "$test_script" || exit $?; doneNot run:
shellcheck bin/*.sh tests/*.shbecauseshellcheckis not installed in this environment.