Skip to content

fix(bin): let a stale record on a reassigned slot retire records-only - #6213

Merged
kunchenguid merged 2 commits into
kunchenguid:mainfrom
karotkriss:fm/fm-up-6184-records-only-teardown
Sep 30, 2026
Merged

kunchenguid merged 2 commits into
kunchenguid:mainfrom
karotkriss:fm/fm-up-6184-records-only-teardown

Conversation

@karotkriss

Copy link
Copy Markdown
Contributor

Intent

Fixes #6184

When a task's recorded worktree slot has been handed to another task, bin/fm-teardown.sh <stale-task> correctly chooses a records-only retirement (ALLOC_RECORDS_ONLY=1), but then still runs require_exclusive_task_worktree_slot, which refuses because the slot's current owner also names that path.
The stale record can then never be retired, with or without --force, and it blocks teardown of the task that legitimately holds the slot.
A records-only retirement touches no worktree, so when the slot's positive owner claim names a different live task the exclusivity check should allow it, while every full teardown that acts on the worktree keeps the check.

What Changed

  • bin/fm-teardown.sh: require_exclusive_worktree_slot_record now checks the slot's owner claim before the cross-home record scan. When the claim names a different task, the check returns early. The teardown is records-only in that case, so a stale record on a reassigned slot can retire even while the claimant's own record names the same path, and it no longer blocks the claimant's teardown. Slots this task still claims, or slots with no claim, still get the full exclusivity scan. The header comments now describe the exception.
  • tests/fm-teardown-endpoint-safety.test.sh: adds test_stale_record_on_claimed_slot_retires_then_claimant_tears_down. It covers a pool slot where both records survive. Tearing down the stale task leaves the slot, its sentinel and the claimant's record untouched. Tearing down the claimant afterwards removes its record and its slot claim, then returns the pool slot.
  • docs/architecture.md: updates the slot-ownership paragraph. A claim naming another task releases nothing, even when that task also has a contradictory record.

Fixes #6184

Risk Assessment

✅ Low: The change is a small guard that skips the record-exclusivity scan only when the slot's claim names another task, and that is the same determination that already makes every slot-touching step records-only. Both reads of the claim happen under the held Treehouse project lock, and the new test reproduces the stranding and then the claimant's teardown end to end.

Testing

I ran the real bin/fm-teardown.sh against disposable marked lab homes. Each lab had a real treehouse pool slot leased under TREEHOUSE_ROOT, a live worker process in the slot, a claim file written by the product's own lib, and a private tmux server with task windows. On base eb77f02 the stale record could never be retired: teardown refused with and without --force, and it also blocked the teardown of the task that holds the slot. On the target commit the stale record retires records-only and leaves the slot, its worker, its claim and the other task's files untouched. The slot-holding task then tears down normally and treehouse shows the slot available again. The guard cases all still refuse with nothing changed: the slot-holding task tearing down while the stale record exists, no claim, a claim naming the task itself, and an unreadable claim. Without --force, the stale teardown gets past the exclusivity check and stops only at the scout captain-call gate, which this change does not touch. The focused test file tests/fm-teardown-endpoint-safety.test.sh passes, including the new regression test, but that is a fixture test with a stubbed treehouse and is not counted as a live result. All labs and temp copies were removed, and the worktree is clean.

  • Live validation: ✅ go - 6 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Bug repro on base: tearing down a stale task whose pool slot was claimed by another task that still has a record refuses even with --force and blocks the other task's teardown ✅ pass live s0-base-repro-stale-record-stranded.txt: all three teardowns exit=1 'REFUSED ... also task live-task's recorded worktree', and state is unchanged
