Skip to content

fix: add durable watcher session runner - #131

Closed
JTInventory wants to merge 10 commits into
kunchenguid:mainfrom
JTInventory:fix/watch-session-runner-0629
Closed

JTInventory wants to merge 10 commits into
kunchenguid:mainfrom
JTInventory:fix/watch-session-runner-0629

Conversation

@JTInventory

@JTInventory JTInventory commented Jun 29, 2026 •

Copy link
Copy Markdown

Summary

Active supervision can now stay alive in harness lanes where tracked background tasks are not durable. bin/fm-watch-session.sh start creates one tmux runner per FM_HOME/state pair and loops through the existing verified fm-watch-arm.sh path, so it does not use broad process matching or disturb sibling homes.

The guard now requires real watcher proof before staying quiet: state/.watch.lock must name a live bin/fm-watch.sh process for the same home, with matching pid identity, and the liveness beat must be fresh. A fresh .last-watcher-beat by 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.sh
  • git diff --check
  • bash tests/fm-watch-session.test.sh && bash tests/fm-watcher-lock.test.sh
  • bash tests/fm-wake-queue.test.sh && bash tests/fm-watch-triage.test.sh && bash tests/fm-wake-daemon-lifecycle-e2e.test.sh

Compound Engineering
GPT-5

@JTInventory
JTInventory force-pushed the fix/watch-session-runner-0629 branch from fbedb2a to bcde1e4 Compare June 29, 2026 01:20
@JTInventory

Copy link
Copy Markdown
Author

Closing because this work is maintained in the JTInventory fork. We are not expecting upstream review or merge for this branch.

@JTInventory JTInventory closed this Jul 1, 2026
fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
…unchenguid#131)

* feat(test): move upstream watch and drift test ownership into the fork registry

The private upstream drift check and weekly watch are fork-only, but the
runner carried their knowledge inline: three test scripts named in its family
map, the fork's watch sources and ported-ledger named in its changed-path map,
and a fork owner in its .gitignore branch. Each is a line the fork has to
defend on every upstream change to that file.

They move to tests/fork-test-registry.conf instead. The bootstrap hooks that
call the drift check and the pending watch report are already one-line calls
and are unchanged.

Row types follow what the runner's own map still answers. Every fork source
here is named by a test, so the reference fallback still reaches it and the
rows are additive; only the ported ledger, which the runner treats as prose,
is covered exclusively. Both capabilities now declare the registry rather than
the runner as the file they modify.

The changed-file fixture copies the real registry, so the two newly registered
scripts are created there too, with a note that a new row needs a new stub.

* no-mistakes(review): drop watch ledger covers row, fix gitignore test label
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