Skip to content

feat(bin): support custom base and crew branches - #4071

Closed
lakshyads05 wants to merge 77 commits into
kunchenguid:mainfrom
lakshyads:fm/fm-base-refresh-s7-v2
Closed

lakshyads05 wants to merge 77 commits into
kunchenguid:mainfrom
lakshyads:fm/fm-base-refresh-s7-v2

Conversation

@lakshyads05

@lakshyads05 lakshyads05 commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

What Changed

  • Added optional --base-branch and --branch-name contracts to brief and spawn flows, including validation, pooled-worktree freshening, and metadata persistence through relaunch and promotion.
  • Updated review, local merge, teardown, backlog transition, and fleet snapshot flows to honor recorded landing and crew branches while preserving legacy defaults.
  • Added shared brief-contract parsing plus documentation and regression coverage for branch selection and lifecycle behavior.

Risk Assessment

⚠️ Medium: No concrete reachable defect was substantiated; the cross-cutting branch/base state flow still carries moderate integration risk.

Testing

Drove the real product through isolated live tmux spawn and collision scenarios, then exercised focused contract, review, merge, transition, snapshot, and delivery paths. No linters, formatters, or full-suite checks were run. Teardown backlog coverage is blocked only by installed tasks-axi 0.2.5.

  • Live validation: ✅ go - 4 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Spawn a task from a non-main default with a named base and custom crew branch; metadata records both values and the worker launches successfully. ✅ pass live Live tmux spawn log
Attempt a second task using an occupied crew branch; spawn refuses before allocating a new task endpoint. ✅ pass live Live branch collision log
Scaffold ship/scout contracts and deliver the generated worker instructions; base and delivery contracts remain consistent. ✅ pass live tests/fm-brief.test.sh and tests/fm-task-delivery.test.sh
Review and locally land a task with recorded base and crew-branch metadata; the authoritative recorded values are used. ✅ pass live tests/fm-review-diff.test.sh and tests/fm-merge-local.test.sh
Teardown a landed local-only task while recording the resolved landing base and closing its backlog record. ⏸️ untested no The installed tasks-axi is 0.2.5; this fixture requires 0.2.6 or newer with update/mv support. Install or provide tasks-axi >=0.2.6 and rerun the teardown scenario.
Evidence: Live tmux spawn

Source: Live tmux spawn

spawn_rc=0
--- stdout ---
spawned live-spawn harness=sh kind=ship mode=local-only yolo=off window=fm-lab-tmux-81604:fm-live-spawn worktree=~/.treehouse/project-fe0361/1/project
--- stderr ---
notice: live-spawn ships mode=local-only while the standing posture for project is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
--- meta ---
window=fm-lab-tmux-81604:fm-live-spawn
endpoint_task_id=live-spawn
worktree=~/.treehouse/project-fe0361/1/project
project=/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T/fm-live-spawn.1zQF1n/project
harness=sh
kind=ship
mode=local-only
yolo=off
base_branch=develop
crew_branch=feature/live-spawn
tasktmp=/tmp/fm-live-spawn
model=default
effort=default
spawn_gen=s1790182511.81841.24176
Evidence: Live branch collision

Source: Live branch collision

first_spawn_rc=0
second_spawn_rc=1
--- live-b stdout ---
--- live-b stderr ---
error: crew branch feature/live-collision is already assigned to task live-a; refusing to launch a fresh task with a shared branch
--- control pane ---
^C%
Mac% env -u NO_MISTAKES_GATE FM_GATE_REFUSE_BYPASS=1 FM_SPAWN_NO_GUARD=1 FM_ROOT_OVERRIDE=~/.no-mistakes/worktrees/3980b3023422/01M37F8AZCB
RF1GAR3713A070G FM_HOME=/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/home ~/.no-mistakes/worktrees/3980b30234
22/01M37F8AZCBRF1GAR3713A070G/bin/fm-spawn.sh live-a /var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/project "sh -c 'echo live-a-ok'"
 --mode local-only --yolo off --base-branch develop --backend tmux >/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/live-a.out 2>/var
/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/live-a.err; echo $? >/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.
QLNVqB/live-a.rc
Mac%
Mac% env -u NO_MISTAKES_GATE FM_GATE_REFUSE_BYPASS=1 FM_SPAWN_NO_GUARD=1 FM_ROOT_OVERRIDE=~/.no-mistakes/worktrees/3980b3023422/01M37F8AZCB
RF1GAR3713A070G FM_HOME=/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/home ~/.no-mistakes/worktrees/3980b30234
22/01M37F8AZCBRF1GAR3713A070G/bin/fm-spawn.sh live-b /var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/project "sh -c 'echo live-b-ok'"
 --mode local-only --yolo off --base-branch develop --backend tmux >/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/live-b.out 2>/var