Stale task teardown (--force) on a slot claimed by another task retires only its records and leaves the slot, its worker, its claim and the other task's files untouched ✅ pass live s1-target-stale-retires-then-claimant.txt: exit=0, 'pool slot ... left to task live-task', stale-task.meta and its window removed, live-task.meta/claim/claimant-file/worker/lease intact
After the stale record retires, the slot-holding task's full teardown succeeds and returns the slot to the pool ✅ pass live s1-target-stale-retires-then-claimant.txt: live-task exit=0, 'Worktree returned to pool', claim removed, treehouse status shows the slot available
Guard: the slot-holding task's full teardown while the stale record still names its slot is still refused with nothing changed ✅ pass live s2-target-guards.txt case B: exit=1 REFUSED, records, claim, worker and lease unchanged
Guard: when two records name a slot and the claim is absent, names the task itself, or can't be read, the full teardown is still refused ✅ pass live s2-target-guards.txt cases C, D, E: each exit=1 REFUSED with no mutation
Stale task teardown without --force is no longer blocked by the exclusivity check ✅ pass live s3-target-no-force.txt: reassignment warning printed, then it stops only at the unrelated scout captain-call gate (on base the same setup refuses at the exclusivity check)
Focused regression suite passes, including the new test for a stale record next to the slot-holding task's record ⏸️ untested no The prior payload recorded this as an automated fixture test with a stubbed treehouse, not a run against the live product, so it did not establish a live result. The live scenarios above cover the sam…
Evidence: Base eb77f02 repro: stale record refused with and without --force, and it also blocks the slot-holding task's teardown

Source: Base eb77f02 repro: stale record refused with and without --force, and it also blocks the slot-holding task's teardown

slot=/tmp/fm-lab.knNxm7/pool/.treehouse/demo-7307fd/1/demo
=== BEFORE (base commit eb77f02) ===
--- state/: live-task.meta stale-task.meta 
--- claim: task=live-task home=/tmp/fm-lab.knNxm7 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.knNxm7/pool/.treehouse/demo-7307fd/1/demo  (held by fm-lab)
                       sleep (3698954)

=== $ fm-teardown.sh stale-task 
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.knNxm7
REFUSED: task stale-task's recorded worktree /tmp/fm-lab.knNxm7/pool/.treehouse/demo-7307fd/1/demo is also task live-task's recorded worktree.
Returning that pool slot would kill live-task's processes and reset its copy, so nothing was changed - not even with --force.
Reconcile whichever record is wrong (bin/fm-crew-state.sh stale-task; bin/fm-crew-state.sh live-task), then re-run teardown.
exit=1

=== $ fm-teardown.sh stale-task --force
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.knNxm7
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
REFUSED: task stale-task's recorded worktree /tmp/fm-lab.knNxm7/pool/.treehouse/demo-7307fd/1/demo is also task live-task's recorded worktree.
Returning that pool slot would kill live-task's processes and reset its copy, so nothing was changed - not even with --force.
Reconcile whichever record is wrong (bin/fm-crew-state.sh stale-task; bin/fm-crew-state.sh live-task), then re-run teardown.
exit=1

=== $ fm-teardown.sh live-task --force   (claimant blocked behind stale record)
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.knNxm7
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
REFUSED: task live-task's recorded worktree /tmp/fm-lab.knNxm7/pool/.treehouse/demo-7307fd/1/demo is also task stale-task's recorded worktree.
Returning that pool slot would kill stale-task's processes and reset its copy, so nothing was changed - not even with --force.
Reconcile whichever record is wrong (bin/fm-crew-state.sh live-task; bin/fm-crew-state.sh stale-task), then re-run teardown.
exit=1

=== AFTER ===
--- state/: live-task.meta stale-task.meta 
--- claim: task=live-task home=/tmp/fm-lab.knNxm7 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.knNxm7/pool/.treehouse/demo-7307fd/1/demo  (held by fm-lab)
                       sleep (3698954)
Evidence: Target 65c3e01: stale record retires records-only, then the slot-holding task tears down and the slot returns to the pool

Source: Target 65c3e01: stale record retires records-only, then the slot-holding task tears down and the slot returns to the pool

slot=/tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/demo
=== BEFORE (target commit 65c3e01) ===
--- state/: live-task.meta stale-task.meta 
--- claim: task=live-task home=/tmp/fm-lab.MlDIkA 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    A new version of treehouse is available: v2.3.0 → v3.1.0
    Run "treehouse update" to update
    
    1     leased       /tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/demo  (held by fm-lab)
                       sleep (3672747)

=== $ fm-teardown.sh stale-task --force
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.MlDIkA
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  2 task(s) in flight, but no watcher has a fresh beacon (last beat: never, grace 300s).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  watcher supervision needs Stop-owned automatic recovery; inspect the hook registration and startup status before ending the turn.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
warning: task stale-task's recorded worktree /tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/demo was reassigned to task live-task (home /tmp/fm-lab.MlDIkA), which claimed that pool slot after this record was written; that slot is no longer stale-task's, so its processes, copy, and claim are left untouched and only stale-task's own cleanup runs.
teardown stale-task complete (window firstmate:fm-stale-task; pool slot /tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/demo left to task live-task (home /tmp/fm-lab.MlDIkA), which it was reassigned to)
Backlog: stale-task just finished (this home keeps no markdown backlog at /tmp/fm-lab.MlDIkA/data/backlog.md). Update /tmp/fm-lab.MlDIkA/data/backlog.md - move stale-task to Done, keep Done to the 10 most recent, then re-scan Queued and dispatch only work whose blockers are gone and date is due.
exit=0

=== AFTER stale-task teardown ===
--- state/: live-task.meta 
--- claim: task=live-task home=/tmp/fm-lab.MlDIkA 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task 
--- treehouse status:
    A new version of treehouse is available: v2.3.0 → v3.1.0
    Run "treehouse update" to update
    
    1     leased       /tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/demo  (held by fm-lab)
                       sleep (3672747)

=== $ fm-teardown.sh live-task --force   (claimant, full teardown)
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.MlDIkA
WARNING: watcher still down (same stale episode; last beat: never, grace 300s) - full banner already printed this episode.
A new version of treehouse is available: v2.3.0 → v3.1.0
Run "treehouse update" to update

🌳 Worktree returned to pool.
teardown live-task complete (window firstmate:fm-live-task, worktree /tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/demo)
Backlog: live-task just finished (this home keeps no markdown backlog at /tmp/fm-lab.MlDIkA/data/backlog.md). Update /tmp/fm-lab.MlDIkA/data/backlog.md - move live-task to Done, keep Done to the 10 most recent, then re-scan Queued and dispatch only work whose blockers are gone and date is due.
exit=0

=== AFTER live-task teardown ===
--- state/: 
/tmp/fm6184-setup.sh: line 26: /tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/.fm-slot-owner: No such file or directory
--- claim: <none>
--- slot checkout: claimant-file.txt GONE
--- worker in slot alive: no
--- tmux windows: 
--- treehouse status:
    A new version of treehouse is available: v2.3.0 → v3.1.0
    Run "treehouse update" to update
    
    1     available    /tmp/fm-lab.MlDIkA/pool/.treehouse/demo-987306/1/demo
lab removed: yes
Evidence: Target guard cases: exclusivity check still refuses for full teardowns (slot-holder first, no claim, own claim, unreadable claim)

Source: Target guard cases: exclusivity check still refuses for full teardowns (slot-holder first, no claim, own claim, unreadable claim)

################ A. stale record, claim names live-task, NO --force (records-only still allowed)
claim: task=live-task home=/tmp/fm-lab.u9xy3z 
$ fm-teardown.sh stale-task 
warning: task stale-task's recorded worktree /tmp/fm-lab.u9xy3z/pool/.treehouse/demo-248bdd/1/demo was reassigned to task live-task (home /tmp/fm-lab.u9xy3z), which claimed that pool slot after this record was written; that slot is no longer stale-task's, so its processes, copy, and claim are left untouched and only stale-task's own cleanup runs.
REFUSED: scout task stale-task has no report at /tmp/fm-lab.u9xy3z/data/stale-task/report.md.
The report is the work product. Have the crewmate write it, or use --force after explicit discard approval.
exit=1
--- state/: live-task.meta stale-task.meta 
--- claim: task=live-task home=/tmp/fm-lab.u9xy3z 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.u9xy3z/pool/.treehouse/demo-248bdd/1/demo  (held by fm-lab)
                       sleep (3748392)

################ B. claimant full teardown while stale record still names its slot (check kept -> refuse)
claim: task=live-task home=/tmp/fm-lab.Fkk3jR 
$ fm-teardown.sh live-task --force
REFUSED: task live-task's recorded worktree /tmp/fm-lab.Fkk3jR/pool/.treehouse/demo-652cdd/1/demo is also task stale-task's recorded worktree.
Returning that pool slot would kill stale-task's processes and reset its copy, so nothing was changed - not even with --force.
Reconcile whichever record is wrong (bin/fm-crew-state.sh live-task; bin/fm-crew-state.sh stale-task), then re-run teardown.
exit=1
--- state/: live-task.meta stale-task.meta 
--- claim: task=live-task home=/tmp/fm-lab.Fkk3jR 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.Fkk3jR/pool/.treehouse/demo-652cdd/1/demo  (held by fm-lab)
                       sleep (3781380)

