Repository navigation
templates/workspace-root: README and AGENTS say where opensoft/openRepoTools' lane tooling and its manual are in each shape - #1245
Conversation
…poTools' lane tooling and its manual are in each shape This adds the S1 texts from the outside-consumer texts of opensoft/openRepoTools#186, +16 -0 in two files, no existing line changed: - `templates/workspace-root/README.md` gets a section, "Where the lane tooling and its manual are" (+11), after the Layout block and before "How it is found". - `templates/workspace-root/AGENTS.md` gets a bullet (+5) at the end of the "Governing documents" list. The template names the lane tooling, and README-lanes, as `opensoft/openRepoTools`'s in several files. That name is right in both shapes of that project, and the added texts say where the files are in each. In the single-repository shape the tooling's code and the manual, `docs/README-lanes.md`, are both in `opensoft/openRepoTools`. In the three-repository shape `opensoft/openRepoTools` is the assembly: the code is in the code leg, `opensoft/openRepoTools-code`, and the manual is `docs/README-lanes.md` in the spec leg, `opensoft/openRepoTools-spec`, mounted at `code/` and `spec/`. The texts are written by shape, with no date, no commit and no `{{...}}` value, so they are true before and after that project's split. A WIP repository made from the template gets the texts only when a fetch of the template reads a commit that has them: `wip init` takes the template at the revision opensoft/openRepoTools pins, or at `main` where it can read no pin. Lane: openRepoTools-1 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideDocumentationThe workspace-root README and governing-documents list explain where the lane tooling and README-lanes manual live in each repository shape.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Lane openRepoTools-1, 2026-11-08T13:36:06Z: independent review of this PR, a check of the text, not a merge word. The verdict is LAND once this PR's The review was run by a separate agent with no part in writing this PR. It ran on Sonnet 5.5 and worked only from fresh clones and GitHub. What it checked, on the head
Findings, all NITs:
Not yet seen: the The merge is Brett's, by squash, once Lane: openRepoTools-1 |
|
|
LANDING — lane openRepoTools-1, session df82f553-7803-49c4-8ddf-3f9acdcb8ee0@Eagle, 2026-11-08T20:16:25Z, PR #1245 into opensoft/openRepoShape main → into main; head e652860; S1, round 22e's openRepoShape template text (#186), on Brett Heap's dialog answer 'Land now, moves disjoint (Recommended)' (20:15:14Z): checks green at 18:12Z on main as of be21751, and no later commit touches templates/workspace-root; squash |
|
LANDED — lane openRepoTools-1, session df82f553-7803-49c4-8ddf-3f9acdcb8ee0@Eagle, 2026-11-08T20:17:25Z, PR #1245 into opensoft/openRepoShape main → main 77c56dd (squash of e652860 onto 40cb808; tree 94255db7 equals git merge-tree's of main and the head; the diff is S1's two templates/workspace-root files only; S1, round 22e, #186) |
…ose `.git` this user cannot read is refused `git-repo-unreadable`, exit 2, not a traceback or `not-a-git-repo`, and the doctor's `members` row names it once, never drift (#1148) (#1172) The root's own `.git` is read by `find_repo_root` in four pinned tools: the assembly root's `scripts/bootstrap.py`, and the family holder's `validate-family.py`, `bootstrap.py` and `siblings.py`. When this user cannot read that `.git`, as a link into a folder at mode 000 or a `.git` directory at mode 000, they answered with a `PermissionError` traceback (3.12), or `not-a-git-repo` (from 3.14, where `is_file` and `exists` answer False to any `OSError`), or git's own answer about something else: `no gitlink recorded`, `gitlinks-unreadable` over `not a git repository`, or `FETCH INCOMPLETE` with the advice to set a credential. The doctor's `members` row over such a holder said `INVALID (family)` over a `crashed ... PermissionError`, or `DRIFTED (a member is not at its pin)`. - Each pinned copy carries its own `_refuse_an_unreadable_root(start)`, which its loader calls right before `find_repo_root(start)`. It asks each `.git` that `find_repo_root` would ask, in the same order, with the file's own `_is_a`. A `.git` that answers absent is passed over, and the walk stops at the first `.git` that is there, so a `.git` above the root is never asked. A pinned copy may not rely on a newer `repo_shape.py` (#370, #610), which is why #1146 put the walk in each validator and why it is in each copy here. - The refusal is `git-repo-unreadable`, exit 2, the code `validate-pins.py` and `validate-manifest.py` give the same root (#1146): `.git: cannot be read (Permission denied)` and the `chmod` cure, in each tool's own words. `siblings.py` keeps its "(and on every directory above it)" without "inside the root", since its clones sit outside the holder. - The two bootstraps and `validate-family.py`, which read the root's repository through git, also ask what `validate-pins.py` asks of the first `.git` that is there: a gitfile they cannot open, and a git directory whose `HEAD` they cannot reach. `siblings.py` asks the `stat` alone, as `validate-manifest.py` does, so a `.git` directory at 000 still lets it place every member. - The doctor's `check_members` calls `root_git_read(ctx.root)` after its empty-members return and gives one FINDING in the `members` row, with the gate's line once, NEXT this doctor again and WHY the cure for the cause. Each member's entry carries every key a member's entry has, null, plus `gitlink_cannot_be_read`, so a `--json` reader gets no `KeyError`. `drifted_reasons` counts no entry that carries it, and still counts a member beside it that it could read and is off its pin. - `tests/test_pinned_root_git_unreadable.py` holds 76 rows. The `gate()` fixture in `tests/test_validate_family_unreadable.py` now gives the holder as the whole root. The gate had found 6 of that file's 53 rows failing at `05e6ab0f`, where base passes all 53: the new check met the holder's refused `.git` that `refused_stat(monkeypatch, ".git")` also refuses, and named it by its own name. The tool was right and the stub was stale, and no assertion changed. - Measured in a scaffold's recursive clone and a family holder, on Python 3.12.3 and a 3.14-like `sitecustomize`, base `b75babee` against head, with each tool run from the root as `make` runs it (git 2.43). Was stacked on #1147, which landed as its squash `51a9c5f1`: `b75babee` was #1147's head then, and these numbers were measured against it and not measured again after the restack. - Over a `.git` linked into a folder at 000, all four tools went from a traceback (3.12) or `not-a-git-repo` (shim) to `REFUSED git-repo-unreadable`, exit 2, with no traceback and nothing on stdout, on both Pythons. - Over a `.git` directory at 000, the assembly bootstrap went from "no gitlink recorded; leaving as is" and a refusal by `pins`, `validate-family.py` from `gitlinks-unreadable` over git's `not a git repository`, and the family bootstrap from `FETCH INCOMPLETE (git exit 128)`, exit 1, or from `family bootstrap ok` over a run that read nothing under `--no-fetch --skip-members`, to the same `git-repo-unreadable` refusal. `siblings.py` is unchanged there, by design: it places every member, exit 0. - The doctor over a holder whose `.git` is a link went from `INVALID (family)` with a crashed `family` row (3.12), or `DRIFTED (a member is not at its pin)` with `members` at `checked out at ?` (shim), to `INVALID (family)` on both. Its `members` row names `.git: cannot be read (Permission denied)` once, with the cure, and the `family` row shows the holder's `validate-family.py` refusing `git-repo-unreadable`. A readable holder is `COMPLIANT`. - The new file at base fails 74 rows and passes 2, on 3.12.3 and on the shim alike. The 2 are controls. Of the 74, 38 fail on base's own answers and 36 only on the name `_refuse_an_unreadable_root`. At head all 76 pass on both. - Mutants: 58 of 58 killed, the 55 first run and the 3 review r1 added, each in a scratch clone of the head with the file put back in a `finally`. - Against a standard one commit past the pin, `update-shape.py check` names `scripts/bootstrap.py` alone as `upstream-changed` for a project (10 unchanged), and `scripts/validate-family.py`, `scripts/bootstrap.py` and `scripts/siblings.py` for a holder (7 unchanged). No digest of these files is recorded in the tree, so there is no pin-record edit, as in #1147. - Lane 1's ruling: the family bootstrap's new refusal under `--no-fetch --skip-members` over a `.git` directory at 000 is accepted. Base said `family bootstrap ok` there, over a run that read nothing. - Known limits: - #1164 (`fix/1110-family-unsearchable-gitmodules`) also changes `templates/family-root/scripts/siblings.py`. Lane 1's merge-tree shows a content conflict in the docstring's exit-2 paragraph and in `member_unreadable`, still there at `ba81fd7d` against #1164's head `74096eb4`. Whichever lands second keeps one form of each. #1164 has not landed, so this PR lands first. - The `chmod` cure says "every directory above it". In the issue's case the line names `.git`, a link, and the folder to mend is the one it leads into, so `chmod u+rx .git` follows the link and is refused. These are each tool's existing words. - `siblings.py` over a `.git` directory at 000 still places every member, by design. `validate-family.py` and `make bootstrap` refuse that holder. - A `.git` this user can search whose `HEAD` is at mode 000 is not asked by this PR's four tools, since the question is the `stat` of `HEAD` and a searchable directory answers it. Base and head give the same answers, each about something else, so this PR leaves that case as it was. That holds whether or not #1239 lands. Only what #968 asks of a leg is asked, so a git directory whose index cannot be read is still git's answer. - #1239 (lane 3's, for #1222) changes the assembly root's answer there, and this PR does not. It is not on main at `51a9c5f1`. It makes `validate-pins.py`'s `_refuse_an_unreadable_git_dir` open a git directory's `HEAD`, and `_refuse_an_unreadable_root` in that file calls it for the root's own `.git`. Once #1239 lands, the pins validator opens the root's `HEAD` first, so the assembly bootstrap's `pin-gitlink-absent` answer there becomes a `git-repo-unreadable` refusal by name (lane 5's note, #473 issuecomment-6724142443, read from the code, not run). #1239 changes only `validate-pins.py` and its tests. The family gate, `validate-family.py`, and the holder's `bootstrap.py` and `siblings.py` carry their own walk, so for the family holder the sentence above holds either way. - Not in this PR: `scripts/repo_shape.py`'s `find_repo_root`, and #1110 slice B (siblings' `submodule_urls`). The doctor's `members` row for an unread holder `.git` has `without_working_clone: []` beside entries whose `working_clone` is null, which tells a `--json` reader no member lacks a working clone about a question the row did not ask (r1172's NIT 3). Review: lane 1's independent reviewers reviewed each round. r1172 reviewed `3a389565`, stopped at the shared window's STOP, and found it NOT READY as far as it got, for one SHOULD and no MUST (#1172 issuecomment-6351621763). The SHOULD was that no row held the line that stops the walk at a gitfile naming no directory, in three tools. r1172b found `5aa0f116` READY, with no MUST or SHOULD and two NITs, neither blocking (issuecomment-6360478153). The new row kills the three mutants that survived, 3 of 3. NIT-B, two stale phrases in the body's Tests section, is applied to the body. NIT-A, a contrived `pass` mutant of that line that the row does not kill, is not applied at this head. Lane 1 then checked the merge of #1147's then-head `a2fc1da8`, which is `2eabec8e` (issuecomment-6722268492): it had no conflict, it added to the 7 files exactly the lines `a2fc1da8` brought and kept exactly the lines this PR added (+902/-26), and the `members` row agrees with #1200's per-member line, since the root's line returns first. r1172b's READY is about this PR's own lines, which that merge left unchanged. After #1147 landed as `51a9c5f1`, the branch was restacked onto main by 2 merges (`81bc91f8` and `ba81fd7d`). There was no third, because main still equalled the squash. Its changed lines equal the reviewed delta, 928 `+`/`-` lines with sha256 `9eef7395` (issuecomment-6725567957), and the READY stands. Lane 1's first landing HOLD (2026-11-08T20:14:13Z) refreshed the branch with update-branch's clean merge of main `40cb8086`, `bbe5b414`, whose tree `84ebd14f` is the one lane 1's gate passed before that HOLD (`p1172-40cb808`, 0 failed). #1245 then merged into main under that HOLD, so lane 1 withdrew it (20:18:55Z), and `bbe5b414` became H0 once its `tests` passed. Tests, under a stub `gh` with a bogus token, on Python 3.12.3 and git 2.43.0: lane 1's gate at the restacked head `ba81fd7d` gave 129 passed for `tests/test_pinned_root_git_unreadable.py` and `tests/test_validate_family_unreadable.py`, 171 passed for `tests/test_root_git_unreadable.py`, `tests/test_doctor_unreadable_paths.py` and `tests/test_doctor_unreadable_pin.py`, 283 passed and 2 skipped for `tests/test_scaffold_leg_path_collisions.py`, `tests/test_path_guard_hygiene.py` and `tests/test_no_auto_maintenance.py` (the 2 skips are `tests/test_no_auto_maintenance.py:222`, where the session began with `GIT_CONFIG_GLOBAL` set), 171 passed for `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py` and `tests/test_repo_hygiene.py`, and for `tests/test_shape_doctor.py` in 4 shards (449 ids) 112 passed and 1 skipped, 111 passed and 1 skipped, 112 passed, and 111 passed and 1 skipped (the 3 skips are `tests/test_shape_doctor.py:10516`, the PowerShell line that only a Windows host prints). That is 1,205 ids over 5 calls: 1,200 passed, 5 skipped, 0 failed. The PR body's earlier gate, at `05e6ab0f` (and at `3a389565` for the one shard that holds `tests/test_validate_family_unreadable.py`), also gave 945 run for the pin call (0 failed) and 8037 passed and 39 skipped for the 116 other files that name `validate-family.py`, `siblings.py` or `bootstrap.py` and 6 that read the `members` row; those two calls were not run again on the restack. It lands by fast refresh (Brett Heap, 2026-10-15T22:48:35Z). Its H0 `bbe5b414` is green on Linux and SonarCloud. The branch was never rebased. After H0, the only commit is update-branch's clean merge of main, giving ff423ed, which is green on SonarCloud and Git Bash. Lane 1's gate passed on its tree: 10 pytest calls over `tests/test_pinned_root_git_unreadable.py`, `tests/test_validate_family_unreadable.py`, `tests/test_root_git_unreadable.py`, `tests/test_doctor_unreadable_paths.py`, `tests/test_doctor_unreadable_pin.py`, `tests/test_scaffold_leg_path_collisions.py`, `tests/test_path_guard_hygiene.py`, `tests/test_no_auto_maintenance.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py`, `tests/test_repo_hygiene.py`, `tests/test_adopt_work_dir_refusal.py`, `tests/test_adopt_filter_repo_origin_url.py`, `tests/test_adopt_one_byte_locale.py` and `tests/test_shape_doctor.py` in 4 shards: 1,300 passed, 5 skipped. Closes #1148 Lane: openreposhape-1 (openRepoShape-1) Co-Authored-By: Claude Opus 5.5 <[email protected]>



Lane: openRepoTools-1
Claim: opensoft/openRepoTools#186 (comment)
What this adds
S1 of the outside-consumer texts of opensoft/openRepoTools#186: two added texts in the workspace-root template, +16 -0 in two files. No existing line changes and no file mode changes.
templates/workspace-root/README.md: a section, "Where the lane tooling and its manual are" (+11), after the Layout block and before the "How it is found" section.templates/workspace-root/AGENTS.md: a bullet (+5) at the end of the "Governing documents" list.Both say where
opensoft/openRepoTools' lane tooling and its manual (README-lanes) are, in each shape of that project. The template already names them asopensoft/openRepoTools's in several files; the added texts keep that name and say which of the project's repositories holds what.Why both texts are true in both shapes of opensoft/openRepoTools
{{in an added line, which matters becausewip initfills{{LOGIN}},{{ORG}}and{{SHAPE_REPOSITORY}}andtests/test_template_values_single_pass.pyscans every template file for them.docs/README-lanes.md, are both inopensoft/openRepoTools.opensoft/openRepoToolsis the assembly. The code is in the code leg,opensoft/openRepoTools-code, and the manual isdocs/README-lanes.mdin the spec leg,opensoft/openRepoTools-spec; the assembly mounts them atcode/andspec/.opensoft/openRepoTools" is still the project's name in both shapes; the added texts say where its files are.When a template change reaches new WIP repositories
Only when the openRepoShape revision that
opensoft/openRepoToolspins moves to a commit that has this change, or wherewip initcan read no pin and falls back tomain. Existing WIP repositories are not updated by it.190133d5e704, read incontracts/openreposhape-pin.yamlofopensoft/openRepoTools-codeon 2026-11-08).templates/workspace-rootis the same tree,48e0be8bbddc, at v1.1.0, v1.1.1, v1.2.0 and onmain(bd3e9c1485d3) before this PR.Checks
Base:
mainatbd3e9c1485d3. Run in a clean environment (env -i, so noLANES_*variable and noTMUX):python3 -m pytest tests/test_repo_hygiene.py -q: 101 passed in 2.77s.python3 -m pytest tests/test_repo_hygiene.py tests/test_template_values_single_pass.py tests/test_template_quoted_values.py tests/test_leg_path_yaml_scalars.py tests/test_agents_md_codes.py -q: 600 passed, 8 skipped in 51.15s.11 0for the README and5 0for AGENTS), andgit apply -Rof it gives back both files byte for byte.templates/workspace-root/(read 2026-11-08).Approval and merge
Approved by Brett Heap in round 22e of opensoft/openRepoTools#186 (comment opensoft/openRepoTools#186 (comment)).
Brett squash-merges it.
🤖 Generated with Claude Code
Summary by Sourcery
Clarify where openRepoTools lane tooling and its manual are located in generated workspace repositories.
New Features:
Documentation: