Skip to content

Merge upstream/main into fork integration line - #61

Merged
Bre77 merged 136 commits into
mainfrom
fm/fm-upstream-merge
Aug 13, 2026
Merged

Bre77 merged 136 commits into
mainfrom
fm/fm-upstream-merge

Conversation

@Bre77

@Bre77 Bre77 commented Aug 13, 2026 •

Copy link
Copy Markdown
Owner

What this is

The fourth catch-up of this fork with upstream/main: 1c4d210...4930d2c, 131 upstream commits. Also merges in the fork's own main (Harbor dashboard, #60), which landed after this branch was cut, so the PR includes it cleanly.

Before folding this PR, please merge it with --merge, not the default --squash. bin/fm-pr-merge.sh defaults every merge to --squash unless the caller passes an explicit method. #58 recorded real merge commits on its branch but was squash-folded into main, which silently discarded the second parent and left git merge-base fork/main upstream/main stuck at the old 1c4d210 - exactly the problem #58's own body describes fixing. This PR opened with 107 conflicted files as a direct result. Folding with --merge this time is the only way the next catch-up starts from a correct merge base instead of repeating this.

Resolution leaned upstream throughout, per standing instruction: upstream's side by default, the fork's only where it carries something upstream lacks entirely or fixes a live bug upstream still has.

Major upstream features adopted

  • Generation-bound wake-queue acknowledgement: the wake queue moved from destructive drain to present-then-acknowledge (--ack-through, WAKE_ACK_REQUIRED, new state/.watcher-down), so an interrupted watcher or handling turn recovers without losing a queue record. Touches fm-wake-lib.sh, fm-wake-drain.sh, fm-watch.sh, fm-watch-arm.sh, fm-session-start.sh, AGENTS.md, and the supervision-protocol docs.
  • Cursor CLI joins muse as a verified crewmate/scout-only harness (never secondmate) across detection, spawn, busy-state, composer/delivery confirmation, and skill docs. Every non-Cursor harness launch now runs behind env -u CURSOR_AGENT -u CURSOR_INVOKED_AS to strip inherited identity markers.
  • fm-composer-lib.sh consolidation: tmux/herdr/zellij/cmux/orca composer classification now shares one classifier instead of five separate structural readers; Kimi launch readiness routes through it too.
  • process-event-sources "when" adapter (fm-procevent-when.sh): a deterministic condition->action primitive, plus a self-announcing adapter declaration so a fully-autohandled capture (e.g. the remote-secondmate reply mirror) publishes no duplicate check wake.
  • fm-spawn.sh: pi/pi-signed executable resolution and probing, spawn_gen incarnation tracking, and fetch-and-reset-to-origin worktree freshening before every fresh ship/scout launch.
  • Pi extensions (.pi/extensions/*.ts): recovery-confirmed watcher-wake round trip and startupRebuildSource/restoredSessionEvidence for correctly classifying resume/fork session starts.
  • stow: over-budget homes now autonomously relocate eligible non-pinned entries instead of only proposing; ahoy: gains a guided decision-clearing flow after the recap.

Fork-only functionality kept (absent upstream)

ClickStack/BetterStack webhook receivers, the captain-msg (Twilio RCS) channel, config/pr-label and the PR-label mechanism, bin/fm-notify-captain.sh, fork-only delivery (bin/fm-fork-deliver.sh), the per-crew memory cap, the Claude co-author-trailer suppression, bin/fm-arm-pretool-check.sh's watcher-arm PreToolUse seatbelt, and fm-crew-memory-cap.test.sh/fm-muse-harness.test.sh's memory-cap-off stub. muse and pi-signed are shared with upstream now, not fork-exclusive, and were resolved as ordinary lean-upstream.

Notable judgment calls

  • Escalation etiquette (AGENTS.md section 9): kept the fork's "name the event, report unrelated findings" no-action-reply wording over upstream's scripted Captain, shipshape. phrase. The fork's wording is the one still anchored to hard rule 5 (report outcomes faithfully) elsewhere in the same file; upstream's phrase actively suppresses unrelated findings. This is a real behavior difference the captain should know about.
  • fm-composer-lib.sh SGR-90 stripping: upstream has no SGR-90 (bright-black ghost text) handling at all; kept the fork's stripping layered onto upstream's otherwise-current implementation, and kept the fork's FM_COMPOSER_QUEUED_HINT_RE "message queued" fix, re-wired as an unconditional check since upstream's new idle_collision logic would have silently regressed it to pending under narrow conditions.
  • docs/remote-secondmates.md: kept one fork-only paragraph of SSH non-interactive-PATH troubleshooting guidance upstream has no equivalent for.
  • docs/turnend-guard.md: kept the fork-only away-mode-return failure-episode marker reset paragraph (bin/fm-afk-return.sh clearing the three autoarm markers); confirmed still implemented and tested.
  • docs/documentation-audiences.json: kept every fork-only entry (ClickStack/BetterStack/captain-msg skills and docs, docs/fork-only-delivery.md, docs/crew-memory-cap.md) since upstream simply lacks them; fm-doc-audience-check.sh passes clean (surfaces=78 local_links=243).

Integration fixes beyond conflict resolution

  • fm-spawn.sh: the merge left resolve_kimi_binary, resolve_muse_binary, muse_worker_meta_api_key_present, and muse_credential_present each defined twice with identical bodies, plus two competing usage()/-h handling blocks. Removed the redundant copies.
  • fm-composer-lib.sh, two real regressions from the upstream consolidation itself, both caught by the real-herdr-gated live smoke test and confirmed absent on a clean pre-merge checkout:
    • _fm_composer_select_cursorless's bare-composer wrap-extension loop (every cursorless backend: herdr, zellij, cmux, orca) had no boundary check for a fresh shell prompt row below a bare agent-glyph composer, unlike its cursored sibling (_fm_composer_wrap_region_ok), which already excludes shell-prompt rows. A genuinely empty composer misread as pending whenever the next row was a plain shell prompt, including one with a fresh command typed on the same row. Fixed by adding the same exclusion (leading glyph, trailing glyph, and glyph-followed-by-space anywhere in the row, since a real PS1 usually carries its glyph at the end - user@host:path$ - and a freshly typed command can follow it on the same row).
    • The same function's post-box boundary check rejected an otherwise cleanly detected, unambiguous box whenever the row directly below it was a plain shell prompt (again, the normal state once a command finishes), forcing a stale, several-rows-up bare-composer candidate to win instead. Applied the identical shell-prompt exemption.
  • tests/fm-backend-herdr-composer-live-smoke.test.sh: its bordered-ghost-placeholder fixture only ever drew a lone │ text │ row with no top/bottom border - which the new box detector correctly refuses to recognize as a box at all, since no real agent renders an unbordered composer row - and the placeholder text carried no real ANSI dim styling, which the classifier now requires to trust an idle-regex match as ghost text under styled=1 (herdr's ANSI capture always reports that). Redrew the fixture as a complete box with genuinely dim-styled placeholder text, matching how a real agent renders one and how this same file's other dim-ghost assertions already work.
  • tests/fm-crew-memory-cap.test.sh: updated its hardcoded expected launch string for the new env -u CURSOR_AGENT -u CURSOR_INVOKED_AS prefix; this fork-only test never conflicted during the merge, so its expectation had gone stale against the changed fm-spawn.sh output.

Validation

Full suite on the merged tree: 152 scripts, all pass. bin/fm-lint.sh (shellcheck 0.11.0, the pinned version) is clean on the full changed surface. Fork CI is green except for two failures confirmed pre-existing and unrelated to this merge (identical on a clean pre-merge fork/main checkout in this environment, outside the required Herdr lane so not CI-blocking here):

  • tests/fm-bootstrap.test.sh and tests/fm-session-start.test.sh: their "simulate missing node" fixture is defeated by this sandbox having a real /usr/bin/node on the shared base PATH. Reproduces identically on 286a5de before any of this merge's changes.
  • tests/fm-backend-herdr-focus-flash-e2e.test.sh Part C: upstream's new coverage meeting this box's herdr 0.8.0 against the fork's 0.7.5 verification pin, the same known gap Merge upstream/main into fork integration line #58's own body already documented.

One more test proved intermittently flaky during local runs, not merge-caused: tests/fm-procevent.test.sh ("a failed self-announcing application was reported as applied") failed on 1 of 4 local runs from a genuine race between cmd_reconcile's background detach_runner and the test's own explicit second start call on the same source, entirely in upstream's own newly-merged self-announcing code and test. It passed on this PR's actual CI run.

Full per-file conflict resolution list (107 files)

One line per resolved file: path — ours|theirs|merged: reason. Lean-upstream is the default; only deviations and fork-only keeps are called out explicitly elsewhere above.

Core contract files (resolved directly)

  • AGENTS.md — merged: adopted the wake-ack model, cursor harness, and process-event-sources "when" trigger from upstream; kept fork-only config/pr-label, fm-notify-captain.sh mention, and the escalation-etiquette wording (see Judgment calls).
  • CONTRIBUTING.md — theirs: harness-adapter ownership line now points at fm-composer-lib.sh (the new shared owner) instead of fm-tmux-lib.sh.
  • README.md — theirs: /ahoy and /stow feature descriptions reflect their adopted behavior changes.
  • VISION.md — theirs wholesale: purely additive philosophical expansion (peace-of-mind framing, self-evolving framing), no functional conflict.
  • docs/architecture.md — merged: adopted wake-ack model, cursor harness, composer-lib consolidation (incl. Zellij composer capture), Relay conversation-context generalization; kept fork's stow "offload" wording consistent with README.
  • docs/configuration.md — merged: adopted wake-ack terminology, cursor harness support, process-event-sources "when" adapter and its env vars, consolidated FM_COMPOSER_* env vars (replacing FM_BACKEND_HERDR_*); kept fork-only config/pr-label, ClickStack/BetterStack/captain-msg env vars.
  • docs/scripts.md — merged: kept fork-only fm-brief.sh fork-only-delivery mention, fm-notify-captain.sh/fm-captain-msg.sh rows; took upstream's fm-procevent-when.sh row and wake-drain/wake-lib purpose wording.
  • docs/documentation-audiences.json — merged: kept every fork-only inventory entry (see Judgment calls); validated via fm-doc-audience-check.sh.

Wake-queue / session-start cluster (theirs throughout, adopting the ack-through model)

  • bin/fm-wake-lib.sh, bin/fm-wake-drain.sh, bin/fm-classify-lib.sh, bin/fm-sessionstart-run.sh, bin/fm-session-start.sh — theirs.
  • bin/fm-watch.sh — merged: kept fork-only BUSY_REGEX/stale_signal pane-hash dedup and an extra rm -f status reset on pane-signal-change (both absent upstream); took upstream's resurface_after_downtime/inactive-outcome wiring; removed a duplicate window_is_busy the merge produced.
  • bin/fm-watch-arm.sh — merged: kept fork-only attach_target_verified (unconditionally called at 4 sites); took upstream's new handling_successor_generation.
  • tests/fm-watch-arm.test.sh, tests/fm-wake-drain-open-decisions.test.sh, tests/fm-wake-drain-open-decisions-cursor.test.sh — merged: kept fork's after-colon/mixed-key-position coverage (behaviorally compatible, proven by running them) alongside upstream's new ack-model tests.
  • tests/fm-sessionstart-hook-live-e2e.test.sh, tests/fm-sessionstart-nudge.test.sh, tests/fm-watcher-lock.test.sh, tests/fm-watch-triage.test.sh, tests/fm-session-start.test.sh — theirs.
  • tests/fm-arm-pretool-check.test.sh — ours wholesale: the PreToolUse watcher-arm seatbelt is fork-only.
  • docs/sessionstart-nudge.md, docs/verification/supervision.md — theirs.
  • docs/turnend-guard.md, docs/watcher-continuity.md — merged: kept fork-only paragraphs (see Judgment calls), took upstream's ack-model sections and recovery-episode-acknowledgement content otherwise.

Composer/busy/tmux-lib cluster

  • bin/fm-composer-lib.sh — merged: upstream's architecture rewrite plus fork's SGR-90 stripping and FM_COMPOSER_QUEUED_HINT_RE fix layered back on (see Judgment calls); further fixed post-merge (see Integration fixes).
  • bin/fm-busy-lib.sh, bin/fm-timeout-lib.sh — theirs: Cursor busy source, and a real fm_run_external_timeout bug fix the fork's version lacked.
  • bin/fm-tmux-lib.sh — theirs: composer row/box-scanning logic relocated into fm-composer-lib.sh; picked up turn-started (baseline_idle) submit confirmation.
  • bin/backends/tmux.sh — theirs: fm-cursor-lib.sh source line and Cursor process-identity fallback.
  • tests/fm-composer-lib.test.sh — merged: kept fork's NBSP/queued-hint tests alongside upstream's full classifier matrix (20 new tests).
  • tests/fm-composer-ghost.test.sh — merged: kept fork's SGR-90 stripping tests; took upstream elsewhere, including the intentional test_non_bordered_busy_footer_is_unknown_strict behavior change (captain-approved strict blank-row rule).
  • tests/fm-busy-state.test.sh, tests/fm-tmux-submit-busy.test.sh — theirs: new Cursor/failed-baseline-capture coverage, fork side was empty.
  • tests/lib.sh — ours: kept the fork-only fm_test_track_cleanup helper (confirmed still called elsewhere).

Control/secondmate/procevent cluster (theirs throughout, adopting cursor harness and the self-announcing/ack-through model)

  • bin/fm-control-lib.sh, bin/fm-secondmate-parent-lib.sh, bin/fm-remote-secondmate-control.sh, bin/fm-procevent.sh, bin/fm-procevent-lib.sh, bin/fm-procevent-remote-reply.sh, bin/fm-pending-reply-lib.sh, bin/fm-push-transition-lib.sh, bin/fm-send.sh — theirs.
  • tests/fm-control.test.sh, tests/fm-control-relaunch.test.sh, tests/fm-secondmate-harness.test.sh, tests/fm-secondmate-lifecycle-e2e.test.sh, tests/fm-remote-secondmate-lifecycle-e2e.test.sh, tests/fm-remote-secondmate-trace-context.test.sh, tests/fm-remote-job-orphan-reap.test.sh, tests/fm-remote-reply.test.sh, tests/fm-send-resolve-key.test.sh, tests/fm-procevent.test.sh, tests/fm-startup-memory-budget.test.sh — theirs (new/renumbered coverage for cursor and self-announcing behavior).
  • docs/remote-secondmates.md — merged (see Judgment calls); docs/agent-control.md, docs/trace-context.md, docs/verification/process-event-sources.md, .agents/skills/process-event-sources/SKILL.md — theirs.

Harness/backend cluster (theirs throughout, adopting cursor harness and composer-lib consolidation)

  • bin/fm-harness.sh, bin/fm-backend.sh, bin/backends/herdr.sh, bin/backends/zellij.sh, bin/backends/cmux.sh, bin/fm-claude-stop-autoarm.sh, bin/fm-test-isolation-proof.sh — theirs.
  • bin/fm-spawn.sh — merged: adopted cursor support, pi executable resolution, spawn_gen, worktree-freshen wholesale; explicitly kept the fork-only per-crew memory-cap feature (header docs and the systemd-run wrapping); duplicate-definition cleanup done post-merge (see Integration fixes).
  • tests/fm-spawn-dispatch-profile.test.sh — merged: one assertion needed both upstream's new env -u CURSOR_AGENT... prefix and the fork-only --settings attribution flag together, since both are live in the merged fm-spawn.sh.
  • tests/fm-backend-cmux.test.sh, tests/fm-backend-herdr-launcher-workspace-e2e.test.sh, tests/fm-harness-liveness-drift-live-e2e.test.sh — theirs.
  • tests/fm-backend-herdr-presentation-e2e.test.sh — merged: one hunk kept the fork's expected error message, traced against unconflicted fm-spawn.sh polling-loop code and empirically confirmed by a live e2e run.
  • tests/fm-kimi-harness.test.sh — merged: kept the fork-only memory-cap-off stub, took upstream's cursor-stripping launch prefix.
  • tests/fm-muse-harness.test.sh — ours: fork-only memory-cap-off stub, upstream side was empty.
  • docs/cmux-backend.md, docs/orca-backend.md, docs/zellij-backend.md, docs/tmux-backend.md, docs/herdr-backend.md, docs/verification/runtime-backends.md — theirs (composer-lib consolidation and/or cursor coverage, including upstream's dated Cursor Agent CLI verification section, kept as recorded rather than re-verified here).
  • .agents/skills/harness-adapters/SKILL.md — merged: took upstream for cursor/composer-lib hunks; kept the fork-only "Commit co-author trailer" sections.

Brief/bootstrap/daemon/skills cluster

  • bin/fm-brief.sh — merged (ours-heavy): kept fork-only --amend and --fork-only (upstream has neither anywhere in its tree) and the fork-only PR-body-writing guidance.
  • bin/fm-bootstrap.sh — merged: took upstream's cursor harness wiring; kept the fork-only ClickStack/BetterStack/captain-msg bootstrap calls.
  • bin/fm-teardown.sh, bin/fm-supervise-daemon.sh, bin/fm-test-run.sh, bin/fm-x-poll.sh, .pi/extensions/fm-primary-pi-watch.ts, .pi/extensions/fm-primary-turnend-guard.ts — theirs, except fm-test-run.sh kept the fork's own recent LC_ALL=C comm pin (commit 286a5de) alongside upstream's new family/coverage table registrations.
  • bin/fm-update.sh, .agents/skills/updatefirstmate/SKILL.md — ours: fork-only phase-(a) upstream-integration documentation.
  • tests/fm-bootstrap.test.sh, tests/fm-daemon.test.sh, tests/fm-stow-cascade.test.sh — theirs.
  • tests/fm-documentation-audiences.test.sh — ours: kept a legitimate fork-only .no-mistakes.yaml schema-contract test with no upstream equivalent.
  • .agents/skills/afk/SKILL.md, .agents/skills/ahoy/SKILL.md, .agents/skills/stow/SKILL.md, skills/stow/SKILL.md — theirs (see Major upstream features adopted for ahoy/stow).
  • docs/supervision-protocols/claude.md, docs/supervision-protocols/codex.md, docs/supervision-protocols/grok.md, docs/supervision-protocols/pi.md — theirs: --ack-through acknowledgement line.

kunchenguid and others added 30 commits July 23, 2026 20:26
* fix(session-start): relaunch missing second mates

* fix(test): detect completed parallel workers

* no-mistakes(review): Isolate session-start recovery test cleanup

* no-mistakes(review): Complete backend-safe secondmate session recovery

* no-mistakes(review): Resolve Zellij task ownership before recovery

* no-mistakes(review): Recover relocated Zellij ghost tabs safely

* no-mistakes(review): Restore conservative Zellij recovery boundary

* no-mistakes(review): Reject malformed tmux recovery targets

* no-mistakes(document): Align secondmate recovery documentation

* no-mistakes: apply CI fixes
…id#967)

* fix(herdr): reclaim resumed task projections safely

* no-mistakes(review): Enforce safe Herdr reclaim close boundaries

* no-mistakes(document): docs: clarify Herdr restart projection contract
…id#994)

* docs: separate current guides from verification

* no-mistakes(review): Restore Herdr 0.7.5 restart-reclaim verification evidence
…d#997)

* feat(claude): Stop-owned tokenless watcher continuity via asyncRewake auto-arm

Claude primaries (main home and marked secondmate homes) no longer depend
on the model remembering to re-arm the watcher after each wake. A tracked
Stop asyncRewake hook (bin/fm-claude-stop-autoarm.sh, timeout 28800s)
fires on every turn end, claims one home-scoped single-flight owner,
foregrounds bin/fm-watch-arm.sh inside the hook-owned process tree, and
translates an actionable close or typed watcher failure into exactly one
exit-2 rewake. The hook scopes to genuine primary checkouts, requires the
session lock to be held by its own harness ancestor, stays inert while
AFK owns triage or the home is idle, and hands AFK transitions mid-cycle
to the daemon without rewaking.

The synchronous turn-end guard gains a --claude cooperative mode: it
ignores stop_hook_active (true on every post-continuation stop, which is
what re-opened the 2026-07-21 blind window), waits briefly for a watcher
health proof, a live auto-arm owner claim, or a fresh rewake epoch, and
re-blocks only when the auto-arm genuinely failed to establish - bounded
to 3 consecutive blocks per session, safely below Claude Code's 8-block
override, then a degraded allow with a visible systemMessage. Codex
keeps the previous one-block loop guard byte-identically, and Pi,
OpenCode, and Grok adapters are untouched.

Continuity PreToolUse gate and durable wake queue are preserved; the
gate's recovery guidance now names the Stop-owned re-arm and reserves
manual background arms for auto-arm failure. Claude supervision protocol,
harness-adapters facts, architecture, configuration, and continuity docs
updated; docs/turnend-guard.md records the 2026-07-24 Claude 2.1.218
contract revalidation (tokenless multi-cycle rewake, no-dedup, timeout
process-group kill, 8-block cap, interactive non-stall) and the 2.1.219
product live E2Es.

Regression matrix: hermetic tests cover scope, identity, AFK, need,
single-flight, translation, guard cooperation, budget, and registration;
the new live E2E proves two full tokenless auto-arm rewake cycles with
zero model arm commands; Pi and OpenCode Option B live E2Es pass
unchanged.

* no-mistakes(review): Fix Claude X-mode auto-arm continuity backstop

* no-mistakes(review): Remove unsupported Claude contract-lab verification claims

* no-mistakes(document): Update Claude auto-arm continuity documentation
* Clean stale Herdr projections at session start

* no-mistakes(document): Document stale Herdr session-start projection cleanup

* no-mistakes(review): Enforce locked exact Herdr projection cleanup

* no-mistakes(review): Fail closed on unverified session lock ownership

* no-mistakes(review): Serialize session lock acquisition atomically

* no-mistakes(document): Align session-start and Herdr cleanup documentation

* no-mistakes(document): Generalize lock-refusal diagnostics

* no-mistakes(lint): Avoid reserved keyword in concurrency test

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes
…uid#1001)

* fix: recover Claude supervision at session start

* fix: remove Claude watcher-status command gate

* no-mistakes(document): docs: remove stale continuity gate references
* Replace quota dispatch selector instructions

* no-mistakes(review): Align bootstrap docs with agent-owned dispatch selection
* remove vestigial dispatch selector

* no-mistakes(review): Synchronize isolation proof and portable shard evidence

* no-mistakes(review): Correct shard history and proof archive date

* no-mistakes(review): Remove reintroduced selector documentation reference

* no-mistakes(document): Remove stale dispatch strategy documentation
…1039)

quota-axi 0.1.13 emits schemaVersion 2 with a quotaSemantics object per
provider, so the successor named in the interim rule has landed and the
rule's own removal condition is satisfied.

Keep the ownership clause so quota-axi remains the single owner of how
model or product windows relate to bounding account windows, and drop
the interim weakest-headroom instruction. The unknown-semantics case is
already covered by the existing requirement to stop and report a
candidate whose applicable quota data or interpretation cannot be
established.

Drop the matching assertion phrase from
tests/fm-instruction-owners.test.sh; the retained ownership phrase still
asserts.
…unchenguid#1049)

* fix(tmux): scope Claude busy detection by harness

* no-mistakes(review): Separate verified and fallback busy signatures

* no-mistakes(test): Scope busy signatures to supplied harnesses

* no-mistakes(document): Document harness-scoped busy detection
* Add verified Kimi crewmate harness adapter

* no-mistakes(review): Scope Kimi moon detection to spinner lines

* no-mistakes(review): Match only complete Kimi spinner rows

* no-mistakes(review): Resolve Kimi binary portably before pane creation

* no-mistakes(document): Align Kimi adapter documentation

* no-mistakes(lint): Suppress false-positive ShellCheck warning for sourced watcher override

* Fix Kimi busy spinner detection

* no-mistakes(review): Recognize Kimi session-lock ancestry and holders

* no-mistakes(review): Scope pending-reply Kimi busy detection by harness

* no-mistakes(document): Correct Kimi spinner capture documentation

* no-mistakes(document): Clarify optional Kimi spinner whitespace

* no-mistakes(lint): Silence intentional pending-reply test stub warnings

* test: align rebased Kimi busy fixtures

* no-mistakes: apply CI fixes

* Reconcile Kimi busy detection after per-harness scoping

* no-mistakes(review): Clarify observed Kimi spinner whitespace contract

* no-mistakes(document): Clarify Kimi harness documentation
* fix kimi pointer submission and spinner conformance

* no-mistakes(review): Preserve Kimi submit target ownership guard
* Add guarded Kimi turn-end hook

* no-mistakes(review): Require jq before installing Kimi turn-end hook

* no-mistakes(review): Expose jq inside isolated Kimi test fixtures

* no-mistakes(review): Preserve Kimi config boundaries during hook removal

* no-mistakes(review): Document Kimi removal newline safeguard

* no-mistakes(document): Document Kimi shared-home preservation
)

* Fix structural tmux composer reading

* Verify Calm compatibility with Pi 0.82

* no-mistakes(review): Harden structural composer classification boundaries

* no-mistakes(review): Refresh composer and Kimi regression fixtures

* no-mistakes(review): Fail closed on unbounded composer edges

* no-mistakes(review): Enforce aligned composer geometry safely

* no-mistakes(review): Make composer ambiguity locale-safe

* no-mistakes(review): Preserve ambiguity through composer submission

* no-mistakes(review): Carry composer proof through retries

* no-mistakes(document): Document structural tmux composer delivery guarantees

* no-mistakes: apply CI fixes
* feat: add verified pi-signed adapter

* no-mistakes(review): Correct pi-signed maintainer verification date

* no-mistakes(review): Correct remaining pi-signed verification dates

* no-mistakes(review): Preserve authoritative pi-signed runtime identity

* no-mistakes(document): Document pi-signed shared adapter semantics

* no-mistakes: apply CI fixes
* fix(pi): rearm watcher across same-process session transitions

Pi emits session_shutdown for ordinary /new, /resume, and /fork replacement
as well as terminal quit. The primary watcher extension latched a module-level
stopping flag on every shutdown, so a replacement session in the same process
could not arm monitoring until Pi restarted.

Own arm authority per session generation so only the active live generation
may start, stop, or rearm the child. Replacement sessions can arm again without
restarting Pi, stale prior-generation callbacks cannot mutate the active cycle,
and real quit still blocks late rearm.

* no-mistakes(review): Preserve Pi generation isolation and exit cleanup

* no-mistakes(document): Correct Pi watcher transition documentation
* Consume quota-axi pace signals in dispatch profile array selection.

Add quota-array-dispatch as the single owner of the pace-aware candidate
choice, keep AGENTS.md to the intake boundary and load trigger, and cover
the acceptance cases with sanitized schemaVersion 3 fixtures.

* no-mistakes(review): Stop and report genuine quota dispatch ties

* no-mistakes(document): Document quota pace freshness and uncertainty
…nguid#1171)

* fix(grok): adapt Stop continuation to runtime capability

* no-mistakes(review): Reject ambiguous Grok Stop payloads

* no-mistakes(review): Reject duplicate Grok fields and accept spaced tmux sessions

* no-mistakes(review): Enforce exact tmux cleanup selectors

* no-mistakes(test): Fix historical tmux fixture and validate Grok Stop

* no-mistakes: apply CI fixes
* fix(brief): make DOD scaffolding parse-safe on stock macOS Bash 3.2

fm-brief.sh built each Definition-of-done block and the not-enabled
Herdr declaration with `VAR=$(cat <<EOF ... EOF)`. On Bash 3.2 (macOS
/bin/bash) the lexer scans for the command substitution's closing `)`
textually and tracks quote state through the heredoc body, so a single
apostrophe, unbalanced quote, or unbalanced paren in that prose breaks
parsing of the whole script. Every ship-brief scaffold (no-mistakes,
direct-PR, local-only) failed with `unexpected EOF while looking for
matching )`. Bash 4+ parses it fine, so the breakage stayed invisible
everywhere except stock macOS.

Replace all four command-substitution heredocs with
`IFS= read -r -d '' VAR <<EOF || true`. That removes the `$(...)`
wrapper and the entire defect class regardless of future prose, and
preserves the variable expansion the direct-PR and local-only bodies
need. `read` keeps the heredoc's trailing newline that `$(...)` used to
strip, so trim one newline to keep every generated brief byte-identical
to prior output.

Guard the structure, not one historical phrase: a new test rejects any
heredoc nested in a command substitution anywhere in fm-brief.sh, where
the old assertion pinned a single apostrophe phrase and so missed the
reintroduction. Extend the stock-macOS Bash CI job from parsing one
script to the whole maintained shell surface (bin/*.sh,
bin/backends/*.sh, tests/*.sh), matching bin/fm-lint.sh's canonical file
set so parse scope and lint scope cannot drift apart.

* no-mistakes(review): Captain: harden Bash structure and inventory guards

* no-mistakes(document): Align stock macOS Bash contributor checks

* no-mistakes(lint): Suppress deliberate SC2016 literal fixture warnings
* fix(test): pin teardown tmux baseline to historical kill selectors

merge-base HEAD main collapses to HEAD after the exact-selector change
lands on the default branch, so the old teardown fixture was accidentally
exercising current exact targets. Resolve a content-historical permissive
tmux adapter from first-parent history and force that post-squash topology
inside the conformance case so main and feature branches keep the same
old-vs-new contract.

* no-mistakes(lint): Suppress intentional literal-pattern ShellCheck warnings
…id#1197)

Cut the runtime skill to the compact pace-aware selection procedure plus
minimum owner pointers. Keep every distinct decision rule and move expanded
acceptance scenarios to deterministic fixture ownership assertions.

Size: 170/1374/10187 -> 63/544/4068 (about 63%/60%/60% reduction).
…1219)

* Inherit config/backend into secondmate homes with deliberate-override preservation

Add backend to the shared inheritable config allowlist so launch, locked
bootstrap, and config-push converge a primary pin into secondmate homes as each
home local future-spawn default. Track last-inherited bytes in a private state
provenance marker so deliberate per-home overrides survive present and absent
primary convergence, keep --backend and FM_BACKEND stronger, and extend the
existing inheritance tests plus docs and skill claims.

* no-mistakes(review): Preserve equal unprovenanced backend overrides

* no-mistakes(review): Preserve symlink overrides and verify spawn precedence

* no-mistakes(review): Snapshot backend inheritance for consistent provenance

* no-mistakes(review): Simplify backend inheritance to primary-authoritative convergence

* no-mistakes(document): Document inherited backend override preservation

* fix: restore primary-authoritative backend inheritance after document regression

The document step reintroduced provenance and deliberate per-home override
semantics after review had simplified config/backend to plain primary-authoritative
allowlist membership. Restore the primary-always-wins path: present overwrites,
absent removes, no provenance marker, and docs/tests match that contract.

* no-mistakes(review): Add divergent backend precedence regression fixtures

* no-mistakes(document): Document backend inheritance contract
* fix(pi): remove Calm's exclusive Pi upper-version ceiling

tests/fm-calm-pi-extension.test.sh gated on a closed PI_COMPAT_VERSIONS
allowlist ("0.81.1 0.82.0") that refused any other installed Pi, and docs
described that range as "supported" rather than verified evidence. The
Calm CHANGELOG shows no API introduced at either version, so there is no
evidence for a real minimum; the presentation adapters already probe the
exact method they patch rather than checking a version.

Replace the allowlist with dated version evidence that never rejects a
newer Pi, and make each presentation adapter degrade independently with
a diagnostic if a future Pi removes its API, instead of the whole Calm
extension failing to load. Rewrite the feasibility doc's "Pi 0.81.1
through 0.82.0" phrasing to state it as verified evidence, not a
ceiling.

* no-mistakes(review): Probe missing Calm adapter exports safely

* no-mistakes(document): Document Calm's unbounded Pi compatibility
…enguid#1204)

* fix(guard): allow session-local todo tools in the primary

The delegation-shape guard denied TaskCreate and TaskUpdate because their
normalized names contain the `task` stem. Those tools write only the harness's
session-local todo list, which has no executor: it spawns no agent, allocates
no worktree, registers no schedule, and starts nothing that outlives the
session. That is not the unaccounted work the guard exists to stop, so the stem
match was a false positive, and the deny text told the primary to run
bin/fm-brief.sh and bin/fm-spawn.sh to create a todo entry.

Add a separately-reasoned PLAN_ONLY_TOOLS exact-name exclusion rather than
widening OBSERVE_ONLY_TOOLS, whose documented contract is tools that only
observe or stop existing work. Both lists stay exact-name so neither can widen
by substring.

Tests cover the two allowed names and six near-miss names that a substring or
shortened-stem widening would release; both mutations were watched red.

* no-mistakes(review): drop session-local todo tools from recommended deny list

* no-mistakes: apply CI fixes
…claude pid (kunchenguid#1206)

* fix(session-lock): resolve Claude bg-spare ancestry to the outermost claude pid

fm_harness_ancestry_pid() previously returned the first ancestor process
whose command matched a verified harness name. Claude Code's Stop hook
fires as a bg-spare worker several levels below the session's actual
lock-owning claude process (hook shell -> claude bg-spare ->
claude bg-pty-host -> claude -> claude(lock)), so the first match was
the bg-spare worker, not the lock owner. fm_session_lock_owned_by_self()
then never matched state/.lock, and the Claude Stop auto-arm silently
treated its own primary session as an unrelated live owner and never
armed the watcher.

The walk now keeps going past a claude-named match, looking for a still
more ancestral claude-named match, and stops the instant a non-match
follows an already-found match (bounding it to a contiguous run rather
than the literal ancestry top, so an unrelated claude-named process
further up the real process tree is never mistaken for part of this
session's own nested chain). Every other harness keeps the original
first-match-wins behavior, since e.g. Pi's shared signed-wrapper
ancestry actually holds the session at the inner engine pid, not an
outer wrapper pid. Hop limit raised from 8 to 16 to cover the deeper
bg-spare chain.

* no-mistakes(review): Add nested-claude-ancestry regression test; fix nudge doc depth claim

* no-mistakes: apply CI fixes
* fix: confirm watcher startup on MSYS

* no-mistakes(review): gate MSYS arm ready timeout, cache uname, harden locale test

* no-mistakes(review): validate OpenCode ready timeout, make uname cache internal
…d#1195)

* fix(spawn): forward firstmate's CLAUDE_CONFIG_DIR to claude crewmates

Crewmate panes are created by a long-lived tmux/herdr daemon that does not
inherit firstmate's current environment. When firstmate runs under a non-default
CLAUDE_CONFIG_DIR (for example a work-vs-personal subscription split), a bare
`claude` in the crewmate pane fell back to the default ~/.claude store and
launched unauthenticated, blocking the crewmate before it could do any work.

fm-spawn now prefixes the claude launch with firstmate's own resolved
CLAUDE_CONFIG_DIR when set, so the crewmate uses the same credential/config
store firstmate is authenticated with. An unset value is the single-store
default and adds no prefix; non-claude harnesses are unaffected.

Adds three tests in fm-spawn-dispatch-profile.test.sh (forwarded-when-set,
omitted-when-unset, non-claude-ignored) and pins CLAUDE_CONFIG_DIR in the test
helper so launch assertions no longer depend on the developer's environment.

* no-mistakes: apply CI fixes
…guid#1233)

* fix: preserve dispatch harness identity

* no-mistakes(review): Fix Grok counterfactual tuple validation

* no-mistakes(document): Scope dispatch authentication to selected tuple

* fix: restore dispatch instruction budget

* no-mistakes(review): Scope dispatch authentication after candidate selection
kunchenguid and others added 26 commits August 9, 2026 01:07
* docs: add firstmate vision

* no-mistakes(test): Classify VISION.md as public product documentation

* no-mistakes(document): Restore approved one-file vision diff

* no-mistakes: apply CI fixes
* fix(spawn): force regular Pi TUI for crews

* no-mistakes(document): Documented Pi regular TUI launch mode
* fix(cmux): classify borderless Claude composer

* no-mistakes(review): Normalize cmux NBSP prompts across locales

* no-mistakes(document): Document cmux borderless Claude composer classification
…nchenguid#2091)

The public installer-facing stow skill scoped its classify-then-replace
discipline to TODO/BACKLOG items only, so findings routed to a memory file
had no stated rule against a blind append or a wholesale overwrite.

Step 6 now classifies every finding against the destination's current
contents as new, duplicate, superseding, or obsolete, and states the
considered replacement each classification implies. The outcomes follow the
tiered-memory contract already in the file: an obsolete entry is refreshed,
archived, or replaced in a way that preserves its fact, a duplicate folds
into the entry that already carries it, and a superseded body worth keeping
leaves through step 7's existing exits rather than a second recovery
mechanism.
* fix(watcher): resurface durable work after downtime

* no-mistakes(review): Make watcher rearm recovery durable and cursor-safe

* no-mistakes(review): Persist safe recovery markers across migration lock recovery

* no-mistakes(review): Retain stale lock when recovery marker publication fails

* no-mistakes(review): Preserve delivery-gap recovery and quarantine malformed markers

* no-mistakes(review): Serialize recovery consumption and report acknowledgment failures

* no-mistakes(review): Centralize recovery publication before clearing watcher evidence

* no-mistakes(review): Guarantee recovery evidence across queue and lock handoffs

* no-mistakes(review): Publish recovery evidence before durable wake commits

* no-mistakes(review): Replace recovery marker Perl dependency with Node

* no-mistakes(review): Keep interrupted wakes durable until handling acknowledgment

* no-mistakes(review): Add post-handling durable wake acknowledgements

* no-mistakes(review): Enforce post-handling acknowledgement across recovery and AFK return

* no-mistakes(review): Bind wake acknowledgements to recovery generations

* no-mistakes(review): Align wake regressions with generation-bound acknowledgements

* no-mistakes(document): Document durable re-arm recovery semantics

* no-mistakes(lint): Resolve ShellCheck warnings in recovery and watcher tests

* no-mistakes: apply CI fixes

* test(watcher): assert post-handling wake replay

* no-mistakes(review): Prevent successor loops and adopt legacy wake generations

* no-mistakes(review): Rearm durable wakes without recursive successor recovery

* no-mistakes(review): Align recovery tests with handling marker state

* no-mistakes(review): Delay handling transition until successor launch is established

* no-mistakes(review): Confirm wake handling only after successful prompt delivery

* no-mistakes(review): Acknowledge AFK wakes only after evidence publication

* no-mistakes(review): Prevent AFK wake loss before post-handling acknowledgement

* no-mistakes(document): Document durable wake acknowledgement semantics

* no-mistakes(lint): Suppress false positive for recovery action output

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes
* ci: add Windows Herdr automation spike

* ci: run Windows spike on its pull request

* fix: wait for Windows Herdr command output

* fix: run ANSI probe in pane shell

* ci: keep Windows Herdr spike manually triggered

* docs: clarify Windows Herdr spike verdict
* Add guided ahoy decision flow

* no-mistakes(document): Document guided Ahoy decision flow
* Harden stow memory budget policy

* Refine internal stow offload policy

* no-mistakes(review): Enforce shared-budget decisions and autonomous offload
…enguid#2116)

* fix(spawn): refresh pooled worktree base

* no-mistakes(document): Document spawn base-freshness invariant

* no-mistakes: apply CI fixes
…#2102)

* refactor(composer): one shape owner behind thin capture adapters, whole matrix fixed

Consolidate every composer shape - bordered boxes (all families, geometry,
titled bottom borders), bare agent-glyph rows and their wrap regions,
opencode's left bar, and pi's identity-gated separator pair - into
fm_composer_classify_screen in bin/fm-composer-lib.sh. Adapters now
contribute only a capture and a declarative capability descriptor
(styled/cursor/identity/rows); capability differences change how confidently
a shape is judged, never what the shapes are, so a new harness shape is
teachable in exactly one place.

Correctness fixes landed as part of the consolidation (audit
data/fm-composer-consolidation-audit-s1):
- locale-safe Unicode-space normalization in the shared owner (closes the
  fleet-wide half of kunchenguid#1988; cmux's local byte-exact NBSP case deleted;
  naming converges with PR kunchenguid#1995's normalization primitive)
- muse's bare glyph joins the shared set, unbreaking muse on herdr/cmux/orca
- orca learns the borderless bare shape, drops its backward-paged composer
  window, and can no longer classify a stale startup banner as the composer
- tmux tolerates a titled bottom border, unbreaking grok steering
- the left-bar shape makes opencode readable on every backend
- zellij gets a real classifier through dump-screen --ansi, replacing the
  content-diff submit heuristic that could confirm an undelivered message
  and close a --resolve-key decision (the fleet's only false positive)
- fm-spawn's kimi launch-readiness regex (the fourth shape copy) now routes
  through the shared classifier

The strict blank-row posture applies fleet-wide (captain decision
blank-row-injection-posture): no positive container proof = unknown = defer,
replacing tmux's permissive blank-cursor-row rule. Away-mode injection was
re-validated end to end on real tmux (defer on partial input and unproven
rows, clean delivery with swallowed-Enter retry into proven-empty
composers). The tmux submit core gains a baseline-idle turn-started
conversion so pi steering stays confirmed while its working screen hides
the composer; busy conversion without that baseline remains forbidden.

Plain-capture backends now degrade a glyph row carrying trailing text to
unknown instead of a false pending, per the approved capability rule.

Portable regressions pin the full byte-capture matrix from the audit under
a UTF-8 locale and LC_ALL=C, the strict-vs-permissive divergence, and
deliberate signal separation; the opt-in live guard
(tests/fm-composer-matrix-live-e2e.test.sh) verified every installed
harness against the real classifier, recorded in
docs/verification/runtime-backends.md.

* no-mistakes(review): Fix Pi glyph ambiguity and complete profile matrix

* no-mistakes(review): Preserve bare verdict when Pi identity probe is absent

* no-mistakes(review): Harden composer structure and titled-border geometry

* no-mistakes(review): Require proven idle baseline and strict Zellij guard

* no-mistakes(review): Reject box bottom borders as composer input rows

* no-mistakes(review): Prove Zellij probe typing before classifier retries

* no-mistakes(review): Preserve Pi identity uncertainty and scan full left-bar drafts

* no-mistakes(review): Verify Zellij text lands before submitting

* no-mistakes(review): Scope Zellij typing verification to selected composer content

* no-mistakes(review): Verify Zellij pastes through composer-scoped content deltas

* no-mistakes(review): Prove wrapped bare Zellij pastes through composer extraction

* no-mistakes(review): Invalidate stale cursorless composers below dead shell prompts

* no-mistakes(review): Handle shell prompt placeholders in composer extraction

* no-mistakes(review): Classify cursorless bare continuation regions safely

* no-mistakes(review): Reject stale cursorless containers below live activity

* no-mistakes(review): Preserve prompt glyphs in wrapped Zellij pastes

* no-mistakes(review): Reject live shell rows during composer extraction

* no-mistakes(review): Preserve wrapped glyph continuations through submit retries

* no-mistakes(review): Scope idle placeholders to proven positions

* no-mistakes(review): Restore boxed placeholders and live prompt reanchoring

* no-mistakes(review): Fix Zellij placeholder and wrapped glyph paste proof

* no-mistakes(document): Align composer architecture documentation

* no-mistakes(lint): Fix ShellCheck warnings in composer refactor

* no-mistakes: apply CI fixes

* docs(verification): record the trusted-checkout live matrix rerun

The pipeline's isolated gate worktree is untrusted, so claude, grok, and
muse stopped at first-launch trust dialogs there (the guard refuses to
confirm them by design). This rerun from the trusted checkout at the final
validated head verified all six installed harnesses, the strict blank-row
deferral, and the hardened zellij false-positive probe live.

* no-mistakes(document): Align composer verification evidence

* no-mistakes: apply CI fixes

* no-mistakes(review): Restore proven box bottom-cursor classification

* no-mistakes(review): Preserve styled placeholder-like drafts as pending

* no-mistakes(document): Align composer safety and Zellij delivery documentation

* no-mistakes: apply CI fixes

* docs(verification): refresh the live matrix with the final-head trusted rerun

The post-validation rerun from the trusted checkout verified all six
installed harnesses at the branch's final head, including Claude 2.1.227
(auto-updated since the audit's captures) and Grok, which the untrusted
gate worktree could not verify past their first-launch trust dialogs.
* fix(spawn): gate Pi regular TUI flag by capability

* no-mistakes(review): Document conditional Pi TUI capability detection

* no-mistakes(review): Pin Pi probing and launch to one executable

* no-mistakes(review): Preserve literal pinned Pi paths and update documentation

* no-mistakes(review): Defer pinned Pi path insertion until final substitution

* no-mistakes(document): Document version-safe Pi launch probing

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes
…unchenguid#2147)

* docs(vision): elevate experience, pain narrative, and distro virtues

Fold the captain's public vision framing into VISION.md: peace of mind as a
primary goal, multi-session context-switch pain as the problem one interface
solves, clone-and-run setup ease, self-evolution including community, and
explicit harness/backend orthogonality. Reconcile experience-as-garnish into
experience-as-purpose and update aligns/resists accordingly.

* docs(vision): state the experience goal positively

Drop the negative "not a smart workflow / useful tool / impressive technology"
pretext. Lead straight into the positive experience north star.
* fix: reconcile inactive terminal outcomes

* fix: stream secondmate summary inputs

* no-mistakes(review): Fix reconciliation locking and request delivery retries

* no-mistakes(review): Prevent retries after unknown request delivery

* no-mistakes(document): Clarify inactive reconciliation cadence and receipts

* no-mistakes(lint): Quote terminal status arguments in reconciliation tests

* refactor: simplify inactive outcome reconciliation

* no-mistakes(review): Bound inactive reconciliation scans with durable progress

* no-mistakes(review): Bound reconciliation and deduplicate recovery notices

* no-mistakes(document): Document inactive outcome reconciliation contracts

* no-mistakes(review): Reject relative local secondmate parent routes

* no-mistakes(review): Key terminal receipts by spawn incarnation

* no-mistakes(review): Stabilize legacy receipts and lock reconciliation snapshots

* no-mistakes(review): Fail closed on invalid secondmate identity markers

* no-mistakes(document): Document durable inactive-outcome reconciliation

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes
* fix(session-start): refresh drifted instructions on stale rebuilds

* test(session-start): prove Pi instruction refresh end to end

* no-mistakes(review): Fix stale instruction refresh and baseline integrity

* no-mistakes(review): Preserve true-start baselines across Pi continuations

* no-mistakes(review): Correct Pi continuation classification and live expectation

* no-mistakes(review): Correct Pi continuation coverage documentation

* no-mistakes(review): Fix read-only refresh and exact Pi session restores

* no-mistakes(review): Classify Pi create-if-missing sessions correctly

* no-mistakes(review): Classify named Pi sessions using immutable headers

* no-mistakes(review): Correct Codex interactive coverage diagnostic

* no-mistakes(document): Document immutable Pi compaction instruction refresh

* no-mistakes(document): Correct Pi refresh documentation and validation claims
* feat(bin): add deterministic condition->action watch adapter on the process-event channel

Register a (condition, action) pair once with bin/fm-procevent-when.sh and the
existing process-to-event runner polls the condition tokenlessly, fires the
action at most once on a stable true, and wakes firstmate exactly once with the
captured outcome - instead of burning an agent turn per re-check.

The pair is stored privately under state/when/ and hash-bound by a trust record
the same way fm-check-register.sh binds a custom check, so a mutated spec is
refused without executing anything. A durable exclusive fired marker claimed
before the action makes restarts and re-polls unable to double-fire; every
failure path (mutated spec, condition error past budget, expired deadline,
failed action, uncaptured earlier fire) ends in a terminal captured outcome
that wakes firstmate rather than a silent retry. Eligibility stays a firstmate
judgment: only exact, safe, reversible actions may be bound, and judgment-
needing or destructive actions keep the wake-and-decide flow.

* no-mistakes(review): Harden when watcher concurrency, deadlines, timeouts, and output

* no-mistakes(test): Bind watcher actions to registered executable bytes

* no-mistakes(document): Correct condition-action watcher documentation

* no-mistakes(document): Clarify outcome wake re-announcement

* no-mistakes: apply CI fixes
…id#2202)

The open-decisions fold only recognized a [key=<slug>] token between the
verb and the colon (needs-decision [key=x]: note). The common worker
shape with the colon first (needs-decision: [key=x] note) silently
folded its stated key into the shared "default" bucket, so two open
decisions could collapse into one record and fm-send --resolve-key <x>
refused to close the decision it plainly named.

A complete token at the head of the note is now an equivalent stated-key
position for every keyed verb, shared by the whole-file and incremental
folds through the one _fm_decision_key owner. The documented
before-colon position wins when both are present, a token deeper in the
note stays prose, a bare keyless line still folds to "default", and a
stated-but-malformed slug is rejected rather than rewritten to
"default". A consumed note-head token is stripped from the note so both
positions yield identical records, and the incremental fold version is
bumped so persisted cursors folded under the old interpretation are
rebuilt from the authoritative log.

Fixes kunchenguid#2109
…uid#2212)

* fix(bin): keep a recovery acknowledgement valid across republication

A watcher cycle that opened and closed while the model handled its drained
wakes minted a fresh recovery generation, which invalidated the exact
acknowledgement the drain had just printed. That acknowledgement then consumed
nothing, so the marker stayed pending and every later arm spent its whole cycle
re-announcing the same recovery instead of supervising - a livelock the home
could not leave on its own.

A downtime publication now reuses the generation of an outstanding handling
episode, so a close during the handling window cannot orphan the printed
acknowledgement. The acknowledgement itself separates its two facts: queue-row
consumption is bound to the monotonic --ack-through sequence and always
happens, while only retiring the episode is bound to --recovery-generation. A
generation that moved on is a non-fatal result that names its own remedy
instead of a refusal that consumes nothing.

* no-mistakes(review): Preserve recovery generations and consume stale acknowledgements safely

* no-mistakes(document): Document sequence-bound recovery acknowledgements
* feat(fmx-respond): consume in_reply_to_chain conversation context

The relay's poll payload can carry in_reply_to_chain, an oldest-first
transcript of the surrounding conversation, but the mention-handling
procedure only ever read the immediate in_reply_to parent, so referents
like "this" in a standalone mention stayed unresolvable even when
context was delivered.

Teach fmx-respond to read the chain when present (optional and
backward-compatible: often absent today, kind label not required),
resolve referents against the whole transcript, and extend the
untrusted-content framing to every chain entry including the upcoming
kind=history entries. Document the field's wire shape in
docs/configuration.md as the firstmate-side owner.

* no-mistakes(document): Document Relay chain context ownership
* fix(bin): strip every bracket tag, not just [key=...], from a status verb

status_line_verb only stripped a leading "[key=...]" token before the
colon, so a remote secondmate reply's leading "[corr=...]" correlation
tag stayed glued onto the returned verb word ("needs-decision
[corr=...]" instead of "needs-decision"). The open-decisions fold's
verb match then silently failed to recognize the line at all, so
fm-send --resolve-key refused to close a decision that was plainly
open on the status line.

Generalize the parser to strip every "[name=value]" tag before the
colon, in any order and count, so local and remote replies fold
identically.

* no-mistakes(review): Invalidate stale decision cursors after parser fix

* no-mistakes(document): Clarify status metadata verb parsing
* fix: collapse duplicate supervision wakes without losing legitimate updates

One remote-secondmate note produced two handling turns (a procevent check
wake published before autohandle, then a signal wake for the same mirrored
bytes), already-ingested replays such as a cursor-loss whole-log recapture
still woke with nothing to do, this home's own bookkeeping closes (fm-send
--resolve-key, the pending-reply escalation close, the captain-held
transfer) re-woke the session that wrote them, and turn-ended-only wakes
were annotated with already-announced status lines that looked like fresh
progress.

Dedup rules, each at its layer's one owner:
- fm-procevent.sh: an adapter may declare 'self-announcing'; the runner
  then applies first and publishes a check wake only for what remains
  unhandled. fm-procevent-remote-reply.sh declares it: the mirrored status
  append is the single announcement, so a fully applied capture publishes
  nothing and a byte-identical replay stays completely quiet. All other
  adapters keep strict publish-before-apply.
- fm-wake-lib.sh: fm_wake_signal_sig/seen_path/seen_current now own the
  watcher's signal signature and .seen-* marker format, plus
  fm_wake_status_append_self_announced, the guarded bookkeeping append
  that advances the marker only over exactly its own bytes and fails
  toward waking on any pending or interleaved foreign write.
- fm-send.sh, fm-pending-reply-lib.sh, fm-decision-hold.sh: bookkeeping
  closes go through that guarded append; escalation opens stay plain
  appends because a new blocker must wake.
- fm-wake-lib.sh annotations: a historical (turn-ended-only) row skips its
  status annotation only when the file's signature provably matches the
  seen marker; anything unannounced keeps annotating.
- fm-classify-lib.sh: a kind=secondmate task's status signal is never
  absorbed as provably-working, because that stream is the routed-reply
  channel the parent must read.

Also fixes a pre-existing exit-path deadlock the regression run reproduced:
a TERM inside a recovery-marker critical section left fm_lock_try_acquire
spinning against this same process's abandoned hold; a self-held lock is
now reclaimed (a subshell still waits on its parent's live hold).

Regression tests drive the real wake functions and executables in both
directions: each duplicate case collapses, while a new remote reply, new
decision, new blocker, merge result, failure, first status change, and a
later different note on the same task all still wake.

* no-mistakes(document): Document wake deduplication contracts
* feat(harness): add Cursor Agent CLI adapter

# Conflicts:
#	bin/fm-spawn.sh

* fix(composer): read cursor-agent's reverse-video placeholder as idle

cursor-agent renders its idle composer placeholder dim (SGR 2) but paints the
cell under the terminal cursor in reverse video (SGR 0;7). Reverse video is
neither dim nor a dark truecolor foreground, so the shared ghost stripper keeps
that one character and an idle composer reduces to a lone `P`. Judged on its
own, that remnant reads `pending` on a genuinely idle pane, which defers
away-mode escalation indefinitely on the styled cursorless backends.

Teach the ONE fleet-wide classifier the shape instead of adding an adapter-local
copy: register `→` as an agent prompt glyph so the composer row is structurally
findable at all (without it the bottom-most shape is a stale shell prompt echo
in the scrollback), add both verified placeholders to the idle set, and consult
the styling-independent plain row when the styled row is only a remnant.

The plain-row branch demands the remnant be a proper, strictly shorter substring
of a plain row matching a fully anchored placeholder. Real typed text is
uniformly bright, so stripping leaves it equal to the plain row and it stays
`pending` - verified live against a pane where the typed text was exactly the
placeholder string.

Verified live on cursor-agent 2026.08.11-e8db854; the regression pins the real
captured bytes and asserts the remnant survives stripping, so the case cannot go
vacuous if the stripper later learns SGR 7.

Co-authored-by: Amplify Logic AI <[email protected]>

* feat(cursor): narrow cursor identity and order its marker before CLAUDECODE

Cursor ships two executable names - `cursor-agent` and the legacy alias `agent`
- and runs as a bundled node script, so tmux reports the pane command as a bare
`node`. Neither `agent` nor `node` can be trusted by name, so identity gets one
owner in bin/fm-cursor-lib.sh that demands cursor's own name or install tree in
the path or argv[0], from the structural signal only. Probing an arbitrary pid's
executable during a liveness poll would execute a stranger's binary, which is
the hazard that rule exists to close.

Two consequences wired up:

Detection. cursor-agent does NOT clear an inherited CLAUDECODE, so a cursor
worker launched under a claude primary carries both markers and whichever is
tested first wins. The cursor markers are ordered ahead of the CLAUDECODE check;
fm-spawn additionally clears foreign markers at the launch boundary. Both are
kept deliberately - launch sanitization only covers sessions fm-spawn started,
while the ordering also covers a cursor session started by hand. Verified live
that CURSOR_INVOKED_AS is set on the agent process and CURSOR_AGENT=1 on the
child/tool processes fm-harness.sh actually runs as.

Pane liveness. A cursor pane now classifies `agent`. An unrelated node or agent
stays `other`, which the liveness callers already fold into `ambiguous` rather
than `dead`, so a stranger's node pane is never reported agent-free.

Resolution prints the STABLE launcher rather than the canonical target: identity
is proven through canonicalization, but cursor's canonical path carries a
version its own auto-update replaces, and pinning that would strand a task on a
version that can vanish.

The regression drives the two identity signals apart - a cursor-named executable
outside any cursor tree, and a non-cursor-named alias inside one - and asserts
each carries a verdict alone, so no single vendor string is load-bearing. Its
negative controls are real spawned processes, not fixtures.

Verified live on cursor-agent 2026.08.11-e8db854.

Co-authored-by: Ville Penttinen <[email protected]>

* feat(cursor): classify cursor busy state from its own turn transcript

Cursor shipped as "unknown cursor-unverified" on the premise that it exposes no
semantic turn lifecycle, only a rendered "Working" footer. That premise is
wrong: cursor-agent persists an append-only JSONL transcript per conversation
and brackets every submitted turn with a role:user open and a typed turn_ended
close. Verified live on 2026.08.11-e8db854, including the interrupt path, where
Escape closes the turn with status "aborted" - so this source covers manual
interruption, which Claude's Stop hook does not.

That makes it a genuine pull source in the muse mould rather than the rendered
text the redesign forbids: no writer, no arm, no gen, nothing seeded that could
never be cleared. Cursor's `ctrl+c to stop` footer stays out of the verdict, and
herdr's narrower native streaming state cannot stand in for it either.

Binding deliberately does not reconstruct cursor's workspace-slug directory
name. That slug collapses path separators, so rebuilding it would be a guess
that could bind the wrong pane; cursor records the exact absolute workspace path
in each project's .workspace-trusted, and the binding matches on that. A
conversation recorded as prior at spawn is excluded, so a relaunch in a reused
worktree folds its own turn rather than its predecessor's. Requiring a unique
remaining conversation keeps zero and several both unknown, because neither
proves anything about the current turn.

The regression pins the fold with real transcript files and asserts the
dangerous direction stays closed: an unresolvable binding, a record-free file,
an unclaimed workspace, and a workspace-path PREFIX all read unknown, never
idle. The prefix case uses an opaque fixture slug so a slug-rebuilding
implementation cannot pass it.

Co-authored-by: Ville Penttinen <[email protected]>

* feat(cursor): make the cursor launch runnable and give it lifecycle control

Five gaps that together kept a cursor crewmate from being drivable end to end.

Launch. The template invoked `cursor agent`, but `cursor` is not the CLI - the
installed names are `cursor-agent` and the legacy alias `agent` - so the command
could not run at all on a machine with a normal cursor install. It now resolves
through the verified owner, which also refuses a spawn loudly instead of leaving
a pane that dies with command-not-found and reads as a wedged worker.

Session binding. fm-spawn writes state/<id>.cursor-session so the busy fold can
find this pane's transcript, and teardown removes it.

Lifecycle control. No cursor PR touched fm-control-lib.sh, so
`fm-control <id> interrupt|exit|relaunch` could not drive a cursor worker at
all. Verified live: interrupt is a single Escape, exit is /exit, and cursor does
NOT repollute its composer with the cancelled prompt, so unlike muse it needs no
clear key. Secondmate is refused, matching the spawn refusal.

Submit acknowledgement. cursor parks its terminal cursor outside its composer,
so the composer verdict on tmux is always `unknown` and a submit could never be
acknowledged from the composer alone. The submit core's existing idle-to-busy
transition covers that case, but only if the pane's busy footer is recognised,
so cursor's `ctrl+c to stop` joins the harness-less default union the submit
cores read. The TOKEN is matched rather than the spinner verb: the same version
rendered both `Working` and `Running` in consecutive turns.

Bootstrap. A configured cursor crew harness with no cursor executable is now a
loud MISSING diagnostic rather than a first-spawn failure, and it accepts either
installed name.

Interrupt cancellation is deliberately left unconfirmed. The transcript does
type an aborted close, but its post-interrupt write latency measured as
variable - sometimes seconds, sometimes not within twenty - so a claim built on
it would be unreliable. Normal turn completion is prompt, which is what the busy
fold actually depends on.

Two inherited tests are corrected rather than deleted: the busy test asserted
cursor could have no semantic source, and the launch test pinned the literal
`cursor agent` string. Both now pin the verified behaviour, including that the
launch never allocates a second worktree.

Co-authored-by: ABHISHAKE KUMAR BOJJA <[email protected]>
Co-authored-by: Ville Penttinen <[email protected]>

* docs(cursor): record the verified crewmate facts and extend the drift guard

The inherited cursor entry was written against 2026.08.04-aaa8809 and several of
its claims no longer hold: it named `cursor agent` as the binary (not the CLI
name), listed six Grok model ids of which the live catalog now returns two, and
recorded busy state, exit, interrupt, and skill invocation as unverified.

Replaced with what was measured against 2026.08.11-e8db854, including the two
facts most likely to be rediscovered painfully: cursor runs as a bundled node
script so its pane title is a bare `node`, and it parks its terminal cursor
outside its composer, which makes the tmux composer verdict permanently
`unknown` by design rather than a defect to chase.

Model ids now route to `--list-models` for the account instead of a fixed list,
since that list is exactly what drifted.

The live drift guard covers cursor, resolving it through the same verified owner
fm-spawn uses and passing --trust so the probe cannot hang on the workspace
prompt. Run against every installed harness: 8 checked, all alive, with cursor
reporting title='node' foreground=[.../cursor-agent] - the drift shape this
guard exists to catch.

Co-authored-by: Ville Penttinen <[email protected]>

* docs(agents): record the cursor session-binding state file

The state/ layout section is the inventory every session reads; a busy-source
binding that fm-spawn writes and teardown removes belongs in it alongside muse's.

* no-mistakes(review): Sanitize ambient Cursor marker in harness tests

* no-mistakes(review): Validate Cursor models against live catalog

* no-mistakes(review): Reject unsupported secondmates before binary preflight

* no-mistakes(review): Narrow Cursor ancestry detection to structured process identity

* no-mistakes(review): Parse Cursor transcripts and sanitize inherited markers

* no-mistakes(review): Handle malformed Cursor transcript records safely

* no-mistakes(review): Validate malformed Cursor closes in fallback parser

* no-mistakes(review): Retire stale Cursor bindings during relaunch

* no-mistakes(review): Fix Cursor drift guard command variable

* no-mistakes(review): Narrow Cursor identity to versioned install trees

* no-mistakes(document): Document Cursor harness boundaries

* refactor(composer): move the delivery busy footers to the shared owner

The per-harness rendered busy footers lived in bin/fm-tmux-lib.sh under
FM_TMUX_* names, so cursor's `ctrl+c to stop` signature - and every other
harness's - was reachable only from tmux. That placement was wrong on its own
terms: herdr, zellij, cmux, and orca run the same harnesses and face the same
question these footers answer, which is whether a submitted Enter actually
landed. Nothing about the signature is tmux-specific.

Moved verbatim into bin/fm-composer-lib.sh, the shared composer/delivery owner
every backend already sources, and renamed to FM_DELIVERY_* so the names stop
claiming a scope they never had. All five adapters now reach cursor's signature;
verified per adapter rather than assumed.

The boundary the move must not blur is stated where it now lives: this is a
DELIVERY guard, never a worker-state source. Confirming a keystroke landed is a
different question from asking what a worker is doing, and bin/fm-busy-lib.sh
remains the semantic owner that forbids classifying a harness from rendered
text. Cursor still classifies only from its transcript fold, which is already
backend-agnostic because it folds a file rather than reading a pane - the same
verdict on all six backends.

The old FM_TMUX_* aliases are dropped rather than kept as dead shims: nothing
outside the moved block referenced them except fm-busy-lib.sh's grok fallback,
which now reads the new name. The documented operator override, FM_BUSY_REGEX,
is untouched.

Also removes a dead duplicate CURSOR_INVOKED_AS check in bin/fm-harness.sh,
unreachable behind the marker check above it.

* no-mistakes(review): Correct shared delivery guard ownership references

* no-mistakes(document): Document shared delivery guards and Cursor backend limits

* no-mistakes: apply CI fixes

* fix(composer): bound a bare composer's wrap region at a half-block rule

A live cursor crewmate on herdr classified its IDLE composer as `pending`, and
fm-send consequently exited 1 with "delivery unconfirmed" on a message that had
actually landed. The cause is not cursor-specific.

Herdr draws a composer's top and bottom rules with the half-block glyphs U+2584
and U+2580 rather than the box-drawing family. fm_composer_row_has_edge knew
only the box-drawing set, so no box was detected; the composer was found as a
BARE row, and its wrap region - which extends while rows are non-blank and carry
no structural edge - walked straight through the composer's own closing rule and
swallowed the model and path footer below it. That footer is real text, so the
region classified pending on a genuinely idle pane.

Teaching the shared edge detector the half-block glyphs bounds the region at the
closing rule. Measured on the captured bytes of a real herdr cursor pane: the
same capture that read `pending` now reads `empty`.

This is a shared shape-path change, so it is deliberately narrow - it adds
glyphs to the edge vocabulary and changes no verdict logic - and the whole
composer and backend suite is green, including the other harnesses' herdr
fixtures.

The regression pins the real captured shape and asserts the footer content is
genuinely present, so the case cannot pass vacuously if the region were ever
bounded for some unrelated reason.

* fix(herdr): confirm a cursor submit from the rendered-footer transition

Herdr's composer-shape fix made an idle cursor pane classify `empty`, but
`fm-send` still exited 1 with "delivery unconfirmed" on messages that had
actually landed. Live measurement found the second, independent cause.

Herdr reports a cursor pane `agent_status=blocked` in EVERY state - idle,
mid-turn, and after - so the submit path's idle-baseline native confirmation is
structurally unreachable for cursor and every send falls into the composer
branch. That branch reads cursor's mid-turn composer row, which renders its own
`Add a follow-up` placeholder beside a right-aligned `ctrl+c to stop`. That
token is composer content, so the verdict is `pending` on a composer holding no
user text at all, and the Enter-retry budget then reports pending.

The escape is the same semantic signal the native path uses, read from the
pane's verified busy footer instead of native agent-state, and it is the
rendered-footer twin of the tmux submit core's turn-started confirmation: an
idle-to-busy transition ACROSS our Enter proves the harness accepted the
submission. The baseline is taken before the first Enter and only when the
native baseline was not legibly idle, so the idle-baseline path still never
reads pane content and a pane already mid-turn before we typed keeps reporting
`pending` rather than borrowing another turn as proof of this delivery.

The composer verdict is deliberately NOT relaxed. A right-aligned status token
on the composer row stays content for every other caller, including the
away-mode pre-injection guard, and the shared cursorless submit core is left
untouched so zellij, cmux, and Orca keep the behavior their own follow-up owns.

Verified live on herdr 0.8.0 and cursor-agent 2026.08.11-e8db854 in an isolated
lab session: `fm-send` now exits 0 and the steer executes, interrupt cancels a
running turn, `/exit` stops the agent, and teardown clears the record. All seven
panes of the running default session classify identically before and after the
shape fix, so no other harness regressed.

* no-mistakes(review): Prevent working Herdr baselines from falsely confirming delivery

* no-mistakes(document): Correct Cursor harness and backend documentation

---------

Co-authored-by: ABHISHAKE KUMAR BOJJA <[email protected]>
Co-authored-by: Amplify Logic AI <[email protected]>
Co-authored-by: Ville Penttinen <[email protected]>
# Conflicts:
#	.agents/skills/afk/SKILL.md
#	.agents/skills/ahoy/SKILL.md
#	.agents/skills/harness-adapters/SKILL.md
#	.agents/skills/process-event-sources/SKILL.md
#	.agents/skills/stow/SKILL.md
#	.agents/skills/updatefirstmate/SKILL.md
#	.pi/extensions/fm-primary-pi-watch.ts
#	.pi/extensions/fm-primary-turnend-guard.ts
#	AGENTS.md
#	CONTRIBUTING.md
#	README.md
#	VISION.md
#	bin/backends/cmux.sh
#	bin/backends/herdr.sh
#	bin/backends/tmux.sh
#	bin/backends/zellij.sh
#	bin/fm-backend.sh
#	bin/fm-bootstrap.sh
#	bin/fm-brief.sh
#	bin/fm-busy-lib.sh
#	bin/fm-classify-lib.sh
#	bin/fm-claude-stop-autoarm.sh
#	bin/fm-composer-lib.sh
#	bin/fm-control-lib.sh
#	bin/fm-harness.sh
#	bin/fm-pending-reply-lib.sh
#	bin/fm-procevent-lib.sh
#	bin/fm-procevent-remote-reply.sh
#	bin/fm-procevent.sh
#	bin/fm-push-transition-lib.sh
#	bin/fm-remote-secondmate-control.sh
#	bin/fm-secondmate-parent-lib.sh
#	bin/fm-send.sh
#	bin/fm-session-start.sh
#	bin/fm-sessionstart-run.sh
#	bin/fm-spawn.sh
#	bin/fm-supervise-daemon.sh
#	bin/fm-teardown.sh
#	bin/fm-test-isolation-proof.sh
#	bin/fm-test-run.sh
#	bin/fm-timeout-lib.sh
#	bin/fm-tmux-lib.sh
#	bin/fm-update.sh
#	bin/fm-wake-drain.sh
#	bin/fm-wake-lib.sh
#	bin/fm-watch-arm.sh
#	bin/fm-watch.sh
#	bin/fm-x-poll.sh
#	docs/agent-control.md
#	docs/architecture.md
#	docs/cmux-backend.md
#	docs/configuration.md
#	docs/documentation-audiences.json
#	docs/herdr-backend.md
#	docs/orca-backend.md
#	docs/remote-secondmates.md
#	docs/scripts.md
#	docs/sessionstart-nudge.md
#	docs/supervision-protocols/claude.md
#	docs/supervision-protocols/codex.md
#	docs/supervision-protocols/grok.md
#	docs/supervision-protocols/pi.md
#	docs/tmux-backend.md
#	docs/trace-context.md
#	docs/turnend-guard.md
#	docs/verification/process-event-sources.md
#	docs/verification/runtime-backends.md
#	docs/verification/supervision.md
#	docs/watcher-continuity.md
#	docs/zellij-backend.md
#	skills/stow/SKILL.md
#	tests/fm-arm-pretool-check.test.sh
#	tests/fm-backend-cmux.test.sh
#	tests/fm-backend-herdr-launcher-workspace-e2e.test.sh
#	tests/fm-backend-herdr-presentation-e2e.test.sh
#	tests/fm-bootstrap.test.sh
#	tests/fm-busy-state.test.sh
#	tests/fm-composer-ghost.test.sh
#	tests/fm-composer-lib.test.sh
#	tests/fm-control-relaunch.test.sh
#	tests/fm-control.test.sh
#	tests/fm-daemon.test.sh
#	tests/fm-documentation-audiences.test.sh
#	tests/fm-harness-liveness-drift-live-e2e.test.sh
#	tests/fm-kimi-harness.test.sh
#	tests/fm-muse-harness.test.sh
#	tests/fm-procevent.test.sh
#	tests/fm-remote-job-orphan-reap.test.sh
#	tests/fm-remote-reply.test.sh
#	tests/fm-remote-secondmate-lifecycle-e2e.test.sh
#	tests/fm-remote-secondmate-trace-context.test.sh
#	tests/fm-secondmate-harness.test.sh
#	tests/fm-secondmate-lifecycle-e2e.test.sh
#	tests/fm-send-resolve-key.test.sh
#	tests/fm-session-start.test.sh
#	tests/fm-sessionstart-hook-live-e2e.test.sh
#	tests/fm-sessionstart-nudge.test.sh
#	tests/fm-spawn-dispatch-profile.test.sh
#	tests/fm-startup-memory-budget.test.sh
#	tests/fm-stow-cascade.test.sh
#	tests/fm-tmux-submit-busy.test.sh
#	tests/fm-wake-drain-open-decisions-cursor.test.sh
#	tests/fm-wake-drain-open-decisions.test.sh
#	tests/fm-watch-arm.test.sh
#	tests/fm-watch-triage.test.sh
#	tests/fm-watcher-lock.test.sh
#	tests/lib.sh
…e merge

The upstream integration merge left resolve_kimi_binary, resolve_muse_binary,
muse_worker_meta_api_key_present, and muse_credential_present each defined
twice with identical bodies, and two competing usage()/-h handling blocks.
Keep one copy of each.
…shell prompt

The wrap-extension loop in _fm_composer_select_cursorless (used by the
cursorless backends: herdr, zellij, cmux, orca) extended a bare agent-glyph
composer's region into any following non-blank, non-edge row, including a
freshly redrawn shell prompt. That misread a genuinely empty composer as
pending whenever the row after it happened to be a plain prompt line, unlike
the cursored sibling check (_fm_composer_wrap_region_ok) which already
excludes shell-prompt rows. Add the same exclusion, checking both a leading
shell glyph and a trailing one since a real PS1 usually places its glyph at
the end of the row (user@host:path$) rather than the start.

Also update fm-crew-memory-cap.test.sh's hardcoded expected launch string for
the new env -u CURSOR_AGENT -u CURSOR_INVOKED_AS prefix fm-spawn.sh now adds
to every non-Cursor harness launch.
@Bre77 Bre77 added the fm Opened by a Firstmate crewmate label Aug 13, 2026
…poser, fix the live smoke test's box fixture

_fm_composer_select_cursorless's post-selection boundary check treated any
non-blank, non-edge row directly below a bordered composer as ambiguous
trailing content and rejected the whole box match, including a plain shell
prompt line - the normal terminal state once a command finishes. Apply the
same shell-prompt exemption used in the bare-composer wrap-extension loop
above it (both a leading and trailing glyph, and a glyph immediately
followed by a space for a command typed on the same row as the prompt).

tests/fm-backend-herdr-composer-live-smoke.test.sh's bordered-ghost-
placeholder fixture only ever drew a lone `│ text │` row with no
top/bottom border, which the shared classifier's box detector correctly does
not recognize as a box at all (no real agent draws an unbordered composer
row). Redrew it as a complete box, and gave the placeholder text real dim
(SGR 2) ANSI styling to match how a real agent renders one, since the
classifier only trusts an idle-regex match as ghost/placeholder text under
styled=1 (which herdr's ANSI capture always reports) when de-emphasis proves
it - the same rule the file's own dim-ghost assertions already exercise.

Both bugs were introduced by the upstream composer-lib consolidation this
merge adopted; confirmed absent on a clean pre-merge fork/main checkout and
reproduced identically in this fork's own CI (Behavior tests (Herdr), herdr
0.7.5) before this fix.
@Bre77
Bre77 merged commit 3da618c into main Aug 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fm Opened by a Firstmate crewmate

Projects

None yet

Development

Successfully merging this pull request may close these issues.