################ C. both records, NO claim (full teardown -> exclusivity check kept, refuse)
bash: line 13: /tmp/fm-lab.1sH94g/pool/.treehouse/demo-c826aa/1/.fm-slot-owner: No such file or directory
claim: <none>
$ fm-teardown.sh stale-task --force
REFUSED: task stale-task's recorded worktree /tmp/fm-lab.1sH94g/pool/.treehouse/demo-c826aa/1/demo is also task live-task's recorded worktree.
Returning that pool slot would kill live-task's processes and reset its copy, so nothing was changed - not even with --force.
Reconcile whichever record is wrong (bin/fm-crew-state.sh stale-task; bin/fm-crew-state.sh live-task), then re-run teardown.
exit=1
--- state/: live-task.meta stale-task.meta 
/tmp/fm6184-setup.sh: line 26: /tmp/fm-lab.1sH94g/pool/.treehouse/demo-c826aa/1/.fm-slot-owner: No such file or directory
--- claim: <none>
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.1sH94g/pool/.treehouse/demo-c826aa/1/demo  (held by fm-lab)
                       sleep (3804400)

################ D. both records, claim names stale-task itself (mine -> full teardown, refuse)
claim: task=stale-task home=/tmp/fm-lab.YNGwQ0 
$ fm-teardown.sh stale-task --force
REFUSED: task stale-task's recorded worktree /tmp/fm-lab.YNGwQ0/pool/.treehouse/demo-26d25d/1/demo is also task live-task's recorded worktree.
Returning that pool slot would kill live-task's processes and reset its copy, so nothing was changed - not even with --force.
Reconcile whichever record is wrong (bin/fm-crew-state.sh stale-task; bin/fm-crew-state.sh live-task), then re-run teardown.
exit=1
--- state/: live-task.meta stale-task.meta 
--- claim: task=stale-task home=/tmp/fm-lab.YNGwQ0 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.YNGwQ0/pool/.treehouse/demo-26d25d/1/demo  (held by fm-lab)
                       sleep (3838672)

################ E. both records, unreadable claim (unsafe -> refuse)
claim: not-a-claim 
$ fm-teardown.sh stale-task --force
REFUSED: task stale-task's recorded worktree /tmp/fm-lab.NX8OGk/pool/.treehouse/demo-321027/1/demo is also task live-task's recorded worktree.
Returning that pool slot would kill live-task's processes and reset its copy, so nothing was changed - not even with --force.
Reconcile whichever record is wrong (bin/fm-crew-state.sh stale-task; bin/fm-crew-state.sh live-task), then re-run teardown.
exit=1
--- state/: live-task.meta stale-task.meta 
--- claim: not-a-claim 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.NX8OGk/pool/.treehouse/demo-321027/1/demo  (held by fm-lab)
                       sleep (3868152)
Evidence: Target: stale teardown without --force gets past the exclusivity check (stops at the unrelated captain-call gate)

Source: Target: stale teardown without --force gets past the exclusivity check (stops at the unrelated captain-call gate)

################ A2. stale record (report written), claim names live-task, NO --force
$ fm-teardown.sh stale-task
warning: task stale-task's recorded worktree /tmp/fm-lab.xXqQyp/pool/.treehouse/demo-3a3ce5/1/demo was reassigned to task live-task (home /tmp/fm-lab.xXqQyp), which claimed that pool slot after this record was written; that slot is no longer stale-task's, so its processes, copy, and claim are left untouched and only stale-task's own cleanup runs.
fm-captain-hold: origin stale-task has no completed captain-call inventory
REFUSED: scout task stale-task has not passed the captain-call completion gate.
Inventory its report and any visual review through bin/fm-captain-hold.sh before teardown.
exit=1
--- state/: live-task.meta stale-task.meta 
--- claim: task=live-task home=/tmp/fm-lab.xXqQyp 
--- slot checkout: claimant-file.txt present
--- worker in slot alive: yes
--- tmux windows: fm-live-task fm-stale-task 
--- treehouse status:
    
    1     leased       /tmp/fm-lab.xXqQyp/pool/.treehouse/demo-3a3ce5/1/demo  (held by fm-lab)
                       sleep (3889324)
lab removed: yes

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 6 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Bug repro on base: tearing down a stale task whose pool slot was claimed by another task that still has a record refuses even with --force and blocks the other task's teardown ✅ pass live s0-base-repro-stale-record-stranded.txt: all three teardowns exit=1 'REFUSED ... also task live-task's recorded worktree', and state is unchanged
Stale task teardown (--force) on a slot claimed by another task retires only its records and leaves the slot, its worker, its claim and the other task's files untouched ✅ pass live s1-target-stale-retires-then-claimant.txt: exit=0, 'pool slot ... left to task live-task', stale-task.meta and its window removed, live-task.meta/claim/claimant-file/worker/lease intact
After the stale record retires, the slot-holding task's full teardown succeeds and returns the slot to the pool ✅ pass live s1-target-stale-retires-then-claimant.txt: live-task exit=0, 'Worktree returned to pool', claim removed, treehouse status shows the slot available
Guard: the slot-holding task's full teardown while the stale record still names its slot is still refused with nothing changed ✅ pass live s2-target-guards.txt case B: exit=1 REFUSED, records, claim, worker and lease unchanged
Guard: when two records name a slot and the claim is absent, names the task itself, or can't be read, the full teardown is still refused ✅ pass live s2-target-guards.txt cases C, D, E: each exit=1 REFUSED with no mutation
Stale task teardown without --force is no longer blocked by the exclusivity check ✅ pass live s3-target-no-force.txt: reassignment warning printed, then it stops only at the unrelated scout captain-call gate (on base the same setup refuses at the exclusivity check)
Focused regression suite passes, including the new test for a stale record next to the slot-holding task's record ⏸️ untested no The prior payload recorded this as an automated fixture test with a stubbed treehouse, not a run against the live product, so it did not establish a live result. The live scenarios above cover the sam…
  • Reproduced #6184 on base eb77f02 (git archive eb77f02 into a temp dir): ran real bin/fm-teardown.sh stale-task, stale-task --force and live-task --force against a marked lab FM_HOME with a real treehouse lease (TREEHOUSE_ROOT=$LAB/pool treehouse get --lease --no-fetch), a real slot claim written by fm_treehouse_slot_owner_claim, and a private-socket tmux server. All three refused.
  • Target 65c3e01: ran bin/fm-teardown.sh stale-task --force in the same lab (records-only, slot left alone), then bin/fm-teardown.sh live-task --force (full teardown, slot returned to the pool).
  • Target guard cases: the claimant's full teardown while the stale record remains; both records with no claim; claim naming stale-task itself; unreadable claim; all run with --force.
  • Target: bin/fm-teardown.sh stale-task without --force (with a report written), to confirm the exclusivity check no longer blocks it.
  • bash tests/fm-teardown-endpoint-safety.test.sh (focused suite, including the new test_stale_record_on_claimed_slot_retires_then_claimant_tears_down)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

When a pool slot's owner claim names another task, the stale record's
teardown touches nothing under the slot, so the exclusive-slot record scan
no longer refuses it. Full teardowns of a slot this task still claims, or
one with no claim, keep the refusal.

Fixes kunchenguid#6184
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[High risk] Changes slot ownership logic in the task teardown system.

The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "no-mistakes(document): Note claim-over-r..."

@kunchenguid
kunchenguid merged commit 65c75b0 into kunchenguid:main Sep 30, 2026
20 checks passed
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: this is merged. Thank you @karotkriss — really appreciate you taking the time on this.

TastyTom13 referenced this pull request in TastyTom13/firstmate Sep 30, 2026
- ci: the merged tree has 61 Bearings tests (upstream 60 plus the fork's one).
- teardown: a shared-worktree record on a slot claimed by another task retires
  records-only, matching upstream's reassigned-slot exception (#6213).
- contributions: restore the fork's settled field on terminal records, drop the
  runner entry for the near-deadline test the fork replaced with its retry test,
  and fix the truncated late-owner test name. Upstream's terminal and failure
  episode tests now reflect the fork's daily closed recheck and single retry.
- watcher: upstream's own-work wait test now follows the fork rule that a
  declared pause is absorbed on first sight; comments no longer promise a
  first-sight stale alert.
- tests: the context-budget fixture copies the libraries upstream's guard now
  loads, the free-lane secondmate fixture is a git repo as upstream's trailer
  hooks require, and the Orca bridge fixture uses Orca's composite worktree id.
@keenvc keenvc mentioned this pull request Oct 1, 2026
@keenvc keenvc mentioned this pull request Oct 2, 2026
ironerumi added a commit to ironerumi/firstmate that referenced this pull request Oct 2, 2026