Repository navigation
Conversation
…rompt execution path and update tests accordingly for accuracy and clarity in instructions to avoid confusion or delays due to undefined guard references
…`. Fixed the at-turn hand-back test’s timing race by waiting up to 15 seconds for the existing hand-off owner to publish its replacement watcher; five isolated runs passed. Resolved the prompt-test conflict to match the base’s emitted contract while preserving the PR’s away-authority assertions; `tests/fm-branch-supervision.test.sh` passed. The full host-hook suite also passed before the timing adjustment, and `git diff --check` passed. “Full suite” was the roll-up of the failed behavior lane
peterOC26
force-pushed
the
fm/fm-away-stage-advance-d1
branch
from
November 21, 2026 11:54
d42523c to
dee8a56
Compare
…w up to 60 seconds for the wake to reach the handled ledger. “Full suite” was only the roll-up of that lane failure. The branch prompt, AFK-contract, and host-hook suites passed; `bash -n`, `git diff --check`, and a delayed-wake check of the deadline passed. The isolated host-park test could not reach the changed wait locally because the fixture stood down on the local harness ancestry
Owner
Author
|
Superseded by #79 (same change, clean commit subjects). |
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.
Intent
During a 6-hour /afk on 2026-11-21, three jobs sat until the captain returned: a plan ready for its second-model check, a green PR needing its next code stage, and an ask-user finding firstmate could have decided under ask-user-authority. The away helper held them because the Away posture rules in bin/fm-branch-prompt.sh let it act only on the away words or a task-note grant, and moving a staged job to its next stage is MAIN's job. The captain asked why the work was not done before his return. Options offered: A = let the away helper move a job to the next stage its instructions already set, and answer review questions the standing rules let firstmate answer (merges, destructive actions and captain decisions still wait); B = keep the rule and add 'keep jobs moving' to the away words. Captain (Q2315): "yes, do that" = A.
What Changed
ask-user-authoritypermits firstmate to decide; findings requiring escalation remain for the return. Away words are still recorded verbatim as free text.Risk Assessment
✅ Low: The change edits the emitted away-posture prompt and the docs to match intent A. The scripts it relies on already enforce it: fm-control relaunch's lease guard, safe checkpoint and --note requirement, fm-spawn's relaunch exemptions, and the away gate on fm-send --resolve-key. Round 1's fixes are verified correct: the attended prompt again sends every ask-user finding to the captain, and the refusal message is updated. Only a stale test comment remains.
Testing
Both generated prompt surfaces and the retired-flag CLI refusal were exercised in an isolated home; the focused branch-supervision and afk-contract tests passed. Captured the prompt outputs and refusal diagnostic. These CLI surfaces have no rendered UI, and prompt checks establish delivery rather than model adherence.
Evidence: Attended supervision-host prompt output
Source: Attended supervision-host prompt output
Evidence: Retired afk flag diagnostic
Source: Retired afk flag diagnostic
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-branch-prompt.sh:138- The captain trigger changed from 'every ask-user finding from a validation gate' to 'ask-user findings that the Away rules below do not let you answer'. Both postures receive this line. While attended, the role limits (line 162) forbid the branch from answering any ask-user finding, yet the new wording reads as if the trigger excludes any finding the ask-user-authority policy would let firstmate decide. Failing sequence: attended home, no.afk-contract, a worker raises a policy-decidable ask-user finding (for example a straight in-scope fix). The branch checks line 138, sees that the Away rules would let firstmate answer it, and so finds no captain trigger. It cannot answer the finding itself, so it reports routine. On the Pi surface nothing else forces captain; on the host surface only the separate 'anything MAIN must act on' clause at line 147 might catch it. MAIN then gets no turn, and the gate waits until MAIN's next wake. Before this change the trigger covered every finding. Fix: keep the attended scope explicit, for example 'including every ask-user finding, except one you answer while away under the Away rules below'. The matching standing-action bullet at line 179 needs no change.bin/fm-afk-contract.sh:595- This change removed the 'away words are the whole mandate' framing from this script's header (line 34), from.agents/skills/afk/SKILL.md, from docs/architecture.md, and from docs/pi-supervision-branch.md, because the away session now also has two standing actions. The retired-flag refusal at bin/fm-afk-contract.sh:595 still prints "the captain's away words are the whole mandate". That runtime message now contradicts the updated contract. tests/fm-afk-contract.test.sh:441 asserts the old phrase and would need the same edit. Suggested wording: "the captain's away words are recorded verbatim as free text, so pass them with --words or --words-file and nothing else".🔧 Fix applied.
1 info still open:
tests/fm-afk-contract.test.sh:3- Round 1's fix removed "whole mandate" from the retired-flag refusal (bin/fm-afk-contract.sh:595) and from that test's assertion (line 441). This test file's own header comment, at lines 3-4, still describes the record as "the captain's away words recorded verbatim as the whole mandate". That is now the only "whole mandate" phrasing left in the repo. It contradicts the updated contract, under which the away session also has two standing actions. Round 1 left this sibling behind. Fix: change the header to "the captain's away words recorded verbatim as free text". Behavior is not affected.✅ **Test** - passed
✅ No issues found.
FM_HOME=<isolated fixture> bin/fm-branch-prompt.sh --supervision-hostFM_HOME=<isolated fixture> bin/fm-branch-prompt.shFM_HOME=<isolated fixture> bin/fm-afk-contract.sh enter --action mergeInline Python assertions over the generated prompt and refusal outputbash tests/fm-branch-supervision.test.shbash tests/fm-afk-contract.test.shRead-only availability probes:claude --version,claude auth status,herdr --version,tmux -V, andjq --version✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.