Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
4a12844
feat(backends): add experimental cmux runtime backend (#246)
kunchenguid Jul 4, 2026
3fb5334
feat(agents): add firstmate coding guidelines skill (#248)
kunchenguid Jul 4, 2026
1b68a69
fix: add turn-end supervision guard (#249)
kunchenguid Jul 4, 2026
bc468e1
feat(backends): auto-detect cmux runtime (#250)
kunchenguid Jul 4, 2026
74a6973
fix(afk): support herdr away-mode injection (#251)
kunchenguid Jul 4, 2026
2db0a5d
docs(agents): move X-mode procedures out of AGENTS (#253)
kunchenguid Jul 4, 2026
207e776
docs: trim duplicated harness guidance (#255)
kunchenguid Jul 4, 2026
2c16f97
fix: anchor turn-end Stop hook to project root (#256)
kunchenguid Jul 4, 2026
56ee51b
docs: trim firstmate agent guidance duplication (#258)
kunchenguid Jul 4, 2026
aaf7de2
feat(backends): improve cmux detection and socket-mode guidance (#259)
kunchenguid Jul 4, 2026
dc37d58
fix(backends): scope zellij tabs by firstmate home (#252)
kunchenguid Jul 4, 2026
65bb62e
fix: sync project clones after merged PR wakes (#293)
kunchenguid Jul 6, 2026
23f2e9c
fix: canonicalize spawn worktree path checks (#294)
kunchenguid Jul 6, 2026
e04902d
docs: add Orca operator skill (#276)
Jul 6, 2026
295c13d
fix: surface green PRs during CI monitoring (#297)
kunchenguid Jul 6, 2026
678f2b5
fix(teardown): recover provably stale git index locks (#296)
kunchenguid Jul 6, 2026
138a9d0
feat(bin): encode project AGENTS.md authoring bar with canonical self…
kunchenguid Jul 7, 2026
463cb51
feat(skills): add captain-invocable bearings status-report skill (#300)
Ballestar Jul 7, 2026
49ffe5d
fix(watcher): make PID identity locale-invariant (#285)
pchuri Jul 7, 2026
0a7cb88
docs: document codex app backend contract (#222)
Jul 7, 2026
a790a20
docs: add Codex Desktop coordination skill (#275)
Jul 7, 2026
f5e89b9
fix(afk): stop herdr escalation redelivery loop (#317)
kunchenguid Jul 7, 2026
01dca33
fix(backends): confirm Herdr submits with native agent state (#323)
kunchenguid Jul 7, 2026
7a42707
feat: add quota-balanced crew dispatch selection (#327)
kunchenguid Jul 8, 2026
121b902
fix(session-start): respawn dead secondmate agents conservatively
kunchenguid Jul 8, 2026
28a3b0e
fix: emit stable secondmate nudge selectors (#331)
kunchenguid Jul 8, 2026
c9e5ba3
feat: require bootstrap detection for AXI tools (#332)
kunchenguid Jul 8, 2026
2061c37
bearings: delete today's report before recreating (#333)
kunchenguid Jul 8, 2026
228963d
feat: guard primary turn ends across harnesses (#339)
kunchenguid Jul 8, 2026
a894c3a
fix: resolve backend selectors by exact task id first (#342)
kunchenguid Jul 8, 2026
091384b
fix: scale bootstrap fleet-sync timeout (#341)
kunchenguid Jul 8, 2026
0f9b7cc
feat: add fleet snapshot and view commands (#343)
kunchenguid Jul 8, 2026
d8a2ff1
fix(fm-send): fail loudly on unresolvable send targets (#254)
mielyemitchell Jul 8, 2026
95dd1a0
fix: deliver AFK escalations through herdr supervisors (#353)
kunchenguid Jul 8, 2026
090483e
feat: add harness-aware supervision (#367)
kunchenguid Jul 8, 2026
4790bc5
fix: split X-mode replies by platform (#369)
kunchenguid Jul 8, 2026
af5361e
fix: make stow memory writes inspect before update (#372)
kunchenguid Jul 9, 2026
7302a95
fix(watcher): wait when arm attaches to a healthy watcher (#375)
kunchenguid Jul 9, 2026
1b5a9f5
feat(pi): simplify primary session launch (#386)
kunchenguid Jul 9, 2026
766f772
feat(supervision): prevent unsafe watcher-arm commands (#387)
kunchenguid Jul 9, 2026
80ecc8d
fix(pi): restore primary watcher supervision lifecycle (#397)
kunchenguid Jul 10, 2026
7525a37
fix: keep persistent secondmates out of the main backlog (#398)
kunchenguid Jul 10, 2026
600075e
fix(backlog-handoff): move full item blocks including indented bodies…
kunchenguid Jul 10, 2026
4bc0824
feat(herdr): make Herdr lab lifecycle safety deterministic for briefs…
kunchenguid Jul 10, 2026
22b1d71
fix(watcher): classify arm-command seatbelt by execution position (#403)
kunchenguid Jul 10, 2026
96244f4
fix: reconcile existing AGENTS.md safely (#405)
kunchenguid Jul 10, 2026
08453f9
feat: support project-less secondmate homes (#409)
kunchenguid Jul 10, 2026
31afb8c
fix: delegate backlog handoffs to tasks-axi (#411)
kunchenguid Jul 10, 2026
171207c
fix: ignore secondmate home marker during sync (#417)
kunchenguid Jul 10, 2026
a955a05
fix(composer): prevent dead-shell message injection (#416)
kunchenguid Jul 10, 2026
7788fa3
feat(watcher): add paused external-wait supervision (#421)
kunchenguid Jul 10, 2026
5f808cc
fix: preserve X-mode follow-up platform limits (#425)
kunchenguid Jul 10, 2026
0eaf293
fix(composer): handle ANSI ghost text safely (#429)
kunchenguid Jul 10, 2026
6d90240
fix(spawn): make tmux window handling robust under non-default config…
Deeds67 Jul 10, 2026
3e3dff6
test: isolate session-start suite from ambient harness markers (#432)
kunchenguid Jul 10, 2026
38086ea
fix(teardown): retry transient index locks during worktree return (#435)
kunchenguid Jul 10, 2026
492c937
fix: complete brief help and consolidate documentation (#438)
kunchenguid Jul 10, 2026
bc558c6
fix: detect Git and centralize backend configuration (#445)
kunchenguid Jul 10, 2026
52241a5
feat(daemon): add backend-independent wedge alerts (#444)
kunchenguid Jul 10, 2026
8cd90fe
docs: centralize firstmate operating contracts (#447)
kunchenguid Jul 11, 2026
3f549c1
fix(cmux): close last workspace during teardown (#449)
kunchenguid Jul 11, 2026
0daf674
fix: recover orphaned packed-refs locks during fleet sync (#453)
kunchenguid Jul 11, 2026
1fb1e30
feat(herdr): escalate blocked panes immediately (#472)
kunchenguid Jul 11, 2026
ad39e49
docs(readme): reposition firstmate as an agent distro (#473)
kunchenguid Jul 11, 2026
a6508b7
feat: add deterministic bounded bearings snapshots (#475)
kunchenguid Jul 11, 2026
78f9cce
fix: enforce deterministic ShellCheck parity (#481)
kunchenguid Jul 11, 2026
88e38ea
feat: guard primary shells from persistent cd commands (#483)
kunchenguid Jul 12, 2026
cb6e8ed
brief: add no-mistakes shared-daemon rule to ship and scout scaffolds…
mielyemitchell Jul 12, 2026
9ecd7c4
feat: make bearings concise and accurate (#485)
kunchenguid Jul 12, 2026
ad9f3a7
fix: harden away-mode daemon lifecycle (#490)
kunchenguid Jul 12, 2026
6556882
fix: prevent no-mistakes gate agents from driving the fleet (#518)
kunchenguid Jul 13, 2026
2364817
fix: guard secondmate primary sessions from blind turn ends (#505)
kunchenguid Jul 13, 2026
547acd7
fix: make bootstrap diagnostics backend-aware (#519)
kunchenguid Jul 13, 2026
b708731
fix: preserve follow-up platform context after inbox cleanup (#520)
kunchenguid Jul 13, 2026
85b7a29
fix: preserve secondmate routing markers in terminal sends (#533)
kunchenguid Jul 13, 2026
8c0d9eb
fix: align Grok effort handling with 0.2.99 (#527)
korallis Jul 13, 2026
8934c17
fix: derive bearings from authoritative secondmate state (#555)
kunchenguid Jul 14, 2026
eb9ee2f
fix: restore fleet snapshots on stock macOS Bash (#578)
kunchenguid Jul 14, 2026
1811b89
fix(afk): make Pi escalation and return catch-up reliable (#587)
kunchenguid Jul 15, 2026
f8c5941
feat: support Pi max reasoning profiles (#537)
korallis Jul 15, 2026
e063ca5
chore: no-mistakes(document): Clarify yolo response ownership (#595)
kunchenguid Jul 15, 2026
fcb9e8a
feat: establish instruction ownership foundation (#619)
kunchenguid Jul 15, 2026
71db4be
fix: compress Firstmate contract and enforce delivery rigor ownership…
kunchenguid Jul 16, 2026
cd218f2
feat: add durable captain decision holds (#593)
kunchenguid Jul 16, 2026
064aa67
fix(bin): harden PR check artifacts (#556)
kunchenguid Jul 16, 2026
815f7af
fix(bin): compact session-start backlog digest (#636)
kunchenguid Jul 16, 2026
2406354
fix: dedupe stale watcher guard banners (#637)
kunchenguid Jul 16, 2026
c115561
fix(bin): balance bearings landed baseline (#640)
kunchenguid Jul 16, 2026
a5d3652
fix: clarify captain-facing translation contract (#644)
kunchenguid Jul 16, 2026
1346ff7
fix(bin): make bootstrap output and nudges deterministic (#646)
kunchenguid Jul 16, 2026
508a6b7
docs(secondmate-provisioning): clarify concise registry ownership (#649)
kunchenguid Jul 16, 2026
024b96b
fix(bin): strip quoted blocked_by values during decision hold resolve…
kunchenguid Jul 17, 2026
e6f240c
feat(secondmate): inherit shared captain preferences (#656)
kunchenguid Jul 17, 2026
c27135c
feat: gate local agent secret injection (#658)
kunchenguid Jul 17, 2026
85643ee
test: isolate Herdr autodetect smoke sessions (#662)
kunchenguid Jul 17, 2026
5bf59ba
docs: adopt under way for active work (#666)
kunchenguid Jul 17, 2026
6de9278
Revert "feat: gate local agent secret injection (#658)" (#668)
kunchenguid Jul 17, 2026
46e4201
fix(pi): distinguish stale locks when arming watcher (#681)
kunchenguid Jul 17, 2026
1182883
fix: accept secondmate house vocabulary (#685)
kunchenguid Jul 18, 2026
d939c49
fix(bin): parse handoff homes after registry parentheticals (#686)
kunchenguid Jul 18, 2026
3ebb219
feat: add native session-start nudges (#687)
kunchenguid Jul 18, 2026
6bdeb3a
docs: call built-in defaults the firstmate repo, not template (#688)
kunchenguid Jul 18, 2026
bc1a21b
fix(bin): repair fm-brief.sh parse error and harden set -u array expa…
Ballestar Jul 18, 2026
3729081
fix(bin): keep watcher supervision continuous across child cycles (#693)
kunchenguid Jul 19, 2026
b2bf95f
fix: fetch current PR head for review diffs (#722)
kunchenguid Jul 19, 2026
7a9b4dd
docs: resolve five contract contradictions across AGENTS.md, README, …
ICGNU3 Jul 19, 2026
15b0fb9
docs(harness): correct Grok exit guidance (#742)
kunchenguid Jul 19, 2026
ab8cea6
fix(watcher): bound stale wakes for parked crew (#743)
kunchenguid Jul 19, 2026
68c6110
fix(supervision): distinguish ordinary wakes from recovery (#744)
kunchenguid Jul 20, 2026
c12bdea
fix(x-mode): dedupe pending mention wakes (#745)
kunchenguid Jul 20, 2026
4ab61fa
feat(wake): enrich drained signals with bounded status context (#747)
kunchenguid Jul 20, 2026
628292d
feat(herdr): add optional presentation spaces (#784)
kunchenguid Jul 21, 2026
c49f823
fix(send): treat opencode busy-queued composer state as submitted (#775)
KostadinP Jul 21, 2026
3f9e70e
fix(spawn): require two stable reads before accepting worktree path (…
Freudator86 Jul 21, 2026
a26b37c
fix(bin): make watcher process identity immune to Linux wall-clock ch…
vvizlan Jul 21, 2026
ea3ac2e
fix: prevent AFK idle stalls and stale run attribution (#758)
jjames27th-eng Jul 21, 2026
916c8e2
fix(bin): allow safe teardown during watcher recovery (#750)
nithingm Jul 21, 2026
f9a89c3
feat(herdr): order presentation spaces while preserving focus (#790)
kunchenguid Jul 21, 2026
b4316be
fix(bin): send literal config reread nudges after pushes (#809)
kunchenguid Jul 21, 2026
59ece45
feat(watch): follow GitLab merge requests to merge (#797)
karotkriss Jul 21, 2026
c58cb0f
fix(herdr): group projected children beneath owning parents (#821)
kunchenguid Jul 22, 2026
b843c66
fix: keep local no-mistakes tests intent-targeted (#823)
kunchenguid Jul 22, 2026
f02eef1
feat: add canonical timed test runner (#825)
kunchenguid Jul 22, 2026
f61e65c
fix: surface main inventory gaps in Bearings (#830)
kunchenguid Jul 22, 2026
622d467
feat: add bounded concurrent test isolation proof (#832)
kunchenguid Jul 22, 2026
14c0d5f
feat: guard against missed secondmate reports (#834)
kunchenguid Jul 22, 2026
f6c281a
feat: require pinned real-Herdr CI coverage (#838)
kunchenguid Jul 22, 2026
673b6ad
feat: shard portable tests and add bounded local parallelism (#841)
kunchenguid Jul 22, 2026
50cc24a
fix: block primary-session delegation outside the fleet (#854)
ItsFlow Jul 22, 2026
f5bdea3
fix: install tasks-axi in portable CI shards (#866)
kunchenguid Jul 22, 2026
5140413
feat(bin): make dispatch profiles quota aware (#867)
kunchenguid Jul 22, 2026
593e3a2
Add built-in ahoy recap skill (#873)
kunchenguid Jul 22, 2026
5549834
fix: preserve trustworthy Bearings data in partial snapshots (#875)
kunchenguid Jul 22, 2026
4497181
feat(pi): add session-local calm mode (#884)
kunchenguid Jul 23, 2026
82a7943
fix(pi): prevent redundant watcher re-arms (#885)
kunchenguid Jul 23, 2026
6db3b09
fix(pi): clean up Calm transcript rendering (#895)
kunchenguid Jul 23, 2026
bd43c73
fix: execute every PR body compliance event (#898)
kunchenguid Jul 23, 2026
6bcb381
fix: exclude operational injections from ahoy boundaries (#899)
kunchenguid Jul 23, 2026
68ed7ed
fix: canonically classify operational inputs across harnesses (#909)
kunchenguid Jul 23, 2026
a7e01bc
fix: avoid generic secondmate start acknowledgements (#926)
kunchenguid Jul 23, 2026
ca4be1c
fix(pi): make calm mode persistent and gapless (#927)
kunchenguid Jul 23, 2026
b24e72c
fix(watch): retire merged PR polls after durable notification (#932)
kunchenguid Jul 23, 2026
792174d
fix: refine scout intake and parallel dispatch (#934)
kunchenguid Jul 23, 2026
65ad47b
fix(pi): prevent duplicate assistant replies in Calm (#936)
kunchenguid Jul 23, 2026
d89a1b6
perf(bin): shrink the ShellCheck source graph (#939)
kunchenguid Jul 23, 2026
6b0d21d
fix(pi): remove Calm hidden-block gaps (#942)
kunchenguid Jul 23, 2026
ec09871
fix: enforce contract boundaries for ask-user findings (#945)
kunchenguid Jul 24, 2026
587f591
docs: prefer direct operational paths (#946)
kunchenguid Jul 24, 2026
1c4d210
fix(pi): hide operational user rows in Calm mode (#948)
kunchenguid Jul 24, 2026
f017572
fix: relaunch missing second mates at session start (#950)
kunchenguid Jul 24, 2026
3eca8ff
fix(herdr): reclaim resumed task projections after restart (#967)
kunchenguid Jul 24, 2026
cb3aa7b
Teach Ahoy to surface open decisions (#968)
kunchenguid Jul 24, 2026
10ee779
Require shipshape routine acknowledgement (#969)
kunchenguid Jul 24, 2026
861b1f8
docs: separate current guidance from verification evidence (#994)
kunchenguid Jul 24, 2026
418ab78
fix: preserve Claude watcher continuity across Stop hooks (#997)
kunchenguid Jul 24, 2026
2b7cd66
fix(herdr): clean stale projections at session start (#996)
kunchenguid Jul 24, 2026
b05eb24
fix: recover Claude supervision without watcher-status gate (#1001)
kunchenguid Jul 24, 2026
5c89d36
fix: make quota-aware profile selection agent-owned (#1018)
kunchenguid Jul 25, 2026
3f71cdd
fix(bin): remove vestigial dispatch selector (#1026)
kunchenguid Jul 25, 2026
34213e6
docs(agents): drop superseded interim quota-window rule (#1039)
kunchenguid Jul 25, 2026
aca3ad1
fix(tmux): scope busy detection and recognize current Claude turns (#…
kunchenguid Jul 26, 2026
c64ad1c
feat: add verified Kimi crewmate adapter (#1047)
kunchenguid Jul 26, 2026
39b450b
fix: harden Kimi submission and spinner matching (#1058)
kunchenguid Jul 26, 2026
4d6992a
feat(bin): add guarded Kimi turn-end wake (#1059)
kunchenguid Jul 26, 2026
a5fe1bc
fix(tmux): classify bordered composers across all rows (#1066)
kunchenguid Jul 26, 2026
b29621b
feat(bin): add verified pi-signed runtime adapter (#1145)
kunchenguid Jul 27, 2026
9ea1a1a
fix(pi): rearm watcher across session transitions (#1166)
kunchenguid Jul 28, 2026
fa0d85d
feat: route crew dispatch using quota-window pace (#1172)
kunchenguid Jul 28, 2026
fbece9c
fix: adapt Grok Stop continuation and harden endpoint cleanup (#1171)
kunchenguid Jul 28, 2026
514f0ab
fix: restore stock macOS Bash 3.2 brief scaffolding (#1093)
karotkriss Jul 28, 2026
2459f77
test: stabilize tmux teardown conformance baseline (#1209)
kunchenguid Jul 28, 2026
b6e351d
docs: slim quota-array-dispatch to the pace selection core (#1197)
kunchenguid Jul 28, 2026
e5bd082
feat(bin): inherit backend config into secondmate homes (#1219)
kunchenguid Jul 28, 2026
c0c0881
fix(pi): remove Calm's upper version ceiling (#1226)
kunchenguid Jul 29, 2026
7cbb3f6
fix(bin): allow session-local todo tools in the subagent guard (#1204)
danielkuykendall23-boop Jul 29, 2026
a117b41
fix(session-lock): resolve Claude bg-spare ancestry to the outermost …
trillium Jul 29, 2026
a323c2b
fix: conferma l'avvio del watcher su Windows/MSYS (#1212)
Unknownzed Jul 29, 2026
41ffd45
fix(spawn): forward CLAUDE_CONFIG_DIR to claude crewmates (#1195)
lucashalbert Jul 29, 2026
99533c5
fix: preserve dispatch identity across authentication checks (#1233)
kunchenguid Jul 29, 2026
6ec5e08
fix(bin): normalize relative durable paths (#1256)
sparkus Jul 29, 2026
c21bf54
refactor(skills): make Bearings chat-only by default (#1136)
deeto15 Jul 29, 2026
96e027e
Clarify follow-up routing during validation (#1277)
kunchenguid Jul 30, 2026
a24eac1
fix: honor concrete approval for project operations (#1272)
kunchenguid Jul 30, 2026
0bbb27b
fix(skills): route new project intake through secondmate scopes (#1275)
kunchenguid Jul 30, 2026
daf6dce
fix: scope validation corrections by accepted behavior (#1281)
kunchenguid Jul 30, 2026
a2d5f26
test: replace source assertions with behavioral coverage (#1282)
kunchenguid Jul 30, 2026
56a7ac6
fix(watch): escalate busy workers with no completed turn (#1286)
kunchenguid Jul 30, 2026
e595611
fix(gitignore): ignore config/ as a directory, not by exact filename …
karotkriss Jul 30, 2026
a53ffc1
fix(tests): replace source-content .gitignore assertion with behavior…
kunchenguid Jul 30, 2026
79e62b8
feat: bound and consolidate startup memory during stow (#1303)
kunchenguid Jul 30, 2026
f0d7cbe
fix(herdr): place workers in the launching workspace (#1328)
kunchenguid Jul 30, 2026
3a112a1
fix(calm): refine Calm working boat animation (#1339)
kunchenguid Jul 31, 2026
28b02d2
fix(dispatch): preflight candidate auth before quota escalation (#1349)
kunchenguid Jul 31, 2026
5fca47f
feat(x-mode): reconcile promised public replies deterministically (#1…
kunchenguid Jul 31, 2026
96542a4
feat(bin): replace busy heuristics with semantic lifecycle state (#1327)
kunchenguid Jul 31, 2026
621299a
fix: preserve Calm boat continuity across working periods (#1356)
kunchenguid Jul 31, 2026
f7d0d0a
fix: restore evidence-based dispatch eligibility (#1358)
kunchenguid Jul 31, 2026
3772964
docs: define captain instruction precedence (#1362)
kunchenguid Jul 31, 2026
9fdef64
docs: define validation supersession sequence (#1407)
kunchenguid Jul 31, 2026
000c1db
fix: bind backend overrides to exact-task authority (#1413)
kunchenguid Jul 31, 2026
66b0f77
fix(herdr): prevent focus flashes during projected workspace cleanup …
kunchenguid Jul 31, 2026
a805766
fix: prioritize completion runway in quota-aware dispatch (#1431)
kunchenguid Jul 31, 2026
68641a3
fix(bin): preserve full task contract in no-mistakes intent (#1447)
kunchenguid Aug 1, 2026
1e24757
fix(bin): parse punctuated secondmate registry entries safely (#1452)
kunchenguid Aug 1, 2026
f485d1f
merge: integrate upstream firstmate advances
DereKk8 Aug 1, 2026
d680351
reconcile: preserve slim tiered agent instructions
DereKk8 Aug 1, 2026
da0f006
fix(tmux): remove duplicated backend helpers
DereKk8 Aug 1, 2026
f1896bf
docs: reconcile agent contracts with upstream
DereKk8 Aug 1, 2026
a4520c4
reconcile: retain fork dispatch contracts
DereKk8 Aug 1, 2026
b620955
docs: correct upstream sync report history
DereKk8 Aug 1, 2026
48cd603
chore: keep sync report captain-private
DereKk8 Aug 1, 2026
c1caf37
fix: restore sync branch safety guards
DereKk8 Aug 1, 2026
f195640
fix: tolerate unavailable PR base metadata
DereKk8 Aug 1, 2026
f72a6a0
fix: restore upstream sync safety implementations
DereKk8 Aug 1, 2026
c50ce1e
test: restore upstream sync CI fixtures
DereKk8 Aug 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .agents/skills/afk/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,23 @@ The daemon constructs every current injection as the `away-supervisor` kind owne
The bare `FM_INJECT_MARK` form remains accepted for legacy daemon escalations during rollout.
U+2063 has no normal keyboard keystroke and survives terminal transport as UTF-8 text.
This is how firstmate tells a daemon escalation apart from a real message in the same pane.
The operational prefix travels with the message text; it does not rely on harness-level typed-vs-injected detection, which is not portable across claude, codex, opencode, pi, and grok.
The operational prefix travels with the message text; it does not rely on harness-level typed-vs-injected detection, which is not portable across claude, codex, opencode, pi, pi-signed, grok, and kimi.

## Busy-guard and composer guard

The daemon never injects into an in-use pane. Two checks run before every
injection, dispatched through `bin/fm-backend.sh` for the supervisor's own
backend (tmux or herdr; see "Auto-discovered supervisor pane" below):

- **`pane_is_busy`** - the harness shows a busy footer (agent mid-turn) on tmux (shared with `fm-send.sh` via `bin/fm-tmux-lib.sh`); on herdr, tries the native `agent.get`-backed busy state first, trusts only `busy` outright, and corroborates every non-`busy` verdict with the same regex-over-capture reader.
- **Primary-pane busy guard** - `pane_is_busy` trusts Herdr native `busy` when available, otherwise matches rendered output against only the detected primary harness's signature.
This narrow delivery guard never classifies a recorded worker task and never uses a global union of vendor patterns.
- **Composer-state guard** - `inject_msg` reads the full `empty`/`pending`/`unknown` verdict from `fm_backend_composer_state` and injects only when it is affirmatively `empty`.
`pending` means real unsubmitted text, while `unknown` includes an unreadable pane and a bare shell prompt left after the agent exits, so both defer.
The shared `bin/fm-composer-lib.sh` owns the content decision after each backend captures and structurally identifies its own composer row.
It preserves idle bordered composers such as claude's `│ > … │` and bare agent glyphs as empty, but a bare shell glyph is unknown unless inside a genuine bordered composer box; see `docs/herdr-backend.md` "Composer and injection safety" for the complete contract.
`pane_input_pending` remains the tested predicate for callers that only need to know whether real unsubmitted text is present, but it is insufficient for an injection-safety decision because it cannot distinguish `empty` from `unknown`.

Either condition, or any composer verdict other than `empty`, defers the injection; the buffered escalation survives in `state/.subsuper-escalations` and is retried on the next housekeeping tick.
A busy primary pane, or any composer verdict other than `empty`, defers the injection; the buffered escalation survives in `state/.subsuper-escalations` and is retried on the next housekeeping tick.
In afk mode the composer guard is belt-and-suspenders (no human is typing), but it protects against the race window between the captain returning and their message landing, a dead shell, and the daemon's own previous injection sitting unsent.

**Max-defer escape (the daemon must never silently wedge).**
Expand Down Expand Up @@ -181,14 +182,14 @@ the operational prefix lets firstmate distinguish it from a real captain message
- **Single-line digest** - embedded newlines are collapsed to a literal
separator before injection, so submission is unambiguous regardless of
harness.
- **Composer guard on the supervisor pane** - before injecting, the daemon checks `pane_is_busy` (harness busy footer means agent mid-turn) and reads `fm_backend_composer_state` directly.
- **Busy and composer guards on the supervisor pane** - before injecting, the daemon runs the detected-primary-harness rendered busy guard and reads `fm_backend_composer_state` directly.
Only `empty` permits injection; `pending` protects half-typed or swallowed input, and `unknown` protects unreadable panes and bare dead-shell prompts.
Every other result preserves the buffer for retry, so the daemon never merges its digest into the captain's half-typed line or types it into a shell.
- The shared composer classifier receives a candidate row only after the active backend performs its own capture and structural row recognition.
tmux and herdr route their raw styled candidate rows through the shared `fm_composer_strip_ghost` extractor, which removes dim/faint and dark-TRUECOLOR ghost/placeholder text before classification.
They read the composer shape from a separately ANSI-stripped plain row because a dark TRUECOLOR border can be stripped with ghost content.
A ghost-only or idle bordered composer such as claude's `│ > ... │` therefore reads empty without allowing an unbordered shell prompt to do the same.
`FM_COMPOSER_IDLE_RE` still overrides tmux empty-composer matching after shared ghost and border stripping, and `FM_BUSY_REGEX` overrides busy footers.
`FM_COMPOSER_IDLE_RE` still overrides tmux empty-composer matching after shared ghost and border stripping, and `FM_BUSY_REGEX` overrides the rendered delivery guards plus Grok's isolated task-state fallback.
- **Max-defer escape** - the daemon must never silently wedge. If anything stays
buffered past `FM_MAX_DEFER_SECS` (default 300s), the daemon attempts one
normal flush, which still requires an idle pane and an affirmatively empty composer. If that
Expand Down
4 changes: 3 additions & 1 deletion .agents/skills/ask-user-authority/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ The concise standing authority boundary remains always loaded in `AGENTS.md` sec
With `yolo` off, every ask-user finding belongs to the captain, and the remaining steps structure that escalation rather than authorize an autonomous answer.
2. Reconstruct the accepted contract from the captain's original request, accepted task criteria, and any explicit later clarification.
Reviewer language cannot amend that contract.
3. Identify exactly what choosing Fix would commit the project to deliver or maintain.
3. Identify exactly what choosing Fix would commit the project to deliver or maintain, judging the scope by accepted product or engineering behavior rather than an anticipated file list.
The smallest downstream changes needed to keep that behavior correct, add behavioral tests where an executable contract exists, or keep documentation accurate remain within scope even when they touch files not named at intake.
Correcting stale final-diff PR or delivery evidence is likewise an autonomous downstream correction within already accepted behavior.
4. Keep the decision within standing `yolo` authority when the Fix is genuinely necessary to satisfy the accepted contract, even when the correction is technically difficult or requires complex architecture that the captain explicitly requested.
5. Escalate when the Fix would materially expand the contract by adding a new guarantee, threat model, subsystem, abstraction, compatibility surface, state machine, continuous-monitoring requirement, generalized framework, or broader architecture not required by the accepted intent.
6. Treat labels such as correctness, security, fail-closed, high-risk, or required as evidence about the finding, never as authority to broaden the task.
Expand Down
Loading
Loading