/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/live-b.err; echo $? >/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.
QLNVqB/live-b.rc
Mac%

























--- task records ---
/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T//fm-live-collision.QLNVqB/home/state/live-a.meta
window=fm-lab-tmux-17852:fm-live-a
endpoint_task_id=live-a
worktree=~/.treehouse/project-0a56f6/1/project
project=/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T/fm-live-collision.QLNVqB/project
harness=sh
kind=ship
mode=local-only
yolo=off
base_branch=develop
crew_branch=feature/live-collision
tasktmp=/tmp/fm-live-a
model=default
effort=default
spawn_gen=s1790182610.18005.898
--- private tmux windows ---
zsh
fm-live-a
Evidence: Focused product tests

Source: Focused product tests

●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local prefers the metadata-recorded crew branch over the brief
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local preserves a custom crew branch from a pre-marker brief
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local retains the fm/<id> crew-branch default
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local uses a legacy task's recorded worktree branch
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local uses the last recorded crew branch
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local treats task metadata as the landing-base authority
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local defaults to the project default when metadata omits a base
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local resolves the remote default without origin/HEAD
error: No such remote 'origin'
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local falls back to the local default when origin is unreachable
fatal: not a git repository: '/private/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T/fm-merge-local.RJJ2uK/remote-only-default/origin.git'
fatal: not a git repository: '/private/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T/fm-merge-local.RJJ2uK/remote-only-default/origin.git'
fatal: not a git repository: '/private/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T/fm-merge-local.RJJ2uK/remote-only-default/origin.git'
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local uses a local branch when origin's default is remote-only
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 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.
●  repair missing watcher supervision according to the session-start block for this harness; do not use shell &.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ok - merge-local lands a recorded base without a conventional default branch
ok - merge-local rejects an invalid metadata base
ok - merge-local preserves its fast-forward-only safety gate
# all fm-merge-local tests passed
Evidence: Teardown environment gate

Source: Teardown environment gate

ok - local-only worktree with HEAD on a fork remote is torn down and the home summary is refreshed
error: task task-x1 cannot be torn down because its backlog data directory is inaccessible: /private/var/folders/9_/lqnhn5_j6vz053wzxq2mk9rm0000gn/T/fm-teardown-tests.J5hPgN/tasks-axi-close/data (automatic backlog transitions require tasks-axi 0.2.6 or newer with the required update and mv features)
not ok - teardown failed with a real backlog

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

