Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
9aabe3b
feat(bin): defer the wedge escalation for a lane parked at a supervis…
aminry Sep 20, 2026
1b1b3cd
fix(bin): reclaim a task whose herdr endpoint was destroyed (#5007)
RooseveltAdvisors Sep 20, 2026
a09090d
feat(bin): stamp status events with their emission time (#3764)
tiago-peixoto Sep 20, 2026
c443d8c
fix(bin): unify Lavish host and disconnect handling (#5060)
kunchenguid Sep 20, 2026
dee119b
feat: act on captain's away words during AFK supervision (#5076)
kunchenguid Sep 20, 2026
804394e
fix(bin): render the remote charter's steering-inbox path host-local …
kesslerio Sep 21, 2026
bd65e4a
feat: route Lavish feedback directly to owning workers (#5099)
kunchenguid Sep 21, 2026
b8ab735
fix(bin): fit pull observation within the contribution poll budget (#…
sdivanl Sep 21, 2026
631bc26
feat(bin): add idempotent inbox capture, replies, receipts, and readi…
cliflacata-svg Sep 21, 2026
d08e327
fix(bin): stop harness footer rows below a composer from reading as p…
puntkoen Sep 21, 2026
fcbaa73
feat(bin): append optional home-local include to briefs (#5115)
guanchengh-lgtm Sep 21, 2026
43bf6d3
fix(bin): report a branch with no validation run as absent instead of…
Authentis Sep 21, 2026
dbc0bc4
fix(bin): require a non-draft pull request before a PR-based done rep…
mremond Sep 21, 2026
259a669
fix: support quota-axi schema 6 snapshots (#4904)
pedromuller-del Sep 21, 2026
aec043c
test: fix Claude session-start drain live E2E (#5165)
kunchenguid Sep 21, 2026
8c1cdb7
ci: pin the no-mistakes required check to v1.80.1 (#5195)
kunchenguid Sep 21, 2026
3fcbc6c
fix(bin): retain Pi watcher predecessor to stop false down alarms (#5…
sdivanl Sep 22, 2026
da9607d
fix(bin): allow cleanup of windowless legacy task records (#5236)
kunchenguid Sep 22, 2026
f9f74a1
ci: exempt kunchenguid from the no-mistakes required check (#5256)
kunchenguid Sep 22, 2026
6f0f139
fix(bin): surface launches parked on an interactive prompt as not-sta…
sdivanl Sep 22, 2026
f5735dc
fix: record away posture immediately on /afk (#5260)
kunchenguid Sep 22, 2026
c5131a3
fix(bin): recognize passed-with-override as a passing outcome (#5294)
mremond Sep 22, 2026
ada21f5
fix: clean up workers after their pull requests land (#5317)
kunchenguid Sep 22, 2026
d92cea0
fix: surface green no-mistakes PRs awaiting merge (#5327)
kunchenguid Sep 22, 2026
884d76b
fix: derive Lavish polling route from board session (#5334)
kunchenguid Sep 22, 2026
dd9f2b4
fix(bin): stop secondmate relaunch failing when watcher scratch files…
tiago-peixoto Sep 22, 2026
39f4c2a
fix(bin): stop each keyed answer from re-waking this home (#4907)
tiago-peixoto Sep 22, 2026
706254d
fix: deliver failed public follow-ups with updated AXI floors (#5350)
kunchenguid Sep 23, 2026
a8a2959
fix(bin): refuse ship done: when the named head exists only in the wo…
tiago-peixoto Sep 23, 2026
82dec2e
fix(bin): ring a proven-idle secondmate before raising a wake-loop st…
tiago-peixoto Sep 23, 2026
a5d78f8
test(watch-arm): size re-arm waits off the real loaded recovery cost …
tiago-peixoto Sep 23, 2026
52fca51
fix: stop watchers reliably during blocked polls (#5362)
kunchenguid Sep 23, 2026
c576c2b
fix: submit stuck inbox doorbells instead of skipping them (#5374)
kunchenguid Sep 23, 2026
f2ab14a
feat: add opt-in fleet activity ledger (#5375)
kunchenguid Sep 23, 2026
e7cb23e
fix: validate public follow-up deliverables and wake on rejection (#5…
kunchenguid Sep 23, 2026
697d94d
feat: add Devin CLI crewmate and scout adapter (#5380)
kunchenguid Sep 23, 2026
7c8f9ee
fix(bin): recognize passed-with-skips as a passing outcome (#5322)
mremond Sep 23, 2026
2efa581
fix(bin): refuse unavailable backend adapters before sourcing (#5382)
Lakescape Sep 23, 2026
77e5af9
test: repair base-red liveness, export-DOM, and wake-queue self-tests…
blackxwhite88 Sep 23, 2026
fef37b9
fix: keep watcher status classification bounded to new log spans (#5383)
kunchenguid Sep 23, 2026
f0da72c
test: close pr-check watcher test gaps (original flake already fixed …
kunchenguid Sep 23, 2026
c00d5e1
feat: record fleet status immediately and emit PR-ready events (#5385)
kunchenguid Sep 23, 2026
1e0e773
test: synchronize foreign queue stall checks with watcher progress (#…
kunchenguid Sep 23, 2026
8c47279
test: isolate the bearings render fixture from the shared Lavish stor…
kunchenguid Sep 23, 2026
7e0e60a
fix(bin): prune a torn-down task's wake rows at teardown (#5390)
blackxwhite88 Sep 23, 2026
9296f9b
test: align portable test expectations with resolved host paths and f…
sandeepsalwan1 Sep 23, 2026
5df1294
test: make sibling secondmate stall tests wait for watcher observatio…
kunchenguid Sep 23, 2026
1d3ac67
fix(bin): refuse a Herdr Claude submit that would send only a message…
tiago-peixoto Sep 23, 2026
fdd3687
feat(bin): publish and watch Gerrit changes on forge-bound projects (…
slnkjthien Sep 23, 2026
0afc6b4
feat(bin): opt-in per-home Claude and Pi worker account pin (#5358)
tiago-peixoto Sep 23, 2026
5bbb978
fix(bin): keep Herdr lab session selection before passthrough argumen…
yasuhito Sep 23, 2026
ac2ed3b
fix: enforce supervision guards across harnesses (#5471)
kunchenguid Sep 23, 2026
67130f1
feat(bin): make the ship-branch prefix configurable per project (#2648)
wesleymatosdev Sep 24, 2026
795e4b5
feat(bin): send dispatch router only the brief's task sections and ad…
zachlandes Sep 24, 2026
9284978
feat: add opt-in Claude away supervision host (#5488)
kunchenguid Sep 24, 2026
d4f3b78
docs: correct the Grok harness reference on folder trust, training op…
Courtneyezra Sep 24, 2026
5842d42
fix(bin): bound the startup-network worker's lock waits by its budget…
karotkriss Sep 24, 2026
e1d6cf9
fix(bin): make the ps-fallback watcher identity immune to terminal wi…
karotkriss Sep 24, 2026
474c6ee
fix(bin): ignore fenced and indented Captain lines when extracting au…
karotkriss Sep 24, 2026
0d983d2
fix(bin): forbid administering the shared worktree pool in crewmate b…
karotkriss Sep 24, 2026
977a81e
fix(bin): refuse tasks-axi add/create --start so In flight always has…
karotkriss Sep 24, 2026
e1b7f4f
feat: extend opt-in away supervision to non-Pi primaries (#5503)
kunchenguid Sep 24, 2026
d1ce6b6
fix: auto-relaunch dead secondmates during supervision (#5496)
kunchenguid Sep 24, 2026
31c47af
fix(bin): start a successor when the Claude Stop-hook arm's attached …
karotkriss Sep 24, 2026
b42d4fa
fix(bin): report a Lavish source armed only after its listener is run…
tiago-peixoto Sep 24, 2026
52e679b
fix(bin): stop repeating unknown-wake escalations that were already d…
tiago-peixoto Sep 25, 2026
c6e816f
fix(bin): keep a stated default-key retraction from cancelling a keyl…
tiago-peixoto Sep 25, 2026
a8572f6
fix(bin): terminate a remote job worker that lost ownership on TERM (…
tiago-peixoto Sep 25, 2026
4be8a40
docs: make configuration settings easier to find and understand (#5589)
tmchow Sep 25, 2026
b52d401
fix: limit project memory edits to factual corrections (#5636)
kunchenguid Sep 25, 2026
ca8c293
feat: permit gate lifecycle calls against disposable lab homes (#5635)
kunchenguid Sep 25, 2026
b575497
fix(bin): evict a watcher whose beacon stalls past a hard bound inste…
karotkriss Sep 25, 2026
5cec4e2
fix(pi): hide queued Firstmate inputs under Calm only when the sessio…
tiago-peixoto Sep 25, 2026
756f64e
fix(bin): refuse teardown when a required source disappears (#5548)
tiago-peixoto Sep 25, 2026
4e99de7
docs: make supervision-host easier to read (#5605)
tmchow Sep 25, 2026
660fa4a
docs: make the Herdr backend guide easier to read (#5606)
tmchow Sep 25, 2026
5323582
docs: make pi-supervision-branch easier to read (#5607)
tmchow Sep 25, 2026
d18a220
docs: make watcher-continuity easier to read (#5608)
tmchow Sep 25, 2026
70e41a8
docs: make sessionstart-nudge easier to read (#5609)
tmchow Sep 25, 2026
7c501a1
docs: make captain-hold-lifecycle easier to read (#5610)
tmchow Sep 25, 2026
c60f0ab
docs: make remote-secondmates easier to read (#5612)
tmchow Sep 25, 2026
683b3eb
fix(bin): bound the away digest and log why a delivery failed (#5554)
Sophylax Sep 25, 2026
dbe124d
test: add a gated harness seam and stabilize lifecycle fixtures (#5638)
kunchenguid Sep 25, 2026
1a814e4
fix(bin): refuse watchers from disposable checkouts and exit when the…
karotkriss Sep 25, 2026
84362f6
fix(bin): surface unrecognized status prefixes instead of reading the…
tiago-peixoto Sep 25, 2026
e97390a
fix(bin): report the failing item when remote inheritance fails (#5658)
karotkriss Sep 25, 2026
c643b57
fix(bin): stand down the Claude Stop auto-arm on pi-code-delivered pa…
karotkriss Sep 25, 2026
d1abcd6
fix(bin): match whole multi-word project names in the registry lookup…
karotkriss Sep 25, 2026
b805823
fix(bin): classify shell stdin payloads after -s operands (#5546)
coreldh Sep 25, 2026
83a4bbd
fix(bin): strip AI co-author trailers from fleet-launched commits (#5…
tiago-peixoto Sep 25, 2026
67f6c27
fix(bin): treat Pi's dollar-first cost footer as furniture (#5683)
tiago-peixoto Sep 25, 2026
8d2ee29
fix(bin): refuse merges with unreported required checks (#5534)
mremond Sep 25, 2026
0154324
fix: keep persistent secondmates out of landed-work cleanup (#5696)
kunchenguid Sep 25, 2026
f54aa00
fix: reject invalid X reply and follow-up arguments before posting (#…
kunchenguid Sep 25, 2026
3c14a54
fix: pause broken supervision-host sessions between engine probes (#5…
kunchenguid Sep 25, 2026
97365aa
fix(bin): absorb routine secondmate working and paused status appends…
karotkriss Sep 25, 2026
c4c9d63
fix(bin): use gh-axi for the ship DoD draft check (#5519)
karotkriss Sep 25, 2026
f1ea9ed
fix(bin): bind inactive-outcome receipt identity to structured fields…
karotkriss Sep 25, 2026
4299683
feat: record the Claude and Cursor dialog for the supervision host (#…
kunchenguid Sep 25, 2026
c33b3f6
fix(bin): retire check-row receipts on branch acknowledgement so away…
kunchenguid Sep 26, 2026
1fe1a67
fix(bin): deliver Claude-bound operational input as a record-backed d…
kunchenguid Sep 26, 2026
ef595d8
test: isolate lint fixture from tracked suite (#5727)
kunchenguid Sep 26, 2026
e789e52
fix(bin): republish parent metadata after a remote secondmate relaunc…
tiago-peixoto Sep 26, 2026
9a4cfbb
fix(bin): give slow watcher suites headroom under the changed-suite b…
karotkriss Sep 26, 2026
df4ae5d
fix(bin): stop nested steal-lock recursion and mid-steal watcher TERM…
kunchenguid Sep 26, 2026
873c923
test: make supervision-host park-boundary tests deterministic (#5710)
kunchenguid Sep 26, 2026
ea7c7f7
fix: stage remote home clones before publication (#5733)
kunchenguid Sep 26, 2026
920a7d9
fix: preserve Herdr status on Pi relaunch (#5161)
sdivanl Sep 26, 2026
65c53fb
Seed the relaunch-ordering PR poll fixture without fm-pr-check.sh (#5…
kunchenguid Sep 26, 2026
9b52cf5
feat: add attended supervision for Claude and Cursor hosts (#5748)
kunchenguid Sep 26, 2026
72b63ee
fix(bin): dedup directed source expansions in fm-pending-reply-lib (#…
kunchenguid Sep 26, 2026
d1a332c
fix(bin): avoid bash 5.2 sibling $() in recovery mint and delivery lo…
Lakescape Sep 26, 2026
3948170
fix(bin): name the recovery for a declined Claude imports dialog and …
karotkriss Sep 26, 2026
062d7a8
fix(bin): report the newest status event in the voice status reader (…
karotkriss Sep 26, 2026
e9a6675
fix(bin): gate a self-announcing tool's update-available report on a …
karotkriss Sep 26, 2026
cf20836
fix(bin): pass the dispatch profile effort to OpenCode workers throug…
karotkriss Sep 26, 2026
9d56cf6
fix: stop cancelled validation runs from reporting false failures (#5…
mremond Sep 26, 2026
bb69be6
fix: require declared waits for workers awaiting their own work (#5812)
mremond Sep 26, 2026
503ba82
fix: bound ShellCheck to one canonical root per process (#5770)
kunchenguid Sep 26, 2026
5700baa
fix: bound watcher cleanup wait on the downtime-marker lock (#5732)
kunchenguid Sep 26, 2026
62d643c
test: stop the remote secondmate e2e watcher before temp-root cleanup…
aminry Sep 26, 2026
30ef650
fix(bin): stop reporting untouched shared-captain copies as drift (#4…
tiago-peixoto Sep 26, 2026
f62a7d9
docs: restructure calm.md for readability (#5604)
tmchow Sep 27, 2026
3b68997
docs: restructure turnend-guard.md for readability (#5611)
tmchow Sep 27, 2026
49a218b
docs: move situational AGENTS.md sections into on-demand skills (#5872)
kunchenguid Sep 27, 2026
5a9880b
fix: route second-mate signal wakes by presented status span (#5879)
kunchenguid Sep 27, 2026
fd88ea0
fix(bin): take the source lock before the lifecycle lock in register-…
FocalFactotum Sep 27, 2026
b4561ad
fix: chain repository hooks under git -c overrides (#5877)
FocalFactotum Sep 27, 2026
fba81cb
fix(bin): withhold never-send values from dispatch resolver requests …
zachlandes Sep 27, 2026
6839202
feat(jev): add the guard framework contract and the memory RSS/swap t…
RooseveltAdvisors Sep 27, 2026
d051e6f
fix: prevent contribution poll starvation on slow GitHub reads (#5900)
0x7067 Sep 27, 2026
bff6454
feat(bin): add config/keep-ai-trailers opt-out to keep AI co-author t…
kiatng Sep 27, 2026
050a446
fix(bin): capture the full viewport for Herdr composer reads so a sla…
andrewesweet Sep 27, 2026
8a18fe2
fix(bin): isolate per-task endpoint reads in bounded children with a …
andrewesweet Sep 27, 2026
f93f0d3
fix: keep lab tmux sockets private and short under deep worktrees (#5…
kunchenguid Sep 27, 2026
ade7133
fix: silence routine no-change supervision outcomes (#5808)
jcpoyser Sep 27, 2026
8c5493a
feat: make /quiet a statement when attended supervision is ready (#5928)
kunchenguid Sep 27, 2026
c19c240
fix: grant Claude workers access to Firstmate task channels (#5884)
kunchenguid Sep 27, 2026
90e88d7
fix(bin): prevent idle recovery loops without stranding wakes (#4819)
jokim1 Sep 27, 2026
3d14792
fix: reduce remote worker and polling helper process churn (#5889)
kunchenguid Sep 27, 2026
022250d
fix: keep remote reply listeners and watcher cycles running (#5941)
kunchenguid Sep 27, 2026
3c2a91d
fix: make attended cutover outcome re-presentation check-first (#5925)
kunchenguid Sep 28, 2026
1b82b77
fix: restore primary rewakes after attended main-only closes (#5961)
kunchenguid Sep 28, 2026
9096504
Clarify live Claude login for opted-in tests (#5975)
kunchenguid Sep 28, 2026
fa48367
fix(bin): ensure resumed worker launches enter their recorded worktre…
mehulbhagwani Sep 28, 2026
6b0f5a0
fix(bin): retire task-keyed watcher markers and orphan journals at te…
karotkriss Sep 28, 2026
29213a0
test: guard the live harness gate against Claude Code's auto-updater …
karotkriss Sep 28, 2026
d5c2507
fix(bin): ring the worker inbox doorbell only for a newly written pro…
karotkriss Sep 28, 2026
b3dbc67
fix: prevent manual Claude Stop hook calls from arming supervision (#…
kunchenguid Sep 28, 2026
a256cb5
feat(firstmate-calm): show supervision notes in Claude Code (#6039)
kunchenguid Sep 28, 2026
4e158e6
fix: stop quiet mode from holding requested actions for return (#6033)
kunchenguid Sep 28, 2026
d9a89b2
Say ahoy impact order is the first mate's pick. (#6065)
kunchenguid Sep 28, 2026
eb219c8
fix(bin): accept a task's next PR after its bound PR merges in fm-pr-…
karotkriss Sep 28, 2026
2d833ff
fix: treat quiet records as attended across supervision (#6064)
kunchenguid Sep 29, 2026
00679ae
fix: report supervision host latches accurately in away return briefs…
kunchenguid Sep 29, 2026
40e981d
fix: shorten Claude Code Calm supervision note label (#6086)
kunchenguid Sep 29, 2026
b5fdf74
feat(bin): add a disposable live supervision lab builder (#6037)
kunchenguid Sep 29, 2026
46d58d6
fix: keep watcher arms and reply listeners alive through slow cycles …
kunchenguid Sep 29, 2026
c5f48e4
fix(bin): retry fm-pr-merge a bounded number of times when GitHub mer…
karotkriss Sep 29, 2026
260c4f0
fix(bin): converge every open owner onto a known terminal contributio…
karotkriss Sep 29, 2026
0a2cdf9
feat: enable supervision host by default for Claude primaries (#6124)
kunchenguid Sep 29, 2026
5bddfc4
fix(bin): create the state dir on a fresh primary before the session-…
karotkriss Sep 29, 2026
1f2c954
fix(bin): measure pending-reply grace from turn completion, not deliv…
karotkriss Sep 29, 2026
a774c44
fix(bin): stop provider-table lookup from writing broken-pipe errors …
tiago-peixoto Sep 29, 2026
e2668de
fix: restore portable CI behavior across Pi rendering and remote prov…
kunchenguid Sep 30, 2026
b3d4133
fix: confirm Lavish board replies before worker handoff (#6169)
kunchenguid Sep 30, 2026
12e90e1
fix: inherit supervision host opt-out across secondmates (#6154)
kunchenguid Sep 30, 2026
c35b9a6
fix: reduce supervision exit latency and stabilize host tests (#6179)
kunchenguid Sep 30, 2026
eb77f02
ci: rebalance portable test groups and enforce a packing budget (#6192)
kunchenguid Sep 30, 2026
bd74468
fix(bin): run no repository hook when core.hooksPath is empty (#6216)
karotkriss Sep 30, 2026
65c75b0
fix(bin): let a stale record on a reassigned slot retire records-only…
karotkriss Sep 30, 2026
23e5584
fix(bin): keep the steering doorbell short under deep homes (#6240)
karotkriss Sep 30, 2026
51581a1
Merge upstream kunchenguid/firstmate main into fork main
keenvc Sep 30, 2026
947d898
no-mistakes(test): test(git-strip): probe git before the broken-hooks…
keenvc Sep 30, 2026
b9ebe4c
no-mistakes(document): correct portable serial lane coverage claims f…
keenvc Oct 1, 2026
950ab0f
no-mistakes(review): incorporate fork main PR #16 CI and E2E fixes
keenvc Oct 2, 2026
fa01609
no-mistakes(document): Correct stale quota, composer-shape, and teard…
keenvc Oct 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
22 changes: 15 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: Lint ${{ matrix.partition }}
runs-on: ubuntu-latest
# Normal tier (see the timeout policy above).
timeout-minutes: 30
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
name: Behavior portable parallel 1
runs-on: ubuntu-latest
# Normal tier (see the timeout policy above).
timeout-minutes: 30
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -112,10 +112,13 @@ jobs:
set -eu
npm install -g tasks-axi
tasks-axi --version
# Pinned for the same reason as the serial-shard install below: Pi 1.0.0
# moved the interactive TUI onto the alternate screen and breaks the live
# extension E2Es. Unpin once those E2Es are ported to the 1.0.0 renderer.
- name: Install the Pi package for the Pi extension tests
run: |
set -eu
npm install -g @earendil-works/pi-coding-agent
npm install -g @earendil-works/pi-coding-agent@0.99.2
npm ls -g --depth 0 @earendil-works/pi-coding-agent
- name: Run portable parallel shard 1
run: |
Expand All @@ -136,7 +139,7 @@ jobs:
name: Behavior portable parallel 2
runs-on: ubuntu-latest
# Normal tier (see the timeout policy above).
timeout-minutes: 30
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -180,7 +183,7 @@ jobs:
name: Behavior portable serial ${{ matrix.shard }}
runs-on: ubuntu-latest
# Normal tier (see the timeout policy above).
timeout-minutes: 30
timeout-minutes: 60
strategy:
# Every shard reports so one failure never hides another shard's result.
fail-fast: false
Expand Down Expand Up @@ -216,10 +219,15 @@ jobs:
# The Pi extension tests read the installed Pi package's own types and
# runtime, so without it they gate-skip and pass silently. It is a public
# npm package and needs no credential, so CI can hold the real thing.
# The version is pinned like the other tool installs above: Pi 1.0.0
# moved the interactive TUI onto the alternate screen, which drops the
# earliest restored-transcript rows out of every pane capture and fails
# the live calm/extension E2Es (serial 6, runs 36929988626, 36938007991,
# 36945567914). Unpin once those E2Es are ported to the 1.0.0 renderer.
- name: Install the Pi package for the Pi extension tests
run: |
set -eu
npm install -g @earendil-works/pi-coding-agent
npm install -g @earendil-works/pi-coding-agent@0.99.2
npm ls -g --depth 0 @earendil-works/pi-coding-agent
- name: Run portable serial shard ${{ matrix.shard }}
env:
Expand Down Expand Up @@ -413,7 +421,7 @@ jobs:
name: Stock macOS Bash snapshot compatibility
runs-on: macos-latest
# Normal tier (see the timeout policy above).
timeout-minutes: 30
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
- name: Run snapshot consumers with stock Bash
Expand Down
7 changes: 4 additions & 3 deletions bin/fm-brief.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,10 @@ INBOX_DIR=$(shell_quote "$STATE/$ID.inbox")

# The receive-and-ack half of the steering-inbox contract, included in every
# scaffold kind. The record format, doorbell line, and re-ring ladder are
# owned by bin/fm-task-inbox-lib.sh; the doorbell itself is self-describing,
# so this section is reinforcement for the natural-checkpoint habit, not the
# only carrier of the instruction.
# owned by bin/fm-task-inbox-lib.sh. The doorbell names the inbox as
# "$FM_TASK_INBOX", which bin/fm-spawn.sh exports into every launch; the full
# path here remains the fallback for a worker launched without that export,
# plus the natural-checkpoint habit.
IFS= read -r -d '' INBOX_SECTION <<EOF || true
# Firstmate instruction inbox
Firstmate steers you through durable message files in $INBOX_DIR.
Expand Down
16 changes: 12 additions & 4 deletions bin/fm-git-strip-ai-trailers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
# because git -c core.hooksPath=<this dir> (or a child process that
# inherits it) carries the override there, and a lookup that honored it
# would find this directory again and never run the repository's own
# hook - a skipped pre-push guard. A lookup that fails exits nonzero
# rather than skipping the repository's hook. Does not touch the
# hook - a skipped pre-push guard. An empty core.hooksPath means no
# repository hook, as in plain git; any other failed lookup exits
# nonzero rather than skipping the repository's hook. Does not touch the
# project's git config; the caller prefixes the pane with
# GIT_CONFIG_COUNT / GIT_CONFIG_KEY_0 / GIT_CONFIG_VALUE_0.
#
Expand Down Expand Up @@ -153,14 +154,21 @@ write_executable() {
# is the other environment channel that can carry this directory as
# core.hooksPath; only the repository's config files name its own hooks. Skip
# when the lookup still names this launch's own hooks dir, meaning those files
# point here, so the wrapper cannot recurse into itself.
# point here, so the wrapper cannot recurse into itself. An empty
# core.hooksPath makes that lookup fail, but plain git reads it as "no hooks",
# so the wrapper runs none; any other failure reruns the lookup to show git's
# error and refuses.
runtime_chain_body() {
local ours=$1
cat <<EOF
unset GIT_CONFIG_COUNT GIT_CONFIG_KEY_0 GIT_CONFIG_VALUE_0
ours=$(quote_for_hook "$ours")
name=\${0##*/}
orig=\$(unset GIT_CONFIG_PARAMETERS; git rev-parse --path-format=absolute --git-path hooks) || {
orig=\$(unset GIT_CONFIG_PARAMETERS; git rev-parse --path-format=absolute --git-path hooks 2>/dev/null) || {
if hooks_path=\$(unset GIT_CONFIG_PARAMETERS; git config --get --type=path core.hooksPath 2>/dev/null) && [ -z "\$hooks_path" ]; then
exit 0
fi
(unset GIT_CONFIG_PARAMETERS; git rev-parse --path-format=absolute --git-path hooks >/dev/null)
echo "fm-git-strip-ai-trailers: cannot resolve this repository's hooks directory; refusing to skip its \$name hook" >&2
exit 1
}
Expand Down
10 changes: 9 additions & 1 deletion bin/fm-spawn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@
# pins to 1 with a literal assignment so it survives the cleared environment
# even on a host that never had it set.
# An enabled task trace also retains TRACEPARENT. Explicit Firstmate launch
# assignments still apply inside the filtered environment. Raw commands must
# assignments still apply inside the filtered environment, including the
# FM_TASK_INBOX export every launch carries (the absolute state/<id>.inbox
# path the steering doorbell names). Raw commands must
# be POSIX sh compatible under this opt-in; the absent-file path is unchanged.
# This is an exec environment boundary, not a sandbox for the pane's startup
# shell, credential files, same-user processes, or later shell initialization.
Expand Down Expand Up @@ -5773,6 +5775,12 @@ fi
if [ "$LAVISH_AXI_HOST_CONFIG_PRESENT" = 1 ]; then
LAUNCH="export LAVISH_AXI_HOST=$(shell_quote "$LAVISH_AXI_HOST"); $LAUNCH"
fi
# Every launch also exports the absolute path of this task's steering inbox, so
# the constant doorbell line (bin/fm-task-inbox-lib.sh) can name
# "$FM_TASK_INBOX" instead of a path that grows with the home's depth. Like the
# kill switch below it is an export statement, so it survives a compound raw
# launch and the launch-env-allowlist `env -i` wrapper.
LAUNCH="export FM_TASK_INBOX=$(shell_quote "$STATE_REAL/$ID.inbox"); $LAUNCH"
LAUNCH="export COMPACT_ADVISER_DISABLE=1; $LAUNCH"
# When the live-harness gate has exported DISABLE_AUTOUPDATER into this spawn's
# own environment, carry it into the launch command text so Claude Code's
Expand Down
34 changes: 21 additions & 13 deletions bin/fm-task-inbox-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# crash or marker failure may produce a rare duplicate rather than silently lose
# a wake.
#
# Inbox paths containing bytes outside printable ASCII are unsupported. The
# Inbox names containing bytes outside printable ASCII are unsupported. The
# doorbell refuses them rather than sending terminal control bytes to a pane.
#
# fm_task_inbox_ring requires bin/fm-backend.sh's dispatch (sourced below); the
Expand Down Expand Up @@ -252,22 +252,30 @@ fm_task_inbox_body() { # <record-path>
}

# The constant self-describing doorbell line for the inbox containing a record.
# Self-describing on purpose: a worker whose brief predates the inbox contract
# still receives the complete instruction in the line itself. The leading `: `
# is the POSIX shell no-op, so the same line typed into a pane whose agent has
# exited (a bare shell) runs nothing; see the dead-pane note in the header.
# A non-printable path fails without output so terminal controls never reach
# the pane's line discipline.
# It names the inbox by the literal "$FM_TASK_INBOX", which bin/fm-spawn.sh
# exports into every launch as the inbox's absolute path, so the worker can
# resolve it from its own environment even after losing its brief context.
# The short `<task>.inbox` name follows as the fallback for a worker launched
# before that export, whose brief carries the full path (bin/fm-dod-lib.sh
# role contract, bin/fm-brief.sh inbox section). No absolute path is printed,
# so the line's length never grows with the home's depth: a long line wraps
# past what a harness composer read can prove, and a Herdr submit then reports
# it did not reach the pane on every re-ring. The leading `: ` is the POSIX
# shell no-op, so the same line typed into a pane whose agent has exited (a
# bare shell) runs nothing; see the dead-pane note in the header. A
# non-printable inbox name fails without output so terminal controls never
# reach the pane's line discipline.
fm_task_inbox_doorbell_line() { # <record-path>
local dir=${1%/*} abs quoted LC_ALL=C
local dir=${1%/*} abs name quoted LC_ALL=C
abs=$(cd "$dir" 2>/dev/null && pwd) || abs=$dir
abs=${abs%/handled}
case "$abs" in
*[![:print:]]*) return 1 ;;
name=${abs##*/}
case "$name" in
''|*[![:print:]]*) return 1 ;;
esac
quoted=$(printf '%s' "$abs" | sed "s/'/'\\\\''/g")
printf ": Firstmate instruction waiting: list '%s'/*.msg and, in numeric order, read and act on each, then mv each handled file to '%s'/handled/." \
"$quoted" "$quoted"
quoted=$(printf '%s' "$name" | sed "s/'/'\\\\''/g")
printf ": Firstmate instruction waiting: list \"\$FM_TASK_INBOX\"/*.msg in your '%s' steering inbox, read and act on each in numeric order, then mv each into its handled/." \
"$quoted"
}

# Ring the doorbell, best-effort: one endpoint-liveness pre-check, one advisory
Expand Down
6 changes: 6 additions & 0 deletions bin/fm-teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2383,6 +2383,12 @@ require_exclusive_worktree_slot_record() {
local record_meta=$1 record_id=$2 record_state=$3 worktree=$4
local slot state_dir other other_id field other_path other_slot
slot=$(canonical_existing_dir "$worktree") || return 0
# A slot whose owner claim names another task was reassigned, so this record's
# teardown is records-only and touches nothing under it; another record naming
# the slot is then no hazard, and refusing would strand this stale record and
# block the claimant's own teardown behind it.
fm_treehouse_slot_owner_state "$slot" "$record_id"
[ "$FM_TREEHOUSE_SLOT_OWNER" != other ] || return 0
collect_local_firstmate_states "$record_state" || return 1
for state_dir in "${TREEHOUSE_OWNER_STATES[@]}"; do
for other in "$state_dir"/*.meta; do
Expand Down
Loading