Skip to content

fix(bin): wait out transient primary-checkout reads in the spawn worktree poll - #3834

Merged
kunchenguid merged 7 commits into
kunchenguid:mainfrom
tiago-peixoto:fm/firstmate-spawn-poll-accepts-primary-transient-2
Sep 6, 2026
Merged

kunchenguid merged 7 commits into
kunchenguid:mainfrom
tiago-peixoto:fm/firstmate-spawn-poll-accepts-primary-transient-2

Conversation

@tiago-peixoto

@tiago-peixoto tiago-peixoto commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Restore crewmate and scout launches from a Firstmate home whose project is itself a linked worktree of a repository (a home whose workers take pooled worktrees of that same repo). Every launch from such a home currently exits with:

error: treehouse get did not yield an isolated worktree (resolved ''; worktree root ''; spawning project ''); refusing to launch to avoid tangling the primary checkout

treehouse does create a correct isolated worktree for the task, so this is a defect in bin/fm-spawn.sh's worktree discovery rather than a local configuration problem: the spawn settles on the repository primary checkout it observes before treehouse has finished preparing the slot, and the isolation guard then refuses the launch. A spawn should land on the isolated worktree treehouse creates, and should still refuse loudly when no isolated worktree is ever reached. Reported and confirmed on main as #3808.

What Changed

  • Extracted the spawn isolation conditions into a shared spawn_worktree_isolated predicate in bin/fm-spawn.sh and made the pane-cwd discovery poll screen every read through it, so a pane reporting the spawning project or the repository's primary checkout while treehouse get prepares the slot is treated as a transient and waited out instead of adopted and then refused by the isolation guard.
  • Reworked the poll's deadline failure to refuse loudly with detail: it now reports "did not enter an isolated worktree", naming the last path the pane reported and the specific reason it was rejected (not a readable directory, not inside a git worktree, a subdirectory rather than a worktree root, the spawning project itself, unresolvable git dir, or the repository's primary checkout); validate_spawn_worktree reuses the same predicate and reason for its own message.
  • Added linked-spawning-home cases to tests/fm-spawn-worktree-settle.test.sh for a transient primary-checkout read that later settles into the real slot and for a pane that never leaves the primary, and updated the expected refusal strings and causes in the tangle-guard, pool-base-freshen, and herdr presentation e2e suites; the tangle-guard non-git case now pins GIT_CEILING_DIRECTORIES so the fixture directory is non-git wherever the suite runs, and stubs the poll's sleep.

Risk Assessment

✅ Low: The change makes an existing guard strictly more conservative on one code path (the screen can only reject more candidates than the old poll, never accept more), preserves the guard predicate condition-for-condition for the relaunch and orca callers, and lands a regression test that provably fails against the base commit; the only cost is refusal latency the user has already accepted.

Testing

Beyond the already-green baseline run, I exercised the three touched suites directly and then demonstrated the intent as an end user would: real bin/fm-spawn.sh launches from a Firstmate home whose project is a linked worktree of a repository, with the task pane transiently reporting the repository primary checkout. On the base commit both the crewmate and scout launches exit 1 with the verbatim error from the report and write no task metadata; on the change both succeed and record the isolated slot treehouse get created. A pane that never reaches an isolated worktree still refuses loudly at the real 60s deadline, naming the last path seen and the reason it was rejected. The new regression case also fails against the base spawn script and passes against the change, and the worktree was restored clean after the swap. No UI surface is involved — this is a CLI launch path, so the evidence is command transcripts rather than screenshots.

Evidence: End-to-end launch transcripts (before/after, crewmate + scout, and the loud refusal)

Source: End-to-end launch transcripts (before/after, crewmate + scout, and the loud refusal)

# firstmate#3808 — end-to-end launch transcripts

A Firstmate home whose **project is itself a linked worktree** of a repository.
`treehouse get` reports the repository's **primary checkout** as its own cwd
while it is still fetching and checking out the pooled slot, so the task pane
reads the primary for the first seconds before settling into the isolated slot.

Fixture shape (`$R` = a temp root):

| path | role |
|---|---|
| `$R/acme` | repository primary checkout |
| `$R/acme-mate` | the Firstmate home's project — a **linked worktree** of `acme` |
| `$R/acme-slot-7` | the isolated worktree `treehouse get` creates for the task |

The task pane reports `$R/acme` for its first 3 reads, then `$R/acme-slot-7`.
Real `bin/fm-spawn.sh`, real git worktrees; `tmux`/`treehouse` are stubs
standing in for the terminal backend.

---

## BEFORE — base commit c499f84

`` `
\### BEFORE (base c499f84) — crewmate launch, pane transiently on the repository primary

repository primary checkout  : $R/acme
firstmate home's project     : $R/acme-mate     (linked worktree of acme)
isolated slot treehouse gets : $R/acme-slot-7   (linked worktree of acme)
pane reads reporting primary : 3

$ bin/fm-spawn.sh demo-ship-a1 $R/acme-mate --mode no-mistakes --yolo off
error: treehouse get did not yield an isolated worktree (resolved '$R/acme'; worktree root '$R/acme'; spawning project '$R/acme-mate'); refusing to launch to avoid tangling the primary checkout. Inspect target firstmate:fm-demo-ship-a1

exit status: 1

$ cat $FM_HOME/state/demo-ship-a1.meta   # recorded task worktree
(no metadata written - launch refused)

\### BEFORE (base c499f84) — scout launch, same transient

repository primary checkout  : $R/acme
firstmate home's project     : $R/acme-mate     (linked worktree of acme)
isolated slot treehouse gets : $R/acme-slot-7   (linked worktree of acme)
pane reads reporting primary : 3

$ bin/fm-spawn.sh demo-scout-a1 $R/acme-mate --scout
error: treehouse get did not yield an isolated worktree (resolved '$R/acme'; worktree root '$R/acme'; spawning project '$R/acme-mate'); refusing to launch to avoid tangling the primary checkout. Inspect target firstmate:fm-demo-scout-a1

exit status: 1

$ cat $FM_HOME/state/demo-scout-a1.meta   # recorded task worktree
(no metadata written - launch refused)

`` `

Both launches exit 1 with the exact error from the report, and no task
metadata is written.

---

## AFTER — the change under test (93b2fce)

`` `
\### AFTER (fix) — crewmate launch, pane transiently on the repository primary

repository primary checkout  : $R/acme
firstmate home's project     : $R/acme-mate     (linked worktree of acme)
isolated slot treehouse gets : $R/acme-slot-7   (linked worktree of acme)
pane reads reporting primary : 3

$ bin/fm-spawn.sh demo-ship-a1 $R/acme-mate --mode no-mistakes --yolo off
spawned demo-ship-a1 harness=codex kind=ship mode=no-mistakes yolo=off window=firstmate:fm-demo-ship-a1 worktree=$R/acme-slot-7

exit status: 0

$ cat $FM_HOME/state/demo-ship-a1.meta   # recorded task worktree
worktree=$R/acme-slot-7
project=$R/acme-mate
kind=ship

\### AFTER (fix) — scout launch, same transient

repository primary checkout  : $R/acme
firstmate home's project     : $R/acme-mate     (linked worktree of acme)
isolated slot treehouse gets : $R/acme-slot-7   (linked worktree of acme)
pane reads reporting primary : 3

$ bin/fm-spawn.sh demo-scout-a1 $R/acme-mate --scout
spawned demo-scout-a1 harness=codex kind=scout window=firstmate:fm-demo-scout-a1 worktree=$R/acme-slot-7

exit status: 0

$ cat $FM_HOME/state/demo-scout-a1.meta   # recorded task worktree
worktree=$R/acme-slot-7
project=$R/acme-mate
kind=scout

`` `

Both launches now land on the isolated slot `treehouse` created, and
`state/<id>.meta` records that slot — never the repository primary.

---

## AFTER — a pane that never reaches an isolated worktree still refuses loudly

The same fixture, but the pane reports the repository primary forever
(`treehouse get` never enters a slot). Real 60s deadline, real `sleep`:

`` `
\### AFTER (fix) — pane NEVER reaches an isolated worktree, so the launch still refuses loudly

repository primary checkout  : $R/acme
firstmate home's project     : $R/acme-mate     (linked worktree of acme)
isolated slot treehouse gets : $R/acme-slot-7   (linked worktree of acme)
pane reads reporting primary : 999

$ bin/fm-spawn.sh demo-ship-a1 $R/acme-mate --mode no-mistakes --yolo off
error: treehouse get did not enter an isolated worktree within 60s (last seen '$R/acme': it is the repository's primary checkout (its git dir is the spawning project's common git dir); spawning project '$R/acme-mate'); inspect window firstmate:fm-demo-ship-a1

exit status: 1

$ cat $FM_HOME/state/demo-ship-a1.meta   # recorded task worktree
(no metadata written - launch refused)

`` `

The launch still refuses, exits 1, writes no metadata, and the refusal now
names the last path the pane reported and why it was rejected.
Evidence: Regression proof: new settle cases fail on base c499f84, pass on the change

Source: Regression proof: new settle cases fail on base c499f84, pass on the change

# Regression proof: tests/fm-spawn-worktree-settle.test.sh

## Against BASE bin/fm-spawn.sh (c499f84) - the new cases fail with the reported error
`` `
ok - a single transient stale pane_current_path read is not accepted as the worktree
ok - an already-settled pane confirms on the next read, not a whole extra cycle
not ok - spawn should succeed once the pane leaves the primary checkout
error: treehouse get did not yield an isolated worktree (resolved '/private/var/folders/r8/cylyt7xd7t50y9x5wc05my380000gn/T/fm-spawn-worktree-settle.ZSrJSo/settle-primary-transient/primary'; worktree root '/private/var/folders/r8/cylyt7xd7t50y9x5wc05my380000gn/T/fm-spawn-worktree-settle.ZSrJSo/settle-primary-transient/primary'; spawning project '/private/var/folders/r8/cylyt7xd7t50y9x5wc05my380000gn/T/fm-spawn-worktree-settle.ZSrJSo/settle-primary-transient/mate'); refusing to launch to avoid tangling the primary checkout. Inspect target firstmate:fm-settle-primary-transient-z3: expected exit 0, got 1
`` `

## Against the change under test (93b2fce) - all four cases pass
`` `
ok - a single transient stale pane_current_path read is not accepted as the worktree
ok - an already-settled pane confirms on the next read, not a whole extra cycle
ok - a transient primary-checkout pane read is not accepted as the worktree
ok - a pane stuck on the primary checkout fails loudly at the deadline
# all fm-spawn-worktree-settle tests passed
`` `
Evidence: Repro script used for the manual launches (rerunnable: fm3808-repro.sh <label> <worktree> <ship|scout> <stale-reads>)

Source: Repro script used for the manual launches (rerunnable: fm3808-repro.sh <label> <worktree> <ship|scout> <stale-reads>)

#!/usr/bin/env bash
# Manual end-to-end repro of kunchenguid/firstmate#3808: a launch from a
# Firstmate home whose project is itself a LINKED worktree of a repository.
# `treehouse get` reports the repository PRIMARY checkout as its own cwd while
# it is still preparing the pooled slot, so the task pane reads the primary for
# the first seconds before settling into the isolated slot treehouse created.
set -u
LABEL=${1:?label}
WORKTREE=${2:?worktree root}
KIND=${3:-ship}          # ship (crewmate) | scout
STALE=${4:-3}            # pane reads that still report the primary checkout
. "$WORKTREE/tests/fixtures.sh"

root=$(fm_test_tmproot fm3808-"$LABEL")
home="$root/firstmate-home"
primary="$root/acme"          # repository primary checkout
mate="$root/acme-mate"        # the home's project: a LINKED worktree of acme
slot="$root/acme-slot-7"      # the isolated worktree treehouse get creates
id=demo-$KIND-a1

fm_test_spawn_home "$home" codex
fm_git_worktree "$primary" "$mate" mate >/dev/null 2>&1
git -C "$primary" worktree add --quiet -b slot-7 "$slot"
fm_test_spawn_brief "$home" "$id" "Demonstrate launching from a linked-worktree home."

fake=$(fm_fakebin "$root/fake")
fm_fake_exit0 "$fake" treehouse
cat > "$fake/tmux" <<'SH'
#!/usr/bin/env bash
set -u
case "$*" in
  *"#{pane_current_path}"*)
    n=0; [ -f "$FM_FAKE_PANE_COUNTFILE" ] && n=$(cat "$FM_FAKE_PANE_COUNTFILE")
    n=$((n + 1)); printf '%s\n' "$n" > "$FM_FAKE_PANE_COUNTFILE"
    # treehouse get is still fetching/checking the slot out for these reads.
    if [ "$n" -le "$FM_FAKE_PANE_STALE_READS" ]; then printf '%s\n' "$FM_FAKE_PANE_STALE"
    else printf '%s\n' "$FM_FAKE_PANE_PATH"; fi
    exit 0 ;;
esac
case "${1:-}" in display-message) printf 'firstmate\n'; exit 0 ;; esac
exit 0
SH
chmod +x "$fake/tmux"

args=("$id" "$mate")
if [ "$KIND" = scout ]; then args+=(--scout); else args+=(--mode no-mistakes --yolo off); fi

echo "### $LABEL"
echo
echo "repository primary checkout  : \$R/acme"
echo "firstmate home's project     : \$R/acme-mate     (linked worktree of acme)"
echo "isolated slot treehouse gets : \$R/acme-slot-7   (linked worktree of acme)"
echo "pane reads reporting primary : $STALE"
echo
echo "\$ bin/fm-spawn.sh ${args[*]//$root/\$R}"
set +e
FM_ROOT_OVERRIDE='' FM_HOME="$home" \
  FM_STATE_OVERRIDE="$home/state" FM_DATA_OVERRIDE="$home/data" \
  FM_PROJECTS_OVERRIDE="$home/projects" FM_CONFIG_OVERRIDE="$home/config" \
  FM_SPAWN_NO_GUARD=1 TMUX="fake,1,0" \
  FM_FAKE_PANE_PATH="$slot" FM_FAKE_PANE_STALE="$primary" \
  FM_FAKE_PANE_STALE_READS="$STALE" \
  FM_FAKE_PANE_COUNTFILE="$root/pane-reads" \
  PATH="$fake:$PATH" \
  "$WORKTREE/bin/fm-spawn.sh" "${args[@]}" 2>&1 \
  | grep -v '^warning: .*records no delivery contract line' | sed "s#$root#\$R#g"
rc=${PIPESTATUS[0]}
set -e
echo
echo "exit status: $rc"
echo
echo "\$ cat \$FM_HOME/state/$id.meta   # recorded task worktree"
if [ -e "$home/state/$id.meta" ]; then
  grep -E '^(worktree|project|kind)=' "$home/state/$id.meta" | sed "s#$root#\$R#g"
else
  echo "(no metadata written - launch refused)"
fi
echo
Evidence: Crewmate launch, before vs after
BEFORE (base c499f84)
$ bin/fm-spawn.sh demo-ship-a1 $R/acme-mate --mode no-mistakes --yolo off
error: treehouse get did not yield an isolated worktree (resolved '$R/acme'; worktree root '$R/acme'; spawning project '$R/acme-mate'); refusing to launch to avoid tangling the primary checkout. Inspect target firstmate:fm-demo-ship-a1
exit status: 1
$ cat $FM_HOME/state/demo-ship-a1.meta
(no metadata written - launch refused)

AFTER (change under test)
$ bin/fm-spawn.sh demo-ship-a1 $R/acme-mate --mode no-mistakes --yolo off
spawned demo-ship-a1 harness=codex kind=ship mode=no-mistakes yolo=off window=firstmate:fm-demo-ship-a1 worktree=$R/acme-slot-7
exit status: 0
$ cat $FM_HOME/state/demo-ship-a1.meta
worktree=$R/acme-slot-7
project=$R/acme-mate
kind=ship
Evidence: Pane that never reaches an isolated worktree still refuses loudly (real 60s deadline)
$ bin/fm-spawn.sh demo-ship-a1 $R/acme-mate --mode no-mistakes --yolo off
error: treehouse get did not enter an isolated worktree within 60s (last seen '$R/acme': it is the repository's primary checkout (its git dir is the spawning project's common git dir); spawning project '$R/acme-mate'); inspect window firstmate:fm-demo-ship-a1
exit status: 1
$ cat $FM_HOME/state/demo-ship-a1.meta
(no metadata written - launch refused)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 info
  • ℹ️ bin/fm-spawn.sh:2898 - Durability bound, not a regression: the fix converts the linked-home failure from "adopt the primary at ~2s and refuse" into "wait for the pane to reach an isolated worktree", but that wait is still capped by the pre-existing 60-iteration/60s deadline. If treehouse get on the reporter's host needs longer than 60s to fetch and check out the slot, the launch still ends in the same refusal class the intent asks to eliminate (now worded did not enter an isolated worktree within 60s (last seen &#39;&lt;primary&gt;&#39;: it is the repository&#39;s primary checkout ...)). The change does not shrink that budget - it strictly enlarges the window in which a slow slot can still be adopted - so there is nothing to correct here; noting it because the fix's success on any given host depends on a timeout the change deliberately left alone. Any remedy (configurable or adaptive deadline) would extend the change beyond its stated scope.
✅ **Test** - passed

✅ No issues found.

  • bin/fm-test-run.sh --changed --exclude-family real-herdr-gated
  • ./tests/fm-spawn-worktree-settle.test.sh — 4/4 pass on the change (includes the two new primary-checkout cases)
  • Regression proof: same suite re-run with bin/fm-spawn.sh swapped to base c499f84, then restored — test_transient_primary_checkout_is_not_accepted fails there with did not yield an isolated worktree (resolved &#39;&lt;primary&gt;&#39; ...)
  • ./tests/fm-tangle-guard.test.sh — 6/6 pass, ~18s wall (the stubbed poll sleep from review round 1 holds)
  • ./tests/fm-spawn-pool-base-freshen.test.sh — all pass, including the four linked spawning home: ... cases
  • Manual end-to-end launch, crewmate: bin/fm-spawn.sh demo-ship-a1 $R/acme-mate --mode no-mistakes --yolo off from a linked-worktree home, pane on the repository primary for 3 reads then the slot — base exits 1 with the reported error, change exits 0 and records worktree=$R/acme-slot-7
  • Manual end-to-end launch, scout: same fixture with --scout — base exits 1 with the reported error, change exits 0 and records worktree=$R/acme-slot-7 with kind=scout
  • Manual loud-refusal check: same fixture with the pane never leaving the primary, real 60s deadline and real sleep — exits 1, writes no state/&lt;id&gt;.meta, and reports did not enter an isolated worktree within 60s (last seen &#39;$R/acme&#39;: it is the repository&#39;s primary checkout ...)
⚠️ **Document** - 1 info
  • ℹ️ docs/architecture.md:204 - Judgment call, left unchanged: the spawn-isolation regression pointer names tests/fm-spawn-pool-base-freshen.test.sh and tests/fm-control-relaunch.test.sh, but the definitive regression for this change's invariant (the discovery poll screening a transient primary-checkout read instead of adopting it) is tests/fm-spawn-worktree-settle.test.sh. That suite pre-dates this change and the line never listed it, so the omission is not staleness this change introduced, and adding a third pointer would be opportunistic expansion of an unrelated line. Worth a follow-up only if the pointer list is meant to be exhaustive.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

After `treehouse get` is sent, the worktree-discovery poll reads the pane's
foreground-process cwd. While treehouse is still fetching and checking a slot
out, the foreground process is treehouse itself and it reports the repository's
PRIMARY checkout as its cwd for several seconds. The poll accepted any path
that merely differed from the spawning project, so from a linked spawning home
- whose project is itself a worktree of that repository - it adopted the
primary, and the isolation guard then refused a launch whose slot treehouse
went on to create normally.

Screen every candidate with the isolation guard's own conditions, extracted as
spawn_worktree_isolated, so a read the guard would reject stays a transient the
poll keeps waiting through. The two-consecutive-reads rule and the guard as
final backstop are unchanged; a pane that never reaches an isolated worktree
still fails at the existing 60s deadline, now naming the last path it reported.

The already-settled timing assertion counted whole-spawn wall time against a
5s budget and failed on unmodified HEAD on slower machines; it now counts pane
reads, which is what "one confirming read, not an extra cycle" actually means.
Screening every discovery-poll candidate means a host that never reaches an
isolated worktree spends the whole 60s window before refusing. That wait is
deliberate - separating a transient from a terminal misconfiguration needs
machinery this path does not want - so the refusal explains itself instead:
the isolation check records why a candidate failed, and the deadline names the
last path seen together with that reason. Message and diagnostics only; the
poll's control flow is unchanged.

Two suites asserted the guard's wording on paths the poll now rejects rather
than adopts, so their refusal arrives from the deadline instead: realign
fm-tangle-guard's non-git and subdirectory-of-primary cases (each now also
asserting the stated reason, and the second the metadata absence it was
missing) and the herdr projection e2e's forced non-worktree cwd.
The refusal-reason assertion for a path outside any repository assumed TMPDIR
is not inside a git repository. Where it is, git walks up from the temporary
directory, finds that repository, and the spawn reports the subdirectory cause
instead - so the case passed or failed on a property of the host rather than on
the behaviour under test.

Build the path under a directory the test then names in GIT_CEILING_DIRECTORIES,
which git documents as not chdir-ing up into a listed directory while looking
for a repository. Git never excludes the directory being searched, so the
ceiling is the parent of the path handed to the spawn.

The assertions pin which cause fired rather than the sentence that explains it,
leaving the operator wording free to improve.
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate:

Triage on DRAFT HEAD f6bca6d79d8fb3a2a8fb577898d5952692cc1d85. Attestation MATCH. NM SUCCESS (34015704844).

Contract-class: restore. Isolation for linked-worktree homes is already promised; treating a transient primary-checkout pane read as settle-and-refuse is a defect (#3808). Polling until an isolated slot appears (or loud deadline refuse) restores the promised isolation path without widening authority.

VISION (short): First mate reads projects / workers in isolated copies — strengthens the refusal path when no isolated worktree is ever reached; Scripts own the mechanics (deterministic poll predicate).

Status: Still draft — will not merge from triage. CI 34015704880 in progress (Lint + several serial/Herdr still pending; parallels/macOS/invariants green so far).

Ask: When CI is fully green, mark the PR ready for review (leave draft until then if you prefer). No competing PRs / no code edits from triage.

outcome=waiting-author; merge=no; Firstmate-flag=no; security FYI=none.

…sts/fm-tangle-guard.test.sh ("non-worktree spawn did not say why the path was rejected (missing: 'not inside a git worktree')"). Root cause, in this PR's code: bin/fm-spawn.sh's spawn_worktree_isolated resolved the git toplevel with `wt_top_real=$(cd "$SPAWN_WT_TOP" ...)`. For a path in no repository, `git rev-parse --show-toplevel` yields empty, and `cd ""` is a SUCCESSFUL no-op on bash before 5.3 (CI's ubuntu-latest ships bash 5.2). The empty toplevel therefore resolved to fm-spawn's own cwd — the CI checkout — so the poll reported "it is a subdirectory of worktree root '/home/runner/work/firstmate/firstmate'" instead of the correct "it is not inside a git worktree". Dev machines with bash 5.3 fail `cd ""`, which is why the suite passed locally and only failed on CI; it is a genuine shell-portability defect in the reason vocabulary this change added, not a test-environment artifact. Fix (smallest root-cause change, 1 line + comment, bin/fm-spawn.sh:2168-2173): guard the empty value so it never reaches `cd` — if [ -n "$SPAWN_WT_TOP" ] && ! wt_top_real=$(cd "$SPAWN_WT_TOP" 2>/dev/null && pwd -P); then No change to the poll's timing or deadline behavior (respecting the recorded refusal-latency and spawn-wt-reason-vocabulary decisions), no new tests, no other files touched. Verification: - Reproduced the exact CI failure locally by putting bash 3.2 (same `cd ""` semantics as CI's 5.2) first on PATH: fails before the fix with the identical message shape, passes after. - tests/fm-tangle-guard.test.sh passes under both bash 3.2 and bash 5.3. - tests/fm-spawn-worktree-settle.test.sh and tests/fm-spawn-pool-base-freshen.test.sh pass; shellcheck -x bin/fm-spawn.sh clean. - bin/fm-test-run.sh --changed: 46 suites completed, every FM_TEST_END exit=0, 1076 passing assertions, 0 "not ok" (including fm-tangle-guard, fm-control-relaunch, fm-lint). The run ended on my own 900s wall-clock cap (rc=124), not on any test failure
@tiago-peixoto
tiago-peixoto marked this pull request as ready for review September 6, 2026 07:13
@greptile-apps

greptile-apps Bot commented Sep 6, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge, with the changed polling behavior preserving the isolation contract while fixing the documented linked-worktree launch failure.

The shared predicate rejects transient primary-checkout and invalid paths until a stable isolated worktree root appears, while existing supported backends settle at such a root and deadline failures remain explicit.

Reviews (1): Last reviewed commit: "no-mistakes(ci): Fixed the "Behavior por..." | Re-trigger Greptile

@kunchenguid
kunchenguid merged commit 51d2e8c into kunchenguid:main Sep 6, 2026
15 of 16 checks passed
@kunchenguid

Copy link
Copy Markdown
Owner

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