fix(bin): surface worker decisions that misuse reserved keys #60
All Vouch review confidence checks passed
Residual risk 0.45 = Change Risk (0.52) × (1 − Review Confidence (0.13)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 16% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #60"
general
weight: 0.35
cursor[bot]
What Changed
needs-decisionline is excluded from OPEN DECISIONS for using a reserved prefix. Show the task, key, and bounded question text even when the wake queue is empty.Risk Assessment
🚨 High: An unrelated supervision branch can consume the only recoverable copy of a folded decision warning before main handles the decision-owned wake.
Testing
Compared the base and target, ran focused regressions, and captured CLI evidence for the write guards, wake warnings and receipts, operator resolution, and worker launches. All Firstmate scenarios passed. Authenticated Rovo execution was the only untested scenario.
| Scenario | Result | Live | Evidence |
| --- | --- | --- | --- |
| A worker follows a fresh ship or scout brief and gets a refusal before any write for reserved keys, copied owner wording, and multiline input. Ordinary and unkeyed reports still append. | ✅ pass | live | Ship and scout status writer transcripts;
test_status_protocol_uses_guarded_writer|| A local secondmate submits correlated text and document reports. Valid reports reach the parent ledger, and reserved keys or multiline input leave it unchanged. | ✅ pass | live | Correlated secondmate report transcript;
test_the_real_writers_produce_tokens_this_library_reads|| A supervisor launches a scout whose worker receives the configured reserved prefixes through an empty environment allowlist and rejects the newly reserved key. | ✅ pass | live | Worker launch with custom reserved prefixes;
test_launch_environment_allowlist|| A supervisor drains a directly appended reserved-key question and sees its task, key, and question in a warning. Delayed task annotations still arrive. | ✅ pass | live | Base and target wake drain comparison;
test_folded_reserved_needs_decision_warns_without_consuming_annotations;test_unrelated_branch_drain_leaves_warning_unread_for_main|| A supervisor drains a long reserved question beside a note. The question is capped, both lines appear from one successful read, and failed receipt handling leaves the warning recoverable. | ✅ pass | live | Wake drain warning and receipt transcript;
test_warning_and_note_share_a_successful_span_read;test_first_drain_output_failure_leaves_warning_for_main;test_failed_first_receipt_rename_still_prin… |test_worker_reserved_needs_decision_is_not_open| An operator tries to resolve the folded key and gets a refusal before delivery, then answers the reissued question and a legitimate pending-reply escalation. Both close in OPEN DECISIONS. | ✅ pass | live | Operator resolution and durable inbox records;
;test_reserved_pending_reply_key_closes_through_resolve_key;test_unrelated_writer_cannot_close_or_h… || A supervisor launches Firstmate's Rovo adapter and the receiving endpoint gets the configured prefixes, native append instruction, and exactly the three task-scoped path grants. | ✅ pass | live | Firstmate Rovo launch arguments and delivered instruction;
bash tests/fm-rovo-harness.test.sh|| An authenticated Rovo worker follows the delivered instruction and appends through its native file tool. | ⏸️ untested | no |
rovowas absent from PATH. I downloaded the official Linux ACLI binary into the worktree and checked authentication with an empty home. A disposable Atlassian site with Rovo Dev enabled, available c… |<details>
<summary>Evidence: Ship and scout status writer transcripts</summary>
Source: Ship and scout status writer transcripts
</details>
<details>
<summary>Evidence: Correlated secondmate report transcript</summary>
Source: Correlated secondmate report transcript
</details>
<details>
<summary>Evidence: Worker launch with custom reserved prefixes</summary>
Source: Worker launch with custom reserved prefixes
</details>
<details>
<summary>Evidence: Base and target wake drain comparison</summary>
Source: Base and target wake drain comparison
</details>
<details>
<summary>Evidence: Wake drain warning and receipt transcript</summary>
Source: Wake drain warning and receipt transcript
</details>
<details>
<summary>Evidence: Operator resolution and durable inbox records</summary>
Source: Operator resolution and durable inbox records
</details>
<details>
<summary>Evidence: Firstmate Rovo launch arguments and delivered instruction</summary>
Source: Firstmate Rovo launch arguments and delivered instruction
</details>
Pipeline
Updates from git push no-mistakes
<!-- no-mistakes-pipeline-attestation:v1 {"head_sha":"bc5bc9b5e507fd2be91ca09066139c7a4345c049","steps":[{"step":"intent","status":"completed"},{"step":"rebase","status":"completed"},{"step":"review","status":"completed"},{"step":"test","status":"completed"},{"step":"document","status":"completed"},{"step":"lint","status":"completed"},{"step":"push","status":"completed"},{"step":"pr","status":"running"},{"step":"ci","status":"pending"}]} -->
_... (15 earlier update rounds omitted to keep the PR body within GitHub's 65536-char limit; full history is in the run log.)_
<details>
<summary>⚠️ Review - 20 issues (13 errors, 7 warnings)</summary>
🔧 Fix applied.
20 issues (12 errors, 8 warnings) still open:
bin/fm-wake-drain.sh:460- The intent requires a warning when a reserved-prefix decision is folded. The added lifetime replay reads every status log from byte zero on every drain, even with no new bytes. After a worker reissues the question under a valid key, the old warning still prints on every unrelated drain. This also defeats the existing bounded-read contract and bypasses the presentation receipt at bin/fm-wake-drain.sh:594–615. Remove the lifetime replay and surface the warning through the existing cursor-backed unread-status path. The single-drain assertion at tests/fm-wake-drain-open-decisions.test.sh:218 does not distinguish replay from one-time presentation.bin/fm-remote-home-seed.sh:173- The intent requires that “the worker-side key writer and the brief's status protocol refuse a reserved key prefix at write time.” Round 1 guarded fresh scaffolds at bin/fm-brief.sh:289, :391, and :484, but left existing briefs and charters behind. After an update and restart, bin/fm-spawn.sh:2777 still selects the saved charter and :2828 copies a saved ship or scout brief into the launch instructions. Local reseeding copies the old charter at bin/fm-home-seed.sh:957, and remote reseeding still retargets its raw echo at bin/fm-remote-home-seed.sh:172–173. Following any of those instructions with a reserved key still writes the decision and leaves it unanswerable through--resolve-key. Apply the current status protocol when delivering saved instructions while preserving the filled task and charter text. The fresh-scaffold test at tests/fm-brief.test.sh:916 misses this path.bin/fm-remote-home-seed.sh:165- Round 1 moved the remote writer from the originating host toREMOTE_ROOT, but normal remote launch fast-forwards only the secondmate home. Provision against a ready host whose code root predates this change, then let bin/fm-spawn.sh:838–840 sync the home to the new commit. The remote agent starts with the writer in its home, yet even an ordinarydonereport fails because the charter invokes the missing host-root copy. The correlated helper already executes its sibling writer at bin/fm-secondmate-report.sh:101. Bind the charter to the worker's synced checkout and verify delivery with the writer present only there. The fixture at tests/fm-remote-secondmate-parent-binding.test.sh:115–126 and :213–219 installs the new writer in the host root and requires that path, masking the failure.bin/fm-wake-drain.sh:564- Round 1 moved the warning onto a presentation cursor shared by Pi main and branch. If a worker appends a folded reserved-key decision while the branch is draining an unrelated task, the fleet-wide scan at bin/fm-classify-lib.sh:1620 finds it and bin/fm-wake-drain.sh:422–424 prints it only in the branch turn. The drain commits that task's offset at bin/fm-wake-drain.sh:562–582, so main later receives its decision-owned wake without the warning or its unread status annotation. The branch cannot report the unrelated task under docs/pi-supervision-branch.md:45. Preserve the warning for main at the shared presentation boundary, including both receipt paths at bin/fm-classify-lib.sh:1338–1358 and the direct-annotation path at bin/fm-wake-drain.sh:609–616.bin/fm-wake-drain.sh:559- Round 1 moved the warning onto a cursor that can lose it on the first drain. In a fresh home, a native append can land before the watcher queues its wake. The empty-queue drain prepares the warning and advances the open-decisions cache at bin/fm-wake-drain.sh:559. If stdout closes before delivery at bin/fm-wake-drain.sh:568, the presentation receipt is never committed. The retry still treats the fold cache as a receipt at bin/fm-classify-lib.sh:1069 and skips the warning. Establish the existing presentation manifest from the pre-fold offsets before preparation can advance the cache. This must cover both main and branch preparation through bin/fm-wake-drain.sh:610.bin/fm-remote-home-seed.sh:165- Round 2 moved the writer dependency into the remote worker checkout. A fresh remote home cloned from a host one revision behind inherits that host checkout as its Git origin at bin/fm-remote-home-provision.sh:177. The launch sync can fail to import the primary commit through either source at bin/fm-remote-secondmate-control.sh:481, and bin/fm-spawn.sh:844 still launches the worker. The new charter then points at a missing executable and ordinary reports fail. The test avoids this path by changing the home's origin and explicitly syncing before launch at tests/fm-remote-secondmate-parent-binding.test.sh:222. The remedy needs a decision because the existing launch policy allows skipped syncs. Check the writer dependency for fresh guarded charters at the shared host launch boundary and surface the missing dependency before starting the worker. Preserve the accepted behavior of legacy charters.bin/fm-remote-home-seed.sh:169- The remote charter rewrite added in Round 1 accepts any indented inline command containing the writer and status arguments. A filled charter can include a dry-run example that prints those arguments withprintf. The matcher stripsprintfand turns the example into an actual status append in the delivered charter. No intent requirement needs that matching path. Narrow it to the exact generated status command in the escalation section, retaining the existing relay-path substitution for legacy charters.bin/fm-wake-drain.sh:554- Round 2 put the warning on the unread-status receipt, and round 3 preserved that coupling. If main drains an unrelated wake after a raw reserved-key decision is appended but before its task signal is queued, it prints only the task and key at bin/fm-wake-drain.sh:414. The receipt at bin/fm-wake-drain.sh:554 and :572 advances past the question, so the later direct notification skips it at bin/fm-wake-lib.sh:2740. Previously that notification could show the question. tests/fm-wake-drain-open-decisions.test.sh:259 checks warning replay but never queues the delayed signal for the affected task. Include the question in the warning while keeping it out of OPEN DECISIONS. That remedy changes the warning text, which needs a decision.bin/fm-remote-home-seed.sh:179- Round 3's remote conversion requires the generated introduction, command, and key rule to be consecutive. Add a domain-specific instruction between the command and the key rule in a filled charter and provisioning succeeds, but the delivered command still invokes the parent machine's absolute writer from bin/fm-brief.sh:200 and :287. Only its destination is rewritten at bin/fm-remote-home-seed.sh:167. Convert the generated status command by its identity within the escalation section, independently of adjacent prose. The regression at tests/fm-remote-secondmate-parent-binding.test.sh:210 and :219 can pass with the conversion absent because the fixture can execute the real parent writer. Exercise the delivered command with the parent writer unavailable or verify the documented direct-append behavior with a reserved-key input.bin/fm-wake-drain.sh:555- A warning can consume a later status that the drain never displayed. The fixture at tests/fm-wake-drain-open-decisions.test.sh:228 already appends a reserved-keyblockedafter the warned decisions. The unrelated drain prints the warnings, the backstop skips the parseableblockedrecord at bin/fm-wake-drain.sh:344, and the warning marks the task’s entire snapshot presented at bin/fm-wake-drain.sh:553 and bin/fm-classify-lib.sh:1341. The delayed task signal at tests/fm-wake-drain-open-decisions.test.sh:258 then has no annotation for the blocker. Round 4 preserved the warned question and left this sibling unread-status loss in place. Bound warning-driven receipts to the last byte actually presented. If preserving earlier annotation-only lines also requires broader output or separate receipts, that remedy needs authorization.bin/fm-remote-home-seed.sh:128- Round 4 introduced a public--remotescaffold mode and made the charter’s write behavior depend on choosing it before seeding. Generate and fill a charter with the previously documented--secondmatecommand, then provision it remotely. The existing-file path at bin/fm-remote-home-seed.sh:128 skips the remote scaffold, and the substitution at bin/fm-remote-home-seed.sh:165 changes only the destination. The delivered command still invokes the parent checkout’s absolute writer path, so evendonecannot report on a remote host without that path. The inverse route also bypasses the required guard: a charter generated with--remoteat bin/fm-brief.sh:206 is copied unchanged by local seed at bin/fm-home-seed.sh:957. This contradicts the intent that “the worker-side key writer and the brief's status protocol refuse a reserved key prefix at write time” on the guarded route and the reporting contract at docs/remote-secondmates.md:197. The route is already known at seed time. Remove the new operator-facing mode and have the seed paths select the generated status protocol from the route they own. The no-existing-brief regression at tests/fm-remote-secondmate-parent-binding.test.sh:208 covers only the automatic selection.bin/fm-spawn.sh:889- Round 4 aligned the local launch environment and left the remote correlated-report helper behind. Withops-reserved on the parent, a synced remote secondmate can submitneeds-decision [key=ops-release]through bin/fm-secondmate-report.sh:101. The remote launch request at bin/fm-spawn.sh:889 carries no prefix policy, and the remote relaunch request at bin/fm-remote-secondmate-control.sh:301 also omits it. The host-local launch therefore exports its own default at bin/fm-spawn.sh:4988. The helper accepts the report, then the parent folds it out of OPEN DECISIONS when it is mirrored. Decide whether the helper’s guard must use the parent’s custom prefixes across SSH. The remedy needs authorization because it extends the mixed-version launch and relaunch protocol.bin/fm-wake-drain.sh:554- Round 5 bounds the receipt at the last printed line, which can still skip an undisplayed blocker. If a warning-only writer appendsblocked [key=pending-reply-infra]: credentials unavailableand then a folded reserved-key question, an unrelated drain prints only the question. The blocker is outside the unread filter and the reserved-key fold, and the later question displaces it from the latest-event backstop. The receipt then advances past both lines, so the delayed task signal has no blocker annotation. The same gap occurs when a blocker sits between a warning and a later note. The invariant belongs at bin/fm-classify-lib.sh:1339–1355 (receipt selection) and bin/fm-wake-drain.sh:553–555 (receipt from rendered rows). tests/fm-wake-drain-open-decisions.test.sh:224–229 covers only a blocker after the last printed line. Keep the receipt contiguous. Approval is needed to either present the intervening actionable line with the warning or defer the warning until the task annotation can present both.bin/fm-wake-drain.sh:602- Round 3 made creation of the first presentation receipt a prerequisite for all status output. If the initial.status-presentation-cursorrename fails while the status logs remain readable, both actors skip annotations and every prepared section, and the drain still exits successfully at bin/fm-wake-drain.sh:791, :812, and :874. Main previously printed the output before attempting that rename. The round also changed tests/fm-wake-drain-outcome-backstop.test.sh:263 to let the first rename succeed. Remove the new prerequisite and preserve pre-fold offsets without suppressing readable output when receipt initialization fails. The additional failure-handling behavior needs a decision at the shared presentation boundary.bin/fm-wake-drain.sh:557- Round 6 introduced a separate warning read and silently skips it on failure. If a status span contains a folded question and a laternote:, the ordinary scan can read the note successfully, the second read can fail, and the drain can still commit the full span. The next drain then skips the question permanently. The affected path is bin/fm-classify-lib.sh:1543 (second span read), bin/fm-wake-drain.sh:574 (ordinary scan), and bin/fm-wake-drain.sh:595 (receipt commit). Derive warnings from the same successful span read as ordinary status presentation so receipt behavior stays intact.bin/fm-brief.sh:290- The intent requires that “the worker-side key writer and the brief's status protocol refuse a reserved key prefix at write time.” The author's original change guarded the local secondmate charter. The rollback between rounds 5 and 6 restoredecho ... >>at this site. A newly scaffolded local secondmate can again appendneeds-decision [key=pending-reply-color]: choose bluesuccessfully. The drain warns, but the decision stays out of OPEN DECISIONS andfm-send --resolve-keystill refuses it. The guarded correlated helper at bin/fm-secondmate-report.sh:101 is optional under bin/fm-brief.sh:277–278, and tests/fm-secondmate-safety.test.sh:82 now expects the direct append. Restore the guarded local charter command or explicitly approve warning-only handling for that route.bin/fm-status-append.sh:42- The guarded writer treats the classifier's syntheticdefaultkey as a key supplied by the worker. With the supported prefix overridepending-reply- def, an ordinarydone: deliveredis refused even though it contains no key. This affects both generated worker commands at bin/fm-brief.sh:394 and :486 and correlated reports at bin/fm-secondmate-report.sh:101. Distinguish an explicit key from the fold's default identifier at the shared parsing boundary, and preserve the fold's treatment of unkeyed decision transitions.bin/fm-wake-drain.sh:557- The warning prints the full question before OPEN DECISIONS, including on an unrelated drain with no task annotation. A long question copied into a native or legacy status append can therefore consume the drain's output budget repeatedly before the ordinary cursor reaches it. Round 4 added the question text and round 7 retained the unbounded payload at bin/fm-classify-lib.sh:1583–1585. Keep the task and key and cap the displayed question with the existing truncation marker, following the bounded decision display at bin/fm-wake-drain.sh:462–469.bin/fm-brief.sh:111- The relative-path fix canonicalizesFM_ROOT_OVERRIDEbefore the scaffold kind is known. That also changes the existing Herdr helper and project-memory command paths at bin/fm-brief.sh:326 and :523–526, and adds a refusal path to the direct-append charter when an explicitFM_HOMEis valid but a relative root cannot be resolved. The intent only needs an absolute executable path for the guarded append. Remove the broader root normalization and resolve the guarded writer's path where its command is generated.tests/fm-rovo-harness.test.sh:229- The Rovo test checks for the status path in the emitted prompt and separately searches the shell command for grant-related substrings. It can pass if the path appears outsideallowedExternalPathsor if the grant additionally exposes the whole state directory. Capture Rovo's actual arguments and parse the JSON override. The documented oracle at docs/verification/rovo.md:187 is exactly the brief directory, inbox directory, and status file, with the status path matching the emitted instruction. The same raw grant check appears at tests/fm-rovo-harness.test.sh:254.🔧 Fix applied.
20 issues (13 errors, 7 warnings) still open:
bin/fm-wake-drain.sh:460- The intent requires a warning when a reserved-prefix decision is folded. The added lifetime replay reads every status log from byte zero on every drain, even with no new bytes. After a worker reissues the question under a valid key, the old warning still prints on every unrelated drain. This also defeats the existing bounded-read contract and bypasses the presentation receipt at bin/fm-wake-drain.sh:594–615. Remove the lifetime replay and surface the warning through the existing cursor-backed unread-status path. The single-drain assertion at tests/fm-wake-drain-open-decisions.test.sh:218 does not distinguish replay from one-time presentation.bin/fm-remote-home-seed.sh:173- The intent requires that “the worker-side key writer and the brief's status protocol refuse a reserved key prefix at write time.” Round 1 guarded fresh scaffolds at bin/fm-brief.sh:289, :391, and :484, but left existing briefs and charters behind. After an update and restart, bin/fm-spawn.sh:2777 still selects the saved charter and :2828 copies a saved ship or scout brief into the launch instructions. Local reseeding copies the old charter at bin/fm-home-seed.sh:957, and remote reseeding still retargets its raw echo at bin/fm-remote-home-seed.sh:172–173. Following any of those instructions with a reserved key still writes the decision and leaves it unanswerable through--resolve-key. Apply the current status protocol when delivering saved instructions while preserving the filled task and charter text. The fresh-scaffold test at tests/fm-brief.test.sh:916 misses this path.bin/fm-remote-home-seed.sh:165- Round 1 moved the remote writer from the originating host toREMOTE_ROOT, but normal remote launch fast-forwards only the secondmate home. Provision against a ready host whose code root predates this change, then let bin/fm-spawn.sh:838–840 sync the home to the new commit. The remote agent starts with the writer in its home, yet even an ordinarydonereport fails because the charter invokes the missing host-root copy. The correlated helper already executes its sibling writer at bin/fm-secondmate-report.sh:101. Bind the charter to the worker's synced checkout and verify delivery with the writer present only there. The fixture at tests/fm-remote-secondmate-parent-binding.test.sh:115–126 and :213–219 installs the new writer in the host root and requires that path, masking the failure.bin/fm-wake-drain.sh:564- Round 1 moved the warning onto a presentation cursor shared by Pi main and branch. If a worker appends a folded reserved-key decision while the branch is draining an unrelated task, the fleet-wide scan at bin/fm-classify-lib.sh:1620 finds it and bin/fm-wake-drain.sh:422–424 prints it only in the branch turn. The drain commits that task's offset at bin/fm-wake-drain.sh:562–582, so main later receives its decision-owned wake without the warning or its unread status annotation. The branch cannot report the unrelated task under docs/pi-supervision-branch.md:45. Preserve the warning for main at the shared presentation boundary, including both receipt paths at bin/fm-classify-lib.sh:1338–1358 and the direct-annotation path at bin/fm-wake-drain.sh:609–616.bin/fm-wake-drain.sh:559- Round 1 moved the warning onto a cursor that can lose it on the first drain. In a fresh home, a native append can land before the watcher queues its wake. The empty-queue drain prepares the warning and advances the open-decisions cache at bin/fm-wake-drain.sh:559. If stdout closes before delivery at bin/fm-wake-drain.sh:568, the presentation receipt is never committed. The retry still treats the fold cache as a receipt at bin/fm-classify-lib.sh:1069 and skips the warning. Establish the existing presentation manifest from the pre-fold offsets before preparation can advance the cache. This must cover both main and branch preparation through bin/fm-wake-drain.sh:610.bin/fm-remote-home-seed.sh:165- Round 2 moved the writer dependency into the remote worker checkout. A fresh remote home cloned from a host one revision behind inherits that host checkout as its Git origin at bin/fm-remote-home-provision.sh:177. The launch sync can fail to import the primary commit through either source at bin/fm-remote-secondmate-control.sh:481, and bin/fm-spawn.sh:844 still launches the worker. The new charter then points at a missing executable and ordinary reports fail. The test avoids this path by changing the home's origin and explicitly syncing before launch at tests/fm-remote-secondmate-parent-binding.test.sh:222. The remedy needs a decision because the existing launch policy allows skipped syncs. Check the writer dependency for fresh guarded charters at the shared host launch boundary and surface the missing dependency before starting the worker. Preserve the accepted behavior of legacy charters.bin/fm-remote-home-seed.sh:169- The remote charter rewrite added in Round 1 accepts any indented inline command containing the writer and status arguments. A filled charter can include a dry-run example that prints those arguments withprintf. The matcher stripsprintfand turns the example into an actual status append in the delivered charter. No intent requirement needs that matching path. Narrow it to the exact generated status command in the escalation section, retaining the existing relay-path substitution for legacy charters.bin/fm-wake-drain.sh:554- Round 2 put the warning on the unread-status receipt, and round 3 preserved that coupling. If main drains an unrelated wake after a raw reserved-key decision is appended but before its task signal is queued, it prints only the task and key at bin/fm-wake-drain.sh:414. The receipt at bin/fm-wake-drain.sh:554 and :572 advances past the question, so the later direct notification skips it at bin/fm-wake-lib.sh:2740. Previously that notification could show the question. tests/fm-wake-drain-open-decisions.test.sh:259 checks warning replay but never queues the delayed signal for the affected task. Include the question in the warning while keeping it out of OPEN DECISIONS. That remedy changes the warning text, which needs a decision.bin/fm-remote-home-seed.sh:179- Round 3's remote conversion requires the generated introduction, command, and key rule to be consecutive. Add a domain-specific instruction between the command and the key rule in a filled charter and provisioning succeeds, but the delivered command still invokes the parent machine's absolute writer from bin/fm-brief.sh:200 and :287. Only its destination is rewritten at bin/fm-remote-home-seed.sh:167. Convert the generated status command by its identity within the escalation section, independently of adjacent prose. The regression at tests/fm-remote-secondmate-parent-binding.test.sh:210 and :219 can pass with the conversion absent because the fixture can execute the real parent writer. Exercise the delivered command with the parent writer unavailable or verify the documented direct-append behavior with a reserved-key input.bin/fm-wake-drain.sh:555- A warning can consume a later status that the drain never displayed. The fixture at tests/fm-wake-drain-open-decisions.test.sh:228 already appends a reserved-keyblockedafter the warned decisions. The unrelated drain prints the warnings, the backstop skips the parseableblockedrecord at bin/fm-wake-drain.sh:344, and the warning marks the task’s entire snapshot presented at bin/fm-wake-drain.sh:553 and bin/fm-classify-lib.sh:1341. The delayed task signal at tests/fm-wake-drain-open-decisions.test.sh:258 then has no annotation for the blocker. Round 4 preserved the warned question and left this sibling unread-status loss in place. Bound warning-driven receipts to the last byte actually presented. If preserving earlier annotation-only lines also requires broader output or separate receipts, that remedy needs authorization.bin/fm-remote-home-seed.sh:128- Round 4 introduced a public--remotescaffold mode and made the charter’s write behavior depend on choosing it before seeding. Generate and fill a charter with the previously documented--secondmatecommand, then provision it remotely. The existing-file path at bin/fm-remote-home-seed.sh:128 skips the remote scaffold, and the substitution at bin/fm-remote-home-seed.sh:165 changes only the destination. The delivered command still invokes the parent checkout’s absolute writer path, so evendonecannot report on a remote host without that path. The inverse route also bypasses the required guard: a charter generated with--remoteat bin/fm-brief.sh:206 is copied unchanged by local seed at bin/fm-home-seed.sh:957. This contradicts the intent that “the worker-side key writer and the brief's status protocol refuse a reserved key prefix at write time” on the guarded route and the reporting contract at docs/remote-secondmates.md:197. The route is already known at seed time. Remove the new operator-facing mode and have the seed paths select the generated status protocol from the route they own. The no-existing-brief regression at tests/fm-remote-secondmate-parent-binding.test.sh:208 covers only the automatic selection.bin/fm-spawn.sh:889- Round 4 aligned the local launch environment and left the remote correlated-report helper behind. Withops-reserved on the parent, a synced remote secondmate can submitneeds-decision [key=ops-release]through bin/fm-secondmate-report.sh:101. The remote launch request at bin/fm-spawn.sh:889 carries no prefix policy, and the remote relaunch request at bin/fm-remote-secondmate-control.sh:301 also omits it. The host-local launch therefore exports its own default at bin/fm-spawn.sh:4988. The helper accepts the report, then the parent folds it out of OPEN DECISIONS when it is mirrored. Decide whether the helper’s guard must use the parent’s custom prefixes across SSH. The remedy needs authorization because it extends the mixed-version launch and relaunch protocol.bin/fm-wake-drain.sh:554- Round 5 bounds the receipt at the last printed line, which can still skip an undisplayed blocker. If a warning-only writer appendsblocked [key=pending-reply-infra]: credentials unavailableand then a folded reserved-key question, an unrelated drain prints only the question. The blocker is outside the unread filter and the reserved-key fold, and the later question displaces it from the latest-event backstop. The receipt then advances past both lines, so the delayed task signal has no blocker annotation. The same gap occurs when a blocker sits between a warning and a later note. The invariant belongs at bin/fm-classify-lib.sh:1339–1355 (receipt selection) and bin/fm-wake-drain.sh:553–555 (receipt from rendered rows). tests/fm-wake-drain-open-decisions.test.sh:224–229 covers only a blocker after the last printed line. Keep the receipt contiguous. Approval is needed to either present the intervening actionable line with the warning or defer the warning until the task annotation can present both.bin/fm-wake-drain.sh:602- Round 3 made creation of the first presentation receipt a prerequisite for all status output. If the initial.status-presentation-cursorrename fails while the status logs remain readable, both actors skip annotations and every prepared section, and the drain still exits successfully at bin/fm-wake-drain.sh:791, :812, and :874. Main previously printed the output before attempting that rename. The round also changed tests/fm-wake-drain-outcome-backstop.test.sh:263 to let the first rename succeed. Remove the new prerequisite and preserve pre-fold offsets without suppressing readable output when receipt initialization fails. The additional failure-handling behavior needs a decision at the shared presentation boundary.bin/fm-wake-drain.sh:557- Round 6 introduced a separate warning read and silently skips it on failure. If a status span contains a folded question and a laternote:, the ordinary scan can read the note successfully, the second read can fail, and the drain can still commit the full span. The next drain then skips the question permanently. The affected path is bin/fm-classify-lib.sh:1543 (second span read), bin/fm-wake-drain.sh:574 (ordinary scan), and bin/fm-wake-drain.sh:595 (receipt commit). Derive warnings from the same successful span read as ordinary status presentation so receipt behavior stays intact.bin/fm-brief.sh:290- The intent requires that “the worker-side key writer and the brief's status protocol refuse a reserved key prefix at write time.” The author's original change guarded the local secondmate charter. The rollback between rounds 5 and 6 restoredecho ... >>at this site. A newly scaffolded local secondmate can again appendneeds-decision [key=pending-reply-color]: choose bluesuccessfully. The drain warns, but the decision stays out of OPEN DECISIONS andfm-send --resolve-keystill refuses it. The guarded correlated helper at bin/fm-secondmate-report.sh:101 is optional under bin/fm-brief.sh:277–278, and tests/fm-secondmate-safety.test.sh:82 now expects the direct append. Restore the guarded local charter command or explicitly approve warning-only handling for that route.bin/fm-wake-drain.sh:557- The warning prints the full question before OPEN DECISIONS, including on an unrelated drain with no task annotation. A long question copied into a native or legacy status append can therefore consume the drain's output budget repeatedly before the ordinary cursor reaches it. Round 4 added the question text and round 7 retained the unbounded payload at bin/fm-classify-lib.sh:1583–1585. Keep the task and key and cap the displayed question with the existing truncation marker, following the bounded decision display at bin/fm-wake-drain.sh:462–469.tests/fm-rovo-harness.test.sh:229- The Rovo test checks for the status path in the emitted prompt and separately searches the shell command for grant-related substrings. It can pass if the path appears outsideallowedExternalPathsor if the grant additionally exposes the whole state directory. Capture Rovo's actual arguments and parse the JSON override. The documented oracle at docs/verification/rovo.md:187 is exactly the brief directory, inbox directory, and status file, with the status path matching the emitted instruction. The same raw grant check appears at tests/fm-rovo-harness.test.sh:254.bin/fm-wake-drain.sh:574- The intent requires that “the drain prints a warning line when it folds a reserved-prefix needs-decision instead of listing it.” Round 6 restored a fleet-wide scan, and round 7 put warnings and informational notes into one read. If a Rovo worker appends a reserved-key decision followed by anote:and the branch drains an unrelated task first, the branch prints both and commits the full status span. Main later receives its decision-owned wake row without the warning or the question. The branch cannot report that unrelated task through its scoped report tool. The same receipt boundary covers direct annotations (bin/fm-wake-drain.sh:624) and can inherit a fold offset after a failed first presentation (bin/fm-classify-lib.sh:1065,bin/fm-classify-lib.sh:1532). The branch regression attests/fm-wake-drain-open-decisions.test.sh:355puts the note on the branch's own task, so it misses the shared-span case. Narrow the fleet-wide branch warning path and keep spans containing a main-owned warning unread until main presents them. Deferring a note in such a span is the behavior decision that needs approval.tests/fm-rovo-harness.test.sh:223- Round 8 verifies the JSON grant at the fake Rovo binary, but leaves the bare-launch, model, and marker checks attests/fm-rovo-harness.test.sh:223–233as shell-text assertions. A launch that appends an unexpected positional argument can satisfy every current assertion even though the documented Rovo contract says a positional prompt prevents the session from working. Use the existing capture attests/fm-rovo-harness.test.sh:182to assert the actual argument list, and seed and capture the foreign markers to verify the environment the binary receives.</details>
<details>
<summary>✅ Test - passed</summary>
✅ No issues found.
| Scenario | Result | Live | Evidence |
| --- | --- | --- | --- |
| A worker follows a fresh ship or scout brief and gets a refusal before any write for reserved keys, copied owner wording, and multiline input. Ordinary and unkeyed reports still append. | ✅ pass | live | Ship and scout status writer transcripts;
test_status_protocol_uses_guarded_writer|| A local secondmate submits correlated text and document reports. Valid reports reach the parent ledger, and reserved keys or multiline input leave it unchanged. | ✅ pass | live | Correlated secondmate report transcript;
test_the_real_writers_produce_tokens_this_library_reads|| A supervisor launches a scout whose worker receives the configured reserved prefixes through an empty environment allowlist and rejects the newly reserved key. | ✅ pass | live | Worker launch with custom reserved prefixes;
test_launch_environment_allowlist|| A supervisor drains a directly appended reserved-key question and sees its task, key, and question in a warning. Delayed task annotations still arrive. | ✅ pass | live | Base and target wake drain comparison;
test_folded_reserved_needs_decision_warns_without_consuming_annotations;test_unrelated_branch_drain_leaves_warning_unread_for_main|| A supervisor drains a long reserved question beside a note. The question is capped, both lines appear from one successful read, and failed receipt handling leaves the warning recoverable. | ✅ pass | live | Wake drain warning and receipt transcript;
test_warning_and_note_share_a_successful_span_read;test_first_drain_output_failure_leaves_warning_for_main;test_failed_first_receipt_rename_still_prin… |test_worker_reserved_needs_decision_is_not_open| An operator tries to resolve the folded key and gets a refusal before delivery, then answers the reissued question and a legitimate pending-reply escalation. Both close in OPEN DECISIONS. | ✅ pass | live | Operator resolution and durable inbox records;
;test_reserved_pending_reply_key_closes_through_resolve_key;test_unrelated_writer_cannot_close_or_h… || A supervisor launches Firstmate's Rovo adapter and the receiving endpoint gets the configured prefixes, native append instruction, and exactly the three task-scoped path grants. | ✅ pass | live | Firstmate Rovo launch arguments and delivered instruction;
bash tests/fm-rovo-harness.test.sh|| An authenticated Rovo worker follows the delivered instruction and appends through its native file tool. | ⏸️ untested | no |
rovowas absent from PATH. I downloaded the official Linux ACLI binary into the worktree and checked authentication with an empty home. A disposable Atlassian site with Rovo Dev enabled, available c… |bash tests/fm-wake-drain-open-decisions.test.shtests/fm-brief.test.sh→test_status_protocol_uses_guarded_writer</code>tests/fm-classify-corr-token.test.sh→test_the_real_writers_produce_tokens_this_library_reads</code>tests/fm-spawn-dispatch-profile.test.sh→test_launch_environment_allowlist</code>tests/fm-send-resolve-key.test.sh→test_worker_reserved_needs_decision_is_not_open,test_reserved_pending_reply_key_closes_through_resolve_key, andtest_unrelated_writer_cannot_close_or_hijack_reserved_key</code>bash tests/fm-rovo-harness.test.shfm-wake-drain.shfrom basecc894b4and target95084e2over the same reserved-key report.</code>fm-status-append.shcommands,fm-secondmate-report.shin text and document modes, andfm-wake-drain.shwith a single-read status span.</code>fm-spawn.sh --scout --backend tmuxwith a real local worker command and with a synthetic Rovo endpoint. Ranfm-send.sh --resolve-keyagainst an isolated tmux task.</code>command -v rovo, downloaded the official Linux ACLI binary into a disposable directory, and ranacli --versionandacli rovodev auth status.</code></details>
<details>
<summary>✅ Document - passed</summary>
✅ No issues found.
</details>
<details>
<summary>🔧 Lint - 1 issue found → auto-fixed ✅</summary>
🔧 Fix applied.
✅ Re-checked - no issues remain.
</details>
<details>
<summary>✅ Push - passed</summary>
✅ No issues found.
</details>