← Back to Pull requests

fix(bin): surface worker decisions that misuse reserved keys #60

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Nov 22, 2026 01:09 UTC
Author

What Changed

  • Route new ship and scout briefs and the secondmate report helper through a status writer that rejects explicit keys with reserved prefixes and asks workers to choose another key.

  • Warn during wake drains when a directly appended needs-decision line 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.

  • Export the effective reserved prefixes on worker launches, including with launch environment filtering enabled. Give Rovo the same prefix list and direct it to append status through its native file tool.
  • 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.

  • Live validation: ✅ go - 7 of 8 scenarios driven live against the product
  • | 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… |
    | 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_worker_reserved_needs_decision_is_not_open; 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 | rovo was 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

    $ <firstmate>/bin/fm-brief.sh ship-color sample --mode local-only
    scaffolded: <lab>/worker's home/data/ship-color/brief.md (ship, mode=local-only; replace {TASK} and {FIRSTMATE_SPEC})
    [exit 0]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/ship-color.status' 'needs-decision [key=pending-reply-color]: Choose blue'
    error: key 'pending-reply-color' starts with reserved prefix 'pending-reply-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/ship-color.status' 'done: Report delivered'
    [exit 0]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/ship-color.status' 'needs-decision: [key=ops-color] Choose blue'
    error: key 'ops-color' starts with reserved prefix 'ops-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/ship-color.status' 'needs-decision [key=pending-reply-color]: pending-reply-missed: imitate owner'
    error: key 'pending-reply-color' starts with reserved prefix 'pending-reply-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/ship-color.status' 'done [key=default]: Report delivered'
    error: key 'default' starts with reserved prefix 'def' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/ship-color.status' 'working: setup
    needs-decision [key=pending-reply-color]: Choose blue'
    error: status append requires one line without embedded newlines
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/ship-color.status' 'needs-decision [key=button-color]: Choose blue'
    [exit 0]
    Worker status ledger
    done: Report delivered
    needs-decision [key=button-color]: Choose blue
    $ <firstmate>/bin/fm-brief.sh scout-color sample --scout
    scaffolded: <lab>/worker's home/data/scout-color/brief.md (scout; replace {TASK} and {FIRSTMATE_SPEC})
    [exit 0]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/scout-color.status' 'needs-decision [key=pending-reply-color]: Choose blue'
    error: key 'pending-reply-color' starts with reserved prefix 'pending-reply-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/scout-color.status' 'done: Report delivered'
    [exit 0]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/scout-color.status' 'needs-decision: [key=ops-color] Choose blue'
    error: key 'ops-color' starts with reserved prefix 'ops-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/scout-color.status' 'needs-decision [key=pending-reply-color]: pending-reply-missed: imitate owner'
    error: key 'pending-reply-color' starts with reserved prefix 'pending-reply-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/scout-color.status' 'done [key=default]: Report delivered'
    error: key 'default' starts with reserved prefix 'def' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/scout-color.status' 'working: setup
    needs-decision [key=pending-reply-color]: Choose blue'
    error: status append requires one line without embedded newlines
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh '<lab>/worker'"'"'s home/state/scout-color.status' 'needs-decision [key=button-color]: Choose blue'
    [exit 0]
    Worker status ledger
    done: Report delivered
    needs-decision [key=button-color]: Choose blue
    

    </details>
    <details>
    <summary>Evidence: Correlated secondmate report transcript</summary>

    Source: Correlated secondmate report transcript

    $ <firstmate>/bin/fm-secondmate-report.sh done c44897ee2db4326b 'Report delivered'
    [exit 0]
    $ <firstmate>/bin/fm-secondmate-report.sh --doc needs-decision c44897ee2db4326b data/review/report.md 'Please review'
    [exit 0]
    $ <firstmate>/bin/fm-secondmate-report.sh 'needs-decision [key=pending-reply-color]' c44897ee2db4326b 'Choose blue'
    error: key 'pending-reply-color' starts with reserved prefix 'pending-reply-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-secondmate-report.sh --doc needs-decision c44897ee2db4326b data/review/report.md '[key=pending-reply-color] Choose blue'
    error: key 'pending-reply-color' starts with reserved prefix 'pending-reply-' owned by bin/fm-classify-lib.sh; pick another key
    [exit 1]
    $ <firstmate>/bin/fm-secondmate-report.sh --doc done c44897ee2db4326b 'data/review/report.md
    needs-decision [key=pending-reply-color]: Choose blue'
    error: status append requires one line without embedded newlines
    [exit 1]
    Parent status ledger
    done [corr=c44897ee2db4326b]: Report delivered (via-helper)
    needs-decision [corr=c44897ee2db4326b]: Please review (data/review/report.md via-helper)
    

    </details>
    <details>
    <summary>Evidence: Worker launch with custom reserved prefixes</summary>

    Source: Worker launch with custom reserved prefixes

    $ <firstmate>/bin/fm-brief.sh scout sample --scout
    scaffolded: <lab>/primary/data/scout/brief.md (scout; replace {TASK} and {FIRSTMATE_SPEC})
    [exit 0]
    $ <firstmate>/bin/fm-spawn.sh scout <lab>/primary/projects/sample --scout --backend tmux --harness '<lab>/probe <firstmate>/bin/fm-status-append.sh <lab>/primary/state/scout.status <lab>/probe.log'
    spawned scout harness=probe kind=scout window=firstmate:fm-scout worktree=<lab>/pool/.treehouse/sample-4aa02e/1/sample
    [exit 0]
    Worker prefix setting: pending-reply- ops-
    error: key 'ops-color' starts with reserved prefix 'ops-' owned by bin/fm-classify-lib.sh; pick another key
    Reserved append exit: 1
    Ordinary append exit: 0
    Persisted worker status
    needs-decision [key=stale-color]: Should the button be blue?
    

    </details>
    <details>
    <summary>Evidence: Base and target wake drain comparison</summary>

    Source: Base and target wake drain comparison

    Status entered by a worker: needs-decision [key=pending-reply-color]: Should the button be blue?
    Base commit
    $ <lab>/base/bin/fm-wake-drain.sh
    [exit 0]
    Target commit
    $ <firstmate>/bin/fm-wake-drain.sh
    warning: task=colors key=pending-reply-color folded reserved-prefix needs-decision: Should the button be blue?
    [exit 0]
    

    </details>
    <details>
    <summary>Evidence: Wake drain warning and receipt transcript</summary>

    Source: Wake drain warning and receipt transcript

    $ <firstmate>/bin/fm-wake-drain.sh
    UNREAD STATUS (new since last drain, not re-printed after this presentation):
    colors note: Baseline presented.
    [exit 0]
    The worker appended a reserved question, an informational note, and a question under a now-ordinary key.
    The disposable status reader allows a single read from the presented offset.
    $ <firstmate>/bin/fm-wake-drain.sh
    warning: task=colors key=ops-color folded reserved-prefix needs-decision: Should the button be blue? detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail detail [truncated]
    UNREAD STATUS (new since last drain, not re-printed after this presentation):
    colors note: Design review attached.
    [exit 0]
    Second drain after presenting the span with the ordinary reader restored
    $ <firstmate>/bin/fm-wake-drain.sh
    OPEN DECISIONS (still open, folded from the durable status logs - not just the latest line):
    colors [key=pending-reply-fallback] needs-decision: Is the label readable?
    OPEN DECISIONS: close one by answering it: bin/fm-send.sh <task> --resolve-key <key> '<answer>'
    [exit 0]
    

    </details>
    <details>
    <summary>Evidence: Operator resolution and durable inbox records</summary>

    Source: Operator resolution and durable inbox records

    $ tmux new-window -d -t firstmate: -n fm-colors '/bin/sleep 90'
    [exit 0]
    $ <firstmate>/bin/fm-wake-drain.sh
    warning: task=colors key=pending-reply-color folded reserved-prefix needs-decision: Should the button be blue?
    ●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    ●  WATCHER DOWN - SUPERVISION IS OFF
    ●  1 task(s) in flight, but no live watcher process holds this home lock (last beat: 0s ago).
    ●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
    ●  This is a supervision warning only; the guarded operation WILL still run.
    ●  repair missing watcher supervision with a foreground checkpoint: bin/fm-watch-checkpoint.sh --seconds 180.
    ●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    [exit 0]
    $ <firstmate>/bin/fm-send.sh colors --resolve-key pending-reply-color 'Use blue'
    WARNING: watcher still down (same stale episode; last beat: 0s ago, grace 300s) - full banner already printed this episode.
    error: --resolve-key 'pending-reply-color': no open decision or blocker with that key in <lab>/primary/state/colors.status, and no captain-held task 'pending-reply-color' or 'colors-decision-pending-reply-color' still open (already closed or mistyped). Re-check the OPEN DECISIONS listing, then resend without that key or with the right one; nothing was sent.
    [exit 1]
    $ <firstmate>/bin/fm-status-append.sh <lab>/primary/state/colors.status 'needs-decision [key=button-color]: Should the button be blue?'
    [exit 0]
    $ <firstmate>/bin/fm-wake-drain.sh
    warning: task=colors key=pending-reply-color folded reserved-prefix needs-decision: Should the button be blue?
    OPEN DECISIONS (still open, folded from the durable status logs - not just the latest line):
    colors [key=button-color] needs-decision: Should the button be blue?
    colors [key=pending-reply-abcdef0123456789] needs-decision: pending-reply-missed: task=colors pending-reply-id=abcdef0123456789 request=report
    OPEN DECISIONS: close one by answering it: bin/fm-send.sh <task> --resolve-key <key> '<answer>'
    WARNING: watcher still down (same stale episode; last beat: 1s ago, grace 300s) - full banner already printed this episode.
    [exit 0]
    $ <firstmate>/bin/fm-send.sh colors --resolve-key button-color 'Use blue'
    WARNING: watcher still down (same stale episode; last beat: 2s ago, grace 300s) - full banner already printed this episode.
    [exit 0]
    $ <firstmate>/bin/fm-send.sh colors --resolve-key pending-reply-abcdef0123456789 'Dismiss missed reply'
    WARNING: watcher still down (same stale episode; last beat: 3s ago, grace 300s) - full banner already printed this episode.
    [exit 0]
    Durable inbox messages
    schema=fm-task-inbox.v1
    at=2026-11-22T00:54:44Z
    --
    Use blue
    schema=fm-task-inbox.v1
    at=2026-11-22T00:54:45Z
    --
    Dismiss missed reply
    Persisted resolution lines
    resolved [key=button-color]: answered: Use blue
    resolved [key=pending-reply-abcdef0123456789]: pending-reply-resolved: task=colors pending-reply-id=abcdef0123456789 via=operator-resolve-key Dismiss missed reply
    $ <firstmate>/bin/fm-wake-drain.sh
    warning: task=colors key=pending-reply-color folded reserved-prefix needs-decision: Should the button be blue?
    UNREAD STATUS (new since last drain, not re-printed after this presentation):
    colors resolved [key=pending-reply-abcdef0123456789]: pending-reply-resolved: task=colors pending-reply-id=abcdef0123456789 via=operator-resolve-key Dismiss missed reply
    WARNING: watcher still down (same stale episode; last beat: 4s ago, grace 300s) - full banner already printed this episode.
    [exit 0]
    

    </details>
    <details>
    <summary>Evidence: Firstmate Rovo launch arguments and delivered instruction</summary>

    Source: Firstmate Rovo launch arguments and delivered instruction

    $ <firstmate>/bin/fm-brief.sh rovo-scout sample --scout
    scaffolded: <lab>/primary/data/rovo-scout/brief.md (scout; replace {TASK} and {FIRSTMATE_SPEC})
    [exit 0]
    $ <firstmate>/bin/fm-spawn.sh rovo-scout <lab>/primary/projects/sample --scout --backend tmux --harness rovo --model auto --effort high
    spawned rovo-scout harness=rovo kind=scout window=firstmate:fm-rovo-scout worktree=<lab>/pool/.treehouse/sample-aff8c4/1/sample
    [exit 0]
    Arguments received by the local endpoint
    [
      "run",
      "--yolo",
      "--model",
      "auto",
      "--config-override",
      "{\"agent\":{\"efficiencyLevel\":\"high\"},\"toolPermissions\":{\"allowedExternalPaths\":[\"<lab>/primary/data/rovo-scout\",\"<lab>/primary/state/rovo-scout.inbox\",\"<lab>/primary/state/rovo-scout.status\"]}}"
    ]
    Instruction received by the local endpoint
    Read the brief at <lab>/primary/data/rovo-scout/launch-brief.md and carry out its instructions. For each status report, use your native file tool to append one line to <lab>/primary/state/rovo-scout.status. Follow the brief's status format and key rules. For any [key=<slug>], avoid these reserved key prefixes (whitespace-separated): `pending-reply- ops-`
    

    </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&#39;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 to REMOTE_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 ordinary done report 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&#39;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&#39;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&#39;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 with printf. The matcher strips printf and 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&#39;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&#39;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-key blocked after the warned decisions. The unrelated drain prints the warnings, the backstop skips the parseable blocked record 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 --remote scaffold mode and made the charter’s write behavior depend on choosing it before seeding. Generate and fill a charter with the previously documented --secondmate command, 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 even done cannot report on a remote host without that path. The inverse route also bypasses the required guard: a charter generated with --remote at 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&#39;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. With ops- reserved on the parent, a synced remote secondmate can submit needs-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 appends blocked [key=pending-reply-infra]: credentials unavailable and 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-cursor rename 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 later note:, 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&#39;s status protocol refuse a reserved key prefix at write time.” The author&#39;s original change guarded the local secondmate charter. The rollback between rounds 5 and 6 restored echo ... &gt;&gt; at this site. A newly scaffolded local secondmate can again append needs-decision [key=pending-reply-color]: choose blue successfully. The drain warns, but the decision stays out of OPEN DECISIONS and fm-send --resolve-key still 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&#39;s synthetic default key as a key supplied by the worker. With the supported prefix override pending-reply- def, an ordinary done: delivered is 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&#39;s default identifier at the shared parsing boundary, and preserve the fold&#39;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&#39;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 canonicalizes FM_ROOT_OVERRIDE before 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 explicit FM_HOME is 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&#39;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 outside allowedExternalPaths or if the grant additionally exposes the whole state directory. Capture Rovo&#39;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&#39;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 to REMOTE_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 ordinary done report 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&#39;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&#39;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&#39;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 with printf. The matcher strips printf and 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&#39;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&#39;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-key blocked after the warned decisions. The unrelated drain prints the warnings, the backstop skips the parseable blocked record 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 --remote scaffold mode and made the charter’s write behavior depend on choosing it before seeding. Generate and fill a charter with the previously documented --secondmate command, 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 even done cannot report on a remote host without that path. The inverse route also bypasses the required guard: a charter generated with --remote at 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&#39;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. With ops- reserved on the parent, a synced remote secondmate can submit needs-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 appends blocked [key=pending-reply-infra]: credentials unavailable and 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-cursor rename 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 later note:, 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&#39;s status protocol refuse a reserved key prefix at write time.” The author&#39;s original change guarded the local secondmate charter. The rollback between rounds 5 and 6 restored echo ... &gt;&gt; at this site. A newly scaffolded local secondmate can again append needs-decision [key=pending-reply-color]: choose blue successfully. The drain warns, but the decision stays out of OPEN DECISIONS and fm-send --resolve-key still 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&#39;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 outside allowedExternalPaths or if the grant additionally exposes the whole state directory. Capture Rovo&#39;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 a note: 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 at tests/fm-wake-drain-open-decisions.test.sh:355 puts the note on the branch&#39;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 at tests/fm-rovo-harness.test.sh:223–233 as 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 at tests/fm-rovo-harness.test.sh:182 to 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.

  • Live validation: ✅ go - 7 of 8 scenarios driven live against the product
  • | 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… |
    | 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_worker_reserved_needs_decision_is_not_open; test_reserved_pending_reply_key_closes_through_resolve_key; test_unrelated_writer_cannot_close_or_h… |
    | A supervisor launches Firstmate&#39;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 | rovo was 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.sh

  • <code>tests/fm-brief.test.sh → test_status_protocol_uses_guarded_writer</code>

  • <code>tests/fm-classify-corr-token.test.sh → test_the_real_writers_produce_tokens_this_library_reads</code>

  • <code>tests/fm-spawn-dispatch-profile.test.sh → test_launch_environment_allowlist</code>

  • <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, and test_unrelated_writer_cannot_close_or_hijack_reserved_key</code>

  • bash tests/fm-rovo-harness.test.sh

  • <code>Ran fm-wake-drain.sh from base cc894b4 and target 95084e2 over the same reserved-key report.</code>

  • <code>Executed the generated fm-status-append.sh commands, fm-secondmate-report.sh in text and document modes, and fm-wake-drain.sh with a single-read status span.</code>

  • <code>Ran fm-spawn.sh --scout --backend tmux with a real local worker command and with a synthetic Rovo endpoint. Ran fm-send.sh --resolve-key against an isolated tmux task.</code>

  • <code>Checked command -v rovo, downloaded the official Linux ACLI binary into a disposable directory, and ran acli --version and acli rovodev auth status.</code>
  • </details>

    <details>
    <summary>✅ Document - passed</summary>

    ✅ No issues found.

    </details>

    <details>
    <summary>🔧 Lint - 1 issue found → auto-fixed ✅</summary>

  • ⚠️ linter found issues (exit code 1)
  • 🔧 Fix applied.
    ✅ Re-checked - no issues remain.

    </details>

    <details>
    <summary>✅ Push - passed</summary>

    ✅ No issues found.

    </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: cursor[bot] Review duration: 2m
    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
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 16% · Reviewer familiarity: 35%
    13%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 13.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 13.3% · Lower = rushed or shallow review
    13.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 45.1% · Moderate risk
    45.1%