Skip to content

devBenches/base-image: re-vendor openRepoTools at f98d734 -- restart retired, lane/lane-handoff/handoff arrive, 14 -> 18 vendored paths (openRepoTools#40 already fixed by #44) - #91

Merged
brettheap merged 4 commits into
mainfrom
chore/revendor-openrepotools-f98d734
Sep 15, 2026
Merged

brettheap merged 4 commits into
mainfrom
chore/revendor-openrepotools-f98d734

Conversation

@brettheap

@brettheap brettheap commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

The openrepotools source pin moves from 8a36eb344935444e36ff5af5551e5bf9157f7f15 (workBenches#78) to f98d7347b8b38b01fc7293b3c0e9fec5d2b8cb1d -- gh api repos/opensoft/openRepoTools/compare/main...f98d7347b8b38b01fc7293b3c0e9fec5d2b8cb1d --jq .status = identical, so it is the commit opensoft/openRepoTools's main carries today.

Why

restart is retired from openRepoTools' installable set (lane-collision-protocol Amendment 18 Addendum 2 -- its act moved to lane <name>), and lane, lane-handoff and a handoff skill/command pair arrived beside it (Amendments 17(a) and 18). workBenches' D3 guarantee (no network reachable during host install) means every path openRepoTools --install places must be vendored here, byte-for-byte, or the offline install goes stale against upstream's own INSTALLABLES/SKILLS/COMMANDS arrays -- exactly the failure workBenches#78 fixed once already for the previous set change.

Pin

commit
old 8a36eb344935444e36ff5af5551e5bf9157f7f15
new f98d7347b8b38b01fc7293b3c0e9fec5d2b8cb1d

Nine commits land in that range (git -C openRepoTools log --oneline --first-parent 8a36eb3..f98d734), oldest first: 92eab6c (-* values refused, --flag=value reads through one flag_value), 8345d2f (PR #41, Amendment 15 -- canon_lane, one object log per lane under any case), f279423/#46 (pin openRepoShape at 39d5c98), b5244e2/#44 (--install stamps the documented mode on every artifact and refuses an unwritable target in the planning phase; wip init stages only the template paths it wrote), 66b4fb9/#53 (/restart's lread fence), a954435/#50 (commit_push's true-conflict die), 2faa883/#52 (the name guard's ONE-lane refusal), fcccbe0/#47 (Amendment 17 tooling -- lane-handoff, /handoff, /ctx), f98d734/#45 (Amendment 18 -- lane retires restart from $PATH).

The set change: 14 -> 18 vendored openrepotools paths

removed: restart (bin)
added:   lane, lane-handoff (bin)
         skills/handoff/SKILL.md
         commands/handoff.md, commands/ctx.md
unchanged install surface (re-taken at the new commit; bytes may have moved):
         openRepoTools, park, resume, status, lanes, lanes-edit.sh,
         lane-start, lane-end, link-estates, repos.tsv,
         skills/lane-swap/SKILL.md, skills/restart/SKILL.md, commands/swap.md

update-upstream.py apply --source openrepotools --at f98d7347b8b38b01fc7293b3c0e9fec5d2b8cb1d --yes --remove restart --add lane --add lane-handoff --add skills/handoff/SKILL.md --add commands/handoff.md --add commands/ctx.md took all eighteen paths. update-upstream.py check: 20 vendored copies match (18 openrepotools + 2 openreposhape), exit 0. Independently re-verified outside that tool too: every one of the eighteen vendored files is byte-identical to git -C openRepoTools show f98d734:<path>, by direct cmp.

On the host this raises openRepoTools --install's own artifact count from eighteen to twenty-six: twelve files on $PATH (not eleven), plus the three skills and three command files each placed at two paths (twelve), plus two settings.json entries (SessionStart and Amendment 12's UserPromptSubmit name guard) -- unchanged from that count.

What else changed, and why

Every place in this repository that lists or counts the vendored set, not just the bytes under files/openrepotools/:

  • devBenches/base-image/Dockerfile: the COPY/chmod block places twelve bin files, not eleven (lane and lane-handoff in, restart out); the "other artifacts not COPY'd into the image" comment now says six source files (three skills, three commands), not three, and names the second ~/.claude/settings.json entry.
  • scripts/setup-estate-commands.sh: TOOLS_FILES/SKILL_NAMES/COMMAND_NAMES carry the new set (the two arrays are new, replacing six individual require_pin_row calls with two loops); every stale ELEVEN/FOURTEEN/EIGHTEEN count in its comments is re-derived; check_shim_list now refuses the whole install if any of those three lists ever disagrees with the vendored shim's own INSTALLABLES/SKILLS/COMMANDS (added responding to Copilot's review, see below -- this used to be a hand-kept assumption with nothing checking it).
  • devcontainer.test/test-setup-estate-commands.sh: the new arrays extend scenarios (a), (b), (c), (l) and (m) for free; the 12 of 12 placed line; a new assert_guard_hook_present covers the UserPromptSubmit entry --install now also merges; three new scenarios (n)/(o)/(p) from Copilot's review, below. 182 -> 240 PASS, 0 FAIL.
  • devcontainer.test/test-claude-profile-skill-install.sh (CI-gated): Amendment 17(a) turned skills/lane-swap/SKILL.md into a 26-line redirect to skills/handoff/SKILL.md, where the mechanics this suite audits (F-S5-F-S9, RV-S1, RV-S2 equivalents) now live -- retargeted onto a new HANDOFF_SOURCE, each assertion re-verified against the real f98d734 bytes rather than assumed to have moved intact. GREEN: 11 scenarios, 141 assertions.
  • devcontainer.test/test-claude-profile-amendment-11.sh (large audit suite, NOT CI-gated): same retarget for its ~50 equivalent assertions, plus two fixes to the suite's own matching (an unbounded awk fence-toggle; a grep -F against prose that wraps across two comment lines). Left improved but not green -- see disposition below.
  • README.md: twelve bin files, twenty-six total artifacts, and now names the COMMANDS array beside INSTALLABLES/SKILLS (a pre-existing gap, fixed here); the "not written by hand" claim reworded to match what check_shim_list actually does now (hand-kept, checked, not generated).

opensoft/openRepoTools#40 disposition

Copilot's review of workBenches#78 raised four findings against the vendored bytes at 8a36eb3, filed upstream as opensoft/openRepoTools#40. All four are already fixed upstream, inside the range this pin move crosses, by opensoft/openRepoTools#44 (closed 2026-09-14T22:54:23Z). Nothing to take in the vendoring glue for them.

Copilot's review of this PR

Three rounds, twelve findings total, all addressed:

All six review threads GitHub could resolve (inline comments) are replied to and resolved.

Tests

  • devcontainer.test/test-setup-estate-commands.sh: 240 PASS, 0 FAIL, exit 0 (up from 182 at the old pin).
  • devcontainer.test/test-claude-profile-skill-install.sh: 11 scenarios, 141 assertions, GREEN.
  • devcontainer.test/test-setup-workspace-repo.sh: 152 checks, 0 failed, exit 0.
  • devBenches/devcontainer.test/test-speckit-git-feature.sh: 59 PASS, 0 FAIL, exit 0 (unaffected -- its fixture derives from the openreposhape pin, untouched here).
  • bash -n and shellcheck -S error clean on every changed script.
  • CI: all checks green (regression x2, bash-3-2 x2, git-2-34-1 x2, CodeQL, Analyze x3).

The base image was not rebuilt here (consistent with workBenches#78's own precedent).

What's next

opensoft/openRepoTools#61 is expected to land within the next hour or two and move main again; a follow-up commit on this branch will re-vendor to that commit once it lands.

🤖 Generated with Claude Code

https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m

…` retired from $PATH, `lane`/`lane-handoff`/`handoff` arrive, eighteen vendored paths not fourteen (opensoft/openRepoTools#40's four findings already fixed upstream by #44)

The `openrepotools` source pin moves from 8a36eb344935444e36ff5af5551e5bf9157f7f15
(workBenches#78) to f98d7347b8b38b01fc7293b3c0e9fec5d2b8cb1d -- `gh api
repos/opensoft/openRepoTools/compare/main...f98d7347b8b38b01fc7293b3c0e9fec5d2b8cb1d
--jq .status` = identical, so it is the commit opensoft/openRepoTools's main
carries today. Nine commits land in that range (`git -C openRepoTools log
--oneline --first-parent 8a36eb3..f98d734`), oldest first: 92eab6c (`-*`
values refused, `--flag=value` reads through one `flag_value`), 8345d2f (PR
#41, Amendment 15 -- `canon_lane`, one object log per lane under any case),
f279423/#46 (pin openRepoShape at 39d5c98), b5244e2/#44 (`--install` stamps
the documented mode on every artifact and refuses an unwritable target in
the planning phase; `wip init` stages only the template paths it wrote --
this is the commit that closes #40, below), 66b4fb9/#53 (`/restart`'s
`lread` fence), a954435/#50 (`commit_push`'s true-conflict die), 2faa883/#52
(the name guard's ONE-lane refusal), fcccbe0/#47 (Amendment 17 tooling --
`lane-handoff`, `/handoff`, `/ctx`), f98d734/#45 (Amendment 18 -- `lane`
retires `restart` from $PATH).

THE INSTALLABLE SET CHANGED, not just the bytes. `restart` is gone from
`INSTALLABLES` (Amendment 18 Addendum 2 -- its act moved to `lane <name>`,
and the inside half stays a skill because a running session cannot exec a
launcher over itself); `lane` and `lane-handoff` joined it (Addendum 1,
Amendment 17(a)). `SKILLS` grew by `handoff`; `COMMANDS` grew by `handoff`
and `ctx`. Net: fourteen vendored openrepotools paths become eighteen.

  removed: restart (bin)
  added:   lane, lane-handoff (bin); skills/handoff/SKILL.md;
           commands/handoff.md, commands/ctx.md
  vendored again, unchanged install surface: openRepoTools, park, resume,
           status, lanes, lanes-edit.sh, lane-start, lane-end, link-estates,
           repos.tsv, skills/lane-swap/SKILL.md, skills/restart/SKILL.md,
           commands/swap.md

`update-upstream.py apply --source openrepotools --at
f98d7347b8b38b01fc7293b3c0e9fec5d2b8cb1d --yes --remove restart --add lane
--add lane-handoff --add skills/handoff/SKILL.md --add commands/handoff.md
--add commands/ctx.md` took all eighteen paths (ten re-taken at the new
commit, two unchanged byte-for-byte -- link-estates, repos.tsv -- five
added, one removed). `update-upstream.py check`: 20 vendored copies match
(18 openrepotools + 2 openreposhape), exit 0. Independently re-verified
outside that tool too: every one of the eighteen vendored files is
byte-identical to `git -C openRepoTools show f98d734:<path>`, by direct
`cmp`.

EVERY PLACE IN THIS REPOSITORY THAT LISTS OR COUNTS THE VENDORED SET is
updated to match, not just the bytes under files/openrepotools/:
  - devBenches/base-image/Dockerfile: the COPY/chmod block places twelve
    bin files, not eleven (`lane` and `lane-handoff` in, `restart` out);
    the "OTHER ARTIFACTS" comment now says six source files (three skills,
    three commands), not three, and names the second `~/.claude/
    settings.json` entry (the Amendment 12 UserPromptSubmit guard).
  - scripts/setup-estate-commands.sh: TOOLS_FILES carries the twelve;
    require_pin_row gained three calls, for `skills/handoff/SKILL.md`,
    `commands/handoff.md` and `commands/ctx.md`; every ELEVEN/FOURTEEN/
    EIGHTEEN count in its header and inline comments is re-derived (twelve
    bin files, eighteen pinned openrepotools paths, twenty-six artifacts
    total on a host).
  - devcontainer.test/test-setup-estate-commands.sh: TOOLS_FILES/
    SKILL_NAMES/COMMAND_NAMES carry the new set, which extends scenarios
    (a), (b), (c), (l) and (m) for free; the `12 of 12 placed` line; a new
    `assert_guard_hook_present` (mirroring `assert_hook_present`) covers
    the UserPromptSubmit entry `--install` now also merges, exercised in
    scenarios (a) and (b); every stale count in its header and inline
    comments is re-derived.
  - README.md: the two paragraphs under "Your Workspace Repository" that
    name what `openRepoTools --install` places are rewritten for twelve
    bin files and twenty-six total artifacts, and now name the `COMMANDS`
    array beside `INSTALLABLES`/`SKILLS` -- it had stopped mentioning
    COMMANDS entirely since ruling 9 added it, a pre-existing gap fixed
    here while every other count in the same paragraph was being re-drawn.

opensoft/openRepoTools#40 (Copilot's four findings against the vendored
bytes at 8a36eb3 -- `wip init`'s `git add -A -- .` staging pre-existing
workspace changes; modes not restored when bytes already matched;
`HOOK_PLAN=present` never applying 0600; an unwritable existing SKILL.md
passing the all-or-nothing target plan): all four are fixed upstream,
inside the range this pin move crosses, by opensoft/openRepoTools#44
(closed 2026-09-14T22:54:23Z, closing `#40` by number). Nothing to take in
the vendoring glue for them -- the fixed bytes arrive with this pin move
because openRepoTools' own files are copied byte-for-byte and none of the
four findings touched workBenches' own scripts.

Tests: devcontainer.test/test-setup-estate-commands.sh 224 PASS, 0 FAIL,
exit 0 (up from 182 at the old pin, for the larger artifact set).
devcontainer.test/test-setup-workspace-repo.sh: 152 checks, 0 failed, exit
0. devBenches/devcontainer.test/test-speckit-git-feature.sh: 59 PASS, 0
FAIL, exit 0 (unaffected -- its three-leg fixture derives from the
openreposhape pin, untouched here). `bash -n` and `shellcheck -S error`
clean on every changed script. The base image was not rebuilt here.

opensoft/openRepoTools#61 is expected to land within the next hour or two
and move `main` again; a follow-up commit on this branch will re-vendor to
that commit once it lands.

Lane: openRepoTools-3

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
Copilot AI lite review requested due to automatic review settings September 15, 2026 12:40

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Re-vendors openRepoTools at f98d734, replacing the retired restart executable with lane and handoff tooling while updating installation, Docker, tests, pin metadata, and documentation.

Changes:

  • Adds lane, lane-handoff, handoff skills, and command files.
  • Updates installer validation and artifact counts for 26 installed artifacts.
  • Refreshes vendored files and upstream pin metadata.
File summaries
File Description
scripts/setup-estate-commands.sh Updated as part of this pull request.
README.md Updated as part of this pull request.
devcontainer.test/test-setup-estate-commands.sh Updated as part of this pull request.
devBenches/base-image/upstream-pin.yaml Updated as part of this pull request.
devBenches/base-image/files/openrepotools/status Updated as part of this pull request.
devBenches/base-image/files/openrepotools/skills/restart/SKILL.md Updated as part of this pull request.
devBenches/base-image/files/openrepotools/skills/lane-swap/SKILL.md Updated as part of this pull request.
devBenches/base-image/files/openrepotools/skills/handoff/SKILL.md Updated as part of this pull request.
devBenches/base-image/files/openrepotools/resume Updated as part of this pull request.
devBenches/base-image/files/openrepotools/restart Updated as part of this pull request.
devBenches/base-image/files/openrepotools/park Updated as part of this pull request.
devBenches/base-image/files/openrepotools/lanes Updated as part of this pull request.
devBenches/base-image/files/openrepotools/lane-end Updated as part of this pull request.
devBenches/base-image/files/openrepotools/commands/swap.md Updated as part of this pull request.
devBenches/base-image/files/openrepotools/commands/handoff.md Updated as part of this pull request.
devBenches/base-image/files/openrepotools/commands/ctx.md Updated as part of this pull request.
devBenches/base-image/Dockerfile Updated as part of this pull request.
Review details

Suppressed comments (9)

README.md:108

  • The implementation does not derive these lists from the shim's INSTALLABLES/SKILLS/COMMANDS: TOOLS_FILES is a literal array (scripts/setup-estate-commands.sh:155) and the pin checks are literal calls (scripts/setup-estate-commands.sh:228-256). This sentence therefore promises a safeguard that does not exist; a future upstream artifact could make --install succeed while this wrapper omits its preflight/verification. Either generate the wrapper's lists from the pinned arrays or document that they are separately maintained.
**`openRepoTools --install` is the single writer of everything it places** (lane-collision-protocol Amendment 9(b), adoption act 4b). It places twelve files into `${OPENREPOTOOLS_BIN_DIR:-~/.local/bin}` at 755 — `openRepoTools`, `park`, `resume`, `status`, `lane`, `lanes`, `lane-handoff`, `lanes-edit.sh`, `lane-start`, `lane-end`, `link-estates` and the shipped alias table `repos.tsv` — plus fourteen artifacts that are not in that directory: the `handoff`, `lane-swap` and `restart` skills and the `handoff`, `ctx` and `swap` command files, each at `${CLAUDE_PROFILES_HOME:-~/.claude-profiles}/shared/skills/<name>/SKILL.md` (or `.../shared/commands/<name>.md`), and a copy of each at `~/.claude/skills/<name>/SKILL.md` (or `~/.claude/commands/<name>.md`) for a bare `claude` outside the launcher, plus two merged entries in `~/.claude/settings.json` — the `SessionStart` entry and lane-collision-protocol Amendment 12's `UserPromptSubmit` name guard. **None of those counts is written by hand:** they are what the pinned shim's own `INSTALLABLES`, `SKILLS` and `COMMANDS` arrays say, and `scripts/setup-estate-commands.sh` derives its pre-flight and verify lists from the same read, so a shim that grows cannot leave this paragraph or that script behind. Nothing else in this repository writes any of those twenty-six: `scripts/setup-claude-profiles.sh` used to install the skill and ensure that hook entry, and adoption act 4b deleted both. The one `SessionStart` ensure that is NOT `--install`'s is the launcher's own, in each *profile's* `settings.json` — a different file for a different run. That merge refuses — placing nothing at all, exit 2, bin directory untouched — on one condition only: a `SessionStart` entry that itself runs `session-start` under a different command string, which is a second program running the same hook verb and would fire it twice (R-A9-8, narrowed from `lanes-edit.sh` to the verb by R-A9-14). An unrelated `SessionStart` entry is merged beside it and the install exits 0.

devBenches/base-image/files/openrepotools/lane:215

  • --dir consumes any non-empty next token, so lane --dir --all silently treats --all as the path instead of rejecting the malformed invocation. The sibling flag parsers reject spaced -* values (while allowing an explicit --dir=--...), so apply the same fence here; otherwise an option can be swallowed and the command runs a different operation than requested.
	--dir) dir_flag="${2-}"; [ -n "$dir_flag" ] || die "--dir needs a path" 64; shift 2 ;;
	--dir=*) dir_flag="${1#--dir=}"; [ -n "$dir_flag" ] || die "--dir needs a path" 64; shift ;;