⏭️ **Rebase** - skipped
  • ⚠️ .github/workflows/ci.yml - branch carries 45 commit(s) that exist on your local main branch but were never pushed to origin/main; these may be unintended bundled work (proposed PR changes 31 file(s)):
  • 1d4cea6 no-mistakes(document): Document retained local landing and base fallback behavior
  • 001f06c no-mistakes(review): Refresh task worktrees and preserve retained landing notes
  • 952a506 no-mistakes(review): Use live legacy branches and refresh promoted bases
  • 02ecdf0 no-mistakes(review): Reject legacy named-base launches without matching contracts
  • c97c074 no-mistakes(review): Restore legacy symbolic branch fallback for review diffs
  • 038a335 no-mistakes(review): Reset contract parser state at the authoritative boundary
  • 4412858 chore(merge): sync upstream main 7111081 into fm/fm-base-refresh-s7-v2
  • 255eee1 no-mistakes(review): Guard implicit crew branches against requested-base collisions
  • 9c2996d no-mistakes(review): Reject crew branches colliding with requested bases
  • 8dc0249 chore(merge): sync upstream main a27646c into fm/fm-base-refresh-s7-v2
  • 67cd659 no-mistakes(document): Document recorded local landing branches
  • f9aa60f chore(ci): re-trigger checks after a cancelled job
  • c41a3ed no-mistakes(review): Clarify landing marker exception in lifecycle documentation
  • 44c5558 no-mistakes(review): Clarify explicit landing marker precedence in lifecycle docs
  • c6c696a fix(snapshot): restore released landing notes
  • 8b9c20e no-mistakes(document): Document named bases and landing-note boundaries
  • 92c317b no-mistakes(review): Gate local body markers on delivery completions
  • 3b381aa no-mistakes(review): Project local landing body notes in fleet snapshots
  • 07e9b6f fix(test): match resolved local merge target
  • e2d1bc1 no-mistakes(document): Document recorded landing-base behavior
  • 38bb4e8 no-mistakes(review): Anchor brief contracts to scaffold-owned boundaries
  • 76b9a68 no-mistakes(review): Close generated brief contract parsing boundaries
  • bf2e7cc no-mistakes(review): Guard marker parsing and default branch collisions
  • 5ce8ee8 no-mistakes(review): Preserve custom branches in legacy briefs
  • 277ca7c no-mistakes(review): Harden contract boundaries and local teardown refs
  • b41b887 no-mistakes(review): Harden landing CAS and brief contract boundaries
  • 1a5467c no-mistakes(review): Narrow legacy landing-note compatibility
  • 1e405f2 no-mistakes(review): Freeze landing tip and scope crew-branch parsing
  • fcba4a8 no-mistakes(review): Preserve local bases and legacy landed notes
  • 94a4930 no-mistakes(review): Snapshot crew tip before fast-forward validation
  • 43967a6 chore(merge): sync upstream main
  • 017f469 no-mistakes(ci): Fixed the Greptile-detected collision. Local-only teardown now records an explicit local-landing:&lt;branch&gt; marker; snapshot parsing only treats that marker as a landing artifact while still rendering local &lt;branch&gt;, and pending-close replay validates/replays it. Added behavioral regressions for the exact title collision and marker recovery. Passing: snapshot-view, transition-library, teardown, bash syntax, and diff checks. The broad backlog atomicity suite remains externally blocked by its known tasks-axi fixture-directory failure; ShellCheck is unavailable in this environment
  • 693784f no-mistakes(ci): Fixed false local-landing detection by requiring the explicit - local &lt;branch&gt; delimiter, with a regression test. Relevant suites, syntax, coverage, and documentation checks pass; lint could not run because ShellCheck is unavailable
  • 7837a52 no-mistakes(lint): Fix ShellCheck diagnostics in delivery and task tests
  • 7148852 no-mistakes(document): Document named-base scout promotion
  • 51f3597 no-mistakes(review): Fix scout review fallback for local named bases
  • dbfe8ed no-mistakes(review): Fix named-base relaunch, review, merge, promotion, and snapshot paths
  • af9ee11 fix(spawn): check brief base at spawn time
  • d5943c5 no-mistakes(review): Qualify named refs and preserve promotion base scope
  • 48a25fa no-mistakes(review): Deduplicate named-base delivery contract rendering
  • 4126116 no-mistakes(review): Restore local named-base fallback for scouts
  • 5b873e6 no-mistakes(review): Require remote named bases for PR delivery
  • 557db8a no-mistakes(review): Honor recorded task bases and crew branches
  • c2aca53 fix(spawn): close named-base review findings
  • 11afe9d feat(spawn): add named bases and crew branches

Confirm these commits belong in this PR before approving, or manually separate the intended work onto origin/main before gating.

⚠️ **Review** - 5 issues (2 errors, 3 warnings)
  • 🚨 bin/fm-spawn.sh:2889 - The collision loop skips every existing kind=ship record because it continues unless the record is kind=secondmate. Task A's ship metadata is published before its worker runs git checkout -b; task B can request the same custom branch while no local or remote ref exists, bypass task A, allocate another endpoint, and race with task A. Check existing ship records for the project before allocation.

🔧 No changes applied.
1 error still open:

  • 🚨 bin/fm-spawn.sh:2889 - The collision scan skips every existing kind=ship record because it continues unless the record is kind=secondmate. If task A has published crew_branch=feature/shared before its worker creates the ref, task B can pass local and remote ref checks, allocate another endpoint, and race task A on the same branch. Check existing ship records for the project before allocation.

🔧 No changes applied.
1 warning still open:

  • ⚠️ bin/fm-teardown.sh:1252 - Local-only tasks without a recorded base now depend on fm_remote_default_branch, which performs an unbounded ls-remote. With an origin configured but temporarily unreachable, fm-merge-local.sh refuses to land and fm-teardown.sh cannot prove completion or close the backlog, despite local-only delivery requiring no remote. Use a local/default resolver or bounded remote fallback for local-only paths; keep remote probing fail-closed only where remote-default safety is required.

🔧 Fix applied.
1 error still open:

  • 🚨 bin/fm-default-branch-lib.sh:38 - fm_local_only_default_branch prefers the remote default name even when that branch is not present locally. For a local-only task with origin default develop but no local refs/heads/develop, spawn freshens the worker from origin/develop, then fm-merge-local.sh selects develop and refuses because the landing ref is missing; teardown follows the same failing path. Resolve local-only delivery against an existing local landing branch, or persist and materialize the resolved target consistently.

🔧 Fix applied.
5 issues (2 errors, 3 warnings) still open:

  • 🚨 bin/fm-spawn.sh:2889 - The collision scan still skips every existing kind=ship record, so a second task can reuse a branch already assigned to a live ship before either task has created a local or remote ref. Check all existing ship records for the project before allocation; the previously selected fix is still absent.
  • 🚨 bin/fm-spawn.sh:3175 - A missing named base is rejected in freshen_spawn_worktree_base after treehouse get, worktree adoption, and slot claiming have already happened. The generic abort path releases the slot claim but does not close the allocated pane, leaving an endpoint without metadata. Validate the named base before endpoint allocation or close the generic endpoint on this failure path.
  • ⚠️ bin/fm-fleet-snapshot.sh:467 - The backlog parser now recognizes legacy local main only when hyphen-delimited, but the previous parser also accepted rows such as ... context local main. Existing completed local-only rows in that form now lose local_note and retain the marker in their title. Preserve the prior whitespace-delimited legacy form alongside local-landing:.
  • ⚠️ bin/fm-ff-lib.sh:53 - fm_local_default_branch falls back to local main/master when origin/HEAD names a different branch that has no local ref. fm-ff-lib.sh now uses this helper for primary_head_commit, so a repository with remote default develop, no local develop, and a stale local main silently syncs secondmates to main instead of refusing or using the authoritative default. Keep local-landing fallback separate from secondmate default synchronization.
  • ⚠️ bin/fm-spawn.sh:3161 - The new named-base and branch-collision paths call git ls-remote directly without the shared timeout wrapper. A black-holed or stalled origin can block spawn indefinitely; the named-base probe runs after the pooled endpoint is allocated, compounding the leak above. Wrap these probes with fm_run_timed and preserve fail-closed handling for timeout status.
✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 4 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Spawn a task from a non-main default with a named base and custom crew branch; metadata records both values and the worker launches successfully. ✅ pass live Live tmux spawn log
Attempt a second task using an occupied crew branch; spawn refuses before allocating a new task endpoint. ✅ pass live Live branch collision log
Scaffold ship/scout contracts and deliver the generated worker instructions; base and delivery contracts remain consistent. ✅ pass live tests/fm-brief.test.sh and tests/fm-task-delivery.test.sh
Review and locally land a task with recorded base and crew-branch metadata; the authoritative recorded values are used. ✅ pass live tests/fm-review-diff.test.sh and tests/fm-merge-local.test.sh
Teardown a landed local-only task while recording the resolved landing base and closing its backlog record. ⏸️ untested no The installed tasks-axi is 0.2.5; this fixture requires 0.2.6 or newer with update/mv support. Install or provide tasks-axi >=0.2.6 and rerun the teardown scenario.
  • bash tests/fm-brief.test.sh
  • bash tests/fm-merge-local.test.sh
  • bash tests/fm-review-diff.test.sh
  • bash tests/fm-backlog-transition-lib.test.sh
  • bash tests/fm-fleet-snapshot-view.test.sh
  • bash tests/fm-task-delivery.test.sh
  • Targeted fm-spawn.sh base, collision, default-resolution, and local-only scenarios
  • Real fm-brief.sh plus fm-spawn.sh in a private tmux session
  • Real second spawn collision attempt in the same private tmux session
  • tasks-axi --version
  • bash tests/fm-teardown.test.sh until its incompatible real-backlog fixture gate
✅ **Document** - passed

✅ No issues found.

🔧 **Lint** - 1 issue found → auto-fixed ✅
  • ⚠️ linter found issues (exit code 1)

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Push** - passed

✅ No issues found.

Replace the stale named-base series with a fresh-upstream path that
preserves origin-less default skip, resolves or refuses a requested
base when origin is absent, and starts no-mistakes with axi
--base-branch instead of retarget-after-green.
Refuse unlandable local-only origin-only bases, honor recorded
compare/return bases, and parse only the last generated Definition
of done so named-base landing cannot drift from the worker contract.
Give the Base branch contract line a spawn reader instead of deleting
it, and close the remaining named-base promote, teardown, and snapshot
gaps that can drop or mis-deliver work.
@greptile-apps

greptile-apps Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Comment thread bin/fm-fleet-snapshot.sh Resolved
… explicit ` - local <branch>` delimiter, with a regression test. Relevant suites, syntax, coverage, and documentation checks pass; lint could not run because ShellCheck is unavailable
Comment thread bin/fm-fleet-snapshot.sh Resolved
…ardown now records an explicit `local-landing:<branch>` marker; snapshot parsing only treats that marker as a landing artifact while still rendering `local <branch>`, and pending-close replay validates/replays it. Added behavioral regressions for the exact title collision and marker recovery. Passing: snapshot-view, transition-library, teardown, bash syntax, and diff checks. The broad backlog atomicity suite remains externally blocked by its known tasks-axi fixture-directory failure; ShellCheck is unavailable in this environment
@lakshyads05

Copy link
Copy Markdown
Contributor Author

@kunchenguid looking forward to having this as part of next release.

@lakshyads05 lakshyads05 changed the title feat(bin): support custom base and crew branches feat(spawn): support named bases and custom crew branches Sep 22, 2026
@lakshyads05

Copy link
Copy Markdown
Contributor Author

@kunchenguid please approve workflows

@lakshyads05 lakshyads05 changed the title feat(spawn): support named bases and custom crew branches feat(bin): support custom base and crew branches Sep 22, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: stamped waiting-author (attestation rebind required).

HEAD 70ad3b3235f081e52b456e47723344f2325dc2bf vs main f9f74a1d91cc7e105ec3df2249eda4e07f9ba540. MERGEABLE/UNSTABLE. Attestation MISMATCH — body binds de3b973bd7f7a659c1973b0c16742498b3f21424, not current HEAD (NM verify: "A later push must not pass on an older attestation"). Runs 35715109019 / 35714984698 / 35715750925 NM fail.

Whole thread re-read. Author body has no Fixes/Closes — does not claim to close a ready-for-pr issue.

contract-class: opt-in (own inspection). --base-branch / --branch-name stay off unless set; omitted-base path keeps default-branch freshen. Bearings/fleet/review/merge only honor recorded base/crew when the opt-in contract was used.

VISION: One captain/interface — aligns (scaffold flags, not new always-on UI). Authority — aligns (explicit flags). Scripts/mechanics — aligns. Restart — aligns (meta persistence). Delegation spine — aligns (brief↔spawn contract refuse on mismatch). Vendor-orthogonal — aligns. Scope — aligns (spawn/delivery command layer). Closing: welcome opt-in compose; auto-mergeable only when otherwise ready.

CI: tip fork workflows were action_required; approved this pass after diff review (workflow-zero): 35715750925 / 35715109019 / 35714984697 / 35714984698. CI queued, but NM is blocking until attestation rebinds.

Author: re-run git push no-mistakes so the PR-body attestation head_sha equals 70ad3b32…. This is waiting on you, not a captain hold. No Firstmate flag while attestation MISMATCH / NM red.

@lakshyads05 lakshyads05 changed the title feat(bin): support custom base and crew branches feat(bin): support named base and crew branches Sep 22, 2026
…l-only relaunch expectation, recorded the fixture base branch, and changed the macOS Bearings count from 59 to 60. Bearings and the targeted public-followup test pass. Attestation/no-mistakes failures remain external and were not pushed or rebound per phase constraints
@lakshyads05

Copy link
Copy Markdown
Contributor Author

@kunchenguid please approve workflows

@lakshyads05 lakshyads05 changed the title feat(bin): support named base and crew branches feat(spawn): support named bases and custom crew branches Sep 23, 2026
@lakshyads05 lakshyads05 changed the title feat(spawn): support named bases and custom crew branches feat(bin): support custom base and crew branches Sep 23, 2026
@lakshyads05 lakshyads05 changed the title feat(bin): support custom base and crew branches feat(spawn): support named base and crew branches Sep 23, 2026
@lakshyads05

Copy link
Copy Markdown
Contributor Author

@kunchenguid please approve workflows

@lakshyads05 lakshyads05 changed the title feat(spawn): support named base and crew branches fix(bin): preserve named bases across task lifecycle Sep 23, 2026
@lakshyads05 lakshyads05 changed the title fix(bin): preserve named bases across task lifecycle feat(bin): support custom base and crew branches Sep 23, 2026
@lakshyads05

Copy link
Copy Markdown
Contributor Author

@kunchenguid please approve the workflows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants