You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Give the test suite explicit code, assembly, spec and dependency roots, so it runs on today's single repository and in the adopted triad, and refuses composed acceptance without all of them - #190
Part of #186.
T009/T010 of specs/004-migrate-to-triad/tasks.md (branch 004-migrate-to-triad, PR #187).
Head: b50f197 (4 commits on c4864ac; 8 files, all under tests/). The fourth commit, b50f197, fixes lane 3's finding (1); the reviewer's LAND on it is review 5471080687.
What changes
When the repository is adopted into the triad, the files split across three repositories:
README.md, AGENTS.md and CLAUDE.md move to the assembly root.
docs/ moves to the spec leg.
Every command, tests/, .gitmodules and contracts/openreposhape-pin.yaml stay in the code leg.
The dependencyupstream/openRepoShape stays nested in the code leg.
The suite assumed one tree. It now names four:
Root
Variable
Default (no variable)
code
OPENREPOTOOLS_CODE_ROOT
the tree the suite was loaded from
assembly
OPENREPOTOOLS_ASSEMBLY_ROOT
the nearest directory above the code root that carries contracts/code-pin.yaml and project.yaml, is a repository's top level, and records the code root as the gitlink its code pin names; absent on today's layout
spec
OPENREPOTOOLS_SPEC_ROOT
the assembly's spec leg (contracts/spec-pin.yaml's submodule_path) when it is checked out; absent otherwise
dependency
—
<code root>/upstream/openRepoShape, initialized or not
OPENREPOTOOLS_COMPOSED=1 is the composed switch. In either mode, the run is refused when a variable names the wrong kind of tree, or when the mode is anything other than 0 or 1.
Which root a file is read from (ROOTS.path_for(<rel>))
README.md, AGENTS.md and CLAUDE.md come from the assembly.
docs/…, openspec/…, specs/… and ideation/… come from the spec root.
Everything else comes from the code root.
Today's single tree answers for all three, because it carries openspec/ and specs/ beside the code. On today's layout, every reader reads exactly the file it always read.
Decision: .gitattributes stays in the code leg
The suite reads .gitattributes from the CODE root. Git never applies a superproject's .gitattributes inside a submodule. I measured this in the composed candidate:
README.md at the assembly is text: auto / eol: lf.
code/park and code/tests/run.sh are unspecified.
So the line-ending rule protects the bash files only through the code leg's own copy. Reading the assembly's copy would pass while the code leg went unprotected.
This matches T006: its leg patch code-0001 gives the code leg its own .gitattributes, and the assembly keeps its copy for its own files. Until code-0001 lands in the real leg, the leg's tests job is red on this one test, by design.
Follow-up for the plan's owner: the placement table in specs/004-migrate-to-triad/plan.md (§ Target placement) on main still puts .gitattributes at the assembly only. It needs amending to say the code leg keeps its own copy before the real split. A leg split exactly as the table says is red on this test; the independent review saw this in its C5 and C6 runs.
Length caps at an assembly root (T006)
File
Cap on today's layout
Cap when an assembly root is named
AGENTS.md
316 (unchanged)
340
README.md
486 (unchanged)
510
The higher caps allow exactly the 24 lines each that T006's assembly-0001 adds. Each cap has a dated entry. The entries cite specs/004-migrate-to-triad/root-guidance-2026-10-08.md, which is on #192's branch. Land #192 with or before this PR, or that citation points nowhere until it does.
Readers rewired
tests/test_repo_hygiene.py:
The 16 document tests read through doc(), and their per-surface loops visit the code's surfaces first (code_first()).
The two whole-tree scans use git ls-files over every repository the run can read. Today that is the code root; composed, it is code, assembly and spec.
tests/test_upstream_pin.py reads the code root's own git ls-tree HEAD, with the dependency nested in the code root. A new check confirms the code root is its repository's top level.
tests/test_openrepotools_command.py: the installer's receipt-mode README check.
tests/test_lane_helpers.sh: the two sections that quote docs/README-lanes.md used to swallow a missing file with || :.
The runner now passes the spec root's manual.
An empty value (no spec root) skips them, and the skip names the reason.
Fixed in b50f197: at dbc6837, the --retire section's two manual assertions (:6601-6602) used $ln_doc outside the guard that binds it. With no spec root they aborted the suite under set -u (ln_doc: unbound variable); this was lane 3's finding (1). They now carry the same guard and named skip. A new text test, test_the_lane_suite_reads_the_manual_only_inside_its_guard, holds every use inside a guard.
The reviewer's LAND review on b50f197 (5471080687) ran three proofs:
The new test against dbc6837's suite: 1 failed, naming lines 6601 and 6602. At b50f197: green.
An extract of the suite's own lines with no spec root, under bash 5.2.21 and 3.2.57: it aborts at dbc6837 and ends with three named skips at b50f197.
With the manual present, the output is byte-identical at both commits.
My own run of the new test against dbc6837 agrees: 1 failed.
A value naming no readable file FAILS, and the failure names the path.
tests/run.sh makes a relative root absolute before its cd. Nothing else in it changed.
The composed-vs-standalone contract
Standalone is the default, and the only mode today's layout has.
A check whose root is absent skips, and the skip names the root. This is the courtesy the missing submodule already gets.
The no-submodule skip is today's skip, with the same condition and reason.
On today's layout nothing new skips: the scoped run below is 191 passed, 0 skipped.
Composed is OPENREPOTOOLS_COMPOSED=1. tests/conftest.pyrefuses the session (pytest exit 4, ERROR: …), naming each problem, when:
the assembly or spec root is absent;
the dependency is not initialized;
the code or spec leg is not at the commit the assembly records as its gitlink, has tracked changes, or answers no git status.
In composed mode, NEEDS_UPSTREAM becomes a fixture that fails, and a document test that reaches an absent root fails. Nothing skips its way into composed acceptance (FR-008).
What the conftest does NOT check: the pin files' commit: and tree_sha256. Those belong to the standard's scripts/validate-pins.py. The T010 assembly job runs it in the step before the composed suite (Copilot round 2; see Follow-ups).
Evidence
Step 1: what the split breaks, before this change
I ran the suite at the rehearsed run C code leg 73b04d6, with tests/run.sh -k 'repo_hygiene or upstream_pin or wip_init or park_resume' -rfEs. Run C is main 837928a split by the standard's adopter into disposable local remotes (spec 593250d, assembly 69b8924).
Context
Result
M1: mounted in the recursive assembly clone
17 failed, 350 passed
M2: the code leg cloned alone, dependency initialized
17 failed, 350 passed
M3: the code leg cloned alone, dependency not initialized
17 failed, 141 passed, 209 skipped
The same 17 tests failed in all three runs, each with a FileNotFoundError:
nine on README.md;
one on CLAUDE.md;
three on AGENTS.md;
three on docs/README-lanes.md (the hygiene document tests);
one on .gitattributes (test_the_root_carries_the_line_ending_rule).
test_upstream_pin.py passed in all three, because it already read the code leg's own gitlink. M3's skips were today's dependency skips. Outside those selectors, the installer's README check and the lane suite's two docs/README-lanes.md sections read moved files too. The lane suite had swallowed the missing file with || :. This PR covers all of them.
Local proof in the triad
I applied the PR head onto run C's code leg and pinned it into the assembly with the standard's bump-leg.py. The validators, make validate and make pins all exited 0.
I ran -k 'repo_hygiene or upstream_pin or roots or composed or openrepotools_command or lane_helpers_suite' four ways:
Run
Result
Composed, as the assembly job runs it
285 passed, 2 failed, 0 skipped
Composed, with the spec leg not checked out
refused, exit 4
Code leg standalone
268 passed, 2 failed, 17 skipped (each naming its root)
Code leg without its dependency
159 passed, 1 failed, 28 skipped
The failures are recorded here, not deleted:
The code leg has no .gitattributes. This is the decision above.
Two lane-suite stamp assertions fail in the composed run and the standalone run, because their expected directory falls past the 240-character row cut under run.sh's long run-root path. CI passes them, and this PR does not touch them.
In the standalone run, the lane suite also aborted at ln_doc: unbound variable. That is the defect above. I first attributed this failure to the stamp assertions alone; lane 3's review caught it.
These proofs ran on c139e88's content and were not repeated on e3a76b5 or dbc6837. The independent review's fake triad (C1–C6) exercised dbc6837 composed and standalone. The full record is specs/004-migrate-to-triad/test-roots-and-ci-2026-10-08.md on 004-migrate-to-triad-ci.
Red at base: 21 of 21
All 21 test cases in tests/test_test_roots.py fail at origin/mainc4864ac.
Round 1. I copied the module as of c139e88 (sha256 be4edff7…) unchanged into a clone of c4864ac. tests/run.sh -k roots gave 18 failed: every test in the module. The 3 passes are tests in other modules whose names contain roots.
Seven of those failures are behavioural, and each fails on what it asserts:
The nested hygiene run passed against an assembly README with no install line, and against a spec manual without the fork act, because it read this checkout's files.
A standalone code leg's README test passed instead of skipping.
The lockstep check passed on a code root whose gitlink is 1111….
The dependency checks passed with no dependency, instead of today's skip.
A composed triad with its spec leg moved off its pin ran (exit 0, not 4).
The wrapper passed asm through as a relative path.
The other 11 are resolver tests. They fail because conftest.resolve_roots and ROOTS do not exist at the base.
Round 2. I copied dbc6837's module (sha256 aeb4b742…) the same way and ran -k 'length_caps or missing_manual or status_cannot_be_read'. That gave 3 failed: the three tests added since round 1. The independent review copied the same module whole into c4864ac and got 21 failed.
How the module works: it runs the suite itself, nested, against fixture triads built under tmp_path. Each fixture has:
a fake assembly with the rehearsed contracts/code-pin.yaml grammar, pins recomputed from the fixture trees, and project.yaml;
a code leg copied from this checkout;
a spec leg.
It never touches a real repository.
Green
tests/run.sh -k 'repo_hygiene or upstream_pin or roots or composed' gave 191 passed, 0 skipped at dbc6837 and on its merge onto main 63810dd. That was the independent review's run. My own earlier runs gave 188 at c139e88 and 189 at e3a76b5.
CI on dbc6837 (run 37869489919, merge 5ad6205):
Job
This PR
Main 63810dd
tests
1318 passed
1296
tests-no-submodule
1105 passed, 213 skipped
1084 passed, 212 skipped
tests-windows
176 passed, 1142 skipped
—
guard-launch-mode
165 passed
—
parse-macos
green
—
The one extra tests-no-submodule skip is the composed positive control, which skips with today's reason. tests-macos is running under ready (run 37873415160).
How the local runs were made
The workstation-wide pgrep census in tests/run.sh did not reach zero on Eagle for some runs. Under the coordinator's interim rule, any run that had not started within 5 minutes was replaced by run.sh's exact pytest line under flock on the same lock file. The logs say which runs those were, and the deviation is noted on #184. CI is the record.
Reviews
Copilot round 1: two findings, both fixed in e3a76b5, and both threads resolved.
A git status that fails is now a refusal.
The fixture legs keep .gitattributes.
Independent adversarial review: LAND on dbc6837.
Lane 3 (reviewer of record): LAND on dbc6837, with three things to fix before the squash.
(1) The $ln_doc abort, confirmed above, with the fix ready.
(2) The paired layout <assembly>/worktrees/<feature>/code finds no assembly.
(3) The root variables redirect the suite silently, because the report header is hidden by -q.
Copilot round 2 on dbc6837 raised two findings. Both are recorded as dated follow-ups, not pushed here, because the macOS gate is running.
(High) The conftest never reads the pin files' commit:. Reproduced: with contracts/code-pin.yaml's commit: moved off the gitlink, ROOTS.refusal() returns None, while validate-pins.py exits 1 with pin-gitlink-mismatch. That validator runs before the suite in the T010 job. Answered in the thread.
(Medium, "previously missed")_carries accepts a directory where a marker file is expected.
Follow-ups (dated 2026-10-09, recorded on #186; not in this PR)
Review findings 11 and 14 have commits on branch feat/test-roots-followups (6e63083, 2064390, on dbc6837). That branch is not part of this PR.
Review finding 11 — three code-only assertions sit after a document read. At test_repo_hygiene.py:994, :1052 and :1264, a code-only assertion follows the first doc() read, so a standalone code leg skips them together with the documents.
6e63083 asserts each mixed test's command half first. That covers park's header, status's --no-optional-locks, the installer's lanes [--all] [--fetch], the exit-3 table and the wrapper's lock claims.
2064390 proves it with a nested run against a fixture leg whose commands lost those lines.
Review finding 13 — the missing-manual failure is checked only by its text. The bad branch was exercised locally:
With the block extracted unchanged and stub ok/bad, LANE_MANUAL=/nonexistent/README-lanes.md prints FAIL the lane manual is where the run's roots put it, and an empty value skips.
Still to do: a behaviour test that runs the block itself.
Review finding 14 — the four variables are not in AGENTS.md.6e63083 adds seven lines to "Testing your changes" naming the roots, the three variables and the composed switch. Its AGENTS cap moves 316 → 323 (340 → 347 at an assembly root), with a dated entry.
Copilot round 2:
The conftest should refuse a pin whose commit: differs from the gitlink.
Root markers should be regular files.
Review finding 10: the plan owner's placement-table amendment (above).
Lane 3's review:
(1) feat/test-roots-manual-guard @ b50f197, unless it goes into this PR first.
(2) Discovery for the paired worktree layout, before Gate C.
(3) Say which roots a run used where -q cannot hide it.
Review finding 15 (nits):
(a) Roots.owner_of maps LICENSE and .gitignore to the code root. This is latent, because no test reads either.
(b) abs_root turns a quoted ~/x into $PWD/~/x.
(c) The GIT_ENV comment says "file transport allowed".
Not in this PR
The CI patches of T010 apply to repositories that do not exist yet:
the code leg's tests.yml;
the assembly's exact-pin job, as its own workflow (composed.yml), because validate.yml is a pinned shape copy.
They are on 004-migrate-to-triad-ci, with their local proofs. .github/workflows/tests.yml on main is unchanged.
Make the test suite operate safely across the current single repository and the adopted triad by resolving ownership explicitly and refusing incomplete composed runs.
New Features:
Add explicit code, assembly, spec, and dependency root resolution with environment-variable overrides and automatic triad discovery.
Add standalone and composed test modes, including composed-session refusal when required roots, pins, repository state, or dependencies are invalid.
Bug Fixes:
Ensure tests read documents, manuals, commands, pins, and dependency data from the repository leg that owns them instead of assuming a single tree.
Prevent missing lane manuals from being silently ignored and preserve informative standalone skips.
Enhancements:
Extend repository hygiene and upstream-pin checks across all repositories visible to a composed run.
Make the test wrapper normalize relative root paths before changing directories.
Add coverage for single-repository, standalone-leg, mounted-triad, invalid-root, pin-mismatch, and composed acceptance behavior.
Tests:
Add comprehensive root-resolution and composed-mode tests, including nested fixture-repository runs and wrapper environment propagation checks.
…s so it reads each file from the tree that owns it, and refuses composed acceptance without all of them.
Checkpoint of T009 (specs/004-migrate-to-triad/tasks.md, #186). Adopted into
the triad, README.md, AGENTS.md and CLAUDE.md move to the assembly root and
docs/ to the spec leg, while the commands, tests, .gitmodules and the
openRepoShape pin stay in the code leg. The suite assumed one tree.
tests/conftest.py now resolves the four roots from OPENREPOTOOLS_CODE_ROOT,
OPENREPOTOOLS_ASSEMBLY_ROOT and OPENREPOTOOLS_SPEC_ROOT, or from the layout
(an assembly above the code root that mounts it as its code gitlink), and
ROOTS.path_for() reads a file from the root that owns it. Standalone, an
absent root skips the tests that need it, naming the root; on today's single
tree nothing new skips, because that tree is all of them, and the
no-submodule skip is exactly today's. With OPENREPOTOOLS_COMPOSED=1 the
session is refused (pytest exit 4) when the assembly or spec root is absent,
the dependency is uninitialized, or a leg is not at the commit the assembly
records, and NEEDS_UPSTREAM fails instead of skipping.
The hygiene module reads the front-door documents and the lane manual through
those roots and scans every repository the run can read; the pin module reads
the code root's own gitlink and the dependency nested in it; the lane suite
and the installer's README check take the manual and the README from their
owning roots; tests/run.sh makes a relative root absolute before its cd.
tests/test_test_roots.py holds the resolver on fixture layouts and runs the
suite itself, nested, against fixture triads. Not yet run through the
workstation lock; the scoped runs and the CI patches follow.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The suite now treats code, assembly, spec, and nested dependency locations as explicit runtime roots, resolving them from environment variables or repository layout, routing every reader accordingly, and enforcing a strict composed-triad contract while retaining compatible named skips for standalone clones. New fixture-based tests exercise root discovery, path ownership, pin integrity, dependency states, wrapper propagation, and refusal behavior.
File-Level Changes
Change
Details
Files
Introduces centralized four-root discovery and validation with standalone and composed execution modes.
Adds environment-variable overrides and default discovery for code, assembly, and spec roots.
Models the dependency as nested under the code root and validates its initialization.
Validates marker files, repository boundaries, assembly gitlinks, pinned leg commits, and tracked cleanliness.
Refuses invalid configuration or incomplete composed sessions before pytest collection, while preserving named standalone skips.
Trigger a new review: Comment @sourcery-ai review on the pull request.
Continue discussions: Reply directly to Sourcery's review comments.
Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with @sourcery-ai issue to create an issue from it.
Generate a pull request title: Write @sourcery-ai anywhere in the pull
request title to generate a title at any time. You can also comment @sourcery-ai title on the pull request to (re-)generate the title at any time.
Generate a pull request summary: Write @sourcery-ai summary anywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment @sourcery-ai summary on the pull request to
(re-)generate the summary at any time.
Generate reviewer's guide: Comment @sourcery-ai guide on the pull
request to (re-)generate the reviewer's guide at any time.
Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore.
Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment @sourcery-ai review to trigger a new review!
…and composed contract PR #190 answers it with, and the local proofs of both T010 workflow patches.
Measured on the rehearsed run C code leg 73b04d6 in three contexts (mounted
in the assembly, standalone, standalone without the dependency): the same 17
hygiene tests fail on files the split moves out of the code leg, and nothing
else in the measured selectors. PR #190 is red at origin/main in 18 tests and
188 passed with nothing skipped on today's layout; CI green per push. In a
composed candidate pinned with bump-leg.py, the validators pass, the composed
job refuses a missing spec leg (exit 1 at its context step, exit 4 from the
suite), and the composed and standalone leg runs fail only on the code leg's
missing .gitattributes (a T006 finding) and two lane-suite stamp assertions
the long run-root path pushes past the row cut. Hosted runs wait for real
legs (Gate C). Part of #186.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d keep the code leg's own .gitattributes in the fixture legs (Copilot round 1 on #190).
A failed `git status` came back as None and was read as "no changes", so a
leg whose index could not be read passed the tracked-changes guarantee. It
is now a refusal naming the leg; a new test corrupts a fixture leg's index
and asserts it. The fixture code legs dropped .gitattributes with the other
assembly files, contradicting the contract that the code leg carries its own
line-ending rule; they keep it now.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Behaviour change pushed (e3a76b5, Copilot round 1): in a composed run, a leg whose git status fails is now refused instead of read as clean; the fixture code legs keep .gitattributes. Nothing changes on today's layout. Scoped run -k 'repo_hygiene or upstream_pin or roots or composed': 189 passed, 0 skipped (run.sh's pytest line under the lock, by the census rule). A second commit follows with two items from the T006 record (§10): the assembly README/AGENTS length caps and an explicit failure for a missing lane manual.
…d fail the lane suite by name when the lane manual is missing (T006's record of 2026-10-08, section 10).
In the triad the hygiene caps read the ASSEMBLY's files, which T006's root
guidance (assembly-0001) lengthens by 24 lines each: the shape's first-line
pointer and triad map in AGENTS.md, the lockstep-invariant section the leg
pins name and the three-repository front door in README.md. The caps are 340
and 510 where an assembly root is named or found, in dated entries; today's
single repository keeps 316 and 486, so main buys no line of prose. The lane
suite's two manual sections now fail naming the path when the manual the
roots point at is unreadable, instead of handing the assertions an empty
string. Three new tests; all three are red at origin/main (c4864ac). The
scoped green run was still queued behind the workstation lock at this
checkpoint; CI is the record.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Second behaviour commit pushed (dbc6837), from the T006 record (root-guidance-2026-10-08.md §10): where an assembly root is named or found, the README/AGENTS.md length caps are 510/340 (today's 486/316 plus the 24 lines each that assembly-0001 adds, in dated entries); today's single repository keeps 486/316, so nothing changes on today's layout. The lane suite's two manual sections now FAIL naming the path when the manual the roots point at is unreadable, instead of reading an empty string. Three new tests, all three red at origin/main c4864ac (3 failed). The local scoped green run was still queued behind the workstation lock at this checkpoint; CI on dbc6837 is the record.
The reason will be displayed to describe this comment to others. Learn more.
Independent adversarial review — lane openRepoTools-3 (read-only; 2026-10-09T02:10Z)
Verdict: LAND on dbc6837: all CI is green (tests-macos waits on ready). Today's single-repository layout is unchanged: the same 1296 test ids, the same pass/skip outcomes and skip reason, no file outside tests/, and the same length caps. One defect sits in the new triad path (finding 10: the shell suite aborts in a standalone code leg). It does nothing here; it is a two-line move that is best made before the squash.
What was reviewed.c139e88 (the brief's head), then each increment: e3a76b5 (Copilot round 1) and dbc6837 (the current head, 01:22:46Z). Main has moved from 837928a to 63810dd (#189, six specs//openspec/ files). GitHub's merge ref is 5ad6205, which is 63810dd + dbc6837. All work was in a scratch clone; no worktree, branch, PR, issue or register was written.
e3a76b5: all green. tests 1316 passed. tests-no-submodule 1103 passed, 213 skipped, every skip with today's reason. tests-windows 174 passed, 1142 skipped.
dbc6837: guard-launch-mode (165 selected, 1153 deselected), parse-macos, tests-windows (176 passed, 1142 skipped) and SonarCloud green. tests 1318 passed (finished 02:08Z). tests-no-submodule 1105 passed, 213 skipped, every skip with today's reason and the per-file skips identical to e3a76b5's.
tests-macos is skipped on every head because there is no ready label; that job is the landing gate.
The diff. The PR's own diff (63810dd...dbc6837) is 8 files, +1265/−69, all under tests/: conftest.py, run.sh, test_lane_helpers.sh, test_lane_helpers_suite.py, test_openrepotools_command.py, test_repo_hygiene.py, test_upstream_pin.py and the new test_test_roots.py.
What dbc6837 adds: readability guards before the two manual reads in test_lane_helpers.sh (+6); assembly-only length caps in test_repo_hygiene.py (+20/−2); two tests in test_test_roots.py (+53).
The merge is clean. The merge ref 5ad6205 minus 63810dd is byte-identical to the PR's patch. git diff --stat 63810dd 5ad6205 -- . ':(exclude)tests' is empty, and the gitlink stays 7f84ca4. So ./openRepoTools --install and the installed.tsv receipt are untouched by construction.
A misleading view to ignore. The branch is cut from c4864ac, so a two-dot diff against main shows #187/#188/#189's files reverted and the gitlink back at 39d5c98. The merge does neither.
How the roots resolve on today's layout: unchanged, measured. I imported each tree's conftest.py and compared 837928a against the merge, each with the submodule and without it.
REPO and UPSTREAM are identical.
NEEDS_UPSTREAM is the same skipif: the same condition, False with the submodule and True without, and the same reason text. WINDOWS_SKIP is identical.
ROOTS.layout is single and ROOTS.assembly is None. So root_of gives the code root for all three roles, path_for returns the old paths, tracked_roots() is [code] (the same git ls-files), and refusal() is None. The new caps (test_repo_hygiene.py:1779, :2284) therefore stay 316 and 486 here.
The variables. Five can redirect the suite: OPENREPOTOOLS_CODE_ROOT, _ASSEMBLY_ROOT, _SPEC_ROOT, _COMPOSED, and OPENREPOTOOLS_LANE_MANUAL (shell suite only). No workflow sets any of them. Setting all four OPENREPOTOOLS_* variables to the empty string gives today's roots, and so does _COMPOSED=0.
Hazard (non-blocking): a redirect is silent.OPENREPOTOOLS_CODE_ROOT (conftest.py:347) accepts any directory that carries openRepoTools and contracts/openreposhape-pin.yaml, and re-points REPO and UPSTREAM there. The test modules still come from this checkout. I measured it: pointing it at another checkout gave no refusal. OPENREPOTOOLS_ASSEMBLY_ROOT accepts any directory holding two empty marker files. It then also loosens the caps to 340 and 510.
Nothing shows it. The only trace is pytest_report_header (conftest.py:415). -q hides it, and both tests/run.sh and CI pass -q: the PR's CI logs and my collect runs contain the header zero times. Suggestion: print the roots to stderr whenever a variable is set.
Test-count invariant.
Collected ids, whole suite:
Tree
Tests collected
837928a (old main)
1296
63810dd (main)
1296 (the same ids)
c139e88
1315
dbc6837 (head)
1318
5ad6205 (merge)
1318 (the same ids as dbc6837)
None removed or renamed. 22 added: 21 in test_test_roots.py (18 at c139e88, 1 at e3a76b5, 2 at dbc6837) and test_upstream_pin.py::test_the_code_root_is_a_repository_of_its_own.
Touched modules run locally (test_repo_hygiene, test_upstream_pin, test_openrepotools_command, test_test_roots, test_run_wrapper): at c139e88, 294 passed, 0 skipped, 0 failed. At the merge 5ad6205, 297 passed, 0 skipped, 0 failed (8m47s).
Main against PR in CI (dbc6837):
tests: 1296 → 1318 passed.
tests-no-submodule: 1084/212 → 1105/213. All 213 skips carry today's reason, byte for byte. Skips per file are identical except +1 in test_test_roots.py: the @NEEDS_UPSTREAM positive control.
tests-windows: 155/1141 → 176/1142. The +1 skip is the WINDOWS_SKIP wrapper test.
Inside the shell suite: on today's layout it gains two ok assertions from dbc6837's readability guards. The pytest item is unchanged.
How I ran it:tests/run.sh's pre-lock census never cleared, with 4–7 foreign python3 -m pytest processes live. So I ran the wrapper's exact pytest invocation under flock /tmp/openrepotools-pytest.lock directly, with the same -q -p no:cacheprovider --basetemp and TMPDIR/PYTHONPYCACHEPREFIX set as the wrapper sets them. This is #184's finding.
The triad fixtures are hand-written, not rendered from the template.LEG_PIN (test_test_roots.py:68) and PROJECT_YAML (:88) are typed out. They are not rendered from openRepoShape's templates/assembly-root/ at 7f84ca4. LEG_PIN's keys match the template's contracts/code-pin.yaml field for field, minus comments. PROJECT_YAML has only id, name and legs. That does no harm, because the resolver reads only whether project.yaml exists and the pin's submodule_path:.
The dependency is real. It is a local git clone --no-checkout of the pinned submodule, checked out at the pin (:192) and nested at code/upstream/openRepoShape.
No network and no gh.
Stronger evidence: the resolver run against the real run C arrangement. I cloned it per its README: assembly 69b8924, code 73b04d6, spec 593250d, dependency 7f84ca4. For the mounted code leg, discovery finds both the assembly and the spec leg, and composed mode is not refused. That held both untouched and with this PR's tests committed into the leg and the assembly re-pinned. For a lone code-leg clone, assembly and spec are absent, and composed mode is refused naming both.
.gitattributes gap. The rehearsed code leg has no .gitattributes, so test_the_root_carries_the_line_ending_rule (test_repo_hygiene.py:2718; it reads at :2736) is red in every triad layout until the code leg gets its own (T006). Since e3a76b5 the fixture code leg keeps .gitattributes. That is right by the contract, but it no longer matches the rehearsed leg. Worth a Gate C checklist row.
.github/workflows/tests.yml is untouched on every head. Job names (tests, tests-no-submodule, tests-windows, parse-macos, tests-macos) are unchanged, as are the submodules: true/false settings and the triggers. There is no new job or matrix entry, so "green" means what it meant. One consequence: no job runs OPENREPOTOOLS_COMPOSED=1. Composed mode exists only inside test_test_roots' nested runs.
Bash 3.2 and Windows. The added shell lines (run.shabs_root, the LANE_MANUAL default, the guarded blocks and dbc6837's [ -r … ] guards) use none of ${x,,}, mapfile, declare -A, local -n, [[, |&. bash --posix -n is clean, and parse-macos (bash 3.2.57) is green on all three heads. dash -n on test_lane_helpers.sh fails, but that is pre-existing: line 238 at 837928a. On Windows, the wrapper test carries WINDOWS_SKIP. The nested-pytest tests, including the composed triad control, run and pass on Windows.
Docstrings and comments.
(a) test_lane_helpers.sh:51-57 says that a set-but-empty manual means "those quotes are SKIPPED". The third read aborts instead; see 10.
(b) test_test_roots.py:105-106 says "file transport allowed for the one local clone". GIT_ENV sets only an identity; the clone works because git allows a local clone the user invokes.
(c) The conftest docstring cites "the assembly's exact-pin job". No such job exists yet; it belongs to T010.
(d) test_upstream_pin.py's docstring now correctly says three tests carry NEEDS_UPSTREAM. That corrects the stale "one" on main.
(e) Two tests skip their code half along with the document half in a standalone leg. Both read the document before they assert anything about the code, unlike hygiene's code_first():
test_openrepotools_command.py:1397-1401 calls path_for("README.md") before the --help loop.
test_the_suite_wrapper_takes_one_lock_and_names_it_where_agents_read_it reads doc("AGENTS.md") (:3129) before any run.sh assertion.
(f) dbc6837's subject says it fails the lane suite "by name when the lane manual is missing", and test_the_lane_suite_fails_a_missing_manual_by_name (test_test_roots.py:360) holds the two cat "$LANE_MANUAL" reads. It does not see the third use of the manual text (:6601-6602), so finding 10 stands.
(g) The AGENTS cap's docstring (test_repo_hygiene.py:1771-1773) cites specs/004-migrate-to-triad/root-guidance-2026-10-08.md, patch assembly-0001. That file is not on 63810dd; it is in #192. The citation dangles until #192 lands.
Overlap with lane 3's feat/triad-lane-tooling. Read with git show on the main checkout's refs only. At c45a452 the branch is one docs-only commit: docs/triad-lane-tooling-analysis.md, 541 lines. Its tests/conftest.py, test_repo_hygiene.py and test_openrepotools_command.py blobs are identical to c4864ac, and tests/test_checkout_roots.py does not exist.
No conflict in committed code. The analysis records its earlier draft as dropped in favour of #190's definitions: manifest_legs, checkout_roots, ASSEMBLY, SPEC, source(), $OPENREPOTOOLS_TEST_{ASSEMBLY,SPEC}_ROOT, and a missing root failing in both modes. No symbol is left defined with two meanings.
One conflict in meaning. The analysis's T010 sketch (§4.14) runs code-PR CI with OPENREPOTOOLS_COMPOSED=1, _ASSEMBLY_ROOT set to assembly main, and _SPEC_ROOT. #190's composed contract (conftest.py:259-281, _leg_at_its_pin) refuses any code root that is not at the assembly's recorded gitlink. I measured it: "composed acceptance is for the pinned code leg and no other". So that job would exit 4 on every code PR. T010 must either run composed mode only in the assembly's exact-pin job, or #190 grows a third mode: named roots, an absent root fails, and no pin check.
Defect, still present at dbc6837: in a standalone code leg the shell suite aborts instead of skipping. test_lane_helpers.sh:6601-6602 (6595-6596 at c139e88) reads "$ln_doc" after the guarded block at :6244-6264, and ln_doc is assigned only inside it. The suite runs under set -uo pipefail (:42). Whenever the run has no spec root, test_lane_helpers_suite.py:180-182 sets OPENREPOTOOLS_LANE_MANUAL="".
Reproduced on bash 5.2.21 with dbc6837's own lines (42, 58, 6244-6264 without run/is, and 6601-6602). With the variable empty: ln_doc: unbound variable, exit 1. With it unset, the script reaches its end.
Effect: in a standalone code leg (run C's lone leg, or the paired worktree of 11), test_the_lane_helper_suite_passes FAILS where the PR says it skips. This does nothing on today's layout, where LANE_MANUAL is the code root's own manual, and no fixture exercises it.
Fix: move the two lines inside the if, and add their count to the skip text.
The paired worktree layout finds no assembly (Gate C item). discover_assembly (conftest.py:159-172) stops at the first ancestor that carries the markers, and returns None (:171) unless that ancestor mounts exactly this path. I measured it on run C with paired worktrees at <assembly>/worktrees/feat/{code,spec}. Standalone: assembly absent and spec absent, although the spec worktree sits at ../spec. Composed: refused. After Gate C that is the shape's default worktree layout (<root>/worktrees/<branch>/<mount>). There every document test skips, and with 10 the lane-helper suite aborts. Suggested fix: accept <assembly>/worktrees/<feature>/code, take the spec root from ../spec, and take the assembly from the root.
Design choice for lane 1 and T010: skip, or fail. Standalone, #190 SKIPS a read whose root is absent (path_for/need, conftest.py:215-241). It adds no workflow (6). In the triad, the code leg's own CI would therefore be green with README.md, AGENTS.md, CLAUDE.md and the lane manual never read: 16 hygiene tests plus the command test (13). That is sound only if T010 makes a composed job required on every code PR, and as defined, COMPOSED cannot be that job (9). Failing would be the honest default until T010 lands. Either way, this is not a change to today's layout.
Lane 2's run C list, mapped by test id (#186 comment 6072319462). This is 837928a's suite in the code leg 73b04d6: 21 failed, 1275 passed.
Standalone, with #190 as of dbc6837, 17 of the 21 turn into skips (all through doc()/path_for).
test_repo_hygiene.py:: the install line, the gh api form, the onboarding chain, the PowerShell twin, claude_md_points_at_agents_md, bare park, status, the sweep skip, the directory precedence, bare lanes, agents_md_names_the_pin_rules, the AGENTS cap, the README cap, exit 3, the fork act, and the suite wrapper.
In bare park, status, the sweep skip and bare lanes, code_first() asserts the command's own half before the skip.
4 stay red:
test_repo_hygiene.py::test_the_root_carries_the_line_ending_rule, by design (5).
test_lane_helpers_suite.py::test_the_lane_helper_suite_passes. Of the suite's 16 failures, 13 are manual assertions. 12 of those fall inside the two blocks that now skip (14 assertions skipped), and the 13th is where the run aborts, at :6601 (10). #180's row-stamp cuts at main's :1055 and :5335 still fail before the abort; the one at :7527 is never reached.
test_supervised_restart_regressions.py::test_completed_observer_cleanup_never_signals_saved_pid[exit] and [signal]. #190 does not touch these; the class is pending on lane 2's side (load 55–70).
Mounted inside the assembly's code/: discovery now reads the assembly's and spec leg's files. Lane 2 measured those as blob-identical to main's, and they are within the 340/510 caps. So I expect those 17 to pass, but that is inferred; I did not run it. Lane 2's Part 2 finding, that the run inside code/ "equals standalone exactly", was made without #190. With #190 the two runs differ by design.
Not checked here:
tests/test_lane_helpers.sh, the 40-minute shell suite, was not run locally. CI's tests job ran it inside test_the_lane_helper_suite_passes: green at all three heads.
tests-macos, which needs the ready label.
The "red at origin/main" claims in test_test_roots' docstrings.
Suite runs inside the rehearsed triad: the scratch was prepared, but I did not run the suite there. Finding 13's mounted expectation is therefore inferred.
The reason will be displayed to describe this comment to others. Learn more.
Independent adversarial review — lane openRepoTools-1 (read-only; 2026-10-09T02:10Z)
Verdict: LAND on head dbc6837.
The head moved twice while this review ran: c139e88 → e3a76b5 (Copilot round 1) → dbc6837 (T006's caps and the missing-manual failure). Every check below was redone at dbc6837, or at its merge onto current main 63810dd. That local merge has the same tree as GitHub's refs/pull/190/merge5ad6205: a433a5f….
Method:
Fresh scratch clones under the private prep area, never the shared checkout.
Every pytest run went through PATH=/usr/bin:$PATH flock "${TMPDIR:-/tmp}/openrepotools-pytest.lock" python3 -m pytest …. Local pytest is 9.1.1; CI uses 8.3.4.
Nothing on the branch was modified.
Today's layout is unchanged in every respect I could measure. Nothing below blocks the landing.
Findings
1. Scope. Not a block.
git diff --stat c4864ac...dbc6837 lists 3 commits and 8 files, all under tests/ (+1265/−69). The diff stat for openRepoTools and .github/workflows/* is empty.
The full diff removes five assert lines:
Three come back unchanged, pointed through the new root lookup:
CLAUDE.md → doc()
"skipped (no overlay)" → doc(name)
UPSTREAM / rel → DEPENDENCY_ROOT / rel
Two are the length caps, rewritten as cap = 316 if ROOTS.assembly is None else 340 and cap = 486 if ROOTS.assembly is None else 510 (tests/test_repo_hygiene.py:1779, :2284). On today's layout ROOTS.assembly is None, so they are still 316 and 486. They relax only at an assembly root, by exactly the lines T006 adds (see 12).
No skip was removed. The new skip sites are:
ROOTS.need (tests/conftest.py:233-239), reached only when a root is absent.
The unchanged NEEDS_UPSTREAM (:455).
A bash-absent skipif on the wrapper test.
Two bash skip lines for an empty OPENREPOTOOLS_LANE_MANUAL, which never happens on today's layout.
2. Default behaviour is unchanged. Not a block.
Code trace. With no variable set:
SUITE_ROOT and REPO are the old Path(__file__).resolve().parents[1] (conftest.py:53, :401).
discover_assembly (:159) returns None, because no parent carries contracts/code-pin.yaml and project.yaml.
layout is single (:191), so path_for answers the repository root for README, AGENTS, CLAUDE and docs/, and tracked_roots() is the code root alone.
NEEDS_UPSTREAM keeps the same condition and the same reason string.
Probe.ROOTS.describe() in a fresh clone gives standalone, single layout, with code, assembly and spec all equal to the clone and refusal=None.
Collect-only.c4864ac collects 1296. dbc6837 collects 1318, and so does its merge onto 63810dd. Every base node id is present at head. The 22 additions are the new module's 21 tests plus test_upstream_pin.py::test_the_code_root_is_a_repository_of_its_own.
Report header.pytest_report_header (:415) adds five lines only without -q. Every CI job and tests/run.sh pass -q, and I confirmed the header is absent under -q.
3. The no-submodule path. Not a block.
CI tests-no-submodule on dbc6837 (merge 5ad6205): 1105 passed, 213 skipped. Main 63810dd: 1084 passed, 212 skipped. Grouped by file, reason and count, the skip lists are identical except one added skip: tests/test_test_roots.py (its composed positive control), with today's exact reason the pinned openRepoShape is not checked out; run git submodule update --init upstream/openRepoShape.
Local, scoped (upstream_pin, repo_hygiene, park_resume and the receipt test, -rs, clones with no submodule): base 157 passed and 146 skipped; head 158 passed and 146 skipped. The skip sets are identical.
4. Composed mode, against a fake triad.
I built the fake triad from the head in scratch. The assembly has project.yaml, a contracts/{code,spec}-pin.yaml matching openRepoShape 7f84ca4's templates/assembly-root/contracts/code-pin.yaml field for field (leg_role, source_repository, submodule_path, commit, digests.tree_sha256 recomputed), gitlinks code and spec, and README/AGENTS/CLAUDE. The code directory is a --no-local clone of dbc6837 with a dissociated dependency, so it has no alternates. Not a block.
Detection. Discovery finds the assembly with all markers present. Each of the following, removed one at a time, gives None: project.yaml, code-pin.yaml, the assembly's repository, the pin's submodule_path pointing at this code root, and the gitlink at the mount.
C1, complete triad composed.test_repo_hygiene.py, test_upstream_pin.py and test_test_roots.py give 188 passed, 0 skipped.
I ran it with a Python audit hook (sys.addaudithook, inherited by the nested pytest runs). It logged 8413 events: opens, listdirs, scandirs, chdirs and Popens.
Zero events name the shared checkout or any other scratch clone.
Every subprocess cwd is inside the fixture or basetemp. The only paths outside them are site-packages, /usr/lib, /tmp probing, and a directory scan of the fixture's two parent directories.
C2. I removed the install line from the assembly's README and WSL2 from its AGENTS.md. Composed, test_the_readme_prints_the_install_line_the_pointer_prints and test_no_document_offers_a_windows_powershell_twin both FAIL, on the assembly's text.
C3, spec leg not checked out. Composed exits 4 with: the SPEC root is absent: the assembly's spec leg …/asm/spec is not checked out, and OPENREPOTOOLS_SPEC_ROOT is unset.
C4, dependency left empty. Composed exits 4 with: the DEPENDENCY …/code/upstream/openRepoShape is not initialized (no scripts/repo_shape.py, templates/workspace-root/README.md).
Mistyped variables.OPENREPOTOOLS_COMPOSED=yes exits 4, and so does OPENREPOTOOLS_SPEC_ROOT=nowhere, each naming the variable.
C5, split code leg composed. The triad's code leg was split exactly as plan.md's placement table says (no .gitattributes). Result: 166 passed, 1 failed, and the failure is test_the_root_carries_the_line_ending_rule (see 10).
C6, the same split leg standalone. 150 passed, 16 skipped, 1 failed (the same test). Every skip names its root: 9 README, 3 AGENTS, 1 CLAUDE, 3 docs/README-lanes.md. This matches the body's M1–M3 accounting: 17 = 16 + .gitattributes.
Lane manual path. In the split triad, composed, the manual is asm/spec/docs/README-lanes.md. That is the OPENREPOTOOLS_LANE_MANUAL value tests/test_lane_helpers_suite.py:181 passes.
5. Red at base, green at head. Not a block.
red1.OPENREPOTOOLS_ASSEMBLY_ROOT= an assembly whose README lacks the install line. At c4864ac the README test PASSES, because it read the checkout's own README. At head it FAILS with README.md does not carry the install line.
red2.OPENREPOTOOLS_COMPOSED=1 in a clone with no submodule. At base, test_upstream_pin.py exits 0 with 4 passed and 10 skipped. At head it exits 4, naming the absent ASSEMBLY, SPEC and DEPENDENCY.
red3.dbc6837's tests/test_test_roots.py, copied unchanged (sha256 aeb4b742…) into the base clone, gives 21 failed.
9 fail on behaviour: the README and manual reads, the standalone skip, lockstep 1111…, digest-without-dependency, a composed triad exit 0 != 4, relative asm, a cap file one line over (passed on an assembly file one line over its cap), and the missing-manual guard (found 0 manual reads).
12 fail on the missing resolve_roots or ROOTS.
The base clone was clean again afterwards.
Green at head. The module gives 21 passed. The body's selector -k 'repo_hygiene or upstream_pin or roots or composed' gives 191 passed and 0 skipped, both at head and on the merge onto 63810dd.
6. Portability. Not a block.
The added shell (tests/run.sh:75-96, tests/test_lane_helpers.sh:58, :3746-3750, :6244-6246) has no ${x,,}, ^^, mapfile, readarray, declare -A, local -n, read -a, |&, ;;&, coproc or $BASHPID (checked by grep). It uses ${var-default}, case, [ -r ] and [ -n ]. parse-macos (/bin/bash 3.2) is green on dbc6837.
Every changed .py parses under ast.parse(..., feature_version=(3, 9)).
No awk -v was added. No shell grep whose exit status matters was added; the stub python's plain grep writes to a file and its status is not read.
tests.yml is unchanged. tests-windows on dbc6837: 176 passed and 1142 skipped, against 155 and 1141 on main. The extra skip is the wrapper test's WINDOWS_SKIP.
7. Security and hygiene. Not a block.
The added lines contain no host-absolute path. test_no_committed_file_names_a_host_absolute_path is green inside the 191.
No new network reach. The one curl string is fixture README text, and the dependency fixture is a local-path clone.
8. CI is the record. Not a block.
Run 37869489919 on merge 5ad6205 (dbc6837 into 63810dd): tests 1318 passed (main 63810dd: 1296), tests-no-submodule as in 3, tests-windows and guard-launch-mode (165 passed) green, parse-macos green.
tests-macos was skipped because no ready label is on the PR.
9. The assembly's own state is not checked. Not a block; an observation for T010. Composed refusal checks that each leg's HEAD equals the gitlink the assembly records and that each leg is clean (_leg_at_its_pin, conftest.py:259; e3a76b5 now refuses an unreadable git status, :272). It does not check the leg pins' commit: or tree_sha256 against those gitlinks. It also does not check the assembly working tree itself: C2 read an uncommitted README edit. That fits "the assembly is the tree under test", and the assembly exact-pin job's validate-pins.py is the pin/digest authority. The T010 job should run both.
10. .gitattributes placement disagrees with plan.md on main. Not a block for this PR; it needs settling before Gate B.
conftest.py:62-69 and the test_the_root_carries_the_line_ending_rule docstring keep .gitattributes the code root's.
The placement table in specs/004-migrate-to-triad/plan.md (§ Target placement) on main still puts it at the assembly only.
The reasoning is sound: git does not apply a superproject's attributes inside a submodule. The body records the measurement. But the decision lives only in test-roots-and-ci-2026-10-08.md on the unlanded 004-migrate-to-triad-ci branch.
A plan-conformant split code leg is red on this test (C5, C6). The adoption mapping or plan needs the amendment (the code leg keeps its own .gitattributes) before the real split.
11. Three code-only assertions are lost to the skip in a standalone code leg. Not a block; no effect today, and composed runs assert them.
code_first() reorders only the per-surface loops.
In each of these tests, a code-only assertion comes after the first doc() read:
test_the_documents_say_what_bare_park_does_now: "PARKED EVERY ESTATE unasked" in park, test_repo_hygiene.py:994
test_the_documents_say_what_status_is_and_is_not: "--no-optional-locks" in status, :1052
test_the_documents_say_what_a_bare_lanes_lists: "lanes [--all] [--fetch]" in usage, :1264
So the body's "the command's half is asserted first" holds for the loops but not for these three. A standalone code leg (the T010 code-leg job) never runs them. Move them above the first doc(), or into their own tests, in the T010 follow-up.
12. The assembly caps of 340 and 510 depend on #192. Not a block; a landing-order note.
I applied T006's assembly-0001 patch (from 004-migrate-to-triad-evidence-2, PR #192) to README.md and AGENTS.md at 837928a, 63810dd and dbc6837. Each gives exactly README 510 and AGENTS 340: today's 486 and 316, plus 24 each. The numbers reproduce.
Both files would sit at their caps with zero slack, which is this repository's convention.
The docstrings cite specs/004-migrate-to-triad/root-guidance-2026-10-08.md, which is not on main; it is on #192's branch. Land #192 with or before this PR, or the citation dangles until it does.
The relaxation keys on ROOTS.assembly is not None, so naming any marker-bearing directory in OPENREPOTOOLS_ASSEMBLY_ROOT also gets 340/510. That is acceptable, because it is the assembly's file being measured.
13. The missing-manual branch is checked only by its text. Not a block.
tests/test_lane_helpers.sh:3749, :6245 add [ -r "$LANE_MANUAL" ] with ok/bad. On today's layout that is two more ok lines; the wrapper only reads the exit status.
The bad branch is never executed by any test. test_the_lane_suite_fails_a_missing_manual_by_name checks only the file's text shape, red at base (found 0).
That is consistent with how its neighbours treat the 40-minute shell suite, but it is a shape test, not a behaviour test.
14. Documentation. A finding, not a block.
The four variables are documented in conftest.py's docstring and in the PR body, but not in AGENTS.md "Testing your changes to this repository".
AGENTS.md is at its 316-line cap (test_agents_md_is_short_enough_to_be_read), so a line there needs a dated cap entry.
That section's "Without the submodule the command tests SKIP … they never fail" is now true only for standalone runs. Composed runs fail by design.
Worth one line in the T010 or T006 documentation pass.
15. Nits. None blocks.
(a) Roots.owner_of maps LICENSE and .gitignore to the code root, while the placement table puts them at the assembly. No test reads either, so this is latent.
(b) tests/run.sh:82abs_root turns a quoted ~/x into $PWD/~/x, while conftest._absolute would expanduser it.
(c) The GIT_ENV comment (tests/test_test_roots.py:105) says "file transport allowed", but nothing sets protocol.file.allow. A local-path clone does not need it.
(d) tests/test_test_roots.py:212 uses PEP 604 Path | None under from __future__ import annotations. That is fine on 3.9 and already done at base in test_openrepotools_command.py:163, :204-206, but conftest.py uses Optional.
(e) Standalone, with an assembly found but the spec leg not checked out, a code root that still carries docs/ answers for spec (C3s passed by reading the code leg's manual). Real code legs carry no docs/, so this is harmless.
16. PR body accuracy.
Reproduced:
the four-root table and its defaults
the routing rule, the 16 doc() tests and the 2 whole-tree scans (counted with ast)
refusal in both modes for a variable naming the wrong tree
composed exit 4 for a missing assembly, spec or dependency, and for a leg off its pin
the no-submodule skip is today's
"nothing new skips on today's layout"
Red at base (now 21 failed, not 18)
the 7 behavioural reasons (plus the 2 new ones)
Stale: the counts are c139e88's ("18 failed", "188 passed", "CI 1315"). At dbc6837 they are 21, 191 and 1318. The body also does not yet describe dbc6837's 340/510 caps or the missing-manual failure.
Not checked: the private run-C measurements (M1–M3) and the "Local proof in the triad" 285/2 numbers. They depend on rehearsal artifacts outside the repository; my C5 and C6 are the independent analogue and agree in kind.
17. Copilot. Both round-1 threads (conftest.py status-None; the fixture .gitattributes) are fixed in e3a76b5, but GitHub still shows them unresolved. Round 2 has not run.
Conditions left to the landing owner
Linux CI green on the head that lands. It is green on dbc6837 (merge 5ad6205): tests 1318 passed, tests-no-submodule 1105 passed and 213 skipped. If the head moves, re-check.
The macOS gate: the ready label, then a green tests-macos on the landing head.
Copilot: resolve the two round-1 threads and take or waive round 2, per the two-round rule.
Refresh the PR body's counts and add dbc6837's two items (finding 16).
Landing order: #192 with or before this PR, so the cap docstrings' citation exists on main (finding 12).
Not conditions for this PR, but owed before Gate B: amend the .gitattributes placement in the plan (10), the three standalone-leg assertions (11), and the AGENTS.md variables (14).
The root markers are required files, but exists() also accepts directories. An explicit code or assembly root containing directories named openRepoTools, project.yaml, or a pin path therefore passes the promised “wrong kind of tree” refusal and fails later in unrelated tests. Require each marker to be a regular file.
…ith both reviews, the .gitattributes decision and the dated follow-ups.
The record stopped at c139e88. Since then e3a76b5 refuses a leg whose git
status cannot be read and keeps .gitattributes in the fixture legs (Copilot
round 1), and dbc6837 adds T006's assembly-root caps and fails a missing lane
manual by name. Readers of the migration plan need four things here that were
not in it: the red and green runs for those commits, the CI counts at the
head, the independent review's LAND, and Copilot round 2's pin-commit gap.
That gap is reproduced here, and validate-pins.py is shown to close it in the
assembly job.
The .gitattributes decision is now stated outright. It agrees with T006's leg
patch and disagrees with plan.md's placement table, which is a follow-up for
the plan's owner. The follow-ups that are not in #190 are listed with their
branch, feat/test-roots-followups. One fixture path is respelled so the
document does not trip the host-absolute-path check if it ever lands.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pec root skips them instead of aborting the whole suite under set -u.
PR #190 binds ln_doc only inside the `if [ -n "$LANE_MANUAL" ]` section that
quotes the bare-lanes settlement. The --retire section, 350 lines later, used
it unguarded. When there is no spec root, LANE_MANUAL is empty and the suite
runs under `set -u`, so it died there with `ln_doc: unbound variable`. That
is not the named skip the PR promises. Lane openRepoTools-3's review found it,
and this work's own standalone-leg proof (P3) had logged it too.
Those two assertions now carry the same guard and skip as the sections that
read the manual. A new text test holds every use of the manual's text inside
such a guard. It is red at dbc6837, where it names lines 6601 and 6602.
Nothing changes on today's layout: the spec root is always there, so the
guard is always taken.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane openRepoTools-1 (writer), 2026-10-09 ~02:3xZ.
Lane 3's finding (1) is confirmed. It is a defect in this PR's own code. The fix is ready on its own branch. I have not pushed it here, because the coordinator asked for no code pushes while the macOS gate runs on dbc6837.
The defect
At dbc6837, tests/test_lane_helpers.sh:6601-6602 use $ln_doc outside the if [ -n "$LANE_MANUAL" ] guard that binds it.
With no spec root, LANE_MANUAL is empty. The suite runs under set -u, so it aborts with ln_doc: unbound variable instead of skipping.
The body's claim that an empty value skips those reads, by name, was therefore false for these two lines.
My own standalone-leg proof P3 had logged the same abort (line 6595 at c139e88). I had attributed that run's lane-suite failure only to the two stamp-tail assertions. The body and the evidence branch are now corrected.
Today's layout is not affected. The spec root is always present, so the guard is always taken, and CI's 1318 stands.
The fix:feat/test-roots-manual-guard @ b50f197. It is one commit on dbc6837, so it fast-forwards onto this branch. It does two things:
It wraps the two lines in the same guard and named skip the other two manual sections use.
It adds test_the_lane_suite_reads_the_manual_only_inside_its_guard, a text test like its neighbour. The test requires every use of $ss_doc/$ln_doc (16) to sit inside a $LANE_MANUAL guard. Against dbc6837's file, its check names lines 6601 and 6602. The scoped red and green runs through tests/run.sh are queued for the workstation lock.
Behaviour, with the --retire section run alone under the suite's set -u, an empty manual and stub helpers (log sha256 c593520e…):
At dbc6837: 4 ok, then ln_doc: unbound variable, exit 1.
At b50f197: 4 passed, 0 failed, 1 skipped, exit 0.
Whether this goes into #190 before the squash (which re-runs the gate) or lands as the first follow-up is the coordinator's call.
…d on an unguarded manual read, which this record had attributed to two stamp assertions alone.
P3's log shows `ln_doc: unbound variable` at line 6595. That is a defect in
PR #190's own guard, and lane openRepoTools-3's review found it where this
record had missed it. The record now gives the defect, the fix branch
feat/test-roots-manual-guard (b50f197), and the before-and-after proof with
its log hash. It also adds lane 3's review and its two other items to the
dated follow-ups.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…composed mode; three ways a composed job can pin the PR's code
Plan task T010 (#186). Queued by the coordinator from
the review of #190: the §4.14 sketch (code-PR CI with
OPENREPOTOOLS_COMPOSED=1 against an assembly checked out at main) would exit
4, because #190 at dbc6837 refuses any code root the assembly does not pin —
Roots.absent() (tests/conftest.py:283) runs _leg_at_its_pin (:259), and
pytest_configure (:404-412) raises it as pytest.UsageError — while
discover_assembly (:159-172) finds only an assembly that mounts the code
root. Dated notes in §4.14 and §7 item 7: the composed job must check out an
assembly whose code gitlink points at the PR's own commit, or a throwaway
assembly built for the run that pins it, or use #190's standalone mode.
Documentation only; no tool or test changes. Marked WIP (untested) because
the hygiene suite has not been run over this text: the checkpoint came first.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…6-10-09
The 46 lines of gate-b-checklist.md (2026-10-07, on main 63810dd), walked again
against the evidence as it stood at 2026-10-09T13:29:20Z-13:48:37Z: main
63810dd; PR heads #190dbc6837, #19113cc752, #19271b05cb; the evidence
branches root-guidance 041a273, installer 51993a4, ci d28e2cc, rollback
fa44d75, rehearsal-c 1a26463, evidence-2 71b05cb, exec e5f582a, candidate
935f53f; brett-wip receipts prep-20261007T100559Z (f0ea2df7),
adopter-fix-20261007-iM20tv (c311a78b), adopter-fix-20261008-1HztL0
(3de0d37c), rollback-20261009-ILvoVC (56f1e7c4, 076062af), tools-20261009
(99eed358); #186's comments to 13:43:08Z; and one coordinator relay.
Counts, 2026-10-07 -> 2026-10-09:
EXISTS 4 -> 33
DECIDED 1 -> 1
IN PROGRESS 19 -> 10 (lane 2: 26-28, 34 reproduction, 36, 37, 40;
lane 3: 25, 32, 46; lane 1: 25, 32, 34 r2 suites, 46)
NOBODY 21 -> 1 (22: per-workstation distribution)
BLOCKED 1 -> 1 (35: hosted runners wait on real legs, Gate C)
Changed: 39 lines; unchanged: 7 (1, 11, 12, 22, 23, 24, 35).
Lines whose only artifact is on #190 or #192 are marked unlanded, landing in
progress by lane 3 on Brett Heap's word "land 190 and 192". The walk reconciles
lane 1's T011 "Gate B still lacks" list item by item and lists 17 facts
noticed (dangling receipt candidate-20261009-JR8YyA, stale T011 index entries,
contradictions between records). Facts only; it approves nothing and checks
no task.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
Independent adversarial review — lane openRepoTools-1 (read-only; 2026-10-09T13:59:58Z): the dbc6837..b50f197 delta
Verdict: LAND on head b50f1974f3aa4b78b1bcdc5d770e63795d42e4ac, a one-commit fast-forward of dbc6837. This covers the delta only. The LAND at dbc6837 (pullrequestreview-5464938427) stands for the rest. This commit fixes exactly lane openRepoTools-3's finding 10 (pullrequestreview-5464931249).
Everything ran from a fresh scratch clone under .openrepotools-private-prep/work-20261009/review-190-delta/, never from the author's tree. Each pytest or suite run took its own flock on ${TMPDIR:-/tmp}/openrepotools-pytest.lock and ran inside unshare -c -n (uid 1000, no network). The extract scripts of finding 2 run nothing but cat, so they ran without the lock.
Findings
Scope.git diff --stat dbc6837 b50f197 is tests/test_lane_helpers.sh +8 and tests/test_test_roots.py +29, and nothing else. git merge-base --is-ancestor dbc6837 b50f197 holds.
The shell change is a 4-line comment plus if [ -n "$LANE_MANUAL" ]; then / else / skip "…(two assertions)" "…" / fi around the two existing assertions, now at tests/test_lane_helpers.sh:6605-6610.
The Python change is one new text test, test_the_lane_suite_reads_the_manual_only_inside_its_guard (tests/test_test_roots.py:382-408).
The guard is complete (check 1). The manual's text reaches the suite through $LANE_MANUAL only (:58), read in exactly two places.
ss_doc is assigned at :3751 inside :3746-3761, and ln_doc at :6247 inside :6244-6264. The neighbour test pins exactly two cat "$LANE_MANUAL" reads.
Every non-comment use is inside a column-0 if [ -n "$LANE_MANUAL" ] guard, 16 in all: ss_doc at :3752-3758, ln_doc at :6248-6260, and the two moved lines at :6606-6607.
No ${ss_doc} or ${ln_doc} spelling exists anywhere.
No other root-owned path is read. Every $SRC_DIR/… the suite touches is code-leg payload: the executables, repos.tsv, skills/{handoff,lane-swap,restart}/SKILL.md and commands/{handoff,ctx,swap}.md. docs/README-lanes.md appears only as :58's default. Nothing reads README.md, AGENTS.md, CLAUDE.md, openspec/, specs/ or upstream/.
Behaviourally: I started the full shell suite at b50f197 with OPENREPOTOOLS_LANE_MANUAL set and empty, which is what tests/test_lane_helpers_suite.py:180-182 passes when a run has no spec root. It cannot finish here. The workstation's load average was 160-169, and a run started at 13:32:49Z had printed 64 lines by 13:46Z. I stopped it (rc 143; its own TERM trap cleaned its sandbox) rather than hold the shared lock for hours.
In its place I ran an extract of the suite itself: its set -uo pipefail (:42), its LANE_MANUAL= line (:58), ok/bad/skip/excerpt/has/hasnt copied verbatim, and every manual-reading line in file order, each guard block whole.
Under bash 5.2.21 and 3.2.57, with OPENREPOTOOLS_LANE_MANUAL empty:
dbc6837 skips the first two blocks, then aborts with ln_doc: unbound variable (rc 1). That is lane 3's finding 10 reproduced.
b50f197 reaches its end with 0 passed, 0 failed, 3 skipped (rc 0). The three skips name their counts: seven, seven and two, which is all 16 uses.
Lane 3's other three code-leg failures (the row-stamp assertions at main's :1055, :5335, :7527) read the sandbox register $LANES, not a root. They are not spec-root reads and are outside this delta. I did not re-measure them.
Today's single-repository layout is unchanged (check 2). On today's layout LANE_MANUAL is never empty:
by default it is $SRC_DIR/docs/README-lanes.md (:58);
under the pytest runner it is the spec root's copy, and today the spec root is the code root (test_lane_helpers_suite.py:180-182).
So the guard's then branch always runs. The same two assertions run with the same text in the same order, and the else is unreachable. The guard adds no ok/bad/skip line on that branch, so the suite's footer count is unchanged. Measured on the same extract with OPENREPOTOOLS_LANE_MANUAL unset: 18 passed, 0 failed, 0 skipped at both dbc6837 and b50f197, and the two outputs are byte-identical (cmp). I did not run the 40-minute suite on today's layout locally; CI does, on this head.
bash 3.2 (check 3). The 37 added lines contain no ${x,,}/${x^^}, no mapfile/readarray, no declare -A/-n, no local -n and no read -a. They contain no awk at all, so no awk -v value can carry a newline. bash -n tests/test_lane_helpers.sh passes under bash 5.2.21 and under a locally built 3.2.57. CI's parse-macos and tests-macos (Apple's /bin/bash 3.2.57) remain the record.
Python 3.9, standard library only (check 4). The new test adds no import: it uses REPO and pathlib (already imported), list comprehensions and str methods. The module parses under the 3.9 grammar (ast.parse(..., feature_version=(3, 9))). Called directly under CPython 3.9.23, the new test passes at b50f197.
Red at dbc6837 (check 5). I ran b50f197's tests/test_test_roots.py against dbc6837's shell suite (-k 'test_the_lane_suite_reads_the_manual_only_inside_its_guard or test_the_lane_suite_fails_a_missing_manual_by_name'). Result: 1 failed, 1 passed. The failure names exactly the defect:
6601: hasnt "the manual no longer promises an Amendment 6(d) record" "$ln_doc" …
6602: has "…and says in terms that it writes nothing" "$ln_doc" "**It writes nothing**"
At b50f197 the same selection gives 2 passed.
A residual limit, not a block. The text test recognises only the "$ln_doc"/"$ss_doc" spellings and column-0 if/else/fi lines. A ${ln_doc} use, or a guard closed by an indented fi, would escape it. A third manual-reading variable cannot appear unnoticed, because the neighbour test's exactly-two count fails first. The only stronger guard is behavioural: run the 40-minute suite with an empty manual in CI, which is T010's to decide. Holding it on the text, like its neighbour, is proportionate.
CI on b50f197: run 37940820017 (pull_request) started at the fast-forward. At 2026-10-09T13:59:58Z, parse-macos and guard-launch-mode had passed; tests, tests-no-submodule, tests-windows and tests-macos were pending (the PR carries ready). That run is the record for this head.
Conditions for the landing owner (lane 1)
Linux CI green on b50f197.
tests-macos through the ready label.
Copilot: rounds on c139e88 and dbc6837 are taken. Under AGENTS.md's two-round cap, a later finding is filed as an issue, not a push.
Not checked here: the shell suite on today's layout (CI's), and macOS.
…l at the post-landing main, and T006's root collisions and leg guidance patches (#192)
Evidence only, under specs/004-migrate-to-triad/ and openspec/changes/migrate-to-triad/: run C of the adopter rehearsal at main 837928a with the merged adopter fix (openRepoShape 7f84ca4), the adoption plan regenerated from 837928a, and T006's root-collision and leg-guidance patches under patches/t006/.
Reviewed LAND by lane openRepoTools-3 (review 5464893559; seventeen findings, none blocking). Run C's record verified against its private receipt by lane openRepoTools-2 (#186). Text follow-ups are in #193. Landed on Brett Heap's word "land 190 and 192" (2026-10-09), before #190 as lane 1 asked.
Part of #186
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the #190 follow-ups, with the merge base pinned at b50f197.
#190 landed, so these follow-ups now go to main. A plain merge would take
the squash's merge base, c4864ac, and replay #190's own commits against
their squash. Pinning the base at b50f197, #190's final head, applies only
what this branch adds after #190 (6e63083 and 2064390) onto main.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
c1283b5: the candidate branch's creation sha, the two #190 follow-up branches' creation and first move, and the owner of run C's ninth docs/ file
From lane 3's review (#186 comment 6089982753), N1 to N3, each checked at
its source:
- N1: 004-migrate-to-triad-candidate was created at b21c511 at 01:58:43Z,
and b21c511 -> 935f53f was pushed at 02:43:24Z (GitHub activity API).
- N2: section 4 gains feat/test-roots-manual-guard, created at b50f197 at
02:29:44Z, and feat/test-roots-followups' creation at 2064390 at 02:14:37Z
and its move to 7144eef at 02:31:20Z (activity API; both moves are
fast-forwards).
- N3: the plan's unnamed ninth docs/ file is tests/test_repo_hygiene.py.
git grep -l 'docs/' at 837928a gives exactly nine code-leg files, and
root-guidance-2026-10-08.md:191 routes that one to T009/T010.
Part of #186.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ocumented upstream skip from conftest's text so the test holds under #190's composed mode.
Lane 2's (d) in #191's review: on the adopted path only, a pin that the
listing shows but that will not come back was refused by naming what was
asked, because fetch_from_repo discards stderr. The pin at the resolved
commit is now asked by probe_path, which reads the current source and
records each transport's answer. The refusal quotes those answers. On
today's layout probe_path still asks $REPO at $REF, because the current
source is that until an adopted assembly's commit is known.
test_r14_the_documented_upstream_skip_is_unchanged read
NEEDS_UPSTREAM.kwargs["reason"], which exists only while NEEDS_UPSTREAM is a
skipif. Under #190's conftest, in a composed run, it is a fixture that fails
instead, and the test raised KeyError. It now checks conftest's text, which
names the command in both modes. The defect was this test's assumption, not
#190's.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…link, and accept only regular files as a root's markers (#193 item 4).
Copilot's round 2 on #190 found two gaps. First, with contracts/code-pin.yaml's
commit: moved off the gitlink, the resolver accepted the run while
scripts/validate-pins.py exits 1 on the same tree. Second, _carries used
exists(), so a directory named like a marker passed for a root.
The pin's commit: is now compared with the gitlink before the leg's HEAD is,
and the markers must be files. The tree digest stays the validator's job.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s/<feature>/code, and read that feature's own spec worktree (#193 item 5).
The triad's feature work happens in paired worktrees of each leg under the
assembly's worktrees/ directory. That is how T006's root guidance and the
code leg's own AGENTS.md lay it out. Discovery only knew the mount, so a code
root there found no assembly, and after Gate C every document test would skip
in a feature worktree. Lane openRepoTools-3's review of #190 measured this on
run C.
Discovery still stops at the nearest ancestor that carries the assembly's
markers, and it accepts only two places for the code root. One is the mount.
The other is worktrees/<feature>/<the code mount's own name>, and only when
that is a repository of its own whose object store holds the commit the
assembly pins. The feature's own spec worktree beside it is the spec root
when it is there; otherwise the assembly's mounted spec leg is. Composed
acceptance is unchanged: a feature off the pin is refused.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… and print nothing new on today's layout (#193 item 6).
OPENREPOTOOLS_CODE_ROOT re-points REPO and UPSTREAM, and a named assembly
root decides which README, AGENTS.md and length caps the suite holds. Only
the report header showed this, and -q drops the header. Every CI job and
tests/run.sh run -q, so a run pointed at another tree said nothing about it.
Lane openRepoTools-3's review of #190 raised this.
pytest_terminal_summary now repeats ROOTS.describe() whenever the roots are
anything but today's one tree taken as it stands: a variable named a root,
an assembly was found, the code root is a leg, or the run is composed. A run
on today's layout with no variable prints exactly what it printed before.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…: two candidate defects with owners (the r14 KeyError fixed in #191, #193 item 14) and four environment classes, each shown the same on main or in isolation.
r2 is code 4dbcf6c, spec 9e1d006 and assembly 5d92962, built from #190 at
b50f197 and #191 at 13cc752. Composed: 1411 passed, 5 failed, 0 skipped.
Standalone: 1389 passed, 3 failed, 24 skipped. No submodule: 1168 passed,
6 failed, 242 skipped. The install from the assembly root differs from
main's only in the implementation it hands over to. The composed rerun at
#191's final head 6568f08 with T007's v3 entry point is still owed.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t note, narrow "only record", add the census row, cite 1abee1d
Part of #186. These answer the should-fix findings 1–3 and nit 4 of
lane 3's review of #193 items 8–13 (#186 comment 6092925484). Text only,
in the same three records. Every claim was checked again on 2026-10-10.
- root-guidance-2026-10-08.md, section 10 item 6: the 18 tests are now
described as at 837928a. One dated bullet says what #190 (f87fd5a)
changed. Through ROOTS.path_for, 17 of them read the assembly or spec
root, and they skip in a standalone code leg. The line-ending test
reads the code root's own .gitattributes. This was measured by direct
calls on main's code paths.
- Runs A and B (both rehearsal records): "only record" becomes "their
logs survive only in that receipt". Run C's legs keep 558a12b and
48d98cd as their heads' parents. The splits, 6d52162 and the remotes
are gone. Checked in --no-local clones of run C's legs.
- root-guidance-2026-10-08.md: section 6's 85-token census joins the
list of rows that exist only in the document.
- adopter-rehearsal-2026-10-08.md: the plan was replaced on main in
#192's squash 1abee1d. 1a26463 is kept and named as the branch merge.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…et: since #190 three of the four skip in a standalone leg (lane 3's 5481348731, item 8 leftover)
Lane 3's review 5481348731 on #196, item 8, left one [low]: root-guidance's
bullet "4 now pass only because they read the leg's own files" sat right
under the bullet that says, since #190, the 17 document-reading tests skip in
a standalone leg. The two contradicted each other back to back.
The four are the ones that passed after code-0001 at 837928a. At main
(f87fd5a) three of them (test_agents_md_is_short_enough_to_be_read,
test_readme_is_short_enough_to_be_read, test_claude_md_points_at_agents_md)
read through ROOTS.path_for and skip, with or without code-0001's own
AGENTS.md, CLAUDE.md and README.md. The fourth,
test_the_root_carries_the_line_ending_rule, reads the code root's own
.gitattributes: FileNotFoundError before code-0001, a pass after it.
Measured on 2026-10-11 in a scratch standalone leg built from f87fd5a (spec
trees and front-door files removed): before code-0001, 3 skipped and 1
failed; after it, 3 skipped and 1 passed.
The bullet now says what held at 837928a and carries one dated correction.
Nothing else in the file moves. Part of #186.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…summary of lane 3's #190 review, and give lane 3's review of the T010 patches a disposition per finding.
Lane 3's review of #196 (5481348731) raised three points.
- Finding 4. The record predates both landings, so on main it would say
that #190 lacks b50f197. A dated line now gives #192 as 1abee1d and #190
as f87fd5a, squashed at b50f197; the patch-ids match (cb2c7bf2...).
- Finding 5. The record said lane 3's #190 review named three things to fix
before the squash. The review names one (the ln_doc abort), a Gate C item
(the paired layout) and a non-blocking hazard (the silent redirect).
- Finding 6. The record did not mention lane 3's later review of the T010
patches (6089801221). It also blamed the two row-stamp FAILs on #162/#184,
where they are #180, which exact-pins inherits through run.sh.
Section 10 now gives each of that review's findings a disposition, and
section 8 lists its open items for T014/T015. The two patches are
byte-identical. The hygiene module passes on this branch, and on main with
the record and the patches tracked.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… test reads the same file at 837928a and since #190, and the note records the line's first wording (lane 3's 5481348731, item 8)
Lane 2's checker verified 1578f99. Every measurement in it holds, but its
wording on line 432 needed a fix.
- test_the_root_carries_the_line_ending_rule reads the code root's own
.gitattributes the same way at 837928a and at f87fd5a. #190 changed only its
docstring. So "a green there was about the wrong file" holds for the first
three tests only, and "it reads the right file" since #190 was wrong for the
fourth: its read is deliberate (the root's attributes never reach a
submodule, finding 2 of section 10).
- The line did not record what it first said. It now quotes the first wording:
"4 now pass" and, of all four, "A green there is about the wrong file".
- "lane 3's review of #196, item 8" was ambiguous, because four lane-3 reviews
on #196 have an item 8. The note now cites lane 3's 5481348731 by id.
The replacement line is the one the checker proposed, taken verbatim
(sha256 77568fa8...64d). Nothing else in the file moves. Part of #186.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ch on the tree the PR will be judged on
origin/main at f87fd5a carries #188's openRepoShape pin (7f84ca4), #189, #192
and #190's explicit test roots. A trial merge was clean; no file is changed
on both sides. The merged tree's counts are in the commits that follow.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t, and keep a single repository's install on today's reads, words and network needs. (#191)
* Add the payload-source compatibility matrix tests before the resolver they describe.
T008 of specs/004-migrate-to-triad/tasks.md (#186):
installer-design.md's fifteen-row compatibility matrix, as tests that build
their own GitHub out of bare repositories and answer gh and curl from them
with git, so a moving branch, a tag, a commit and a slash-containing ref
behave as they do on GitHub and every request is logged. This checkpoint
lands the tests first, on purpose: the adopted-layout rows are red against
the installer at c4864ac, which is the red-at-base evidence the brief asks
for, and the resolver follows in the next commit.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Resolve the install source once: a single repository installs as it always did, and an adopted assembly installs the code its contracts/code-pin.yaml pins.
T007 of specs/004-migrate-to-triad/tasks.md (#186),
following installer-design.md. After the triad split the default
opensoft/openRepoTools is an assembly whose root carries no payload, so every
fetching install, every reinstall from an installed copy and every installed
`wip init` would have read the wrong tree. Now:
- A directory beside the script that holds every payload file is copied with
no network and no new output, exactly as before (workBenches' sentinel
REPO/REF run included). Today's one-liner resolves the ref once and fetches
every file at that commit, so a branch that moves mid-run cannot mix two
versions.
- Which layout a remote is, is decided by a git/trees listing that succeeded:
a code pin present is adopted; none, with no project.yaml, is a single
repository. Authentication, rate-limit, transport and parse failures refuse
and are never read as the older layout.
- An adopted source: the pin's fixed grammar is checked field by field (no
YAML runtime), the gitlink must equal the pinned commit, the pinned commit
must exist in the pin's own source_repository (never a guessed -code name),
and every payload byte comes from there.
- From the code leg mounted in an assembly checkout, the pin, the gitlink and
every payload file's bytes must agree, then the files are copied offline; a
paired feature worktree installs its own bytes and says so. Neither is ever
completed from a network, and an installed copy on an adopted source is not
topped up with pinned skills beside its old siblings.
- wip init reads the code's openreposhape pin from that same source.
Receipts, modes, targets, the settings merge and the retirement are untouched;
source routing finishes before anything is collected or placed.
tests/test_openrepotools_command.py's fake gh now answers the two discovery
calls a real GitHub answers for a single repository; no assertion changed.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Read every remote byte through one current source that starts as $REPO, so each fetching line names it as the hygiene test requires.
CI on #191 failed test_the_installer_reaches_only_this_repository (tests/
test_repo_hygiene.py): every `gh api "` and raw-URL line in openRepoTools must
name $REPO or $SHAPE_REPOSITORY, and the resolver's helpers took the
repository as an argument. They now read ${PAYLOAD_REPO:-$REPO}, the run's one
current source: $REPO itself while its ref, tree and code pin are read, and
the repository that pin names only after the pin has passed every check.
fetch_from_repo is back to its original two arguments. No behaviour changes;
the only repository other than $REPO this reaches is the one $REPO's own
validated pin names.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Read the recorded gitlink with read rather than awk, so the offline adopted install needs nothing a minimal PATH lacks.
Found by running the existing suites composed, with this checkout mounted as
the rehearsed assembly's code leg (run C): test_without_jq_it_refuses_and_
places_nothing runs --install on a PATH of sixteen tools and no awk, and from
the mounted leg the installer reached recorded_gitlink's awk before the jq
refusal it asserts. On today's single-repository layout that path is never
taken, so neither a standalone run nor CI could see it. The assembly entry
point carries the same function byte for byte and changes with it.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Keep a single repository's install on today's network needs and wip init's fallback to main, and ask only two files to tell the layouts apart.
#191's review found two regressions on today's layout (F1, F2). F1: the
fetching paths resolved the ref and listed trees through api.github.com before
any file, so a curl-only machine needed api.github.com and jq where it had
only ever needed raw.githubusercontent.com, and a single repository's fetch
refusal named a commit it was never asked to resolve. F2: an installed `wip
init` whose source could not be resolved refused at step 7, after steps 5 and
6 had made and cloned the repository, saying nothing was written, where it
used to take the standard's main.
The layout is now told apart by asking for contracts/code-pin.yaml and then
project.yaml at $REF, through fetch_from_repo's own two transports: a pin is
the adopted layout, GitHub's 404 for both is a single repository, a manifest
without a pin refuses, and any other answer still refuses rather than being
read as the older layout. A single repository is then read exactly as before,
at the ref as given, and its refusals are its old words. Only an adopted
assembly resolves the ref once through the API. In wip init, a source that
does not answer leaves main as it always did, and an adopted assembly that
cannot be followed refuses in step 7's own words.
The new single-layout tests are written to pass at c4864ac and fail at
2411f40; the adopted step-7 wording test is new behaviour. The run that shows
it is recorded on the PR. Rows 6 and 7 now hold the adopted layout to one
commit and the single repository to its ref as given.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Ask today's layout one question, not two, and read an assembly only from the two layouts the design names.
The review of #191 asked that a single repository's install make exactly
base's requests, need its tools and print its words. After 13cc752 the one
remaining addition on that path was the project.yaml question asked on the
code pin's 404. It was a second request on today's layout for a state an
adopter never publishes, because the pin and the manifest land in one
commit and the assembly's own `make validate` refuses one without the
other. GitHub's 404 for contracts/code-pin.yaml is now the whole
single-repository answer. An assembly root without its pin, which carries
no payload, refuses exactly as a single repository missing those files
always did.
assembly_above used to accept any contracts/code-pin.yaml above the file's
directory. It now accepts one only where the pin mounts this directory as
its code leg, at <root>/<submodule_path> or at
<root>/worktrees/<NNN>/<submodule_path>. Another project's pin above a
vendored tree is no longer read, so it can neither refuse nor add a line to
a sentinel install.
New tests cover the review's F2 cases: a missing ref and a 502 on the
commit lookup in an installed wip init. They also cover the no-jq order
and words on the curl path, a missing ref on --install by gh and by curl,
and a complete tree inside another project's assembly, with a valid pin
and with a CRLF pin.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Make the adopted path's pin refusal say what answered, and read the documented upstream skip from conftest's text so the test holds under #190's composed mode.
Lane 2's (d) in #191's review: on the adopted path only, a pin that the
listing shows but that will not come back was refused by naming what was
asked, because fetch_from_repo discards stderr. The pin at the resolved
commit is now asked by probe_path, which reads the current source and
records each transport's answer. The refusal quotes those answers. On
today's layout probe_path still asks $REPO at $REF, because the current
source is that until an adopted assembly's commit is known.
test_r14_the_documented_upstream_skip_is_unchanged read
NEEDS_UPSTREAM.kwargs["reason"], which exists only while NEEDS_UPSTREAM is a
skipif. Under #190's conftest, in a composed run, it is a fixture that fails
instead, and the test raised KeyError. It now checks conftest's text, which
names the command in both modes. The defect was this test's assumption, not
#190's.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Test that the assembly's root entry point refuses a pin its gitlink disagrees with before it fetches or runs any implementation.
Lane 3's review of the T007 entry-point patch (T3) found that on the remote
path the root fetched and ran whatever implementation the pin selected, and
left the lockstep check to that code. A stale or rolled-back pin then ran
main's installer and refused with a misleading message. The patch on
004-migrate-to-triad-installer now reads the gitlink at the pin's
submodule_path in the resolved commit, and refuses a mismatch before any
fetch. This composed test holds it to that, by gh and by curl: both
commits are named, "nothing ran", and the code repository is never asked.
Like every composed test, it skips in standalone code and fails rather
than skips under OPENREPOTOOLS_COMPOSED=1.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Install exactly the bytes that were checked from a mounted code leg, and read a pin's commented submodule_path the way pin_parse reads it.
Copilot's first round on #191 raised two points that this commit fixes.
First, the mounted-checkout path hashed each payload file in the checkout
and copied it later, in another pass. An edit in between could put bytes
in place that were never checked against the pinned commit. Each file is
now copied into the run's work directory first, the copy is what gets
hashed, and collect_commands and collect_skills read only that snapshot.
Second, pin_mounts compared the raw remainder of the submodule_path line.
A valid pin that comments the value, such as
"submodule_path: code # the mounted leg", was then not recognised as this
checkout's assembly, and the tree was installed as a plain complete tree
with none of the pin, gitlink or byte checks. It now reads the value with
pin_scalar first, and falls back to the lenient read only where that
grammar refuses the value. The new test fails at 6568f08 and passes here.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Test that a branch which moves right after the layout question is read whole at the one commit it resolves to.
Copilot's second round on #191 read the PR body's "a ref that moved
between the probe and that commit is refused" as a rule that the code
broke, because a move from one adopted commit to another installs the
second. The code is right and the body overclaimed. The probe at $REF
only decides the layout, and its bytes are never installed. Everything is
then read at the commit $REF resolves to, so a move to another adopted
commit installs that commit whole, from the code it pins. A move to a
commit with no pin is refused as a ref that moved. The new test moves main
straight after the first request and holds both outcomes, with every
payload request naming the second commit's code.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
…in's commit, find paired feature worktrees, show redirected roots under -q, run the lane manual sections, and restate the installer-source test (#195)
* Give the test suite explicit code, assembly, spec and dependency roots so it reads each file from the tree that owns it, and refuses composed acceptance without all of them.
Checkpoint of T009 (specs/004-migrate-to-triad/tasks.md, #186). Adopted into
the triad, README.md, AGENTS.md and CLAUDE.md move to the assembly root and
docs/ to the spec leg, while the commands, tests, .gitmodules and the
openRepoShape pin stay in the code leg. The suite assumed one tree.
tests/conftest.py now resolves the four roots from OPENREPOTOOLS_CODE_ROOT,
OPENREPOTOOLS_ASSEMBLY_ROOT and OPENREPOTOOLS_SPEC_ROOT, or from the layout
(an assembly above the code root that mounts it as its code gitlink), and
ROOTS.path_for() reads a file from the root that owns it. Standalone, an
absent root skips the tests that need it, naming the root; on today's single
tree nothing new skips, because that tree is all of them, and the
no-submodule skip is exactly today's. With OPENREPOTOOLS_COMPOSED=1 the
session is refused (pytest exit 4) when the assembly or spec root is absent,
the dependency is uninitialized, or a leg is not at the commit the assembly
records, and NEEDS_UPSTREAM fails instead of skipping.
The hygiene module reads the front-door documents and the lane manual through
those roots and scans every repository the run can read; the pin module reads
the code root's own gitlink and the dependency nested in it; the lane suite
and the installer's README check take the manual and the README from their
owning roots; tests/run.sh makes a relative root absolute before its cd.
tests/test_test_roots.py holds the resolver on fixture layouts and runs the
suite itself, nested, against fixture triads. Not yet run through the
workstation lock; the scoped runs and the CI patches follow.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Refuse composed acceptance when a leg's git status cannot be read, and keep the code leg's own .gitattributes in the fixture legs (Copilot round 1 on #190).
A failed `git status` came back as None and was read as "no changes", so a
leg whose index could not be read passed the tracked-changes guarantee. It
is now a refusal naming the leg; a new test corrupts a fixture leg's index
and asserts it. The fixture code legs dropped .gitattributes with the other
assembly files, contradicting the contract that the code leg carries its own
line-ending rule; they keep it now.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Hold the assembly's README and AGENTS.md to their own length caps, and fail the lane suite by name when the lane manual is missing (T006's record of 2026-10-08, section 10).
In the triad the hygiene caps read the ASSEMBLY's files, which T006's root
guidance (assembly-0001) lengthens by 24 lines each: the shape's first-line
pointer and triad map in AGENTS.md, the lockstep-invariant section the leg
pins name and the three-repository front door in README.md. The caps are 340
and 510 where an assembly root is named or found, in dated entries; today's
single repository keeps 316 and 486, so main buys no line of prose. The lane
suite's two manual sections now fail naming the path when the manual the
roots point at is unreadable, instead of handing the assertions an empty
string. Three new tests; all three are red at origin/main (c4864ac). The
scoped green run was still queued behind the workstation lock at this
checkpoint; CI is the record.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Assert each mixed test's code-only claims before its first document read, and document the four roots in AGENTS.md (the #190 review).
Five hygiene tests read a command and the documents about it, and three of
them (park's header, status's --no-optional-locks, the installer's
`lanes [--all] [--fetch]`) asserted the command's half only after a document
read, so a standalone code leg skipped those code-only checks along with the
documents; the exit-3 table and the wrapper's own lock claims had the same
order. Each now asserts the code root's half first; on today's layout every
assertion is unchanged. AGENTS.md's "Testing your changes" gains seven lines
naming the roots, OPENREPOTOOLS_CODE_ROOT, OPENREPOTOOLS_ASSEMBLY_ROOT,
OPENREPOTOOLS_SPEC_ROOT and the composed switch; its cap moves 316 -> 323
here and 340 -> 347 at an assembly root, in a dated entry.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Prove with a nested run that a standalone code leg still checks each mixed test's command half, not only by reading the order (#190 review, finding 2).
A fixture code leg whose park, status and openRepoTools lost the lines the
three mixed hygiene tests assert now FAILS those tests instead of skipping
them with the documents. Red at origin/main, which read this checkout's own
files whatever was named, and red at dbc6837, where the documents' skip came
first. Follow-up to #190, held off its branch while the macOS gate runs.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Guard the lane suite's last two manual reads, so a code leg with no spec root skips them instead of aborting the whole suite under set -u.
PR #190 binds ln_doc only inside the `if [ -n "$LANE_MANUAL" ]` section that
quotes the bare-lanes settlement. The --retire section, 350 lines later, used
it unguarded. When there is no spec root, LANE_MANUAL is empty and the suite
runs under `set -u`, so it died there with `ln_doc: unbound variable`. That
is not the named skip the PR promises. Lane openRepoTools-3's review found it,
and this work's own standalone-leg proof (P3) had logged it too.
Those two assertions now carry the same guard and skip as the sections that
read the manual. A new text test holds every use of the manual's text inside
such a guard. It is red at dbc6837, where it names lines 6601 and 6602.
Nothing changes on today's layout: the spec root is always there, so the
guard is always taken.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Name the value a refused root was named by in the composed refusal, instead of saying its variable is unset (#193 item 15).
When OPENREPOTOOLS_SPEC_ROOT or OPENREPOTOOLS_ASSEMBLY_ROOT named a directory
that is not that root, the run was rightly refused. But the composed line for
the absent root still said the variable "is unset", or that there was "no"
such variable, though the run had set it. Lane openRepoTools-2 found this in
the composed-run logs.
The resolver now records each named-and-refused root with its value, and
why_absent says that variable names that value, which is not that kind of
root. The refusal itself is unchanged.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Refuse a composed run whose leg pin names another commit than the gitlink, and accept only regular files as a root's markers (#193 item 4).
Copilot's round 2 on #190 found two gaps. First, with contracts/code-pin.yaml's
commit: moved off the gitlink, the resolver accepted the run while
scripts/validate-pins.py exits 1 on the same tree. Second, _carries used
exists(), so a directory named like a marker passed for a root.
The pin's commit: is now compared with the gitlink before the leg's HEAD is,
and the markers must be files. The tree digest stays the validator's job.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Find the assembly from a paired feature worktree, <assembly>/worktrees/<feature>/code, and read that feature's own spec worktree (#193 item 5).
The triad's feature work happens in paired worktrees of each leg under the
assembly's worktrees/ directory. That is how T006's root guidance and the
code leg's own AGENTS.md lay it out. Discovery only knew the mount, so a code
root there found no assembly, and after Gate C every document test would skip
in a feature worktree. Lane openRepoTools-3's review of #190 measured this on
run C.
Discovery still stops at the nearest ancestor that carries the assembly's
markers, and it accepts only two places for the code root. One is the mount.
The other is worktrees/<feature>/<the code mount's own name>, and only when
that is a repository of its own whose object store holds the commit the
assembly pins. The feature's own spec worktree beside it is the spec root
when it is there; otherwise the assembly's mounted spec leg is. Composed
acceptance is unchanged: a feature off the pin is refused.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Say the roots a redirected run used at its foot, where -q keeps them, and print nothing new on today's layout (#193 item 6).
OPENREPOTOOLS_CODE_ROOT re-points REPO and UPSTREAM, and a named assembly
root decides which README, AGENTS.md and length caps the suite holds. Only
the report header showed this, and -q drops the header. Every CI job and
tests/run.sh run -q, so a run pointed at another tree said nothing about it.
Lane openRepoTools-3's review of #190 raised this.
pytest_terminal_summary now repeats ROOTS.describe() whenever the roots are
anything but today's one tree taken as it stands: a variable named a root,
an assembly was found, the code root is a leg, or the run is composed. A run
on today's layout with no variable prints exactly what it printed before.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Run the lane suite's manual sections with a missing, an absent and a present manual, and read their guard by following the if/fi nesting (#193 items 3 and 7).
Item 3. The missing-manual branch was only checked by its text. The suite's
three $LANE_MANUAL sections are now cut out of it and run under its own
set -uo pipefail with its own one-line helpers. A manual that is not there
must FAIL, naming the path, in both sections that check it. No manual must
give three named skips and reach the end. The run's own manual must pass
every quote.
Item 7, the review of b50f197, point 6. The guard test found the guard from
the nearest line spelled exactly `fi` or `else`. So it missed a use spelled
${ln_doc} and a closing fi that was indented. It now follows the
if/elif/else/fi nesting, skipping here-documents, and requires that it ends
with no frame open. Planted cases hold both misses and two cases it must keep
right.
Item 7 also: the GIT_ENV comment no longer claims a file-transport allowance
that nothing sets.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Read a quoted ~ in a root variable as the home directory in tests/run.sh, as conftest does, and keep LICENSE and .gitignore as the code leg's own (#193 item 7).
tests/run.sh made a relative root absolute against the caller's directory, so
a quoted ~/x reached pytest as $PWD/~/x. conftest's expanduser reads the same
value as the home directory. The wrapper now expands ~ and ~/... to $HOME, and
its test covers both forms.
Roots.owner_of gives LICENSE and .gitignore to the code root. That stays,
now with its reason. T006's code-0001 gives the code leg its own copy of each,
and the leg's copy governs the leg's files, as with .gitattributes. Fixture
code legs keep both, and the mounted-leg test holds where they are read from.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Move the four-roots paragraph to the foot of AGENTS.md's testing section, below every line T006's assembly-0001 rewrites, so that patch still applies (#193 item 2).
6e63083 put the seven lines directly under the test block. assembly-0001
rewrites that block to re-point it at code/, so the patch stopped applying
(patch failed: AGENTS.md:211; lane openRepoTools-3 saw :224 on the
candidate). The cap of 347 at an assembly root then rested on a premise no
patch met.
At the foot of the section, the patch applies to this file and gives 347
lines, which is the cap. The text is unchanged except that it now names
OPENREPOTOOLS_COMPOSED=1, and the cap entry says where the lines sit and why.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Restate the installer-source hygiene test so a fetching line must name an allowed repository, not merely contain $REPO, and read api.github.com URLs too (lane 3's review of #191, delta 5).
The first reading asked only that each fetching line contain "$REPO". A line
fetching from ${PAYLOAD_REPO:-$REPO} passed by spelling, whatever
PAYLOAD_REPO held, and a curl of api.github.com/repos/... was never read.
Lane openRepoTools-3's review of #191 (delta 5) gave the restatement to T009.
The repository each fetching line names is now read out of it. It must be
one of three things:
- $REPO;
- the pinned standard, for wip init;
- a variable whose every assignment is empty, $REPO, or a variable that only
a pin's source_repository: arm sets. That is the code repository an
adopted assembly pins, which #191 introduces.
The rule holds on main's installer and on #191's head 13cc752. Planted cases
hold the three shapes the first reading let through and the two it must keep
accepting.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Trust a pin-named payload repository only when its source_repository arm assigns the scalar the pin reader parsed (Copilot round 1 on #195).
The restated rule accepted any value assigned in a `source_repository)` case
arm. So `source_repository) PIN_SOURCE_REPOSITORY="$FROM_THE_ENVIRONMENT"`
fed the payload repository from elsewhere and still passed. Copilot's round 1
on #195 found it.
That arm must now assign $PIN_SCALAR. Every non-empty PIN_SCALAR assignment
must also sit inside pin_scalar(), which is how #191 binds a value it parsed
out of a pin. Two planted cases hold this: an arm that assigns something
else, and a scalar set outside the reader. Both were accepted at 804be8b.
The rule still accepts main's installer and #191's head 13cc752 with no
refusals.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Skip a stale marker-bearing ancestor instead of ending discovery, accept a paired spec worktree only as a repository holding the pinned spec commit, and require the pin reader that sets PIN_SCALAR (Copilot round 2 on #195).
Copilot's round 2 on #195 raised three findings.
- discover_assembly stopped at the first ancestor that carried the assembly's
two markers, even when it failed the rest. A stale project.yaml and
contracts/code-pin.yaml under a feature directory therefore hid the real
assembly above it. That ancestor is now skipped. Acceptance is still one
of the two exact placements, so skipping cannot borrow an unrelated tree.
- The feature's own spec worktree was taken on the strength of a docs/
directory alone. It now has to be a repository of its own that holds the
spec commit the assembly pins, which is the proof the paired code worktree
already met. Otherwise the mounted spec leg is read.
- The installer-source rule's PIN_SCALAR check passed vacuously when there
was no pin_scalar() reader, or when the reader never set the scalar. Then
$PIN_SCALAR would be the environment's. The reader and a parsed assignment
inside it are now both required.
Each finding has a test that is red at e901b6d.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Hold AGENTS.md's pin rules to the path that works from where the file is read: code/upstream/openRepoShape and git -C code at an assembly root, today's spelling on the single tree (#193 item 14).
T006's assembly-0001 re-roots the two strings test_agents_md_names_the_pin_rules
asserts. At an assembly root the submodule is the code leg's, and the
unprefixed command fails there ("pathspec 'upstream/openRepoShape' did not
match any file(s) known to git", measured in the composed candidate). The
composed r2 candidate was red on that test for this reason. The coordinator
decided that the test gives and that the patch stays as it is.
The test now reads the prefix from the assembly's code pin, through the new
Roots.code_mount(). It asserts the path and the init command for that root,
so each spelling fails where the other belongs. A nested test holds both
directions against a fixture assembly. Today's single tree asserts exactly
what it did before.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
… CI patches, installer entry point, restore and rollback, #192's corrections, T018, Gate B status (#196)
* docs: preserve triad migration planning drafts
Preserve the existing OpenSpec and Speckit planning files at Brett Heap’s request during repository cleanup. No migration or adoption is executed.
* docs: refresh triad migration plan after worktree cleanup
* docs: refresh triad plan for October 4 feature updates
* docs: align triad migration with adopted amendment protocol
* docs: record triad preparation and adopter blocker
* docs: record successful triad adopter candidate rehearsal
* Record run C of the Gate B rehearsal at the post-landing main 837928a and regenerate the adoption plan from it.
Run C repeats runs A and B (which stand) with openRepoShape 7f84ca4 at
the source that exists after #187 (44983ce) and #188 (837928a): fresh
single-branch clone, git transport restricted to local files, gh/curl
refused, disposable local bare remotes. check ok; execute exit 0; spec 65 /
code 49 / root 6 / dropped 0 of 120; independent path/mode/type/oid
comparison with zero missing or duplicate owners; recursive clone,
bootstrap and validators passed; code's nested gitlink 7f84ca4 and the
recomputed digest 3be52767 match its contract. The run B plan's 22
resolutions were reapplied verbatim; the 20 new planning files are spec by
the existing openspec/ and specs/ entries.
adoption-plan.yaml is now the resolved run C plan, labelled as rehearsal
input and not the cutover plan. The arrangement is kept host-local as the
read-only input for T006-T010. Gate B remains open (T006-T011); nothing
here authorizes a real conversion. Private receipt adopter-fix-20261008-1HztL0. Part of #186.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T006's five rehearsal patches are recorded: the assembly front door with two lockstep pin bumps, and the code and spec legs' own front doors, all made against run C's rehearsed split.
Each patch is `git format-patch` output from lane openRepoTools-1's scratch
clones of run C (assembly split 69b8924, spec leg 593250d, code leg
73b04d6) under #186. Re-applied with `git am` onto its
base, each reproduces the pushed tree exactly, and `git diff --check` passes
on every range. assembly-0002 and -0003 are bump-leg.py's commits and pin
the rehearsal's leg hashes; at T014 they are regenerated against the real
legs, not applied. The 2026-10-07 build of the same patches was lost when
/tmp was cleared; this is its rebuild. The write-up follows in
specs/004-migrate-to-triad/root-guidance-2026-10-08.md.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record T010's two workflow patches for the triad: the code leg's standalone tests workflow and the assembly's exact-pin integration job in its own file.
Checkpoint of the CI evidence for #186. The legs do not exist on GitHub yet
(Gate C), so these are patches against the rehearsed run C arrangement: the
code leg's tests.yml at 73b04d6 (its six jobs and trigger policy kept, the
standalone checkout context named) and a new .github/workflows/composed.yml
for the assembly at 69b8924, its own file because validate.yml is a pinned
shape copy. Both `git apply --check` cleanly against run C. The measurements
and local proofs follow in test-roots-and-ci-2026-10-08.md.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record what the triad split breaks in the test suite, the root rules and composed contract PR #190 answers it with, and the local proofs of both T010 workflow patches.
Measured on the rehearsed run C code leg 73b04d6 in three contexts (mounted
in the assembly, standalone, standalone without the dependency): the same 17
hygiene tests fail on files the split moves out of the code leg, and nothing
else in the measured selectors. PR #190 is red at origin/main in 18 tests and
188 passed with nothing skipped on today's layout; CI green per push. In a
composed candidate pinned with bump-leg.py, the validators pass, the composed
job refuses a missing spec leg (exit 1 at its context step, exit 4 from the
suite), and the composed and standalone leg runs fail only on the code leg's
missing .gitattributes (a T006 finding) and two lane-suite stamp assertions
the long run-root path pushes past the row cut. Hosted runs wait for real
legs (Gate C). Part of #186.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T006's run C rebuild is written up: the collision inventory, 32 repaired links, the leg front doors, the 35-commit provenance correspondence and every bootstrap, validator, OpenSpec and Speckit result, with the assembly patches replaced by leaner ones that respect the root files' length caps.
specs/004-migrate-to-triad/root-guidance-2026-10-08.md records T006 for
#186, rebuilt on run C (split 69b8924, spec 593250d,
code 73b04d6) after the 2026-10-07 build was lost with /tmp. The assembly
patches are replaced: code/tests/test_repo_hygiene.py caps AGENTS.md and
README.md at today's 316 and 486 lines and admits lines only for a rule. So
the root additions shrink to 24 lines each: the shape's pointer line and a
seven-entry map, and the three-repository section with the lockstep-invariant
anchor. The leg patches are unchanged. All five patches re-apply to
identical trees, and `git diff --check` passes. Findings for lane 3, T007,
T009, T010, T014 and T017 are in its section 10. Nothing lands on main from
this task.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record T011's restore rehearsal of the source from the Gate A bundle: 90 checks pass, no captured ref moved except forward, and a dirty tree rebuilds only with the staged and unstaged diffs the October 7 capture does not take.
First commit of specs/004-migrate-to-triad/gate-ab-evidence-2026-10-09.md for
#186; the installed-payload rollback, the mutation table,
the evidence index and the follow-up inventory follow on this branch.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record T011's rollback of the installed payload, the mutation table, the Gate A/B evidence index and the follow-up patch inventory: both rollbacks return every placed file, mode and hook to main's install, the copy-back leaves the receipt stale, and nothing real was written.
Steps 2-4 of T011 in specs/004-migrate-to-triad/gate-ab-evidence-2026-10-09.md for
#186: four disposable homes (main, the run C candidate
from code/, PR #191 as a payload that differs, and rollback by the Gate A
copies or by reinstalling the restored source), 18 classified write groups
with empty real-repository, real-home and register columns, every evidence
document with who verified it, the seven recorded patches re-applied onto
their rehearsed bases with matching trees, and what Gate B still lacks. The
private receipt ID is rollback-20261009-ILvoVC; its commit follows.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Name the T011 private receipt's brett-wip commit, 56f1e7c4, and say why the hygiene selector did not run on this document while the two all-files hygiene checks find nothing in it.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record T007's assembly entry point as a patch and T007/T008's installer evidence for the triad migration.
The root openRepoTools of the assembly cannot land on main before the split,
because its path is the implementation's, so it is kept here as a
format-patch of the commit made in a clone of run C's rehearsed split; git am
on a fresh clone reproduces its tree. installer-2026-10-08.md records the
arrangement relied on, the pin grammar, the one-liner contract and how it
compares with T006's README sentence, the 15-row matrix with its tests and
red-at-base results, the runs, lane 2's installer rows, and what remains for
T009, T010, T014 and T015. Nothing here authorizes a real conversion.
Part of #186.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record the composed triad candidate that carries every Gate B follow-up: its inputs, apply order, commits and trees, its validators, and its install compared with today's main.
The suite runs on the candidate are queued behind the workstation lock and
are recorded in a later commit.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Bring the T009/T010 test-roots record up to PR #190's head dbc6837, with both reviews, the .gitattributes decision and the dated follow-ups.
The record stopped at c139e88. Since then e3a76b5 refuses a leg whose git
status cannot be read and keeps .gitattributes in the fixture legs (Copilot
round 1), and dbc6837 adds T006's assembly-root caps and fails a missing lane
manual by name. Readers of the migration plan need four things here that were
not in it: the red and green runs for those commits, the CI counts at the
head, the independent review's LAND, and Copilot round 2's pin-commit gap.
That gap is reproduced here, and validate-pins.py is shown to close it in the
assembly job.
The .gitattributes decision is now stated outright. It agrees with T006's leg
patch and disagrees with plan.md's placement table, which is a follow-up for
the plan's owner. The follow-ups that are not in #190 are listed with their
branch, feat/test-roots-followups. One fixture path is respelled so the
document does not trip the host-absolute-path check if it ever lands.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Correct the test-roots record: the standalone leg's lane suite aborted on an unguarded manual read, which this record had attributed to two stamp assertions alone.
P3's log shows `ln_doc: unbound variable` at line 6595. That is a defect in
PR #190's own guard, and lane openRepoTools-3's review found it where this
record had missed it. The record now gives the defect, the fix branch
feat/test-roots-manual-guard (b50f197), and the before-and-after proof with
its log hash. It also adds lane 3's review and its two other items to the
dated follow-ups.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record the candidate's state at the coordinator's checkpoint: no suite run has finished, the composed run was stopped at about 20% and must be rerun, and the CI numbers it will be compared with.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 disposable half: feature selection, OpenSpec and park/resume/status in a triad fixture (#186)
Evidence of 2026-10-09 from the composed candidate (assembly 3bd95a7, spec
9e1d006, code f0af7d9, nested openRepoShape 7f84ca4), copied into fresh bare
remotes and driven from three temporary homes under env -i, a disposable
agent root and workspace record, file-only git and a private network
namespace. Selection resolves the same root and feature directory from the
root and both legs. OpenSpec answers only from the spec leg. park commits and
pushes one WIP per leg and leaves the root and its gitlinks alone. resume
refuses a root that the bootstrap itself dirtied, and silently drops a parked
nested gitlink move. Every refusal is relayed verbatim; nothing was forced.
No task is checked complete.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Dated corrections to #192's run C and T006 evidence: #193 items 8–13
Part of #186. Text only, in three Markdown records under
specs/004-migrate-to-triad/. No patch file, plan or YAML is touched.
Every figure was measured again on 2026-10-09.
- adopter-rehearsal-2026-10-08.md
- Item 8 (review 5464893559 finding 5): one dated block says where the
records are now, what run C superseded, and that run B's plan stays
at 63810dd. It records the 2026-10-08 restart that removed runs A
and B's repositories, and the openspec 1.2.0 observation. openspec
1.13.1 now exits 0 on 837928a and on 71b05cb.
- Item 10 (finding 17): `check` reads the clone's local main, not
HEAD. This plan gives plan-stale, exit 1, against any newer main.
Reproduced both ways.
- Item 12 (finding 6): the "no ensurepip" cause is withdrawn. The
refusal is real, and its cause is not established.
- root-guidance-2026-10-08.md
- Item 9 (findings 8 and 9): 18 front-door test functions (17 + 1),
not 17. The command test stays red after code-0001. The "23 in 9"
total disagrees with its own per-file list (26 in 11), and which is
right is not established. Also :6, and :195's consumer-reads is on
main.
- Item 11 (finding 16): no receipt is cited. The record now says what
the patches reproduce from public inputs, and which rows exist only
in the document.
- adopter-rehearsal-2026-10-07.md
- Item 8: one dated line. The false "On this branch" sentence is in
this file.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record v3 of T007's entry-point patch, which checks the gitlink before it runs any pinned implementation, and the network needs T014 should document.
Lane 3's review of the v2 patch (T3) required the remote path to confirm
the gitlink at the pin's submodule_path before it fetches or runs the
implementation the pin selects. v3 (6acc147 on 69b8924) does that, and git
am on a fresh run C clone reproduces its tree 87782af. The runs table rows
for the round-2 head and CI are still to be added.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Refresh the T011 record's index, inventory and Gate B list to origin at f87fd5a, and correct what lane 3's review and lane 2's receipt check found
Answers lane 3's review of fa44d75 (#186 comment 6082139424) and folds in lane
2's verification of receipt rollback-20261009-ILvoVC (#186 comment 6082370012).
Only specs/004-migrate-to-triad/gate-ab-evidence-2026-10-09.md changes. Every
refreshed passage says Refreshed or Corrected and keeps the 01:1xZ text it
qualifies.
- F11: no stage changed a hook, so the hook rollback is vacuous. The Gate A
backup holds no settings.json, and RESTORE.md's copy-back restores only
installed/. 849592b's subject overclaims hooks.
- F15 and F18: sections 4 to 7 re-read origin at 20:29Z-20:37Z, with main at
f87fd5a after #192 and #190 landed. They now record T007's entry point on
the installer branch at 51993a4, the candidate at 935f53f, every review
since 01:13Z, and an inventory that maps each named follow-up to a patch,
a PR, an owner or a deferral.
- F4-F9, F12-F14, F17, F19, F20, F22 and lane 2's corrections:
- the restored bundle's identity, and the 90 checks by category against
#189's 97;
- the two near-tautological check families, and main's 70 files plus one
symlink;
- "live" meaning the shared checkout at 00:44:08Z;
- 10 installs, not 12, and no placed file added or retired;
- 076062af and the final snapshot;
- T010 trees with no earlier record;
- GIT_OPTIONAL_LOCKS, the copied capture block, and nested repositories
rather than caches.
Part of #186.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Correct three rows of the refreshed T011 record from lane 3's review of c1283b5: the candidate branch's creation sha, the two #190 follow-up branches' creation and first move, and the owner of run C's ninth docs/ file
From lane 3's review (#186 comment 6089982753), N1 to N3, each checked at
its source:
- N1: 004-migrate-to-triad-candidate was created at b21c511 at 01:58:43Z,
and b21c511 -> 935f53f was pushed at 02:43:24Z (GitHub activity API).
- N2: section 4 gains feat/test-roots-manual-guard, created at b50f197 at
02:29:44Z, and feat/test-roots-followups' creation at 2064390 at 02:14:37Z
and its move to 7144eef at 02:31:20Z (activity API; both moves are
fast-forwards).
- N3: the plan's unnamed ninth docs/ file is tests/test_repo_hygiene.py.
git grep -l 'docs/' at 837928a gives exactly nine code-leg files, and
root-guidance-2026-10-08.md:191 routes that one to T009/T010.
Part of #186.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Answer lane 3's low findings N4 to N9 on the refreshed T011 record: collision rows, the dropped-check arithmetic, the copy-back's limits, deleted refs, the refresh's real time, and the verbatim run's public citation
From lane 3's review of c1283b5 (#186 comment 6089982753), each checked at
its source:
- N4: root-guidance-2026-10-08.md:69-76 holds the collision and shape/ rows
(AGENTS.md is :69; CLAUDE.md, :70, is unchanged), so "resolved in the
patch", not "merged".
- N5: October 7's verify.log:13 is one check of the 16 per-worktree HEAD
refs, and main's status check moved to the singles (10-restore.log:160):
12 - 2 + 1 + 11 = 22 and 85 - 17 = 68.
- N6: the copy-back route restores the 29 files and the receipt only, with
no settings.json and no hook entry.
- N7: a captured ref moved forward or was deleted with its commit still on
GitHub; re-checked against ls-remote at 22:05:16Z (15/9/9/0).
- N8: c1283b5 was committed at 20:38:20Z, so the hygiene line and the
header's refresh window say 20:3xZ.
- N9: the public comment marks as inferred only its conclusion; the
verbatim run's log is host-local and unpublished, so the record now says
no public citation exists for the run itself.
Part of #186.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Gate B status walk of 2026-10-09: the 46 checklist lines (MET 30, PARTLY 15, OPEN 0, AFTER-GATE-C 1), T001-T019, the Gate C open questions with proposed wording, and a line-by-line reconciliation with lane 2's walk
specs/004-migrate-to-triad/gate-b-status-2026-10-09.md walks
gate-b-checklist.md against origin as fetched at 22:07:06Z and #186's
comments through 22:06:49Z. It approves nothing and changes no task
status.
- Section 1: each line's status, evidence, what remains and owner, and
which lines moved since lane 1's unpublished first pass.
- Section 2: lane 2's walk, the same path on 004-migrate-to-triad-reads
@ a7a8e00 (a cross-check that goes into no PR), line by line. It
differs in substance on 22, 2, 12, 18, 19 and 21. It also answers
lane 2's review of the first pass (6088829392) item by item.
- Section 3: T001-T019 against the evidence.
- Section 4: questions a-e for Brett, each with text to approve:
- (a) openspec 1.2.0 fails migrate-to-triad and 1.6.0 passes;
- (b) "account move";
- (c) .gitattributes in plan.md against tests/conftest.py on main;
- (d) hosted CI before the legs exist;
- (e) e1-e10, including the six-commit openRepoShape drift and the
post-cutover one-liner's API and jq dependency.
- Section 5: the blockers in dependency order.
- Section 6: the commands.
Private receipts are named by id only, and no host path appears.
Part of #186
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record the runs of #191's review rounds, the strict composed result at 6568f08, and CI on each head, in the installer evidence.
The runs table had two rows still waiting at the first checkpoint. It now
records what each review round changed and every proof, with which ran under
the lock and which ran unlocked under the coordinator's rule for scoped
proofs. It also records the strict composed run of root v3 with the head's
whole code leg, where the only failure is the code leg's missing
.gitattributes (T006), and CI per job on 6568f08.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record the r2 candidate's three suite runs and classify every failure: two candidate defects with owners (the r14 KeyError fixed in #191, #193 item 14) and four environment classes, each shown the same on main or in isolation.
r2 is code 4dbcf6c, spec 9e1d006 and assembly 5d92962, built from #190 at
b50f197 and #191 at 13cc752. Composed: 1411 passed, 5 failed, 0 skipped.
Standalone: 1389 passed, 3 failed, 24 skipped. No submodule: 1168 passed,
6 failed, 242 skipped. The install from the assembly root differs from
main's only in the implementation it hands over to. The composed rerun at
#191's final head 6568f08 with T007's v3 entry point is still owed.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Lane 3's follow-ups on 096de93: name 837928a and #190 in the T006 test note, narrow "only record", add the census row, cite 1abee1d
Part of #186. These answer the should-fix findings 1–3 and nit 4 of
lane 3's review of #193 items 8–13 (#186 comment 6092925484). Text only,
in the same three records. Every claim was checked again on 2026-10-10.
- root-guidance-2026-10-08.md, section 10 item 6: the 18 tests are now
described as at 837928a. One dated bullet says what #190 (f87fd5a)
changed. Through ROOTS.path_for, 17 of them read the assembly or spec
root, and they skip in a standalone code leg. The line-ending test
reads the code root's own .gitattributes. This was measured by direct
calls on main's code paths.
- Runs A and B (both rehearsal records): "only record" becomes "their
logs survive only in that receipt". Run C's legs keep 558a12b and
48d98cd as their heads' parents. The splits, 6d52162 and the remotes
are gone. Checked in --no-local clones of run C's legs.
- root-guidance-2026-10-08.md: section 6's 85-token census joins the
list of rows that exist only in the document.
- adopter-rehearsal-2026-10-08.md: the plan was replaced on main in
#192's squash 1abee1d. 1a26463 is kept and named as the branch merge.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record #191's two Copilot rounds and the final head 8246983 in the installer evidence.
Round 1's two fixes and the one finding kept, with the reason; round 2's
body correction and the test that shows the behaviour; and a strict
composed run of the module's composed and local rows with root v3 and the
final head's code leg.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Date the "4 now pass only because they read the leg's own files" bullet: since #190 three of the four skip in a standalone leg (lane 3's 5481348731, item 8 leftover)
Lane 3's review 5481348731 on #196, item 8, left one [low]: root-guidance's
bullet "4 now pass only because they read the leg's own files" sat right
under the bullet that says, since #190, the 17 document-reading tests skip in
a standalone leg. The two contradicted each other back to back.
The four are the ones that passed after code-0001 at 837928a. At main
(f87fd5a) three of them (test_agents_md_is_short_enough_to_be_read,
test_readme_is_short_enough_to_be_read, test_claude_md_points_at_agents_md)
read through ROOTS.path_for and skip, with or without code-0001's own
AGENTS.md, CLAUDE.md and README.md. The fourth,
test_the_root_carries_the_line_ending_rule, reads the code root's own
.gitattributes: FileNotFoundError before code-0001, a pass after it.
Measured on 2026-10-11 in a scratch standalone leg built from f87fd5a (spec
trees and front-door files removed): before code-0001, 3 skipped and 1
failed; after it, 3 skipped and 1 passed.
The bullet now says what held at 837928a and carries one dated correction.
Nothing else in the file moves. Part of #186.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Date the T010 record against #192's and #190's landings, correct its summary of lane 3's #190 review, and give lane 3's review of the T010 patches a disposition per finding.
Lane 3's review of #196 (5481348731) raised three points.
- Finding 4. The record predates both landings, so on main it would say
that #190 lacks b50f197. A dated line now gives #192 as 1abee1d and #190
as f87fd5a, squashed at b50f197; the patch-ids match (cb2c7bf2...).
- Finding 5. The record said lane 3's #190 review named three things to fix
before the squash. The review names one (the ln_doc abort), a Gate C item
(the paired layout) and a non-blocking hazard (the silent redirect).
- Finding 6. The record did not mention lane 3's later review of the T010
patches (6089801221). It also blamed the two row-stamp FAILs on #162/#184,
where they are #180, which exact-pins inherits through run.sh.
Section 10 now gives each of that review's findings a disposition, and
section 8 lists its open items for T014/T015. The two patches are
byte-identical. The hygiene module passes on this branch, and on main with
the record and the patches tracked.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Gate B walk: lines 20, 29 and 31 are PARTLY by the walk's own legend, and the walk agrees with the candidate record at 16e6ea4 and slice B at 40f26f7, which #196 carries beside it (MET 27, PARTLY 18, OPEN 0, AFTER-GATE-C 1)
This answers lane 3's review 5481348731 of #196, findings 12 and 14.
Finding 12: the lines move to PARTLY because each carries an open
defect in its own evidence.
- Line 29: #193 items 2-7 and 15. It now also cites lane 3's verdict on
b50f197 (6089801221 (a)).
- Line 31: #193 items 4 and 15, both fixed on #195, which is open.
- Line 20: the record's "23 in 9" count, which slice B leaves not
established.
The legend gains one sentence saying what does and does not make a line
PARTLY.
Finding 14: the walk now agrees with the two records.
- The candidate record publishes r2 and classifies F1-F6. Updated: the
CA ref, the live facts, lines 28, 34 and 36, lane 2's facts 1 and 8,
and section 5 item 3.
- Lane 3 reviewed slice B as LAND (6092925484). Updated: the EF ref, the
live facts, lines 3, 17 and 18, and the T006 row.
- Question (a) names the host for openspec 1.13.1.
One dated entry in the header says what changed and why. It lists the
later facts that were not re-walked:
- #191 at 8246983;
- IN at 67a978c, with the host path still at line 13 of the carried
installer record;
- #195;
- T18's verification;
- T007 v3;
- openRepoShape main at 20e13f0, 8 ahead, with still only 22c9fdd
touching a mounted file.
Part of #186
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Point the three "no review verdict posted" rows of the T011 record at lane 3's verdict, 6089801221 (lane 3's 5481348731, item 7)
Lane 3's review 5481348731 on #196, item 7, left one [low]: gab:436, :443 and
:513 still say "no review verdict posted; lane 3's reviewer ... has resumed"
for the T010 patches and the follow-ups. Lane 3's verdict, #186 comment
6089801221, was posted at 21:47Z on 2026-10-09, after this record's origin
read of 20:29-20:30Z.
Each of the three rows now carries a dated correction that points at it and
says what it concluded for that row. The original text and the read time stay
as written.
- The `004-migrate-to-triad-ci` row and the T010 inventory row: `d28e2cc` is fit
for evidence-3, both patches apply, and #180 reaches the composed job
through `run.sh` (its finding 13).
- The `feat/test-roots-followups` row: `01ccc86` is fit for a PR onto main
after one edit, the 340 to 347 assembly cap (its finding 7).
Part of #186.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Name the host behind "the bench's openspec is now 1.13.1" in run C's record, and give lane 3's 1.2.0 and 1.6.0 reading (lane 3's 5481348731, item 9)
Lane 3's review 5481348731 on #196, item 9, left one [low] on
adopter-rehearsal-2026-10-08.md:53: "The bench's `openspec` is now 1.13.1."
That depends on the container. On lane 3's host at 00:1xZ on 2026-10-11,
`which -a openspec` lists a user-level npm install first, at 1.2.0, and the
system install second, at 1.6.0. `validate migrate-to-triad --strict` then
exits 1 under 1.2.0 (the SHALL or MUST error) and 0 under 1.6.0.
The sentence now names the bench, lane 2's, and the dates of the two readings
(6088829392 item 8 on 2026-10-09; 6103482530 on 2026-10-10). A dated
correction records the first wording, says the version depends on the
container, and gives lane 3's reading with its exit codes. It points at lane
1's walk, section 4 (a), which records the same split.
Locations are described, not written as paths. gate-b-status-2026-10-09.md:266
repeats the claim and is lane 1's file, so it is left for its owner.
Part of #186.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Correct root-guidance:432 after lane 2's check of 1578f99: the fourth test reads the same file at 837928a and since #190, and the note records the line's first wording (lane 3's 5481348731, item 8)
Lane 2's checker verified 1578f99. Every measurement in it holds, but its
wording on line 432 needed a fix.
- test_the_root_carries_the_line_ending_rule reads the code root's own
.gitattributes the same way at 837928a and at f87fd5a. #190 changed only its
docstring. So "a green there was about the wrong file" holds for the first
three tests only, and "it reads the right file" since #190 was wrong for the
fourth: its read is deliberate (the root's attributes never reach a
submodule, finding 2 of section 10).
- The line did not record what it first said. It now quotes the first wording:
"4 now pass" and, of all four, "A green there is about the wrong file".
- "lane 3's review of #196, item 8" was ambiguous, because four lane-3 reviews
on #196 have an item 8. The note now cites lane 3's 5481348731 by id.
The replacement line is the one the checker proposed, taken verbatim
(sha256 77568fa8...64d). Nothing else in the file moves. Part of #186.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Record r3 of the Gate B candidate: #191 at its final head 8246983 with T007's v3 entry point, the install modules green in composed mode, F1 gone, and the install still differing from main only in the implementation it hands over to.
Code 9c11276, spec 9e1d006, assembly 3891943; every git am exited 0 and both
pins were regenerated with bump-leg.py. The four install modules, composed
and isolated with SIGINT at its default: 281 passed, 0 failed, 0 skipped.
The intermediate r3a at 6568f08 (278 passed) is recorded beside it. The full
composed suite is redone at the frozen source for Gate C.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Close W22's findings 2-4 on 83bcec7 in the T011 record: date the section 7 leftover, restore "before the composed job is relied on", name the branch at :443 (lane 3's 5481348731, item 7)
W22's adversarial check of 83bcec7 (lane 2) found three leftovers of lane 3's
5481348731 item 7, in specs/004-migrate-to-triad/gate-ab-evidence-2026-10-09.md.
Finding 2 [low]: section 7 item 4 ("Refreshed 2026-10-09T20:30Z") still said
"The T010 patches: no verdict yet; lane 3's reviewer has resumed (#186 comment
6088703549)" with no pointer, while :436 and :513 already point at 6089801221.
It now carries the same dated correction, 2026-10-11 like its siblings: the
verdict, #186 comment 6089801221 (2026-10-09T21:47Z), came after the record's
origin read; fit for evidence-3, with #180 to settle before the composed job is
relied on (its finding 13). The original words stay as written.
Finding 3 [nit]: :436 and :513 said "One thing to settle first" and "with #180
to settle first". 6089801221 (c) says "One thing must be settled before the
composed job is relied on". Both rows now carry that condition, so it attaches
to relying on the composed job and not to "fit for evidence-3".
Finding 4 [nit]: :443 said "It answers the code-half part of #193 item 2" right
after a sentence that begins "It is #186 comment 6089801221", so "It" read as
the comment. It now says "The branch `01ccc86` answers ...".
One file, +7/-4. Part of #186.
Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Correct the installer record for lane 3's DO NOT LAND on #196's installer files: no host path, a T008 table of the tests at the final head, and a disposition for every open item.
Lane 3's review 5481368376 asked for six corrections and noted one minor
point; all seven are made here. The record no longer names a host-absolute
location for run C's README (finding 0). It says what v3 closes, the
mismatched pin, and what it does not: a lockstep-consistent pin at code
from before #191, which is now a named T015 item with a capability check
proposed for #193 (finding 2). The T008 table now lists every test in
tests/test_install_payload_source.py at 8246983, which is main a74c7fc
(52 tests, 109 cases). Its base column comes from that module run against
c4864ac's installer (finding 3). The record names 8246983 as the head,
with its CI and the landing on main as a74c7fc on 2026-10-13 (finding 4).
The wip_shape_ref disposition gives the F2 fallbacks (finding 5). Each of
lane 2's nine open items in #186 6090038382 is fixed, accepted or given
to a task (finding 6). The minor point: "five things" and both reviews
of 2411f40 (finding 7).
The patch is unchanged.
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Correct the installer record against lane 2's check at 8246983: the walk residue's reason, the 200-garbage refusal, row 7's cases, CI on cddd1f7 and the measured holds.
- Item 1: the code reads the gitlink at the pin's submodule_path and refuses
where none is recorded (24a, 24c), citing lane 3's 5481368124 finding 5 and
its cheaper tightening, and finding 7 on #191's body.
- Item 4: a 200 that is not GitHub's refuses where main installs, like
item 3; disclosed here, since #191's body does not name it.
- Item 2: the adopted missing-ref and missing-repository rows (19c-f, 19h).
- Item 7: the patch's header and commit message overstate; it stays.
- Item 9: row 7's [single] case is an adopted ref moving to a commit with
no pin, which is refused; no test freezes a single repository.
- The section's opening cites lane 2's measurements at cddd1f7 (#186
6103618033) and 8246983 (register note 2026-10-13T18:22:15Z).
- The runs table gains CI on cddd1f7 (run 38096352239).
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Add dated 2026-10-13 lines to the candidate record: #191 landed as a74c7fc with r3's installer blob, what r3 covered and what is still owed, where the answered gap is recorded, and F2's decision with #195's status.
The record's history is unchanged; every addition is a dated line beside the
text it updates (lane 3's review 5481348534, findings 6, 7 and 8).
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Gate B walk, dated 2026-10-13: #191 landed as a74c7fc, what #196's final refold carries, and the hold for openRepoShape v1.0.0
These are dated lines only; no earlier text is rewritten. No status changes:
MET 27, PARTLY 18, OPEN 0, AFTER-GATE-C 1.
- #191 landed on main as a74c7fc, the squash of 8246983. Recorded at the
header's #191 line and at question d's #191 CI line.
- What #196's final refold carries, each from the earliest head that holds
its fixes, with #196's "Input heads carried" table named for the exact
heads:
- the installer record from 7668c51 on: the host path at its line 13
is gone, and lane 3's 5481368376 is answered; 7428e78 adds lane 2's
check;
- slice B from 2c040d6 on: lane 3's 5481348731 items 7-9, with the
T011 record now taken from slice B;
- the candidate record from e81100c on: r3.
Recorded in the header, the refs table, section 2's item 16 and
section 5's item 4.
- The hold for openRepoShape v1.0.0, on Brett Heap's word relayed by
lane 3 (#186 6152410188), with its after-the-tag order: the pin-bump PR,
a fresh rehearsal and plan at v1.0.0, then the cutover. #196 is not
held.
Part of #186
Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Brett Heap <[email protected]>
…es, so the sweep, lane-end's gate, lane-handoff, lane-reconcile and the daily report can see a lane's work there, and change nothing a checkout with no project.yaml does (#246)
* docs: the triad split's lane-tooling side, surface by surface (T006, T007, T009, T010, T018)
docs/triad-lane-tooling-analysis.md: for every lane tool, the installer and
its receipt, the hooks, the manuals, the tests, CI and the brett-wip
register/inventory/handoff data, what the assembly/spec/code split of
opensoft/openRepoTools changes, at file:line on c4864ac, with the plan task
each change belongs to and whether it is a patch or a proposal.
No shipped command changes: no lane tool reads docs/, openspec/ or specs/
at run time (the adoption plan's cross-leg follow-ups for them are comments,
usage text, a URL or the object-key grammar), and every fix the triad does
need changes today's behaviour, so each is a proposal with a sketch. The
suite's test roots (T009/T010) are lane 1's PR #190 (c139e88); this branch's
earlier draft of them was withdrawn before commit, and the document records
the overlap, one gap and one measured defect in #190 for lane 1.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* WIP (untested): T018 worktree visibility for triad legs — the legs reader, the sweep's leg and paired-tree discovery, lane-end's leg rows
Checkpoint for an account swap, on the coordinator's word. NOTHING HERE HAS
BEEN RUN UNDER tests/run.sh: `bash -n` passes for lanes-edit.sh and lane-end,
and lane-worktrees parses as Python; one manual run of
`lanes-edit.sh project-legs` against openRepoShape's assembly-root
project.yaml template (pinned submodule) printed the spec and code legs, exit
0, with no workspace configured; 8 for a directory with no manifest; 64 for a
relative path.
DONE (T018, plan proposal 2 of docs/triad-lane-tooling-analysis.md §4.4):
- lanes-edit.sh: `project_leg_paths_file` (lane-start rung 5's awk, the
seven deciding lines verbatim, printing every leg) and `assembly_legs`; the
read-only subcommand `project-legs <checkout>` (0 rows, 8 none, 1 manifest
unreadable, 64 usage), exempt from the workspace guard; listed in the
unknown-subcommand refusal and the usage header.
- lane-worktrees sweep: where the lane's dir has a project.yaml naming legs,
`Leg` rows for each leg and each initialized nested submodule (porcelain
kind `leg`, a LEGS section, a summary suffix), counted only where the leg's
HEAD's own Lane: trailer is this lane's and it holds work, or unreadable;
every leg's worktree registrations enumerated; `<assembly>/worktrees`
scanned as the paired root and claimed by the same HEAD-trailer rule as
.claude/worktrees; legs' branches under --branches and probed under
--fetch. No project.yaml: no helper call and no new code path's output.
- lane-end: `leg` porcelain rows counted (retire) or listed (not counted),
"leg checkout(s)" in the gate's tally, no `--yes` offered when legs are all
that is counted.
REMAINS, in order: (1) tests/test_triad_lane_tooling.py — assembly fixture
from the pinned template bytes with legs as real repositories and bare local
remotes, fake gh exiting 1; single-repository golden comparisons against
c45a452's tools (CI checks out depth 1, so the old bytes need a decision:
skip where c45a452 is absent, or captured goldens); the shared-awk identity
check against lane-start; (2) README-lanes.md and usage text for (a);
(3) commit (b) lane-handoff paired-root poll + recording the leg checkout,
lane-reconcile's leg registrations; (4) (c) the daily report's legs;
(5) (d) add recording the leg; (6) the shell suite once at the end.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 (a): the triad guidance for the sweep and lane-end's gate — README-lanes, usage text, the dated §4.4 note; 2aa8a59's code now tested
Plan task T018 (#186), slice (d2), part (a). This
commit carries the guidance for the code 2aa8a59 added: a "A triad: its
legs, their worktrees and the paired trees (T018)" section and a `leg` row
in the porcelain block of docs/README-lanes.md; a "A TRIAD" paragraph in
`lane-worktrees --help`; four lines in lane-end's CLOSE-OUT GATE header
(`lane-end --help`); and a dated subsection at the end of §4.4 of
docs/triad-lane-tooling-analysis.md, including the note "outputs that change
regardless of shape" the coordinator asked for (the unknown-subcommand list
and usage header of lanes-edit.sh, and the --help texts), for lane 1's ruling.
THE INVARIANT: a checkout with no project.yaml declaring a leg other than
itself is asked nothing, so a single repository's sweep rows, gate verdict,
exit codes, register lines and inventory rows are unchanged. Only usage text
moves for every shape, as listed in the §4.4 note.
THE PROOF, run under tests/run.sh with this tree (tools as committed here and
in 2aa8a59):
tests/run.sh -k "t018 or repo_hygiene or test_lane_worktrees"
-> 1 failed, 299 passed, 1006 deselected in 1002.77s
The 299 include every test of tests/test_lane_worktrees.py and
tests/test_lane_worktrees_report.py, the hygiene module, and the T018 tests:
the single-repository golden comparison against c45a452's stored outputs and
the assembly cases (template bytes, legs as real repositories behind bare
local origins, fake gh exiting 1). The one failure was the hygiene check on
host-absolute paths, tripped by the golden fixture's `<ROOT>/home/projects/`;
that fixture and its test module are the next commit, WIP, with the fix.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* WIP (untested): T018 (a) tests — tests/test_triad_lane_tooling.py and the single-repository golden captured from c45a452's tools
Checkpoint for an account swap, on the coordinator's word. The module and
its stored fixture, after the fix of the one failure the previous run found;
the fixed form has NOT been run under tests/run.sh (the re-run,
`tests/run.sh -k "t018 or repo_hygiene"`, was stopped while still waiting
before the lock, exit 143, so it never held it).
DONE:
- The stored-fixture decision: the "before" of the single-repository
invariant is tests/fixtures/t018/single-repository.golden, generated ONCE
from c45a452's own tools (`git archive c45a452 | tar -x -C <dir>`, then
`python3 tests/test_triad_lane_tooling.py --capture <dir>`), because CI
checks out at depth 1 where c45a452 is not there to run. It covers add
(dry run and act), the sweep's porcelain and table with --branches
--include-scratch --include-caches, lane-reconcile, lane-end refusing and
passing with the row and last log line, lane-handoff's output, top block
and inventory, and the estate report, on a repository with a submodule that
is no leg and on one whose project.yaml names no leg but itself.
- Normalised for what no two runs share and nothing else: the bench's root
and $HOME (both spellings), tree ids, operation ids, stamps, hashes, ages,
byte sizes, the order of the inventory's sidecars (their file names are a
checksum of the bench's path), and the sweep table's note about this
account's unreadable /proc processes (a host fact). The golden test runs on
Linux only, where it was captured.
- The fix since the run: `$HOME` is normalised to `<HOME>` before the root,
so the fixture names no `/home/<user>/` path (the hygiene failure). Captured
twice from c45a452 afterwards: byte-identical. The current tools' outputs
on the same scenario equal it (compared by the module's own functions,
not by pytest).
REMAINS: run `tests/run.sh -k "t018 or repo_hygiene"` and record the counts;
then (b) lane-handoff's paired-root poll and leg-checkout record with
lane-reconcile's leg registrations, (c) the report's legs, (d) add's leg
record (all three drafted in the session scratchpad, not applied), and the
shell suite once at the end.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* WIP (untested): T010 docs — the §4.14 CI sketch exits 4 under #190's composed mode; three ways a composed job can pin the PR's code
Plan task T010 (#186). Queued by the coordinator from
the review of #190: the §4.14 sketch (code-PR CI with
OPENREPOTOOLS_COMPOSED=1 against an assembly checked out at main) would exit
4, because #190 at dbc6837 refuses any code root the assembly does not pin —
Roots.absent() (tests/conftest.py:283) runs _leg_at_its_pin (:259), and
pytest_configure (:404-412) raises it as pytest.UsageError — while
discover_assembly (:159-172) finds only an assembly that mounts the code
root. Dated notes in §4.14 and §7 item 7: the composed job must check out an
assembly whose code gitlink points at the PR's own commit, or a throwaway
assembly built for the run that pins it, or use #190's standalone mode.
Documentation only; no tool or test changes. Marked WIP (untested) because
the hygiene suite has not been run over this text: the checkpoint came first.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 (c): the daily report counts each leg of an assembly as a checkout of its own, with a legs section only where an assembly's leg is checked out
Plan task T018 (#186), proposal 3 of
docs/triad-lane-tooling-analysis.md §4.4. A leg is a submodule, its `.git` a
FILE, so `Report.build` never counted one as a canonical checkout and the
branches all lane work makes after the split never reached the report. Now,
for every canonical checkout whose own project.yaml declares legs (read by
`lanes-edit.sh project-legs`), each checked-out leg is read as a checkout of
its own: its branches ("Unmerged branches…"), its root `main` ("Root main
divergence") and its rescue branches ("Awaiting disposition"), each leg row
ending with `the <path> leg of <assembly>`; and a section "Assembly legs with
uncommitted or unpublished work" lists the legs holding dirty or untracked
paths or a HEAD no origin ref holds, or that could not be read. A manifest
that cannot be read is a row of "Records the report could not read". Guidance
in docs/README-lanes.md's report table and `lane-worktrees --help`.
THE INVARIANT: a canonical checkout with no project.yaml is asked nothing; the
legs section is added only where a leg was found, so a report of single
repositories is byte for byte what it was. This changes the daily report for
the estate's existing triads (IRRS, IRSS, MedxEHR, openDox), which is what
proposal 3 is for.
THE PROOF:
* For 8e2227e and 96da9af, which were WIP: `tests/run.sh -k "t018 or
repo_hygiene"` -> 162 passed, 1144 deselected in 134.24s (2026-10-09T13:25Z).
* For this commit: run.sh's own in-lock command under the same lock, because
the wrapper's workstation-wide census had waited 30 minutes on other
projects' pytest runs (#184) - on the coordinator's word, the form lane 1
approved on 2026-10-07: `flock -w 7200 /tmp/openrepotools-pytest.lock env
TMPDIR=<run root>/tmp python3 -m pytest tests -q -p no:cacheprovider
--basetemp=<run root>/basetemp -k "t018 or repo_hygiene or
test_lane_worktrees_report"` -> 184 passed, 1124 deselected in 457.65s.
That includes the single-repository golden (the report section of c45a452's
stored outputs, unchanged), every test of tests/test_lane_worktrees_report.py,
the hygiene module, and two new cases: an assembly whose code leg holds an
unpushed branch and whose spec leg is dirty, and an estate with no assembly,
which has no legs section.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 (d): lane-worktrees add records the leg it made a tree from, and says of a tree made from an assembly itself that its legs are empty there
Plan task T018 of #186, slice (d2), proposal 1 of
docs/triad-lane-tooling-analysis.md §4.4.
Where the lane's checkout is an ASSEMBLY - its project.yaml declares a leg
other than itself, read only through `lanes-edit.sh project-legs`, lane-start's
rung-5 reading - `lane-worktrees add` matches the checkout it makes the tree
from against each leg by their common git directory (the leg's own toplevel
must be the leg's path, so an uninitialized leg, which git answers as the
assembly, never matches). A tree made from the leg, or from any worktree of
that leg's repository (a paired <assembly>/worktrees/<feature>/code included),
is recorded in the #97 inventory with THE LEG as its checkout, which every
inventory reader enumerates; the dry-run and success notes name the leg, and
the success note says "with <leg> as its checkout" where the checkout given was
a worktree of it. A tree made from the assembly itself is made as before, and a
note says a worktree does not check the legs out and names the
`--checkout <assembly>/<leg>` that makes a leg's tree. A manifest that cannot
be read refuses, exit 2, nothing made (Amendment 7(d)).
THE INVARIANT: a lane whose checkout has no project.yaml is asked nothing (no
helper call), and a manifest that declares no leg other than `.` answers 8 -
so on a single repository `add`'s output, exit code, inventory row and
take-back text are byte-for-byte what they were. PROOF:
test_t018_single_repository_outputs_are_c45a452s_byte_for_byte compares the
current tools against tests/fixtures/t018/single-repository.golden, stored from
c45a452's tools, whose "add --dry-run", "add" and "add (manifest, no leg)"
sections are add's; it passes unchanged. The shell suite's
#163 add block (tests/test_lane_helpers.sh) runs once on the merged tree at the
end of this slice.
Help text that changes regardless of shape (listed in the §4.4 note for lane
1's ruling, item 2): `lane-worktrees --help`'s "A TRIAD" paragraph gains two
sentences on add. Guidance: docs/README-lanes.md "In a triad (T018), a tree of
a leg is made from the leg". The §4.4 note's first paragraph now names (a)
through (d), with (b) a second writer's branch this one merges.
Tests (tests/test_triad_lane_tooling.py, fixtures from openRepoShape's
assembly-root template bytes, legs behind bare local remotes, gh exits 1):
test_t018_add_records_the_leg_it_made_a_tree_from (dry run, an add from
<assembly>/code, an add from a paired worktree recorded under the leg, the
sweep then reading that tree through its leg) and
test_t018_add_from_the_assembly_itself_says_its_legs_are_empty.
COUNTS: `tests/run.sh -k "t018 or repo_hygiene or test_lane_worktrees_report"`
on this tree: 186 passed, 1124 deselected in 212.76s (0:03:32), exit 0
(30f9dc0's same selection: 184 passed; the two new (d) tests make 186).
run.sh's own census and lock (it waited ~48 minutes behind other runs;
no flock fallback was used). The selection holds no supervised-restart
test.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 (b): lane-handoff sees a triad's legs — the paired trees polled, each tree recorded under its leg
Plan task T018 (#186), slice (d2), part (b), first
half. Two gaps docs/triad-lane-tooling-analysis.md §4.4 and §4.7 measured in
the handoff's writer poll, closed SHAPE-GATED through 2aa8a59's shared reader
(`lanes-edit.sh project-legs`, called as it is):
(1) THE PAIRED ROOT IS POLLED. Where the lane's checkout is an assembly (its
own project.yaml declares a leg other than itself), the handoff polls
`<assembly>/worktrees/<feature>` and `<feature>/<each declared leg path>`
as it polls `.claude/worktrees`: every directory there with a `.git` of its
own (anything else under it is the assembly's working tree, where git
answers too). A lane with unpushed work in a paired tree used to be absent
from its WRITERS block.
(2) EACH TREE IS RECORDED UNDER ITS LEG. A polled tree whose repository's
common git directory is a checked-out leg's is filed with that leg
(project-legs' third column, the path `add --checkout` records) as its
checkout. Anything else keeps the lane's dir, as before. The first handoff
used to rewrite the leg that `lane-worktrees add --checkout <assembly>/code`
recorded to the assembly. A leg that is NOT checked out is passed over:
git answers the assembly there, and the drafts' leg map, which lacked that
guard, would have filed every tree of the assembly under a deinitialized
leg (measured: with the guard deleted, the deinit case fails).
AN UNREADABLE project.yaml is never "no legs" (Amendment 7(d)), and the swap
still completes (R-A11-11). The paired root is not polled, the top block's
WRITERS section carries a `- NOT POLLED:` line, no sidecar is filed for a
tree that is not of the lane's own repository (the checkout `add` recorded
is kept), and the lane stays SWAPPING.
THE GATE: a checkout with no project.yaml is asked nothing. There is no
helper call and no git read, and set-lane-tree gets the same argv. One whose
project.yaml names no leg but itself costs one `project-legs` call, which
answers 8, and nothing else. `--supervise` and `--restart-status` exit before
any changed line. No usage or --help text moves.
THE PROOF, under tests/run.sh, lanes-edit.sh at base (lane-reconcile is the
next commit):
tests/run.sh -k "t018 or supervised_restart or repo_hygiene or openrepotools_command" -rs
-> 7 failed, 429 passed, 874 deselected in 3149.31s (load 60-70 on 32 cores)
The 429 include tests/test_triad_lane_tooling.py, whose single-repository
golden from c45a452 passes UNREGENERATED (tests/fixtures/t018/ untouched),
and the new tests/test_triad_lane_tooling_handoff.py: three assembly cases
built from openRepoShape's template bytes at the pin (legs as real
repositories behind bare local origins, fake gh exiting 1), and a second
stored golden, tests/fixtures/t018-handoff/single-repository-decoys.golden.
That golden was captured twice from c45a452's own tools, byte-identical,
on a single repository laid out to look like a triad: a submodule's
worktree under worktrees/<feature>/code, and a tree recorded with the
submodule as its checkout. Its scenario has no project.yaml, and then one
naming no leg but itself. The handoff output, top block, inventory and
lane-reconcile before and after all match it.
The 7 failures are --restart/--supervise timing cases of
tests/test_supervised_restart_regressions.py (TimeoutExpired, "observer
never confirmed readiness"). A/B at load ~40, one run.sh run each:
this tree: -k "<the 7>" -> 7 passed, 1303 deselected in 143.69s
96da9af (archive copy, no change): -> 7 passed, 1299 deselected in 150.59s
so they are load, not this change.
Against 96da9af's lane-handoff the three new assembly cases fail
(measured); the base handoff turns the `add`-recorded `<assembly>/code`
into `<assembly>`.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 (b): lane-reconcile reads a triad's legs — each leg's worktree registrations and the paired root
Plan task T018 (#186), slice (d2), part (b), second
half: the third gap docs/triad-lane-tooling-analysis.md §4.4 measured.
`lanes-edit.sh lane-reconcile` read only the checkout's own worktree
registrations and the two lane roots, so a tree of a leg's repository that no
sidecar names was invisible to it. SHAPE-GATED, through `assembly_legs`
(2aa8a59's shared reader, called as it is):
- EVERY CHECKED-OUT LEG'S REGISTRATIONS, read beside the checkout's own. Each
worktree git registers in a leg that no sidecar names is a TREE row:
`unmanaged`, or `stale-registration` where its directory is gone. The row
names the leg ("git registers it in <leg>, the code leg of
<assembly>/project.yaml (<repository>)"). The leg's main entry, which git
spells as its git directory under `.git/modules/`, is skipped by place. A
leg that is not checked out (git answers the assembly there) registers
nothing of its own and is passed over.
- THE PAIRED ROOT, after the lane roots: `<assembly>/worktrees/<feature>` and
`<feature>/<each declared leg path>`, each holding a `.git` of its own that
nothing above named (a lost registration, or a clone where a worktree
belongs), is `unmanaged`.
- PATHS NOBODY READ ARE NOT CLEARED: a project.yaml that cannot be read, a
leg whose `git worktree list` fails, or a paired root or feature directory
that cannot be listed makes the verdict `indeterminate`. The unreadable
manifest is said in the words `lane-worktrees`' sweep refuses with ("the
legs of the assembly <dir> could not be read"), because the sweep reads
this verdict first and refuses on it. The previous run's one failure,
tests/test_triad_lane_tooling.py:616, was exactly that: same exit 2, the
reconciliation's wording instead of the sweep's. One fact now has one
spelling, and that test passes unchanged.
Nothing is adopted, deleted or overwritten, as before. THE GATE: a checkout
with no project.yaml is asked nothing. One whose project.yaml names no leg
but itself gets `assembly_legs`' 8 and nothing else. Every row, count and
verdict on a single repository is what it was.
THE PROOF, under tests/run.sh, this exact tree (lanes-edit.sh and the test
module last written 2026-10-10T02:43:15Z, the run started 02:43:34Z):
tests/run.sh -k "t018 or supervised_restart or lanes_index or repo_hygiene or lane_start_claude_current or openrepotools_command" -rs
-> 544 passed, 768 deselected in 1318.62s (0:21:58), on a quiet box
The 544 include both T018 modules. Two goldens stored from c45a452's tools
pass UNREGENERATED: tests/fixtures/t018/single-repository.golden (byte
identical) and tests/fixtures/t018-handoff/single-repository-decoys.golden.
The latter covers lane-reconcile before and after a handoff on a
repository laid out to look like a triad. Also included are the
supervised-restart module, the lanes-index module (the real
lane-reconcile), lane-start's module (it calls lane-reconcile), hygiene
and the installer module. Two new cases are in
tests/test_triad_lane_tooling_handoff.py, on openRepoShape's template
bytes at the pin: the legs' registrations and the paired root are
reported (a spec tree made away from every root, a paired code worktree,
a clone in the paired root, a stale registration; neither leg nor its
`.git/modules` entry reported), and the indeterminate verdicts (unreadable
manifest, unlistable paired root). Against 96da9af's lanes-edit.sh both
fail (measured).
The earlier run of this half, before the wording fix: 1 failed, 446
passed, 865 deselected in 2718.97s (the :616 case above).
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* WIP (untested): T018 (b) guidance — README-lanes says what lane-handoff and lane-reconcile read in a triad, writer 2's draft checked against 9a5bbe2
Writer 2's paragraph (briefs/t018-b-guidance.md, 2026-10-09T21:53Z) after
"`lane-end`'s gate" in the T018 section, each sentence checked against the
merged lane-handoff (4e39854) and lane_reconcile (9a5bbe2). Two corrections:
the unreadable-manifest verdict is spelled in the sweep's words, which the
sweep reads first and refuses on (exit 2); and a project.yaml naming no leg
but itself is asked one project-legs call (answering 8), not nothing.
Untested: committed for an account swap while the merged tree's scoped run
was in flight; that run's counts follow in the next commit.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* WIP (untested): T018 (d) — add's refusal on an unreadable manifest is tested, and spelled as the sweep and lane-reconcile spell it
test_t018_add_refuses_where_the_manifest_cannot_be_read holds 13cb52d's README
claim (mode-000 project.yaml: exit 2, no tree, no inventory row). The refusal
reads "the legs of the assembly <dir> could not be read", the sweep's and
9a5bbe2's words, in place of "the legs of the lane's assembly <dir>". Reached
only where <lane dir>/project.yaml is there and project-legs fails on it; a
checkout with no project.yaml is asked nothing.
Untested: committed for an account swap while the merged tree's scoped run
was in flight; that run's counts follow in the next commit.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 docs: a parked paired tree is not the lane's to the sweep (§7 item 11, for lane 1's ruling), and §6 says what the branch now ships
docs/README-lanes.md, T018 section: a parked or resumed paired tree carries no
Lane: trailer (park.sh puts the lane in the WIP subject only; resume
soft-resets those commits), so the sweep and lane-end's gate count it for
nobody unless the lane's inventory names it. The paragraph says what to read
before lane-end in an assembly, and how to record such a tree with
set-lane-tree so the gate counts it.
docs/triad-lane-tooling-analysis.md: a dated §6 note on what the branch ships
beyond its first commit, and §7 item 11, the choice between reading park's
WIP subject and giving park's commit a trailer, plus whether resume records
the tree it rebuilds.
Written by the previous writer on 2026-10-11 and left uncommitted; checked
here against HEAD 8cb1368, whose lane-worktrees, lane-end and lane-handoff are
byte-identical to 9991d69's. Every line reference holds: lane-worktrees
:2424-2431, :4473-4494 and :2124, lane-end :2122-2127, the FOREIGN reason text
(lane-worktrees:3037-3039), and workBenches ffd5516 park.sh :226 and :860 and
resume.sh :221-231 and :746. Three corrections in item 11: the source is
review 5481327496 on #196 (a pull-request review, not an issue comment); its
finding 2 was derived from code and not run, so "measured" is now "derived",
the document's own word for that; and the inventory names a paired tree through
lanes-edit.sh set-lane-tree, not through lane-worktrees add, which makes its
trees under the lane's own root only.
Docs only. No test run for this commit; the branch's one verification run
follows the M1(a) and should-fix commits.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 (b), pre-PR review M1 option (a): lane-handoff polls the paired root by the sweep's rule, so one lane's handoff never takes another lane's feature trees; and S1, S5, N1-N5
M1 (a). In an assembly, lane-handoff polled and recorded every .git-bearing
tree under <assembly>/worktrees as the running lane's writer. The paired root
is per feature, not per lane, so after one handoff another lane's paired
work was this lane's inventory: lane-end refused on it, sweep --yes could
rescue and remove it, and the next session was told to relaunch writers into
it. Now a paired tree is polled and recorded only where this lane's inventory
names it (lanes-edit.sh lane-trees, read once), its HEAD's own last Lane:
trailer is this lane's on a commit origin's default branch lacks (a bash
mirror of lane-worktrees' own_trailers/head_lane_trailer; a clone is never
claimed by trailer, as the sweep never adopts one), or the --writers-file
names it. Every other checkout there is one "- PAIRED ROOT, not this lane's:
<path> — branch …" line under its own heading in the top block, outside
WRITERS, not counted and not recorded. Pending lane 1's ruling on #186
between (a) and (b).
S1. A paired root, feature directory or leg directory that cannot be listed
or searched was skipped in silence by the handoff. It is now a "- NOT
POLLED" line, a stderr note and a lane left SWAPPING, as is an inventory
that cannot be read. lane-reconcile (indeterminate) and the sweep's _paired
(exit 2) gain the one case they also passed over: a leg's directory under a
feature that cannot be searched, and in the sweep a root or feature
directory that can be listed but not searched.
N1. lane-reconcile passes the feature directory to awk through ENVIRON, not
-v. N3. The handoff's unreadable-manifest words are the sweep's and
lane-reconcile's ("the legs of the assembly <dir> could not be read").
N4. add's hint names every leg's --checkout, not legs[-1]. N5. The handoff
keeps a recorded checkout of the tree's own repository (a dependency nested
in a leg) instead of re-recording the tree under the assembly.
Tests. N2: the assembly cases wear conftest's NEEDS_UPSTREAM (composed mode
fails rather than skips), and the no-assembly report test needs no marker.
New: the two-lane M1 regression; S1's three unlistable directories (handoff
and reconcile); N5; S5(b) the sweep's absent row and add's toplevel guard on
a deinitialized leg; S5(c) an unreadable leg (counted, lane-end refuses),
the submodule-status refusal (unshadowed by reconcile) and _paired's own
refusals called directly; and the coordinator's quoted-manifest case
(openRepoShape v1.0.0, #395 writes path: "{{SPEC_PATH}}"): project-legs
already strips one pair of " or ' quotes, and the test holds it for both
quote styles. Two existing handoff tests change for M1 (a): the no-commit
paired spec tree is named by a writers file, and the paired code tree of the
deinitialized-leg case carries the lane's trailer.
A checkout with no project.yaml is untouched: every new path runs only where
project-legs answered legs (lane-handoff, lane-reconcile, the sweep) or the
manifest declares them (add).
Untested in this commit: the branch's one verification run follows on the
final tree, and its counts are in the commit that ends this step.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 docs: README-lanes and the analysis say what M1 (a), S1 and S2 changed; the analysis's false statements about the branch are dated and corrected (S4)
docs/README-lanes.md, T018 section:
- M1 (a): "each lane's handoff records every paired tree" is gone. The
handoff polls and records a paired tree only where the lane's inventory
names it, its HEAD's own Lane: trailer is the lane's on a commit origin's
default branch lacks, or the writers file names it; every other one is a
"PAIRED ROOT, not this lane's" line outside WRITERS, not counted or
recorded. The sweep's bullet says the handoff no longer widens its
paired-root rule, and the parked-tree paragraph says a handoff does not
record a parked tree for the lane.
- S1: the handoff's NOT POLLED, stderr note and SWAPPING for an unlistable
paired root, feature directory or leg directory, or an unreadable
inventory; reconcile's indeterminate and the sweep's refusal now also
cover a leg directory that cannot be searched.
- S2: "no --yes acts on a leg" is now "on a leg checkout": under --branches
a leg's branches are rows like the checkout's own, and --yes deletes a
merged lane branch there as it does in the checkout, bundling first.
- N5: a tree recorded under a checkout of its own repository (a dependency
nested in a leg) keeps that checkout through a handoff.
docs/triad-lane-tooling-analysis.md (S4): dated 2026-10-13 notes at §0 item 1
and §6. "This branch carries no test change of its own" was true of its first
commit only; it now carries two test modules and two goldens and still
changes none of the suite's roots. §6 records M1 (a) and S1, and §7 item 11
says the handoff no longer closes the parked-tree gap by itself.
Verification, one run through tests/run.sh on this commit's tree, 1511f94
(4d4957d plus these docs; main f87fd5a merged at 8cb1368), 2026-10-13
19:10-19:40Z. Every module but the four below was --ignore'd, with
-k "triad_lane_tooling or repo_hygiene or test_the_lane_helper_suite_passes":
181 passed, 1 failed, 1 deselected in 1818.96s.
- tests/test_triad_lane_tooling.py, tests/test_triad_lane_tooling_handoff.py
(both goldens unregenerated) and tests/test_repo_hygiene.py: all passed.
- The shell suite, tests/test_lane_helpers_suite.py::
test_the_lane_helper_suite_passes: 4598 passed, 2 failed. Both are
lane-start row-stamp assertions, "…with clause (c)'s directory and
window in the tail" and "the row's stamp states clause (c)'s two facts
… in its TAIL". lane-start's cut_to_line caps the stamp at 230 characters
(lane-start:3502-3510). Under run.sh the suite's $HOME is
~/.local/state/openRepoTools/tmp/<UTC>-<pid>/tmp/tmp.XXXXXXXXXX/home, and
the stamp then reaches 231 characters before its window value, so the
tail is cut ("…/home/projects/repoA; ..."). With a /tmp-length home it
is 165. This branch changes none of lane-start, tests/test_lane_helpers.sh,
tests/test_lane_helpers_suite.py or tests/run.sh (git diff f87fd5a is
empty for all four), so the two failures do not come from it.
An earlier attempt (run1) ran nothing: zsh passed the --ignore list as one
argument and pytest exited 4.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* WIP (untested): T018: lane-reconcile reports a leg whose .git git cannot read as the sweep does - a TREE row `unreadable` that requires recovery - instead of passing over it in silence
lanes-edit.sh, lane_reconcile, the legs' registrations: a declared leg
whose git toplevel is not the leg itself was skipped whether or not a
.git stood in it, so a leg with a .git of its own that git cannot read
(a gitfile naming no repository, or a .git where git answers the
assembly) said nothing, while the sweep's `leg` row for it is
`unreadable` and counted (exit 3, lane-end refuses). It now takes the
sweep's rule (probe_leg: toplevel not the leg, and a .git stands there)
and the sweep's word: one TREE row `unreadable`, in the sweep's words
("git could not be read through it (it has a .git of its own and git
could not read it: <git's answer>)"), counted under "require recovery",
so lane-start's recovery read counts it too. A leg with no .git (not
checked out) is passed over as before, and a path a sidecar already
names is not reported twice.
The verdict is not changed: the sweep counts that leg and goes on, and
an `indeterminate` here is what the sweep refuses on (exit 2) before it
reads the legs, which would hide its own count and break
test_t018_a_leg_git_cannot_read_is_counted_and_holds_lane_end.
tests/test_triad_lane_tooling_handoff.py: a triad whose spec leg's .git
is a gitfile naming no repository, then an empty .git directory: one
`unreadable` row naming the leg, 1 require recovery, the verdict
ungraceful-stop, and the sweep still exit 3 with the leg `unreadable`
and counted; readable again, and deinitialized, the leg names nothing.
docs/README-lanes.md (T018 section): one sentence for the row.
A checkout with no project.yaml is untouched: the block runs only where
project-legs answered legs (lrc_lgrc 0).
lane-handoff's own leg loop (lane-handoff:2093-2095) skips such a leg
in the same way; it is not changed here.
Untested: the one verification run (run3, on this tree 2f23887) waited in
the shared pytest lock queue from 20:50Z and was stopped at 21:21Z, before
it took the lock, for the account swap; no count was taken.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* WIP (untested): T018: lane-handoff counts a leg git cannot read as unreadable, as the sweep and lane-reconcile do; verification not run
lane-handoff, the legs' common directories (was lines 2093-2095): a
declared leg whose git toplevel is not the leg itself was skipped whether
or not a .git stood in it. So a leg with a .git of its own that git
cannot read (a gitfile naming no repository, or a .git where git answers
the assembly) said nothing, while the sweep's `leg` row for it is
`unreadable` and counted and lane-reconcile's TREE row (9f23a6b) is
`unreadable` under "require recovery". Worse, a tree `lane-worktrees add
--checkout <leg>` made from that leg was re-recorded under the ASSEMBLY
at the handoff, over the checkout `add` recorded.
It now takes the sweep's rule (probe_leg: toplevel not the leg, and a
.git stands there) and the sweep's words: one `- UNREADABLE LEG:` line in
the top block's WRITERS section ("`<leg>` is unreadable, the <decl> leg
of <dir>/project.yaml (<repo>): git could not be read through it (it has
a .git of its own and git could not read it: <git's answer>)"), a note on
stderr, and a count (`legs: N of the assembly's legs under <dir>
unreadable`). As lane-reconcile keeps its verdict for it, the lifecycle is
not held SWAPPING for the leg itself: the poll looked everywhere it
looks. writer_checkout files no guessed checkout while a leg is
unreadable: a tree of no readable leg's repository, not of the
assembly's own and recorded under no checkout of its own repository is
named and NOT recorded, so the leg `add` recorded stays, and the lane
stays SWAPPING for that tree (the existing "no checkout can be vouched
for" rule). A leg with no .git (not checked out) is passed over as
before. A checkout with no project.yaml, or one naming no leg but
itself, never runs the leg loop: single-repository output is unchanged.
docs/README-lanes.md: the handoff paragraph says so.
tests/test_triad_lane_tooling_handoff.py:
test_t018_the_handoff_reports_a_leg_git_cannot_read_as_the_sweep_counts_it,
beside the reconcile one: the spec leg's .git a gitfile naming no
repository, then an empty .git directory: one UNREADABLE LEG line, the
note and the count, the lane SWAPPED, the reconciliation `unreadable`, 1
require recovery and `resumable`; a tree `add` made from the spec leg
keeps the spec leg as its checkout, named and not recorded, the lane
SWAPPING; readable again, nothing named and SWAPPED. The deinitialized
leg test now also holds that a leg with no .git is never `unreadable`.
VERIFICATION NOT RUN. The one run of the T018 selection (verify.sh, run4.log,
head 9f23a6b, index tree 0b691c8) waited for the shared pytest lock
behind other lanes' runs from 21:59:32Z and ended exit=143 (a SIGTERM
this writer did not send) at 22:26:46Z before any test ran; an account
swap was called at 22:20:05Z. So this commit and 9f23a6b
are both UNTESTED. Before this commit: bash -n lane-handoff is clean,
the test file parses. The next run on this tree verifies both.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018: lane-handoff withholds only a tree that could be an unreadable leg's, names a tree git cannot read, and says what it withheld (review of bf2a220, S1, S2, N1-N4)
S1. lane-handoff, writer_checkout: while a leg was unreadable, every
tree not of the assembly's own repository was withheld, a worktree of an
unrelated repository in the lane's own root included, so the lane stayed
SWAPPING on every handoff and those records went stale. Now a tree is
withheld only where it could be of that leg's repository: its common git
directory cannot be read, or lies physically inside the assembly or its
git directory (.git/modules/<leg>, a leg's own .git) without being the
assembly's own, or the inventory records it under an unreadable leg. Any
other tree keeps the lane's dir, as when every leg reads.
Test: test_t018_an_unreadable_leg_withholds_no_tree_of_another_repository
(a worktree of a third repository, recorded before and made after the
leg broke; and one a record names under the unreadable leg).
S2. lane-handoff, poll_writer: `git rev-parse --git-dir || return 0`
dropped any tree whose .git git cannot read, so a damaged
.git/modules/<leg> took every tree of that leg out of WRITERS and the
count while the lane went SWAPPED. In an assembly (legs_state set) such
a tree is now listed and counted, UNREADABLE and (NOT recorded), added to
lc_inventory_missed, and named on stderr. A checkout with no project.yaml
naming a leg passes over it as before, so the goldens do not move.
Test: test_t018_a_tree_git_cannot_read_in_an_assembly_is_named_and_holds_the_lane_swapping
(modules/spec deleted after add --checkout spec, with a paired spec tree
the inventory names; and a single repository's tree, passed over).
N1. The UNREADABLE LEG line's clause now depends on whether any tree was
withheld ("the N tree(s) this handoff could not place are named above,
each marked (NOT recorded)", or "every tree this handoff polled could
still be placed, so none is withheld for it"), and a withheld tree's
WRITERS line is marked (NOT recorded). The leg rows are kept as
<leg> TAB <why> and written by top_block after the poll.
N2. lane-handoff's UNREADABLE LEG line and note, and lanes-edit.sh's
lane-reconcile TREE row for an unreadable leg, say "before relaunching
a writer onto a tree of its repository": a leg is the assembly's.
N3. docs/README-lanes.md says the leg count is stderr's `legs: N ...`
line, never WRITERS' (N found), and describes S1, S2 and N1.
N4. Test: test_t018_a_leg_tree_add_made_is_withheld_where_the_legs_git_is_an_empty_directory
(the empty .git directory, where git answers the assembly in the leg,
with a tree add made from it).
The existing handoff and reconcile unreadable-leg tests now also assert
N1 and N2.
bash -n passes on lane-handoff and lanes-edit.sh; the added lines use no
declare -A, ${x,,}, mapfile, readlink -f, <<< or [[.
Authoring smoke check only (the one verification follows on the final
head): the three new tests, the two changed ones and the handoff golden
test, each called once outside pytest with LANES_* and TMUX* unset, all
passed; the three new tests each failed against cf7db4a's tools, on the
withheld third-repository tree, the writer count and the (NOT recorded)
marker respectively.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 docs: record lane 1's rulings of comment 6240800023 in the analysis's §7 (items 3, 11 and a new 12 for M1)
docs/triad-lane-tooling-analysis.md §7: a dated head note naming
comment 6240800023 on #186 (posted 2026-10-17T20:48Z), and each ruling
at its item:
- item 3: proposal 1 (the guidance) goes live now; proposals 2 and 3 go
live with the T018 PR, on the condition of the read-only before/after
measurement over the triads (IRRS, IRSS, MedxEHR, MedxGlass, openDox,
openXdox, openWallet and the codexFactory copies), main's tools against
T018's, and any verdict that flips to a refusal told to its owning
lane before the landing;
- item 11: (ii), park's WIP commit carries a `Lane: <lane>` trailer, and
resume records the tree it rebuilds with `lanes-edit.sh set-lane-tree
<lane> <path> --checkout <assembly>/<leg>`; both workBenches changes,
one workBenches issue linked from the T018 PR ("workBenches issue: to
be linked"); the PR does not wait for it;
- item 12, new: the pre-PR review's M1, (a) as implemented in 4d4957d,
with the two-lane regression test
(test_t018_a_handoff_takes_no_other_lanes_paired_tree).
§6's 2026-10-13 note now says the M1 ruling was made, and where.
docs/README-lanes.md: the two T018 sentences that called these rulings
pending now say they were made, and the parked-tree check before
lane-end stands until the workBenches changes land.
Docs only.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018: the daily report lists a leg that is also a canonical clone once (measurement finding 1)
lane-worktrees, the report's _branches, _root_main and _aging iterated
`canonical + [g.path for g in legs if g.checkout]`. A leg whose .git is
a directory (a clone, not a submodule's gitfile) is also canonical, so
it was read twice: the read-only triad measurement of 2026-10-17
(finding 1) saw 8 branch rows printed twice on this workstation, and
_root_main would do the same for a leg whose main is ahead. _aging's
`seen` set hid it there only where the two spellings matched.
All three now read Report._checkouts(canonical): the canonical
checkouts, then the checked-out legs, each once by os.path.realpath,
first occurrence kept. With no leg checked out it returns canonical
untouched, so a single-repository report cannot move. _leg_cell also
matches a leg by real path, so the row kept (the canonical spelling)
still names its leg.
Test: test_t018_the_report_lists_a_leg_that_is_also_a_canonical_clone_once
(an assembly whose project.yaml declares two legs that are clones: the
code leg's unpushed branch, its aged rescue branch and the spec leg's
main ahead of origin each appear once, each naming its leg). It needs
no template. An authoring smoke check outside pytest: it passes on this
tree and fails on 69f0017's lane-worktrees, on the duplicated branch row.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 docs: the analysis spells bench paths ~/projects/..., as the hygiene rule of #229 item 22 asks
f595e44 made tests/test_repo_hygiene.py refuse a committed path that
starts at the bench root, except inside a single-quoted grep pattern.
docs/triad-lane-tooling-analysis.md had seven such lines (§0, §4.2,
§4.5, §4.9, §4.12 and two rows of §4.15). Each now says ~/projects/...,
the bench's projects directory, as f595e44 respelled the same path in
ideation/; the §4.15 grep pattern keeps the spelling it searched for,
under the rule's allowance. A dated note under the header says so.
host_absolute_path_hits over every file this branch adds or changes
now finds nothing.
Docs only.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018: verify 88ee9d9: 224 passed, 1 failed (test_the_lane_helper_suite_passes: two #180 row-stamp cuts, main's own); selection triad_lane_tooling or repo_hygiene or test_the_lane_helper_suite_passes
Log: briefs/t018-verify-20261018T034203Z.log (lane openRepoTools-3's
briefs directory), through briefs/verify.sh and tests/run.sh, with every
LANES_* and TMUX* variable unset.
start 2026-10-18T03:42:03Z head 88ee9d9 tree-of-index 07fa62e
1 failed, 224 passed, 1 deselected in 4045.64s (1:07:25)
exit=1 end 2026-10-18T05:34:13Z
The run queued behind other lanes' pytest from 03:42Z and took the
lock at about 04:26Z.
Every test of tests/test_triad_lane_tooling.py,
tests/test_triad_lane_tooling_handoff.py and tests/test_repo_hygiene.py
passed, both goldens unregenerated among them.
The one failure, tests/test_lane_helpers_suite.py::
test_the_lane_helper_suite_passes: the shell suite ended "4620 passed,
2 failed, 0 skipped, 0 pending". Both FAILs are lane-start row-stamp
tail cases of #180's group:
- log line 100, "...with clause (c)'s directory and window in the
tail, for the person reading the row" (repoA): the cell line is cut
to "...home/projects/repoA; ..." (228 chars), so "; window " is gone;
- log line 1967, "...having found the checkout by its real directory
name, not the typed one" (repoCase): the cell line is cut to
"...no launch; dir ..." (123 chars), the whole path dropped.
Cause: lane-start's cut_to_line caps the state line at 230 characters,
cuts there and trims back to the last space, then appends " ...". The
"; dir <DIR>; window <ref>" tail comes last, and here <DIR> is about 110
characters (the run root under ~/.local/state/openRepoTools/tmp/...), so
the tail is cut: in repoA after the path, in repoCase inside it, where
trimming to the last space drops the path whole. Both "got" strings are
exactly that cut.
Not T018's: `git diff origin/main...HEAD -- lane-start
tests/test_lane_helpers.sh tests/test_lane_helpers_suite.py` is empty,
and T018's lanes-edit.sh hunks (usage, project_legs/assembly_legs,
lane_reconcile, a comment on lane_worktree_roots, the guard exemption,
the project-legs arm and the refusal list) touch neither set-row-state
nor the stamp. Lane 2 measured the same group failing on main's own tree
at a TMPDIR length of 86 (#186 comment 6244714538: repoA, repoA11b,
repoCase and repoMix); #215 (61a7378) moved only repoA11b to a short
fixed path, and repoA11b passed here. CI's tests job, with a short run
root, passes this test on main (83d2690: 1498 passed, 19 skipped;
f5c3bcd and 2cb14a9: success). Not re-run on main locally: the two cases
run only inside the hour-long shell suite.
This run covers 9f23a6b and bf2a220 (the unreadable-leg reads) and this
round: the S1, S2 and N1-N4 fixes (5d2c1c8), lane 1's rulings in §7
(9a8f175), measurement finding 1 (a4e0b17), the bench-root respelling
(a60cf1c), and the merges of main 2732d59, 83d2690, f595e44 (the
openRepoShape pin at v1.1.0) and f5c3bcd (cf7db4a, 107958c, 69f0017,
88ee9d9). The earlier run on 107958c (t018-verify-20261018T011535Z.log)
was killed at a session exit after one F (first in order:
test_the_lane_helper_suite_passes) and 176 passes, with no summary.
Correction to a60cf1c's message: the first of the seven respelled
lines is in §1 (Scope and method), not §0.
Main has since moved to 2cb14a9 and a41adb6; this head does not
include them.
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* T018 tests: the unreadable-leg tests ask the git under test what it says, instead of expecting git 2.43's wording (PR #246 CI)
PR #246's Linux tests job (run 39113292535, job 117633782691) failed
two tests: test_t018_reconcile_reports_a_leg_git_cannot_read_as_the_
sweep_counts_it and test_t018_the_handoff_reports_a_leg_git_cannot_
read_as_the_sweep_counts_it. Both wrote a spec leg's .git as
`gitdir: /nonexistent/t018-spec` and expected git's quoted answer to
contain that path. Git words that condition by version:
- 2.43 (this bench): fatal: not a git repository: /nonexistent/t018-spec
- 2.54 (alpine/git:latest, a throwaway container): fatal: not a git
repository (or any parent up to mount point /)
- 2.55 (CI's runner): fatal: not a git repository: (null)
On CI the tools still classified the leg `unreadable`, counted it and
named it: lane-handoff's stderr shows "the leg .../triad/spec is
unreadable: ... git could not read it: fatal: not a git repository:
(null)". The code reads the condition (git's toplevel there is not the
leg, and a .git stands in it) and only quotes git's line, so the
code is right and the tests were wrong.
tests/test_triad_lane_tooling_handoff.py: a new helper, git_says(b,
leg), returns what every reader quotes (probe_leg's _first_line,
lane-reconcile's and lane-handoff's first non-empty line, or "git
answers <toplevel> there"), asked of the git under test. The three
gitfile checks use it. The empty-.git-directory checks keep "git
answers <assembly> there", the tools' own words, which passed on CI.
No tool changes; S1 and S2 are untouched.
Before this commit: under a PATH shim that rewrites only the
/nonexistent error line to 2.55's "(null)" form, both tests passed
when called directly outside pytest (13 s and 37 s).
Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Re-run CI on main fe58808: refs/pull/246/merge was stale on 14239b9
No content change: this commit's tree is ea4db0d's. Lane openRepoTools-1, the lander, pushed it on lane openRepoTools-3's word in #186 6250521287, so the landing gate's Linux run tests the merge with current main.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Brett Heap <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readylanding gate: runs tests-macos once before the squash
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #186.
T009/T010 of specs/004-migrate-to-triad/tasks.md (branch 004-migrate-to-triad, PR #187).
Head:
b50f197(4 commits onc4864ac; 8 files, all undertests/). The fourth commit,b50f197, fixes lane 3's finding (1); the reviewer's LAND on it is review 5471080687.What changes
When the repository is adopted into the triad, the files split across three repositories:
README.md,AGENTS.mdandCLAUDE.mdmove to the assembly root.docs/moves to the spec leg.tests/,.gitmodulesandcontracts/openreposhape-pin.yamlstay in the code leg.upstream/openRepoShapestays nested in the code leg.The suite assumed one tree. It now names four:
OPENREPOTOOLS_CODE_ROOTOPENREPOTOOLS_ASSEMBLY_ROOTcontracts/code-pin.yamlandproject.yaml, is a repository's top level, and records the code root as the gitlink its code pin names; absent on today's layoutOPENREPOTOOLS_SPEC_ROOTcontracts/spec-pin.yaml'ssubmodule_path) when it is checked out; absent otherwise<code root>/upstream/openRepoShape, initialized or notOPENREPOTOOLS_COMPOSED=1is the composed switch. In either mode, the run is refused when a variable names the wrong kind of tree, or when the mode is anything other than 0 or 1.Which root a file is read from (
ROOTS.path_for(<rel>))README.md,AGENTS.mdandCLAUDE.mdcome from the assembly.docs/…,openspec/…,specs/…andideation/…come from the spec root.Today's single tree answers for all three, because it carries
openspec/andspecs/beside the code. On today's layout, every reader reads exactly the file it always read.Decision:
.gitattributesstays in the code legThe suite reads
.gitattributesfrom the CODE root. Git never applies a superproject's.gitattributesinside a submodule. I measured this in the composed candidate:README.mdat the assembly istext: auto/eol: lf.code/parkandcode/tests/run.shareunspecified.So the line-ending rule protects the bash files only through the code leg's own copy. Reading the assembly's copy would pass while the code leg went unprotected.
This matches T006: its leg patch
code-0001gives the code leg its own.gitattributes, and the assembly keeps its copy for its own files. Untilcode-0001lands in the real leg, the leg'stestsjob is red on this one test, by design.Follow-up for the plan's owner: the placement table in
specs/004-migrate-to-triad/plan.md(§ Target placement) on main still puts.gitattributesat the assembly only. It needs amending to say the code leg keeps its own copy before the real split. A leg split exactly as the table says is red on this test; the independent review saw this in its C5 and C6 runs.Length caps at an assembly root (T006)
AGENTS.mdREADME.mdThe higher caps allow exactly the 24 lines each that T006's
assembly-0001adds. Each cap has a dated entry. The entries citespecs/004-migrate-to-triad/root-guidance-2026-10-08.md, which is on #192's branch. Land #192 with or before this PR, or that citation points nowhere until it does.Readers rewired
tests/test_repo_hygiene.py:doc(), and their per-surface loops visit the code's surfaces first (code_first()).git ls-filesover every repository the run can read. Today that is the code root; composed, it is code, assembly and spec.tests/test_upstream_pin.pyreads the code root's owngit ls-tree HEAD, with the dependency nested in the code root. A new check confirms the code root is its repository's top level.tests/test_openrepotools_command.py: the installer's receipt-mode README check.tests/test_lane_helpers.sh: the two sections that quotedocs/README-lanes.mdused to swallow a missing file with|| :.b50f197: atdbc6837, the--retiresection's two manual assertions (:6601-6602) used$ln_docoutside the guard that binds it. With no spec root they aborted the suite underset -u(ln_doc: unbound variable); this was lane 3's finding (1). They now carry the same guard and named skip. A new text test,test_the_lane_suite_reads_the_manual_only_inside_its_guard, holds every use inside a guard.b50f197(5471080687) ran three proofs:dbc6837's suite: 1 failed, naming lines 6601 and 6602. Atb50f197: green.dbc6837and ends with three named skips atb50f197.dbc6837agrees:1 failed.tests/run.shmakes a relative root absolute before itscd. Nothing else in it changed.The composed-vs-standalone contract
Standalone is the default, and the only mode today's layout has.
Composed is
OPENREPOTOOLS_COMPOSED=1.tests/conftest.pyrefuses the session (pytest exit 4,ERROR: …), naming each problem, when:git status.In composed mode,
NEEDS_UPSTREAMbecomes a fixture that fails, and a document test that reaches an absent root fails. Nothing skips its way into composed acceptance (FR-008).What the conftest does NOT check: the pin files'
commit:andtree_sha256. Those belong to the standard'sscripts/validate-pins.py. The T010 assembly job runs it in the step before the composed suite (Copilot round 2; see Follow-ups).Evidence
Step 1: what the split breaks, before this change
I ran the suite at the rehearsed run C code leg
73b04d6, withtests/run.sh -k 'repo_hygiene or upstream_pin or wip_init or park_resume' -rfEs. Run C is main837928asplit by the standard's adopter into disposable local remotes (spec593250d, assembly69b8924).The same 17 tests failed in all three runs, each with a
FileNotFoundError:README.md;CLAUDE.md;AGENTS.md;docs/README-lanes.md(the hygiene document tests);.gitattributes(test_the_root_carries_the_line_ending_rule).test_upstream_pin.pypassed in all three, because it already read the code leg's own gitlink. M3's skips were today's dependency skips. Outside those selectors, the installer's README check and the lane suite's twodocs/README-lanes.mdsections read moved files too. The lane suite had swallowed the missing file with|| :. This PR covers all of them.Local proof in the triad
I applied the PR head onto run C's code leg and pinned it into the assembly with the standard's
bump-leg.py. The validators,make validateandmake pinsall exited 0.I ran
-k 'repo_hygiene or upstream_pin or roots or composed or openrepotools_command or lane_helpers_suite'four ways:The failures are recorded here, not deleted:
.gitattributes. This is the decision above.ln_doc: unbound variable. That is the defect above. I first attributed this failure to the stamp assertions alone; lane 3's review caught it.These proofs ran on
c139e88's content and were not repeated one3a76b5ordbc6837. The independent review's fake triad (C1–C6) exerciseddbc6837composed and standalone. The full record isspecs/004-migrate-to-triad/test-roots-and-ci-2026-10-08.mdon004-migrate-to-triad-ci.Red at base: 21 of 21
All 21 test cases in
tests/test_test_roots.pyfail atorigin/mainc4864ac.Round 1. I copied the module as of
c139e88(sha256be4edff7…) unchanged into a clone ofc4864ac.tests/run.sh -k rootsgave 18 failed: every test in the module. The 3 passes are tests in other modules whose names containroots.Seven of those failures are behavioural, and each fails on what it asserts:
1111….asmthrough as a relative path.The other 11 are resolver tests. They fail because
conftest.resolve_rootsandROOTSdo not exist at the base.Round 2. I copied
dbc6837's module (sha256aeb4b742…) the same way and ran-k 'length_caps or missing_manual or status_cannot_be_read'. That gave 3 failed: the three tests added since round 1. The independent review copied the same module whole intoc4864acand got 21 failed.How the module works: it runs the suite itself, nested, against fixture triads built under
tmp_path. Each fixture has:contracts/code-pin.yamlgrammar, pins recomputed from the fixture trees, andproject.yaml;It never touches a real repository.
Green
tests/run.sh -k 'repo_hygiene or upstream_pin or roots or composed'gave 191 passed, 0 skipped atdbc6837and on its merge onto main63810dd. That was the independent review's run. My own earlier runs gave 188 atc139e88and 189 ate3a76b5.CI on
dbc6837(run 37869489919, merge5ad6205):63810ddteststests-no-submoduletests-windowsguard-launch-modeparse-macosThe one extra
tests-no-submoduleskip is the composed positive control, which skips with today's reason.tests-macosis running underready(run 37873415160).How the local runs were made
The workstation-wide
pgrepcensus intests/run.shdid not reach zero on Eagle for some runs. Under the coordinator's interim rule, any run that had not started within 5 minutes was replaced by run.sh's exact pytest line underflockon the same lock file. The logs say which runs those were, and the deviation is noted on #184. CI is the record.Reviews
e3a76b5, and both threads resolved.git statusthat fails is now a refusal..gitattributes.dbc6837.dbc6837, with three things to fix before the squash.$ln_docabort, confirmed above, with the fix ready.<assembly>/worktrees/<feature>/codefinds no assembly.-q.dbc6837raised two findings. Both are recorded as dated follow-ups, not pushed here, because the macOS gate is running.commit:. Reproduced: withcontracts/code-pin.yaml'scommit:moved off the gitlink,ROOTS.refusal()returnsNone, whilevalidate-pins.pyexits 1 withpin-gitlink-mismatch. That validator runs before the suite in the T010 job. Answered in the thread._carriesaccepts a directory where a marker file is expected.Follow-ups (dated 2026-10-09, recorded on #186; not in this PR)
Review findings 11 and 14 have commits on branch
feat/test-roots-followups(6e63083,2064390, ondbc6837). That branch is not part of this PR.test_repo_hygiene.py:994,:1052and:1264, a code-only assertion follows the firstdoc()read, so a standalone code leg skips them together with the documents.6e63083asserts each mixed test's command half first. That coverspark's header,status's--no-optional-locks, the installer'slanes [--all] [--fetch], the exit-3 table and the wrapper's lock claims.2064390proves it with a nested run against a fixture leg whose commands lost those lines.badbranch was exercised locally:ok/bad,LANE_MANUAL=/nonexistent/README-lanes.mdprintsFAIL the lane manual is where the run's roots put it, and an empty value skips.6e63083adds seven lines to "Testing your changes" naming the roots, the three variables and the composed switch. Its AGENTS cap moves 316 → 323 (340 → 347 at an assembly root), with a dated entry.commit:differs from the gitlink.feat/test-roots-manual-guard@b50f197, unless it goes into this PR first.-qcannot hide it.Roots.owner_ofmapsLICENSEand.gitignoreto the code root. This is latent, because no test reads either.abs_rootturns a quoted~/xinto$PWD/~/x.GIT_ENVcomment says "file transport allowed".Not in this PR
The CI patches of T010 apply to repositories that do not exist yet:
tests.yml;composed.yml), becausevalidate.ymlis a pinned shape copy.They are on
004-migrate-to-triad-ci, with their local proofs..github/workflows/tests.ymlon main is unchanged.🤖 Generated with Claude Code
Summary by Sourcery
Make the test suite operate safely across the current single repository and the adopted triad by resolving ownership explicitly and refusing incomplete composed runs.
New Features:
Bug Fixes:
Enhancements:
Tests: