diff options
| author | Jesse Vincent <jesse@primeradiant.com> | 2026-07-05 12:00:35 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@ritter.dev> | 2026-07-23 17:27:16 -0700 |
| commit | 0b47219ac864352eed51237b81633986f88f3aa6 (patch) | |
| tree | 184f45deefefda32a89cf0b5dd961be1cfd6204e /scripts/package-codex-plugin.sh | |
| parent | fbb6dba450a74154baae931293ecffc8d836c1a3 (diff) | |
fix(skills): capture worktree path before Step 5 changes directory
Step 6 recomputed WORKTREE_PATH after Option 1 and discard had already
cd'd to the main repo root, so --show-toplevel returned the main root:
the provenance check could never match, cleanup silently no-oped, and the
branch delete failed with the worktree still attached. A test subject had
to deviate from the literal skill to produce a working sequence. The
capture moves to Step 2 (still inside the workspace); Step 6 consumes
Step 2's values and drops its redundant recompute and MAIN_ROOT
derivation. Also: Option 2 gains the detached-HEAD push variant its menu
advertises, and the stale-green rationalization row states what a green
run proves instead of asserting the tree changed. Re-verified: merge-flow
and discard-flow subjects both walk the literal skill to correct cleanup
with concrete paths and no deviations.
Diffstat (limited to 'scripts/package-codex-plugin.sh')
0 files changed, 0 insertions, 0 deletions
