Repository navigation
[fm-refit] Weekly refit integration and hardening - #78
Merged
Merged
Conversation
…id#744) * fix(supervision): distinguish ordinary wakes from repair * no-mistakes(review): Make passive guard follow-ups recovery-only * no-mistakes(document): Clarify recovery-only turn-end guard documentation
* fix(x-mode): dedupe pending mention wakes * no-mistakes(review): fix x-poll claim error deduplication * no-mistakes(review): separate claim diagnostics from relay recovery * no-mistakes(document): Document X-mode once-only mention wakes
…enguid#747) * feat(wake): enrich drained signal context * no-mistakes(review): Bound wake enrichment reads * no-mistakes(document): Document wake-drain annotations * docs(wake): explain at-least-once drain boundary * no-mistakes(review): Prevent symlink races in wake annotations * no-mistakes(review): Exercise wake symlink race regression * test: document intentional AFK marker subprocesses * fix(wake): isolate annotation marker state
* feat(herdr): add optional presentation spaces * no-mistakes(review): Harden Herdr projection creation and spawn serialization * no-mistakes(review): Captain, disarm Herdr cleanup before launch submission * no-mistakes(test): Correct stale Orca metadata failure fixture * no-mistakes(document): Document Herdr presentation projection accurately
…nchenguid#775) * fix(send): treat opencode busy-queued composer state as submitted When fm-send sends a message to a BUSY opencode crewmate on the tmux backend, opencode accepts the Enter and queues the message for the next turn, but leaves the typed text visible in the composer row. The submit-verification loop sees a pending composer, exhausts retries, and reports a false "Enter swallowed" failure while the message is actually delivered. Fix: after Enter retries are exhausted and the composer still shows pending, check fm_pane_is_busy. If the pane is busy (agent mid-turn, footer shows "esc interrupt"), the harness queued the message, so return "empty" (accepted). On an idle pane, keep returning "pending" (genuine swallow detection preserved). Regression tests cover four scenarios: - busy pane + pending composer -> empty (message queued) - idle pane + pending composer -> pending (genuine swallow) - busy pane + composer clears on first Enter -> empty - idle pane + composer clears on first Enter -> empty (existing path) * docs: document busy-queued Enter exception across backend docs and skills Add explanatory comments and backend documentation for the busy-queued Enter fix (opencode 1.18.4 accepts Enter mid-turn but keeps typed text in composer until the turn ends): - bin/fm-tmux-lib.sh: document the busy-aware fallback in the file header and above fm_tmux_submit_enter_core - .agents/skills/afk/SKILL.md: daemon-facing policy note - .agents/skills/harness-adapters/SKILL.md: harness-specific fact - docs/tmux-backend.md: submit-acknowledgement section with the busy-queue exception - docs/herdr-backend.md: record the known gap - docs/architecture.md: cross-reference in the daemon section * test(tmux): fix SC2181 and make busy-submit test executable
…unchenguid#765) * fix(spawn): require two stable reads before accepting worktree path The treehouse-get worktree-detection loop in fm-spawn.sh accepted the first pane_current_path read that differed from the project path, but on some tmux/WSL setups a brand-new window transiently reports a stale-but-real path before the pane actually settles into the worktree. Since that stale path is itself a real, distinct git checkout, it also passes validate_spawn_worktree's isolation check, so the loop silently recorded the wrong worktree in state/<id>.meta (and, for claude harness spawns, installed the turn-end hook there too). Require two consecutive polls to agree on the same non-project path before accepting it, using the existing inter-poll sleep as the confirmation gap so an already-settled pane isn't slowed down by an extra cycle. * fix(tests): drop unused CASE_DIR read in worktree-settle test ShellCheck SC2034: CASE_DIR is split out of the case record but never referenced; discard it with _ instead. --------- Co-authored-by: Freudator86 <[email protected]>
…anges (kunchenguid#752) * fix(watcher): stabilize Linux process identity * no-mistakes(document): document FM_PROC_ROOT_OVERRIDE and Linux starttime identity rationale
* fix(supervision): verb-aware captain relevance, AFK wedge, head-bound state Stop free-text tokens like "merged" from promoting nonterminal working: lines to captain-relevant, so AFK no longer permanently suppresses idle recovery. Defend wedge aging independently for nonterminal progress verbs, bind no-mistakes current-state attribution to code identity (not branch alone), and mark setup-complete as nonterminal in the ship brief scaffold. * no-mistakes(review): Enforce nonterminal suppression and head-bound run attribution * no-mistakes(document): Document current-code-bound run attribution * no-mistakes(test): Wait for stable Herdr shell readiness * no-mistakes(test): Make Herdr and watcher readiness tests deterministic * no-mistakes(test): Make tmux capture and watcher lifecycle deterministic * no-mistakes(document): Document corrected supervision contracts
* fix: allow safe teardown during watcher recovery * no-mistakes(review): Distinguish unsafe-teardown deny guidance via policy reason code * no-mistakes(document): Sync continuity-gate docs to allow teardown recovery * test: mark dynamic teardown fixture literal * no-mistakes(document): docs: add teardown to continuity gate allow list
…nguid#790) * feat(herdr): order presentation worker spaces * fix(herdr): preserve focus during projected cleanup * no-mistakes(review): Serialize Herdr cleanup and protect active seeded tabs * no-mistakes(review): Serialize Herdr aborts with guarded focus regressions * no-mistakes(review): Fall back flat when Herdr serialization is unavailable * no-mistakes(test): Stabilize watcher startup and AFK handoff tests * no-mistakes(document): Correct Herdr ordering and focus documentation
…#809) * Send literal config reread after inherited config push When declared inherited config changes under an already-running secondmate, build a per-home instruction from validated destination post-write bytes and deliver it on the routed secondmate path. Unchanged config sends nothing; ABSENT represents removal; captain-shared is never inlined. Covers mid-session config-push and the locked bootstrap convergence path without hardening spawn against deliberate runtime choice. * no-mistakes(review): Fix config reread framing, partial propagation, and respawn order * no-mistakes(review): Send config rereads via durable single-line pointers * no-mistakes(review): Make failed config rereads retryable * no-mistakes(review): Make config reread retries generation-safe * no-mistakes(review): Make config rereads durable and ordered * no-mistakes(review): Drain retries, bound history, preserve detect-only read-only mode * no-mistakes(review): Retain write retries and quarantine stale respawn generations * no-mistakes(review): Preserve exact config reread retries and delivery order * no-mistakes(review): Preserve exact retry bytes and bounded quarantine pruning * no-mistakes(document): Consolidated config-reread documentation
* feat(watch): follow GitLab merge requests to merge The merge watch only understood GitHub pull requests, so a task whose deliverable is a GitLab merge request was never followed to merge. Generalize the stored poll identity from owner/repository to a provider-tagged provider/url/host/path/number record. GitLab runs mostly on self-hosted instances and its projects nest under groups at no fixed depth, so the host and the full project path are data in the record rather than constants, and every consumer rebuilds the URL from those parts and refuses any record that does not reconstruct it exactly. The GitLab state is read with plain glab, matching the GitHub path's use of plain gh, so an upstream checkout needs no extra tooling. Two things about glab were established by running it rather than assumed, because a wrong invocation here fails silently into a permanent "not merged": - glab has no field selector, and its JSON would need a JSON processor that firstmate does not require, so the state is read from glab's own field output. Only an exact "merged" wakes firstmate, so a changed format stays silent instead of reporting a merge. - glab cannot take a merge request URL the way gh can, because that form resolves through the current git repository and the watcher has none. It is addressed by project URL and merge request number instead. An absent glab produces no wake rather than a false merge, and arming refuses with a clear message since that is the one point where a missing CLI can still be reported. A GitLab task records no pr_head, which both consumers already treat as optional. The merge path still addresses GitHub only and refuses a merge request URL rather than sending it to the wrong forge. The record version moves to v2, and the existing non-executing migration rebuilds an already-armed watch from its recorded URL, so no watch is lost by upgrading. docs/gitlab-merge-watch.md records the evidence, taken against the public fixture project https://gitlab.com/KarotKris/gitlab-merge-watch-fixture. * no-mistakes(review): Reject github.com host in GitLab MR URL/sidecar validation * no-mistakes(document): Note GitLab MR URLs are explicitly refused, not just malformed ones, in fm-pr-merge.sh docs
…uid#821) * feat(herdr): correct all-home child presentation topology Inherit the presentation opt-in to secondmate homes, label new projected spaces with the approved corner format, insert each child under its owning parent under one session-scoped lock, and keep flat non-destructive fallback. * no-mistakes(review): Exclude secondmates from Herdr presentation projection * no-mistakes(review): Harden shared Herdr locks and ambiguous child ordering * no-mistakes(review): Use adjacency-only Herdr child ownership * no-mistakes(review): Reject foreign legacy projections safely * no-mistakes(review): Validate Herdr session sockets before projection * no-mistakes(test): Fix Herdr teardown fixture session socket metadata * fix(herdr): canonicalize presentation lock socket paths Always resolve the session socket parent directory so symlink parents such as /tmp -> /private/tmp cannot split the shared cross-home lock identity. Refuse relative socket paths. Clarify lock-unavailable warnings. * no-mistakes(test): Fix Bash-compatible GitLab merge request URL parsing * no-mistakes(document): Document all-home Herdr child topology * no-mistakes(lint): Quote fallback provenance string for ShellCheck
* fix(no-mistakes): drop full-suite local Test override Local no-mistakes Test is intent-targeted; CI Behavior keeps the broad tests/*.test.sh suite. Keep commands.lint on bin/fm-lint.sh and add a focused contract test so the override cannot silently return. * no-mistakes(lint): Make CI contract assertion ShellCheck-clean
* feat(test): add canonical timed suite runner and honest CI timeout Introduce bin/fm-test-run.sh as the single serial owner for selecting one script, a family, a conservative changed-file set, or the explicit complete suite, with per-script timing markers and a JSON artifact. Wire CI Behavior through the runner, raise the hang-tripwire timeout to 25 minutes, and document entry points without restoring a full-suite local no-mistakes Test command. * no-mistakes(review): Captain: fix changed selection and empty summaries * no-mistakes(review): Captain: fail closed on unmapped changed sources * no-mistakes(document): Document canonical timed test entry points
* fix: disclose main-home orphan and unstructured inventory gaps Main Bearings could report an empty fleet while structured in-flight rows lacked meta or current backlog rows were free-form. Emit main_inventory from the fleet snapshot, map it into Bearings omitted surfaces and a Charted Next gate, and keep meta as the only live Underway source. * no-mistakes(document): Document Bearings inventory-integrity projection * no-mistakes: apply CI fixes
* feat: add concurrent test isolation proof for Phase 2 Prove an audited portable candidate set passes under concurrent workers with private mode-0700 temp roots, without enabling production CI sharding or fm-test-run --jobs. * no-mistakes(review): Pin isolation proof to audited candidate manifest
* feat(secondmate): parent-owned guards for missed status reports Marked parent-to-secondmate requests now create a durable pending-reply expectation with a privacy-safe correlation id before delivery. Transport success never resolves it; only a correlated parent status or document pointer does. After a completed turn with no report, the parent sends one recovery repost and escalates once if that turn is also missed, without scraping the secondmate conversation or looping. * no-mistakes(review): Deduplicate wrong-home pending-reply sightings * no-mistakes(review): Harden pending-reply recovery and escalation guards * no-mistakes(review): Bound pending-reply backend polling * no-mistakes(review): Cache pending-reply status scans * no-mistakes(review): Protect undelivered pending-reply records from scans * no-mistakes(review): Close pending-reply delivery durability gaps * no-mistakes(review): Separate pending-reply transport outcomes * no-mistakes(review): Escalate stalled pending-reply deliveries once * no-mistakes(review): Resolve attempted deliveries from correlated reports * no-mistakes(review): Resolve late reports after delivery escalation * no-mistakes(document): Document pending-reply grace and ownership * no-mistakes(lint): Silence intentional pending-reply test fixture lint warnings
* feat: add required pinned Herdr CI lane Install exact Herdr 0.7.4 and Treehouse 2.0.1 with official assets and SHA-256 pins, run the real-herdr-gated family serially through fm-test-run with hard-fail on herdr-not-found, and keep portable Behavior free of claimed Herdr coverage. * no-mistakes(document): Consolidate real-Herdr CI documentation ownership * no-mistakes: apply CI fixes * no-mistakes: apply CI fixes * no-mistakes: apply CI fixes
…guid#841) * feat: shard portable CI tests after isolation proof Balance the Phase 2 proven-isolated set into two LPT portable parallel lanes from Phase 1 timing evidence, keep stateful work in a required portable serial lane, exclude real Herdr to its dedicated required lane, and prove complete inventory coverage with a deterministic guard. Add bounded local --jobs only for the proven set, per-lane timing plus aggregate artifacts, and reduce the interim portable hang tripwire now that the serial remainder owns the long wall-clock path. * no-mistakes(review): Captain, fix CI contracts and completion-order worker scheduling * no-mistakes(review): Captain, preserve stderr gate-skip detection in parallel tests * no-mistakes(document): Document portable sharding and timing aggregation * no-mistakes: apply CI fixes
) * feat: fence primary-session delegation outside the fleet A firstmate primary that delegates through Claude Code's built-in delegation tools creates work with no state/<id>.meta. Because fm-supervision-lib.sh counts *.meta and fm-turnend-guard.sh exits silently at zero, such work does not merely go unsupervised: it makes the whole guard stack structurally inert, and it dies with the primary session. On 2026-07-22 that cost two workers mid-flight and left supervision down for 73 minutes unnoticed. Layer 1, the primary fix: a permissions.deny list in .claude/settings.json removes the 18 delegation, scheduling, worktree, and task-tracking tools from the model's schema, so they are never offered. This is removal rather than interception, so there is no call to intercept and no fail-open path. The list is flat and in one file so its width stays reviewable; the captain owns that width. Layer 2, bin/fm-subagent-pretool-check.sh: a deny list is fail-open against tools that do not exist yet, and permissions.allow is a pre-approval list rather than an availability list, so there is no fail-closed allowlist to use instead. This backstop classifies the tool NAME by shape rather than against a fixed list, so a delegation tool that ships before the deny list is updated is still refused. It excludes mcp__* names and observe-or-stop operations, scopes itself to a genuine primary home via the shared fm_primary_scope_matches predicate so a crewmate's task worktree is unaffected, and offers one deliberate FM_ALLOW_SUBAGENT=1 escape hatch that must be set at launch. Verified live against Claude Code 2.1.217, including a deny-key A/B with a nonsense-name control, layer 2 denying an un-denied Workflow call, the same call allowed in a linked worktree, and the escape hatch. Corrects a prior finding: both Task and Agent work as deny keys, so both are pinned. Codex 0.144.1 verified to expose no delegation tool; grok, opencode, and pi are inspected and documented as not wired because those binaries are absent from this host and the repo requires live validation before trusting a harness hook. Evidence in docs/subagent-guard.md. * no-mistakes(review): Ship scoped Claude delegation guard * no-mistakes(test): Ship Claude delegation deny list * no-mistakes(document): Clarify PreToolUse guard ownership * no-mistakes(lint): Keep Claude deny list local
Reproduction: portable-parallel-2 completed successfully without tasks-axi while fm-decision-hold-lifecycle emitted a gate skip in 30 ms. The pre-shard lane installed tasks-axi and exercised the test fully. Installing tasks-axi is the smallest counterfactual and makes the representative shard execute the test with gate_skip=false in about 20 seconds. Both parallel jobs receive symmetric setup, while the exact 91-test inventory and coverage guard remain unchanged.
* feat: make dispatch profiles quota aware * no-mistakes(review): Fix quota window and Grok product scoping * no-mistakes(document): Document implicit quota-aware dispatch accurately
…guid#875) * fix: preserve mixed Bearings projections * no-mistakes(review): Enforce strict invalidity precedence for partial snapshots * no-mistakes(review): Enforce ownership for unknown child metadata * no-mistakes(document): Document partial structured Bearings projections * no-mistakes: apply CI fixes * no-mistakes: apply CI fixes
* Add session-local Pi calm mode * no-mistakes(review): Preserve Pi HTML exports during calm mode * no-mistakes(review): Preserve calm exports across submit bindings and share * no-mistakes(document): Document calm-mode feasibility across supported harnesses
* fix(pi): limit watcher arm tool to recovery * no-mistakes(review): Strengthen Pi live re-arm regression coverage * no-mistakes(document): Document Pi first-cycle and recovery-only watcher arming
* fix(pi): clean up Calm transcript rendering * no-mistakes(review): Captain, preserve Calm exports and classify Pi launch briefs * no-mistakes(review): Captain, eliminate Calm gaps and verify exported conversations * no-mistakes(review): Restore Calm rows received while active * no-mistakes(review): Preserve diagnostics during Calm restoration * no-mistakes(document): Clarify Calm transcript behavior and injection paths
* fix: execute every PR body compliance event * no-mistakes(document): Document independent PR compliance events
…#899) * fix: distinguish operational input in ahoy * no-mistakes(review): Handle legacy Ahoy operational boundaries * no-mistakes(review): Narrow legacy Ahoy boundaries with live regressions * no-mistakes(document): Document Ahoy operational marker ownership * no-mistakes(lint): Suppress intentional literal fixture lint warnings
…ath (kunchenguid#2779) * feat(bin): merge GitLab merge requests through the guarded PR merge path bin/fm-pr-lib.sh already parses a GitLab merge request URL for the watcher, but bin/fm-pr-merge.sh refused every non-github provider, so a merge request had to be merged by hand and got none of the recording, guards, or audit trail a pull request gets. The merge path now dispatches on the parsed provider. A GitHub URL keeps its exact previous behavior. A GitLab URL is addressed through glab by the project URL rebuilt from the parsed host and path, so a merge request on any instance resolves and no host is hardcoded, and no merge-method flag is added because the project's own merge method is what should apply. A GitLab merge happens only after one live read of the merge request confirms it is open, detailed_merge_status is mergeable, has_conflicts is false, blocking_discussions_resolved is true, and the head pipeline succeeded at the exact current head. Every failing condition is reported, not just the first. The verified head is bound to the merge with glab's --sha, so a push landing between the read and the merge fails the merge instead of landing commits nothing verified. Recorded metadata is never the authority for any of this: a rebase moves the head and leaves a recorded value stale, so a recorded head that disagrees with the live one is reported rather than trusted, and the recorded value is read before the recording step because that step drops a GitLab head it cannot resolve. * no-mistakes(review): reject bundled -R clusters and make tool-absence cases host-independent * no-mistakes(test): state authorised GitHub narrowing of bundled -R guard This branch NARROWS GitHub behaviour. The narrowing was authorised deliberately rather than slipping in by accident, and it applies to both providers, GitHub and GitLab alike, because a script that guards one provider and not the other is a trap for the next reader. What bin/fm-pr-merge.sh now refuses is extra merge arguments containing a bundled short-option cluster that includes R, for example "-dR other/repo". The forge CLIs expand such a cluster one character at a time, so it carries "--repo other/repo", and that later value wins over the repository the URL named. Before this change, "fm-pr-merge.sh <task> <github-url> -- -dR other/repo" reached "gh-axi pr merge 12 --repo example/repo --squash -dR other/repo" and exited 0 with pr= recorded and the merge poll armed. It now exits 1 with "extra merge arguments must not override the repository", records nothing, and invokes no forge merge command. Every other GitHub invocation is byte-identical to the base commit. Closing that hole honours the existing rule rather than departing from it. The file header already forbids --repo and -R because the repository must come only from the URL, so a bundled cluster carrying a repository override was never legitimate behaviour to preserve: it was that guard being evaded. Redirecting a merge to a repository the URL does not name is exactly what the guard exists to prevent. The refusal is already pinned on both paths by the existing case test_bundled_repo_override_args_refuse_before_recording in tests/fm-pr-merge.test.sh. On GitHub ("-dR wrong/repo") and on GitLab ("-yR https://other.example/g/p") it asserts exit 1, the refusal wording, no pr= in the task meta, no armed merge poll, and no forge merge command invoked, with a control case proving a cluster that carries no repository override still reaches the forge. No duplicate assertion was added. Both assertions were confirmed to have teeth by narrowing the guard back to a bare -R and watching each path fail. This commit carries no file change: the guard and its coverage landed in 614853d, and this message exists so the pull request description states the narrowing. * no-mistakes(document): fix README pointer for GitLab watch and merge doc * no-mistakes: apply CI fixes
kunchenguid#2788) * no-mistakes: apply CI fixes * fix(bin): drop a private record citation and narrow the review rule Three corrections to the spoken interface that landed in kunchenguid#2767, plus one fix carried over from that branch after its pull request had already been merged. The confidentiality fix. The module docstring of bin/fm-voice-relay.py cited a private, gitignored fleet record by exact path and section number. That widens what this public repository points at, and it cannot resolve for any reader here, because the path has never been in the repository. Both traps it pointed at are already described in full in the list immediately below it, and docs/voice-relay.md carries the same two for operators with no citation at all, so the pointer is removed and no claim is weakened by losing it. Two comments that referred to "the survey" as though it were something a reader could open are reworded the same way. Neither exposed a path, so that half is comprehensibility rather than confidentiality. The review rule. .greptile/rules.md is kept, because its conditions are right and deleting it would leave the next reviewer to re-litigate a decision already argued out. What was wrong with it is narrower than its existence: it read as settled repository policy, when whether VISION.md itself should be reconciled is an open question belonging to the captain. One sentence now says so, and says that the conditions listed below it are what the interpretation depends on. That narrows the claim rather than widening it. The carried-over fix. The first commit on this branch is 7f98e79 from fm/voice-relay-build-v4, taken verbatim rather than rewritten. It closes the window where a transport failure was recorded and then erased, so a run could be emitted as answered false with relay_error null. That matters more than it looks: relay_error is the field that keeps an infrastructure failure from being averaged into a latency figure, so the failure mode is a dead connection wearing the costume of a slow reply. It landed fifteen minutes after kunchenguid#2767 merged and so never reached the default branch. * no-mistakes(review): name a reason on every unanswered-turn close path * no-mistakes(review): guard the downlink body and pin frames to their turn * no-mistakes(review): attribute reply audio to its own turn and tell endings apart * no-mistakes(review): tell a cut-short reply from an unanswered turn * no-mistakes(review): discard reply audio arriving after the output closes * no-mistakes(review): count discarded reply audio on the speaker path too * no-mistakes(review): keep a reason off a turn already answered in full * no-mistakes(review): say a reset cut a reply short, not that none arrived * no-mistakes(review): read one turn's audio count once, and hush a tidy exit * no-mistakes(document): fix stale session-end relay_error claim in voice-relay guide
Reconciled upstream changes with the fork-specific refit, delivery, lifecycle, artifact, watcher, and PR-convention features.
…fit-land-green-bundle-rebased
The test harness omitted mktemp even though fm-fleet-snapshot uses it for bounded payload staging, so the snapshot exited before the Perl timeout fallback ran. It also omitted env and rm, which the GitHub launcher and cleanup trap legitimately require. Keep the fix in the harness and assert that the timed-out gh stub was invoked, preserving the graceful-degradation contract under stock Bash syntax.
The lint job rename came from upstream commit 0ae14af, which intentionally changed the display name to Lint while retaining bin/fm-lint.sh. Require the job and command instead of the stale display name.\n\nThe no-mistakes attestation requirement came from upstream commit a0cec26. Update synthetic bodies to provide parseable attestation JSON and verify missing, malformed, and incomplete attestations fail. Leave the workflow unchanged.
Root cause: the upstream fixture omitted the isolated fm-project-base helper and GitHub base/body responses while this fork's fm-pr-check contract still performs structured verification. The validator correctly rejected the incomplete fixture, so the test owns the fix by restoring complete valid forge responses without weakening validation.
The public-followup guard already passed for the delivered registration. Teardown returned non-zero earlier because this test used a gone product repository after archive-before-teardown became mandatory, so the test fixture owned the fix. Seed the retained product archive and avoid the pending grep pipeline that caused unrelated broken-pipe writes.
The compatibility shim maps legacy decision keys to durable task IDs before fm-captain-hold records the sorted, deduplicated inventory. Update the stale pre-collapse short-key assertion to the current production contract; the fix belongs in the test, not production.
The production readiness path was stale after the upstream merge: it checked only endpoint existence and never handled Codex's documented trust prompt. Restore the exact prompt match for isolated worktrees, send Enter only for that known prompt, and wait for it to clear before reporting success.
The legacy-link assertion was blocked by the test fixture's missing product-local archive after teardown began requiring task artifact archival, not by the informational warning. Seed the archived task artifact and route the optional mirror to a writable temporary root. Confirmed teardown safety remained intact: the full fm-public-followup suite still passed its owed-reply, missing-binding, conflicting-binding, unsafe-record, and malformed-record refusal assertions; bin/fm-lint.sh passed.
Commit a83a23a made Codex isolated-worktree readiness reject empty pane captures after the backend endpoint existed, breaking five spawn success tests. Record that the endpoint was observed, keep answering the known directory-trust prompt, and accept empty capture output only after that endpoint observation. The regression reproduced at a83a23a and both reproduction tests passed with bin/fm-spawn.sh from cad8ba8; all five affected tests, fm-spawn-readiness (including trust-prompt acceptance), and fm-lint pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
This PR publishes the completed weekly refit from local
main(c5df27e2f519a80f7f52e615d74657665aa88314) against the fork's currentorigin/main.It integrates the upstream changes and the reviewed F1, F2, F4, F5, F6, and F7 corrections, plus the reset-window internal metadata correction. The PR-attestation provenance patch is intentionally excluded. Per captain direction, PR prose is trusted as policy and upstream-sync validation remains the validation authority for each commit.
Feature report
The full feature report is embedded below. It records the reviewed changes, focused evidence, accepted policy decisions, and known limitations. The post-report tool audit is included at its end.
Read the full feature report
Weekly refit feature report
Executive summary
Final local
mainisc5df27e2f519a80f7f52e615d74657665aa88314(chore: satisfy ShellCheck in captain-hold compatibility). The local refit branch is clean, andrefs/heads/mainpoints to that exact commit. The final history contains the upstream integration plus the intended F1, F2, reset-window, F4, F5, F6, and F7 corrections. The rejected PR-attestation provenance patch is not present.The original upstream merge
0188383d058201cc186b1f803242895c30b31399was not accepted unchanged. Review found F1-F7. F1, F2, F4, F5, F6, and F7 have landed corrections. F3 is an explicitly accepted policy: the repository uses PR-prose attestation together with upstream-sync validation, without treating editable prose as cryptographic provenance. This report does not claim full validation, CI, or no-mistakes completion. The captain explicitly skipped that process for this refit.Upstream integration and ancestry
The reviewed merge was:
0188383d058201cc186b1f803242895c30b313996445717cd528074d434127687731f78cabf54a4c1231b6ae7fd4c5ff7e94d2f5ca2159536c4c41cba80b62dae3c0b81fcac84ed557171696d1a49002The integration review reconstructed 150 conflict-bearing paths and independently checked the 16 named-content allowance paths. The final local history after the merge contains only the following refit work:
82bfd32,678c100: F1 fleet snapshot payload transport.53083ca: F2 general spawn readiness.6b15d90: F7 merge-aware committed-whitespace evidence and fixture cleanup.f7b6ba7: reset-window metadata correction.9be217d: bundle merge incorporating the independently retested correction branch.9f827ba: F4 stacked-PR spawn metadata.874caab,3b22e1d,4e438eb: F5 allowance-record hardening.b735f97,a9e1374,3640a6e,81faf2b,c5df27e: F6 owner, compatibility, quota-contract, test, and ShellCheck corrections.No
7132199PR-attestation provenance commit is an ancestor of finalmain. The final tree differs from the initial merge only in the expected 22 refit-touched files, including the snapshot, spawn, allowance, lifecycle, quota, documentation, and test surfaces.The reset-window correction is
f7b6ba70ad6fd64d75ecd9f56f723477f8414dde. It addsmetadata: internal: trueto.agents/skills/reset-window/SKILL.md, preserving the skill's internal-only classification after the merge.F1-F7 outcomes
F1 - Large-backlog fleet snapshot
ARG_MAXcrash: fixedThe merge reintroduced the known crash by passing backlog-sized JSON through jq arguments. The final F1 corrections are
82bfd327270664a37a1fce403b70ffff3a24f961and678c100fbca892364020c55212fecc5571f4702b.Final source evidence:
bin/fm-fleet-snapshot.sh:184-189defines the temporary-file transport.bin/fm-fleet-snapshot.sh:634-639,:668-679, and:1154-1157use temporary files and--slurpfilefor large payloads.bin/fm-fleet-snapshot.sh:1405-1420keeps final backlog and task payloads out of argv while composing the final snapshot.The final F1 retest at
815a5b09cdcdac308604f09173988d08eccf3490passed fleet and Bearings snapshots at 10, 7,000, and 7,500 records, with repeated runs, valid schemas, correct counts, and noArgument list too long. The focusedtests/fm-fleet-snapshot-view.test.shalso passed on final localmain.F2 - General spawn readiness: fixed, with a current Codex test-harness limitation
The merge removed the general readiness wait and could print
spawnedfor a dead endpoint. The final correction is53083ca163fcc4402a637a0526c189664bc502fb.Final source evidence:
bin/fm-spawn.sh:2171-2175records readiness failure while retaining metadata.bin/fm-spawn.sh:2181-2212polls the endpoint and distinguishes unreachable endpoints from unresolved Codex trust prompts.bin/fm-spawn.sh:2931-2934waits after the launch Enter before reporting success.The independent non-Codex retest at
d0c2f9764f32792d7991937c2a22b13853cd1115passed unreachable-endpoint and reachable-endpoint cases three times. On final localmain, the non-Codex readiness assertion passed. The Codex trust-prompt assertion failed in the current fake-Herdr test environment. The same failure reproduced against an archived copy of thed0c2f976tree, while the product change is unchanged apart from F4 metadata parsing. This is recorded as test-harness/environment noise, not as a new F2 regression. No live Codex or live Herdr readiness claim is made here.F3 - PR attestation provenance: explicitly accepted policy, not a product fix
The initial review showed that editable PR-body attestation can be stale or manually authored. The captain explicitly accepted PR prose plus upstream-sync validation and did not authorize the provenance patch. The rejected provenance work is absent from final ancestry.
The final workflow at
.github/workflows/no-mistakes-required.yml:29-107requires the signature, a parseable structured attestation, and completedreview,test, anddocumententries. It still reads those values from PR prose and does not comparehead_shawith the live event head or authenticate the prose. That is the accepted policy limitation, not an unreported fix. The final report does not claim that PR prose is independently authenticated.F4 - Stacked PR parent declaration: parser and consumer restored; fresh metadata evidence limited
The final correction is
9f827ba2353f67d407ac45a2a404439ae9f4ba5a, the final-main equivalent of independently retested0da91945d39675bd2b6d1c52844a270e52919ca2.Final source evidence:
bin/fm-spawn.sh:302-324parses both stacked-base forms.bin/fm-spawn.sh:339-345validates branch syntax and ship-only scope.bin/fm-spawn.sh:378rejects relaunch overrides.bin/fm-spawn.sh:883forwards the option in batch mode.bin/fm-spawn.sh:2768publishesstacked_base=metadata.bin/fm-pr-check.sh:142-167consumes and validates the declaration against the PR base.tests/fm-spawn-batch.test.shandtests/fm-pr-check.test.shpassed, including stacked-base consumer cases. The independent retest could not complete a real fresh metadata publication because no disposable project was available and the environment selected Herdr before task creation. Therefore fresh end-to-end metadata observation remains a limitation; parser, forwarding, source, and consumer evidence are positive.F5 - Merge-content allowance gate: fixed mechanically
The final allowance chain is
874caabc6ec51bb724ca37e2dbc177a15d849e14,3b22e1d9a712e259b036e1f417929ce81b02d69f, and4e438eb0f45a12b3760dad5757d6d5acc8954a79. These are the final-main equivalents of independently retested4d2d62b,b38583b, andcf699ac.Final source evidence:
bin/fm-merge-content-check.sh:23-32documents one reason per allowance and states that prose is evidence, not approval.bin/fm-merge-content-check.sh:63-85requires a unique path, exactly one reason, non-empty non-whitespace content, and one line.bin/fm-merge-content-check.sh:265-289marks allowances only for actual findings and rejects unused records.tests/fm-merge-content-check.test.sh:296-307covers merge-aware committed whitespace in addition to allowance behavior.The final focused allowance test passed all cases: missing, empty, whitespace-only, duplicate, and unused allowances are rejected; valid path-specific reasons pass; actual content loss remains detectable. The separate approval question remains a workflow responsibility, as the source explicitly states.
F6 - Lifecycle, documentation, and quota contract seams: product alignment landed; compatibility test residual remains
The final F6 chain is:
b735f97feca0cfa7b568594bc3d4a2121956fb10: refactor-review and maintained-document owner alignment.a9e1374c27518d0925d6257c2cbcb1df04170e35: residual captain-hold compatibility and active-hold repair guard.3640a6e168c6ebea29b95864e163ca3568dd90c8: JSON-at-intake quota owner alignment.81faf2bb3007d7363cbf7b93ab2eb0288598037b: live quota prompt alignment.c5df27e2f519a80f7f52e615d74657665aa88314: ShellCheck compatibility cleanup.Final source evidence:
README.md:177exposes/refactor-review..agents/skills/refactor-review/SKILL.md:138-142points completion atcaptain-hold-lifecycleand identifiesdecision-hold-lifecycleas compatibility-only.docs/decision-hold-lifecycle.md:3-10names the current captain-hold owner and preserves historical compatibility.bin/fm-decision-hold.sh:195-211,243-245refuses to repair an active unanswered hold and routes repair through the captain owner..agents/skills/quota-array-dispatch/SKILL.md:23-29requires onequota-axi --jsonsnapshot and usesspendPrioritywithout reconstructing it.Passing focused evidence on final local
main: instruction owners, documentation audiences, captain translation, captain-hold lifecycle, fleet snapshot view, quota JSON live dispatch,bin/fm-doc-audience-check.sh, Bash syntax, and ShellCheck.The direct
tests/fm-decision-hold-lifecycle.test.shrun remains red attests/fm-decision-hold-lifecycle.test.sh:195, where the retained compatibility test expects shortaccess,routekeys while the current composed identity is longer. An artifact-only copy with only that stale expectation corrected reaches the known unrelated failure at the partial-dependent-routing fixture (resolution succeeded after a partial dependent-routing failure). That fixture depends on installedtasks-axi 0.2.5behavior and was not expanded or repaired. This is test-harness/compatibility-test residual noise, not evidence that the captain-hold product path failed:tests/fm-captain-hold-lifecycle.test.shpassed all cases.F7 - Merge whitespace evidence: fixed
The final correction is
6b15d900895122fc3ad74656a8789e95b71fecc8. Its focused test now usesgit diff-tree --check -m -r --no-commit-idon a committed two-parent fixture, rather than checking only an already-clean worktree.The final retest at
b2126af3f52267bc6a5e64eb6a516e54eb10623cpassed the merge-content and PR-body tests, verified clean fixture whitespace and EOFs, and confirmed the merge-aware check rejects a bad committed merge and accepts the clean control. The currenttests/fm-merge-content-check.test.shpassed this committed-whitespace case. A pre-existing trailing-whitespace audit finding indocs/gitlab-merge-watch.md:75-77is outside this refit patch.Focused validation run on final local
mainPassed:
bash tests/fm-merge-content-check.test.shbash tests/fm-spawn-batch.test.shbash tests/fm-pr-check.test.shbash tests/fm-pr-body-check.test.shFM_QUOTA_ARRAY_DISPATCH_LIVE_E2E=1 bash tests/fm-quota-array-dispatch-live-e2e.test.shbash tests/fm-instruction-owners.test.shbash tests/fm-documentation-audiences.test.shbash tests/fm-captain-translation-contract.test.shbash tests/fm-captain-hold-lifecycle.test.shbash tests/fm-fleet-snapshot-view.test.shbin/fm-doc-audience-check.shbash -nover the changed shell sources and testsPartial or intentionally limited:
tests/fm-spawn-readiness.test.sh: unreachable Herdr endpoint passed; Codex trust-prompt case failed in the current fake-Herdr harness. The same failure reproduced on the independently retested F2 tree.tests/fm-decision-hold-lifecycle.test.sh: stopped at the known stale decision-inventory assertion; a corrected artifact copy reached the known installed-tasks-axipartial-routing fixture failure.No full test suite, no-mistakes run, CI run, push, PR, or merge was performed.
Current tool versions
Captured from the final verification environment:
f627beb)Evidence paths
/home/dereklinux/firstmate/data/fm-refit-integration-review/report.md/home/dereklinux/firstmate/data/fm-refit-repro-fleet-snapshot/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-fleet-snapshot/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-fleet-snapshot-final/report.md/home/dereklinux/firstmate/data/fm-refit-repro-spawn-readiness/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-spawn-readiness/report.md/home/dereklinux/firstmate/data/fm-refit-repro-pr-attestation/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-pr-attestation/report.md/home/dereklinux/firstmate/data/fm-refit-repro-stacked-pr/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-stacked-pr/report.md/home/dereklinux/firstmate/data/fm-refit-repro-allowance-gate/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-allowance-gate/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-allowance-gate-residual/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-allowance-gate-whitespace/report.md/home/dereklinux/firstmate/data/fm-refit-repro-contract-seams/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-contract-seams/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-contract-seams-inventory-test/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-contract-seams-quota-owner/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-contract-seams-quota-test/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-contract-seams-residual/report.md/home/dereklinux/firstmate/data/fm-refit-repro-merge-whitespace/report.md,/home/dereklinux/firstmate/data/fm-refit-retest-merge-evidence/report.md/home/dereklinux/.treehouse/firstmate-53348c/17/firstmate/.agent/tasks/fm-refit-feature-report/Closure checklist
mainresolves toc5df27e2f519a80f7f52e615d74657665aa88314.--none.The mandated
captain-hold-lifecycleskill was read. The worker contract forbids runningbin/fm-*.shfleet commands or mutating the authoritative fleet backlog, so the authoritative completion command is left for the supervisor to apply; no unresolved captain choice was found in this report.Post-report tool audit
The tool inventory was rechecked after this report was written and available updates were installed.
actionlintremains absent rather than outdated. The running Herdr server was not restarted because the installed client reports that stopping it exits pane processes; restarting is deferred until doing so is safe.Validation posture
The captain explicitly skipped the no-mistakes pipeline for this refit. Focused checks and retests are recorded in the report; the known Codex fake-Herdr readiness limitation and decision-hold compatibility residual remain documented.