devBenches/base-image/files/openrepotools/lane-handoff:519

  • This real tmux rename-window mutation happens before the writer snapshot is even created and before the handoff/PAUSED record gates. If the later mktemp precondition (line 687) or a record/handoff write refuses, the command exits without completing the handoff but leaves the caller's window renamed; this contradicts the failure message that says nothing was renamed and can misattribute the window. Defer the rename until the fallible preflight/record steps have succeeded, or make the rename part of an explicit, recoverable transaction.
if have_tmux && [ -n "$window_name" ] && [ "$window_name" != "$lane" ]; then
	tmux rename-window "$lane" 2>/dev/null &&
		step "window renamed '$window_name' → '$lane' (Amendment 8(b): the window IS the lane)"
fi

devBenches/base-image/files/openrepotools/lane-handoff:434

  • Both window-address checks are prefix globs: session:1junk and @123junk pass, including when supplied through the environment fallbacks. Those values are then written into the append-only window field, but window-lane cannot resolve them; the launcher and lane-start require full ^.+:[0-9]+$ / ^@[0-9]+$ matches. Use full-match validation for both the live tmux values and the fallbacks.
	win="$(tmux display-message -p '#S:#I' 2>/dev/null || :)"
	case "$win" in *:[0-9]*) : ;; *) win="" ;; esac
	wid="$(tmux display-message -p '#{window_id}' 2>/dev/null || :)"
	case "$wid" in @[0-9]*) : ;; *) wid="" ;; esac

devBenches/base-image/files/openrepotools/lane-handoff:8

  • The new executable contains the stateful handoff implementation (handoff-file refresh, writer polling, append-only PAUSED records, and --restart/--exit pane actions), but the added tests only verify that its bytes are pinned and installed; no test invokes lane-handoff or the /handoff//ctx runtime path. Regressions in these branches can therefore pass the reported suite. Add a hermetic runtime regression suite and register it in the repository's test entrypoint.
# lane-handoff — the swap, the context clear and the handoff, under one name.
#
#   lane-handoff [why]             hand this lane off: fix the identity triple,
#                                  refresh the handoff, poll the writers, write
#                                  the PAUSED record, print the restart line

devBenches/base-image/files/openrepotools/lane-handoff:242

  • --lane= is accepted with an empty value, so the resolver below treats it exactly like no --lane and silently falls back to the current window/workstation lane. That makes an explicitly supplied empty argument operate on an unintended lane instead of refusing it; park/resume/status already reject empty equals-form values via their shared flag_value rule. Reject the stripped value here while still allowing non-empty --prefixed values to reach the normal lane-name validation.
	--lane=*) lane="${1#--lane=}"; shift ;;

devBenches/base-image/files/openrepotools/openRepoTools:277

  • The new RETIRED=(restart) path is not exercised by test-setup-estate-commands.sh: its fresh and repeat scenarios never seed an old restart target, and there is no assertion that an installer-owned copy is removed while a user-owned file or symlink is preserved. A future change could therefore leave the retired executable on PATH (or delete the wrong one) while the reported 224 checks still pass. Add focused stale-target cases for both ownership branches.
RETIRED=(restart)

devBenches/base-image/files/openrepotools/skills/handoff/SKILL.md:419

  • This copy of the handoff procedure has the same permissive *:[0-9]* check. A malformed WORKBENCHES_CLAUDE_WINDOW_REF such as session:1junk can therefore survive the fallback and be appended to the window payload, leaving a record that cannot be resolved later. Validate the live value and fallback with the same full-match expression used by the launcher.
win="$(tmux display-message -p '#S:#I' 2>/dev/null)"
case "$win" in *:[0-9]*) : ;; *) win="" ;; esac
[[ -n "$win" ]] || win="${WORKBENCHES_CLAUDE_WINDOW_REF:-}"
case "$win" in *:[0-9]*) : ;; *) win="" ;; esac

devBenches/base-image/files/openrepotools/skills/handoff/SKILL.md:509

  • why_text is computed immediately above, but both record writes still embed literal template text (<sanitized verbatim> and <what's open...>). Executing this documented block therefore records placeholders instead of the operator's reason, unlike lane-handoff, which passes the sanitized reason to both writes; use the computed value at both sites.
  "on <operator>'s word: <sanitized verbatim>"
  • Files reviewed: 21/22 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

brettheap and others added 2 commits September 15, 2026 13:07
…1.sh: retarget onto skills/handoff/SKILL.md, where Amendment 17(a) moved the lane-swap mechanics this re-vendor picks up

Both suites carried content assertions against `skills/lane-swap/SKILL.md`
that Amendment 17(a) turned into a 26-line redirect to `skills/handoff/
SKILL.md` (the pin move in the previous commit picks this up): the CI-gated
suite failed outright (`R-A8-7`'s prompt-count line no longer there), and the
much larger, non-CI suite would have failed the same way had anyone run it.

test-claude-profile-skill-install.sh (CI-gated, .github/workflows/
speckit-git-bash.yml): scenarios 6-8 now read a new HANDOFF_SOURCE constant
instead of SKILL_SOURCE for every mechanics assertion (F-S5-F-S9, RV-S1,
RV-S2) -- each one re-verified directly against the actual f98d734 bytes,
not assumed to have survived the move; the two identity checks specific to
lane-swap's own old name became handoff's; scenario 5 gained pin-row checks
for the three new openrepotools paths; scenario 11 now checks BOTH alias
files (lane-swap and swap.md) for the same "invokes handoff, does not
duplicate it" shape. One upstream defect surfaced in the process and is
exempted by exact, cited text rather than silently skipped: opensoft/
openRepoTools#78 (a bare `pclaude <profile>` in a fenced example block
parses as two malformed redirections, unlike every other placeholder in the
same file, which stays inside a quoted `${VAR:-<profile>}`). GREEN: 11
scenarios, 141 assertions.

test-claude-profile-amendment-11.sh (large Amendment-11 audit suite, NOT
wired into CI): same retarget for its ~50 HANDOFF_MD-style assertions
(payload sub-field order and sanitising, the workstation read, the uuid
guard, the rename act, step 5's restart command), plus two fixes to the
suite's own matching (an `awk` fence-toggle unbounded past "## 5." that was
only safe by accident of the old file's shape; a single-line `grep -F`
against prose that wraps across two `#` comment lines). The payload now
carries six sub-fields where the suite expected four (Amendment 17(b) added
`agent`/`transcript`, Addendum 1 added `kind`), so that expectation is
updated too. Running the suite start to finish also surfaced that several of
its assertions were ALREADY failing against the OLD 8a36eb3 content,
independent of any pin move -- confirmed by running each one directly
against `git show 8a36eb3:skills/lane-swap/SKILL.md` -- so this is
pre-existing rot the suite's absence from CI let stand, not a new
regression. One of those (an uncited "the only act there is" claim,
superseded by Amendment 12's guard) is against vendored bytes and filed
upstream as opensoft/openRepoTools#79 with the same cited-exemption
treatment as #78. The rest (a missing `0e40d6e` citation, an assumed
`session_field` variable and two literal strings that exist in neither the
old nor the new vendored copy) are not chased further here: they predate
this pin move, are unrelated to it, and are filed as opensoft/
workBenches#93 for their own pass. This suite is left improved -- pointed at
the file that actually carries the content now, with two of its own bugs
fixed -- but is not green, and is not expected to be by this commit.

Lane: openRepoTools-3

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
An `awk ... > file.new && mv file.new file` step in my own tooling, used to
insert the HANDOFF_MD variable declaration, created the replacement through
shell redirection and lost the source file's mode in the process (644 where
every sibling devcontainer.test/*.sh is 755); `git diff HEAD~1 HEAD` on the
prior commit confirms it as the only unintended change there. No bytes
differ from that commit.

Lane: openRepoTools-3

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
Copilot AI review requested due to automatic review settings September 15, 2026 13:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Four unresolved review findings remain, including three critical issues.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

devBenches/base-image/files/openrepotools/lane-end:695

  • transcript-holders defines the sixth field as the ownership verdict (here, companion, duplicate, or unrelated), while dr_where is only display text and is window ... for every live tmux holder, including duplicates in another window. This classifies a real duplicate as owned by the current lane, adds its PID to dup_own, and the later check at line 738 refuses retiring that duplicate as if it were the lane's own session. Base this ownership check on dr_verdict = here instead.
          case "$dr_where" in
            "window "*"(gone)") dr_own=0 ;;
            "window "*) dr_own=1 ;;
            *) dr_own=0 ;;
          esac

devcontainer.test/test-claude-profile-amendment-11.sh:2442

  • This retarget also leaves the guard assertions incompatible with the vendored skill: its append-line write is inside the if [[ -z "$ws_missing" ]] block (skills/handoff/SKILL.md:506-515), but the test explicitly fails when append-line appears inside guard_block at line 2872. Consequently the script still cannot pass after only changing HANDOFF_MD; revise these checks to match the current upstream semantics.
HANDOFF_MD="$REPO_ROOT/devBenches/base-image/files/openrepotools/skills/handoff/SKILL.md"  # Amendment 17(a): the mechanics below moved here

devcontainer.test/test-claude-profile-amendment-11.sh:2442

  • Retargeting HANDOFF_MD here makes scenario 6 fail deterministically: the pinned skills/handoff/SKILL.md contains no 0e40d6e, so the assertion at line 2642 always calls fail. Please update or remove this citation check based on the handoff file's actual ratification reference before pointing the suite at this path.
HANDOFF_MD="$REPO_ROOT/devBenches/base-image/files/openrepotools/skills/handoff/SKILL.md"  # Amendment 17(a): the mechanics below moved here
  • Files reviewed: 23/24 changed files
  • Comments generated: 3
  • Review effort level: Lite

… by hand" claim true instead of aspirational

Copilot's review of #91 (README.md:108) found this paragraph promising a
safeguard that did not exist: "TOOLS_FILES is a literal array
(scripts/setup-estate-commands.sh:155) and the pin checks are literal calls
... This sentence therefore promises a safeguard that does not exist; a
future upstream artifact could make --install succeed while this wrapper
omits its preflight/verification."

True as written: TOOLS_FILES, and the six individual require_pin_row calls
for the three skills and three commands, were hand-typed to match
openRepoTools' own INSTALLABLES/SKILLS/COMMANDS at the moment someone wrote
them, with nothing checking they still did on the next re-vendor.

There is no `openRepoTools --list-installables` to generate these lists
from, so they stay hand-kept -- but scripts/setup-estate-commands.sh now
checks each one against the shim's own array before installing anything
(`check_shim_list`, run right after `update-upstream.py check` proves the
shim's bytes match the pin, so evaluating its one-line array assignment in
a subshell is evaluating integrity-checked content, not arbitrary vendored
bytes). SKILL_NAMES and COMMAND_NAMES are new arrays here too, replacing the
six individual require_pin_row calls with two loops -- the same shape
TOOLS_FILES already had, for the same reason. A shim that grows past what
this script lists now refuses the whole install (exit 2, naming both lists)
instead of silently installing the new file with no preflight or
verification.

devcontainer.test/test-setup-estate-commands.sh: two new scenarios.
(p) proves the refusal itself, against a throwaway base-image copy whose
shim gained a file and whose pin was hand-repinned to match (the same
effect `update-upstream.py apply` has, without the network call recomputing
a real upstream commit's digest would need). (n) and (o), added alongside
it, cover the other suppressed finding from the same review
(openRepoTools:277, `RETIRED=(restart)` not exercised): the two ownership
branches `retire_commands` decides between, a stale installer-owned copy
(removed and named) and a person's own file of the same name (named and
left, byte for byte). GREEN: all three added scenarios pass alongside the
existing ones.

README.md:108 reworded to describe what actually happens now: hand-kept
mirrors, checked against the shim's own arrays, rather than "derived from
the same read."

Lane: openRepoTools-3

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved moderate and critical findings remain in the vendored tooling and installation tests.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (5)

Previously missed (1) — in code that hasn't changed since the last review.

devBenches/base-image/files/openrepotools/lane-handoff:250

  • The --flag=* branches bypass flag_value, whose contract rejects an empty value, so this parser accepts malformed forms such as --lane= and --agent=. An empty lane then falls through to window/register autodetection, while an empty agent is later treated as unset and falls back to $LANES_AGENT/claude, so an explicitly supplied value can silently select a different lane or agent. Reject empty suffixes in each equal-form branch (or route both spellings through one non-empty-value helper) to keep the two forms consistent.

README.md:90

  • This update leaves the earlier Quick Start inventory inconsistent with the new install surface: line 13 still omits lane and lane-handoff, and line 26 still says there are only five lane tools. Please update those summaries as well so readers following Quick Start are not given a stale list.
Your host's `openRepoShape`, `openRepoTools`, `park`, `resume`, `status`, `lane`, `lanes`, `lane-handoff`, `lanes-edit.sh`, `lane-start`, `lane-end`, `link-estates` and `repos.tsv` come from workBenches' own pin (`devBenches/base-image/upstream-pin.yaml`). `setup.sh` places them from the vendored copies in `devBenches/base-image/files/openreposhape/` and `devBenches/base-image/files/openrepotools/`, and re-places them whenever a host copy differs from the pin, in either direction — behind, ahead, or hand-edited. To move them to a new upstream commit, move the pin with `update-upstream.py apply` and re-run `setup.sh`; do not edit the vendored files or the installed commands directly. The step refuses to run over a symlinked, non-regular, or read-only target, and verifies the thirteen placed files against the vendored copies before it reports success. Set `WORKBENCHES_SKIP_ESTATE_COMMANDS=1` to skip this step.

devBenches/base-image/files/openrepotools/lane:214

  • The spaced form consumes any non-empty next token as the path, so lane --dir --all <name> silently swallows the --all option and later passes --all as a directory to the launcher. Reject an empty or flag-looking value here (while retaining --dir=--all for an intentionally dash-prefixed path), matching the value-flag parsing used elsewhere in the vendored CLI.
	--dir) dir_flag="${2-}"; [ -n "$dir_flag" ] || die "--dir needs a path" 64; shift 2 ;;

devBenches/base-image/files/openrepotools/lane-handoff:442

  • win and wid are validated independently, and the launcher also exports these two environment variables independently. If only wid is available, this produces window_ref=' @<id>'; the later record then contains a malformed window field whose first reference is empty, so lanes-edit.sh cannot resolve the window. Emit the field only when both required references are present (or refuse the partial identity) instead of constructing it with a leading space.
window_ref="${win}${wid:+ $wid}"

devcontainer.test/test-setup-estate-commands.sh:271

  • This assertion only searches the raw JSON for lanes-edit.sh guard, so it passes even if the guard is accidentally added under SessionStart or another field; it never verifies the new UserPromptSubmit behavior. Query the .hooks.UserPromptSubmit[]?.hooks[]?.command entries with jq (as the dedicated guard-hook test does) so a misplaced guard is caught.
    assert_contains "$(cat "$settings")" 'lanes-edit.sh guard' "$label: settings.json carries the UserPromptSubmit guard command"
  • Files reviewed: 23/24 changed files
  • Comments generated: 2
  • Review effort level: Lite

@brettheap
brettheap merged commit 61ba865 into main Sep 15, 2026
12 checks passed
@brettheap
brettheap deleted the chore/revendor-openrepotools-f98d734 branch September 15, 2026 15:15
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