Repository navigation
adopt-project.py: plan-wrong-kind, plan-unsupported-mode, plan-bad-leg and plan-bad-id say a plan value that is not text as _read_as says what the plan's reader read, kind is the number 7 and declares leg a list of 2 item(s) where repr spelled it 7, True and ['a', 'b'], and a plan with no kind: or mode: line says absent where it said None (#1199) - #1281
Conversation
…ad-leg` and `plan-bad-id` say a plan value that is not text as `_read_as` says what the plan's reader read, `kind is the number 7` and `declares leg a list of 2 item(s)` where `repr` spelled it `7`, `True` and `['a', 'b']`, and a plan with no `kind:` or `mode:` line says `absent` where it said `None` (#1199) Four refusals named the plan value they refused with `repr`, where every other refusal of a plan's value says what the reader read (`_read_as`). A text is still spelled as Python spells it, quoted, byte for byte, under the same code with the same remedy; any other value is `_read_as`'s words, in `check` and in `execute`. An `id:` that is a list or a mapping was the quoted text `"['a', 'b']"` that `str` made of it, with no word that the plan holds a list. A bare `kind:` or `mode:` or one set to null is `null`, and a plan with no such line is `absent`. tests/test_adopt_plan_values_read_as.py holds the rows: each site by a number, a boolean, a float, a list and a mapping, through `check` and `execute --yes`, and the text controls, which pass on main. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Reviewer's GuideImplementationCentralize how adoption-plan values are described and use those descriptions for kind, mode, leg, and id refusals, distinguishing absent top-level keys from explicit nulls while preserving text formatting.
TestsExercise the changed refusal wording through check and execute for non-text, null, absent, and text values, including full-output checks and regression controls.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
(lane openRepoShape-3, 2026-11-09T16:55:18Z) Lane 3's independent review of #1281 (for #1199, v1.2.1), by RV1281 and RV1281b (opus), neither of whom wrote #1281, at head PR: #1281, branch Two reviewers wrote this, neither of whom wrote #1281. RV1281 ran sections 1 to 4, 6 and 7 against main Every run used a wrapper with a stub VerdictREADY. There is no MUST and no SHOULD. The three NITs are about the body's wording only and do not hold up landing. 1. Before and after (measured, by RV1281)A probe (
Results:
2. Consistency with
|
| mutant | result |
|---|---|
R1: _plan_key_said uses data.get(key) is None (null and bare read as absent) |
4 failed, killed |
R2: _plan_value_said applies _read_as to bool/int/float only |
13 failed, killed |
R3: plan-bad-id says _plan_value_said(project_id) instead of set_id |
3 failed, killed |
R4: plan-bad-leg says _plan_value_said(str(leg)) |
5 failed, killed |
- The body's mutants M1 to M6 were not re-run. Counting the rows each one touches gives the body's numbers: 9, 8, 5, 3, 2 and 6.
5. Gates (measured, by RV1281b)
| gate | main | result |
|---|---|---|
A: the 16 modules that pin plan-wrong-kind, plan-unsupported-mode, plan-bad-leg or plan-bad-id (from git grep, without the doctor), the new module among them, plus their two fixture sources test_github_name_limits.py and test_scaffold_leg_path_collisions.py; 18 modules in one pytest |
674077657 (merge bd4967a5c, tree 6b1df14a7) |
2375 passed, 9 skipped in 1287.52s (0:21:27) |
rows2: the new module plus #1122's test_adopt_unsearchable_source.py |
ebb87168a (merge 64e2f79ff, tree 58cf64e78bce) |
75 passed in 43.36s |
doctor: tests/test_shape_doctor.py |
ebb87168a |
446 passed, 3 skipped in 953.94s (0:15:53) |
scaffold: tests/test_scaffold_leg_path_collisions.py on its own |
ebb87168a |
104 passed in 8.93s |
guards: test_repo_hygiene, test_agents_md_codes, test_git_output_decoding, test_stdout_encoding, test_cli_reference, test_no_auto_maintenance and test_update_add_codes_documented |
ebb87168a |
349 passed, 3 skipped in 87.24s (0:01:27) |
#1177 resolution: test_adopt_plan_values_read_as.py with test_adopt_plan_and_remote_paths_spelled.py |
#1281 merged into #1177 5208e874e, conflicts resolved as the body advises |
179 passed in 142.70s (0:02:22) |
The skips:
- Gate A: one skip is
SHAPE_MEDXEHR_CLONE is unset(this host has no MedxEHR clone). The other 8 are skips the module makes by design intest_leg_path_yaml_scalars.py("got empty parameter set", "the templates read ... back"). - Doctor: all 3 are
the PowerShell line is printed ... only on a Windows host. - Guards:
- One is Windows-only in
test_stdout_encoding.py. - Two in
test_no_auto_maintenance.py:222skip because the review wrapper itself setsGIT_CONFIG_GLOBAL. Those two are unmeasured here; CI'stestsran them.
- One is Windows-only in
Every module these runs import from exports plain helpers, not fixtures. The names are asked_what, LANE, rendered_shape_line, NOT_UTF8, repository, with_origin, paste and printed_strings. So running a module on its own does not split a module-scoped fixture, the #1188 trap.
6. Merges (measured)
- With main
674077657(RV1281): clean, tree6b1df14a732362328dcfb0f59cebe053c5d3b7bc. - With main
ebb87168a(RV1281b): clean, merge64e2f79ff, tree58cf64e78bceeeea7a5e23c64f622cd90042b415, the same tree the coordinator's merge-tree gave.- adopt-project.py: an
org/repo--sourcetoo long for the disk is refused as a path is, naming no GitHub repository and offering no url, so--source <300 a's>/Thingis no longer offeredhttps://github.com/<300 a's>/Thing, which can never clone (#1003) #1122 changesadopt-project.pyonly in the--sourcename-length check (GITHUB_OWNER_MAX/GITHUB_NAME_MAX). It touches none of the four refusals. - Its new test module does not pin any of the four codes. The one grep hit is the test name
..._read_as_absent.
- adopt-project.py: an
- With adopt-project.py: the
--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #11775208e874e: treea89fa3624, 3 conflict hunks, all inadopt-project.py: thekind,modeand`id:`lines. - With adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as
_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #122573c9f57e8: tree631c7c1ab, the same three hunks. adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225 contains adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177 (its base isfix/1152-plan-and-remote-paths-spelled), so they are not separate edits. - The resolution: adopt-project.py: the
--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177's_shown(str(path))with adopt-project.py:plan-wrong-kind,plan-unsupported-mode,plan-bad-legandplan-bad-idsay a plan value that is not text as_read_assays what the plan's reader read,kind is the number 7anddeclares leg a list of 2 item(s)wherereprspelled it7,Trueand['a', 'b'], and a plan with nokind:ormode:line saysabsentwhere it saidNone(#1199) #1281's_plan_key_said/_plan_value_said. Regenerated byresolve.py, it is byte-equal to RV1281's copy, it compiles, and its run passes (section 5).- Not measured: that same resolution against adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as
_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225. Its hunks are adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177's lines, so it should apply unchanged. - Read from the code, then confirmed by the 179-pass run:
_shownreturns a printable path unchanged, so the new rows'{plan}prefix holds once adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177 lands.
- Not measured: that same resolution against adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as
7. Body (measured, by RV1281)
- It has exactly one closing keyword,
`Closes #1199`.closingIssuesReferencesis[1199]. - It is ASCII except line 108, the robot line (U+1F916).
- Its line numbers are on its named base
42308f26b, where :6697, :6718, :7037, :7203, :17967 and :7025 all check out. On current main they are a few lines higher. - A bot added a "Summary by Sourcery" block after the robot line. It holds no closing keyword. This is a note, not a request.
Findings
MUST: none.
SHOULD: none.
NIT 1 (the gate's module list). The body says its gate ran "the modules that pin these codes". git grep -ln 'plan-wrong-kind\|plan-unsupported-mode\|plan-bad-leg\|plan-bad-id' tests/ finds 7 more that its run left out:
test_adopt_leg_path_collisionstest_adopt_leg_pathstest_adopt_manifest_valuestest_adopt_template_valuestest_adopt_verifytest_github_limits_init_check_orgtest_leg_path_yaml_scalars
It also left out test_github_name_limits, which test_github_limits_init_check_org imports from. All of them are now measured green in gate A (2375 passed, 9 skipped), so only the body's wording is left to fix.
NIT 2 (the out-of-scope list). The same kind is {...!r}, expected pattern sits in four more places. All are other tools under other codes, not the adoption plan:
scripts/family.py:580(family-wrong-kind)templates/assembly-root/scripts/validate-manifest.py:824(manifest-kind)templates/assembly-root/scripts/validate-pins.py:793(pin-wrong-kind)templates/family-root/scripts/validate-family.py:585on the head,:648on mainebb87168a(family-kind)
Naming them would make the list complete.
NIT 3 (line numbers). The out-of-scope line numbers (:4198, :15561 and so on) are the issue's, on 961640c68. On the head they are :4302, :16543 and so on. Saying "the issue's line numbers" would avoid confusion.
Not measured
- The full suite locally. CI's
testsran it on the head merged with674077657. Onebb87168aonly rows2, the doctor, scaffold and the guards ran here; gate A ran on the674077657merge. adopt-project.py: anorg/repo--sourcetoo long for the disk is refused as a path is, naming no GitHub repository and offering no url, so--source <300 a's>/Thingis no longer offeredhttps://github.com/<300 a's>/Thing, which can never clone (#1003) #1122 does not touch the four refusals. - The two
test_no_auto_maintenance.py:222rows, which the wrapper'sGIT_CONFIG_GLOBALskips. - The body's mutants M1 to M6 (counted, not re-run).
- The adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as
_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225 resolution run.
State and paths
- Scratch folder:
/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch. - Clone:
/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281, detached ataa6fdae27. RV1281b fetched only from the local shared repo, into this clone's own refs:refs/rv/main-ebb8716, plusrefs/rv/merge-main2for the new merge. A first fetch also moved this clone'sorigin/mainto the shared repo's stale localmain(247699206). Nothing else changed. - Worktrees (in the scratch folder), all clean (
status --porcelain --untracked-files=allempty):wt-merge:bd4967a5c, on main674077657. Itsadopt-project.pyis byte-equal (cmp) tomerge-adopt.orig.py.wt-merge2:64e2f79ff, on mainebb87168a. New, added by RV1281b.wt-main:674077657.wt-1177:5208e874e, the local merge aborted. Itsadopt-project.pyis byte-equal (cmp) to pr1177's.
- Stray files: three
.merge_file_*temp files from acheckout-index --tempcall inwt-1177were moved totrash/stray-1177/, not deleted. - Logs:
gateA.log(the killed first run is kept attrash/gateA-killed-run1.log),rows2.log,doctor.log,scaffold.log,guards.log,m1177.logandchain2.log. - Scripts:
gateA.sh,chain2.sh(chain.shwas stopped before it ran anything),envrun.sh,resolve.py,probe.pyandmutate.py. - No process is left running. Nothing was pushed, posted, approved or marked ready.
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 5 days and 4 hours by commenting |
…'s _shown() with #1281's spelled plan values Main landed #1177 (8bcdb2c) and #1178 (4552efa), and both changed adopt-project.py where #1281 does. Merging main into the branch leaves exactly three conflict hunks, all in adopt-project.py, each resolved as the PR body advised: keep main's `_shown(str(path))` (or `_shown(str(self.path))`) for the path, and keep #1281's spelled value after it. - `plan-wrong-kind` in the plan reader (Plan.__init__): `{_shown(str(path))}: kind is {_plan_key_said(data, 'kind')}, expected ...` - `plan-unsupported-mode` in the plan reader (Plan.__init__): `{_shown(str(path))}: mode is {_plan_key_said(data, 'mode')}; v0.2 ...` - `plan-bad-id` (Plan.project_id): `{_shown(str(self.path))}: `id:` is {_plan_value_said(set_id)} and must match ...` No other file conflicted. The PR's own change is unchanged: over the new main it differs from the old diff only in those three path spellings. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
(lane openRepoShape-3, 2026-11-09T23:04Z) Lane 3's independent review of #1281's merge of main ( The merge, the resolution and the code are correct as they stand, so the PR needs no new commit. The only fixes are two sentences in the body draft that went stale after FX1281 wrote it. Make them before PR: #1281, #1281 (OPEN, not a draft, milestone v1.2.1, Branch and head: 1-2. The merge commit and the resolution
3. The PR's own change is the reviewed one
4. Behaviour at 9aabd8a
5. Merges (
|
| merge | result |
|---|---|
9aabd8afe x current main 370a23cd2 |
clean, tree 32f3959e2c874cec76fd08ff6fcea9bf12d50ee5; the three statements are intact at :6889, :6910 and :7261 |
x 4552efa6a |
clean, edf792618 (the head's own tree) |
x 3ee5bb4d9 |
clean, cf80b8711 |
x #1278 31f942700 |
clean, a784d8d29 |
x #1282 e91c57e96 |
clean, e10cc510c |
x #1225 old head 73c9f57e8 |
conflicts in adopt-project.py and tests/test_adopt_plan_and_remote_paths_spelled.py |
4552efa6a x 73c9f57e8 |
conflicts in the test file only |
x #1225 current head bdaf3ed1d |
clean, 86c793640 |
370a23cd2 x bdaf3ed1d |
clean, b09bebff7 |
My conflicted trees for 73c9f57e8 differ from FX1281's (203d3c55d / 682c7d0ed). Conflicted trees depend on how the inputs are named, and the body does not cite them.
6. Body draft against the live body
- The live body I fetched now is
cmp-equal tobody-live-fx1281.md. - The draft has no non-ASCII line above the robot line. Its only closing keyword is
Closes #1199, and the Lane line and robot line are in place. - Every changed line number is right. On main
4552efa6athey read: kind 6828, mode 6849, leg 7364, id 7198, derived id 7184,_not_the_source18175. Each points at the same statement the old number pointed at on42308f26b. - The changed claims check out: the merge commit, its parents and the three hunks; "nothing else conflicted"; the resolution being byte-equal; 365/371 lines; the trees
edf792618,a784d8d29,e10cc510candcf80b8711; and every gate figure.
Findings
- MUST: none.
- SHOULD-1 (adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as
_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225 bullet, now false). adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225's head is nowbdaf3ed1d, still an open draft. Its newest commits are "Merge adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177's final head 04207d9", "Merge adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177's squash 8bcdb2c" and "Merge origin/main 5c662f7", and it now merges clean with9aabd8afe(tree86c793640). The sentence "carries adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177's own lines from before its squash, so it still conflicts with the head at the same three lines" is no longer true. Suggested replacement for everything from "adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225 (open, a draft)" to the end of that bullet: "adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225 (open, a draft) has since merged adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177's squash and main5c662f75einto its branch (headbdaf3ed1d):git merge-tree --write-treeof9aabd8afewith it is clean, tree86c793640, and with main370a23cd2clean, treeb09bebff7. At its earlier head73c9f57e8it conflicted with9aabd8afeinadopt-project.pyandtests/test_adopt_plan_and_remote_paths_spelled.py, and with main in that test file only." - SHOULD-2 (Merges paragraph, stale). "Main has moved since, to
3ee5bb4d9(three more commits)" is out of date: main is now370a23cd2, five commits on. Suggested: "Main has moved since, to370a23cd2(five more commits):git merge-tree --write-treeof the head9aabd8afewith it is clean too, tree32f3959e2(with3ee5bb4d9it was treecf80b8711)." Re-fetch main just before the edit. - NIT-1. The Gates intro says the first four bullets were measured on
aa6fdae27, but bullet 2 (Gate A) ran onaa6fdae27merged with main674077657. The bullet itself says so. - NIT-2. Line 66, "The same runs on the merge commit are under Gates": the swap run is there, but the 31-passed run has no line of its own; it is inside g1's 2587.
- NIT-3. The resolved lines are 80, 80 and 85 characters;
aa6fdae27had kept all three under 80. Nothing enforces a limit (main already has 40 lines over 79). I do not recommend rewrapping, because it would void thecmpproof and the gates. - NIT-4. The parenthetical "they wrap differently, because main's
detail = ...line is kept" names only the kind statement. All three statements keep main's wrapping.
Mutants
None; this round did not call for them.
CI on 9aabd8afe (gh pr checks)
tests pending; SonarCloud pass; package pass; tests-git-bash pass; Sourcery skipping.
What is left (lane 3)
- Make SHOULD-1 and SHOULD-2 in
/workspace/projects/openRepoShape-worktrees/_lane3-scratch/W1199-scratch/body-new-fx1281.md, rebuilt on a freshly re-read live body:
gh pr view 1281 -R opensoft/openRepoShape --json body --jq .body - Apply it:
gh pr edit 1281 -R opensoft/openRepoShape --body-file /workspace/projects/openRepoShape-worktrees/_lane3-scratch/W1199-scratch/body-new-fx1281.md - Check the closing references still read
[1199]:
gh pr view 1281 -R opensoft/openRepoShape --json closingIssuesReferences - Wait for
testson9aabd8afe, then do the landing refresh and H0 against main370a23cd2or newer (the merge is clean, tree32f3959e2).
Paths
- Clone:
/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281(clean, detached at9aabd8afe). - Scratch:
/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch. New files there:/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch/RV1281c-words.py(theastcomparison)/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch/RV1281c-probe-c.pyand its logRV1281c-probe-c.log/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch/RV1281c-probe-c2.pyand its logRV1281c-probe-c2.log/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch/RV1281c-three.log/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch/RV1281c-d-old.txtandRV1281c-d-new.txt/workspace/projects/openRepoShape-worktrees/_lane3-scratch/RV1281-scratch/RV1281c-body-live-now.md
- Probe work folders and the basetemp, which I left in place:
/tmp/claude-1000/l3bt/RV1281c-probe,/tmp/claude-1000/l3bt/RV1281c-probe2,/tmp/claude-1000/l3bt/RV1281c-probe4,/tmp/claude-1000/l3bt/RV1281c-three. - No process of mine is still running.
Lane 3 applied SHOULD-1, SHOULD-2, NIT-1, NIT-2 and NIT-4 to the body at about 23:03Z, from the review's own wording, on the live body. Main was still 370a23cd2, and the head's merge with it is tree 32f3959e2. closingIssuesReferences reads [1199]. NIT-3 is not taken, as the review advises. #1281 is READY again in its 12th place, and it lands once tests passes on 9aabd8afe.
|



What changed
A v1.2.1 fix for #1199, a follow-up of #1114 (PR #1198), found by reading by FIN1114 and W1114 of lane 4. It lands under Brett Heap's v1.2.1 merge word (2026-10-23T13:10:26Z) once reviewed and green.
Four refusals in
adopt-project.pynamed a plan value of any type withrepr, where every other refusal of a plan's value says what the plan's reader read (_read_as): "the number 7", "the boolean true", "null", "a list of 2 item(s)", "a mapping of 1 key(s)". They say a value that is not text that way now, incheckand inexecute, under the same code with the same remedy:plan-wrong-kind,Plan.__init__(adopt-project.py:6828 on main 4552efa):kind is {value}, expected 'adoption-plan'.plan-unsupported-mode,Plan.__init__(:6849):mode is {value}; v0.2 implementsin-placeonly.plan-bad-leg, the entries loop of_leg_findings(:7364):declares leg {value}; it is one of [...].plan-bad-id,Plan.project_id(:7198):`id:` is {value} and must match {pattern}. A list or a mappingid:wasstrof it, the quoted text"['a', 'b']"; a number or a booleanid:is_not_text's (adopt-project.pyplanandcheck: an empty flag or a bare plan value is taken without a word, and the id refusals name what the person did not type #902) and was never this line.Two small helpers sit under
_read_as:_plan_value_said(value)isreprof a text and_read_asof anything else, and_plan_key_said(data, key)is that for a top-level key, orabsentwhere the plan has no such line.What a person sees change
A text value is spelled byte for byte as before (
kind is 'placement-plan', a leg'Spec',`id:` is 'North Wind'), under the same code and with the same remedy: the control rows pass on main. Everything else:kind: 7kind is 7, expected 'adoption-plan'kind is the number 7, expected 'adoption-plan'kind: truekind is True, ...kind is the boolean true, ...kind: [a, b]kind is ['a', 'b'], ...kind is a list of 2 item(s), ...kind: nullor a barekind:kind is None, ...kind is null, ...kind:linekind is None, ...kind is absent, ...mode: truemode is True; v0.2 implements ...mode is the boolean true; v0.2 implements ...mode: {k: v}mode is {'k': 'v'}; ...mode is a mapping of 1 key(s); ...id: [a, b]`id:` is "['a', 'b']" and must match ...`id:` is a list of 2 item(s) and must match ...leg: 7declares leg 7; it is one of [...]declares leg the number 7; it is one of [...]leg: [a, b]declares leg ['a', 'b']; ...declares leg a list of 2 item(s); ...The two decisions the issue left to whoever takes it, made here:
kind:/mode:isnull, as_read_assays a null. A plan with NO such line isabsent, asorg:is told apart from a null one (_not_the_source, :18175 on main 4552efa):data.getgives None for both, and a plan with no line has none to look for or mend._pin_row_problemspells a pin field that is not text with Python's repr (commit: 7,True), where_read_asgives the number 7 and the boolean true #1114 kept), so no existing row that pins one changes.Measured, before and after
$X/probe.py(kept in the writer's scratch) makes a source, runsplan, sets one line of the plan to each value and runscheckandexecute --yeson it, with a stubghfirst on PATH andGIT_SSH_COMMAND=false. On main42308f26b, then on the head before the merge with main (aa6fdae27); the plan's path is elided:checkandexecutesaid the same words before and say the same words now, for every value probed (a number, a boolean, a float, a list, a mapping, a null, an absent line and a text). The issue's "reads as" forplan-bad-idwith a listid:was unprobed there; it is the quoted"['a', 'b']"line above.Rows
tests/test_adopt_plan_values_read_as.py, 31 rows, each throughcheckandexecute --yeson one edited plan with the same--local-remote-dir, asserting the two say the same words and nothing else follows them but the remedy:kind,modeby a number, a boolean, a float, a list and a mapping;idby a list and a mapping (a number or a booleanid:is_not_text's, held bytests/test_adopt_values_as_typed.py); an entry'sleg:by the same five. Each also asserts main's spelling is absent.kind: 7and for a listid:.kindandmode:null, a bare key, and no line.kind, a textkindholding a tab (represcapes it), a textmode, a textidthe pattern refuses, a textlegand one holding a tab, andkind: placement-planwith its own remedy.On main's
adopt-project.pyswapped in (restored andcmp-checked): 25 failed, 6 passed, the 6 being the controls above. On the head before the merge (aa6fdae27): 31 passed. On the merge commit, the swap run is under Gates, and these rows run inside g1 there.Mutants
Each applied to
adopt-project.py,tests/test_adopt_plan_values_read_as.pyrun, the file restored from a copy andcmp-checked, every time:plan-wrong-kindputsdata.get('kind')!rbackplan-unsupported-modeputsdata.get('mode')!rbackplan-bad-legputs{leg!r}backplan-bad-idputs{project_id!r}back_plan_key_saidsaysnullfor an absent line_plan_value_saidsays_read_asof a text too (the text 'x')Gates
Each with
-rs, one pytest at a time, a stubghfirst on PATH,GH_TOKEN=bogus,GIT_SSH_COMMAND=false,GIT_CONFIG_GLOBAL=/dev/null,/usr/bin/python3.The first four bullets were measured on the head before the merge with main (
aa6fdae27; Gate A on that head merged with main674077657, as its bullet says); the bullets after them were measured on the merge commit9aabd8afe.test_adopt_plan_values_read_as,_values_as_typed,_plan_value_order,_question_and_submodule_spelling,_finding_spelling,_execute_refusals,_plan,_submodules,_plan_yaml_quoting,_plan_flag_refusals_first,_project_is_the_source):1387 passed, 1 skipped in 835.85s(the skip isSHAPE_MEDXEHR_CLONEunset). That run held the commit before a comment-only edit to the new module'sTREEcomment; the module alone after it:31 passed in 26.64s.plan-wrong-kind,plan-unsupported-mode,plan-bad-legandplan-bad-idsay a plan value that is not text as_read_assays what the plan's reader read,kind is the number 7anddeclares leg a list of 2 item(s)wherereprspelled it7,Trueand['a', 'b'], and a plan with nokind:ormode:line saysabsentwhere it saidNone(#1199) #1281 issuecomment-6746015239), onaa6fdae27merged with main674077657(tree6b1df14a7): the 16 modules that pinplan-wrong-kind,plan-unsupported-mode,plan-bad-legorplan-bad-id(git grep -ln, the new module among them), plus their two fixture sourcestest_github_name_limitsandtest_scaffold_leg_path_collisions, 18 modules in ONE run:2375 passed, 9 skipped in 1287.52s. It adds the seven pinning modules the run above left out:test_adopt_leg_path_collisions,test_adopt_leg_paths,test_adopt_manifest_values,test_adopt_template_values,test_adopt_verify,test_github_limits_init_check_organdtest_leg_path_yaml_scalars.tests/test_shape_doctor.py:446 passed, 3 skipped in 624.59s;tests/test_scaffold_leg_path_collisions.py:104 passed in 4.68s.test_repo_hygiene,test_agents_md_codes,test_git_output_decoding,test_stdout_encoding,test_cli_reference,test_no_auto_maintenance,test_update_add_codes_documented):349 passed, 3 skipped in 67.06s(Windows-only and aGIT_CONFIG_GLOBALskip). No code's wording is pinned in AGENTS.md or the docs, so none changed;docs/cli.mdis untouched (no flag or command changed).9aabd8afe(main4552efa6amerged in, treeedf792618), the same wrapper, one pytest at a time:test_adopt_plan_and_remote_paths_spelledandtest_adopt_spelled_names, plus gate A's 18 (its 16 pinning modules and the two fixture sources, the new module among them):2587 passed, 9 skipped in 1381.72s (0:23:01)(the same nine skips as gate A:SHAPE_MEDXEHR_CLONEunset, and eight the module makes by design intest_leg_path_yaml_scalars.py).tests/test_shape_doctor.py:446 passed, 3 skipped in 894.86s (0:14:54)(the three are Windows-only PowerShell lines);tests/test_scaffold_leg_path_collisions.pyon its own:104 passed in 7.66s.349 passed, 3 skipped in 115.34s (0:01:55)(one Windows-only skip, and twoGIT_CONFIG_GLOBALskips intest_no_auto_maintenance.py:222that this wrapper's ownGIT_CONFIG_GLOBALcauses).4552efa6a'sadopt-project.pyswapped in (restored andcmp-checked, the clone clean afterwards):25 failed, 6 passed in 54.72s, the six passes being the controls above.Merges
Main moved while this was open: #1177 (
8bcdb2c) and #1178 (4552efa6a) landed, and #1177 changed three lines this change changes, so the PR conflicted with main. The merge with main is done in the PR, in commit9aabd8afe(parentsaa6fdae27and main4552efa6a). Its three conflict hunks, all inadopt-project.py, are resolved as this body advised:plan-wrong-kindandplan-unsupported-modeinPlan.__init__, andplan-bad-idinPlan.project_id, each keep main's_shown(str(path))(_shown(str(self.path))) with this change's value words. Nothing else conflicted. The resolution is byte-equal (cmp) to the one lane 3 made fromgit merge-tree.This change's own diff is unchanged.
git diff -U0of it over main4552efa6ais 365 lines, and was 371 over its old base42308f26b; the two differ only in the three statements above, which say the same words with_shown(...)around the path (they wrap differently, because the merge keeps main's wrapping of all three statements).git merge-tree --write-treeof the head9aabd8afewith main4552efa6a(fetched by URL intorefs/remotes/gh/main): clean, treeedf792618(the head's own tree, as main is already in it). With #1278's head31f942700: clean, treea784d8d29. With #1282's heade91c57e96: clean, treee10cc510c. Main has moved since, to370a23cd2(five more commits):git merge-tree --write-treeof the head9aabd8afewith it is clean too, tree32f3959e2(with3ee5bb4d9it was treecf80b8711).Before the merge,
git merge-tree --write-treeof the headaa6fdae27with main674077657(fetched by URL intorefs/remotes/upstream/main; main moved by two commits while this was written): clean, tree6b1df14a7. With the heads of the 21 open PRs that touchadopt-project.py: 18 clean, and three that do not:--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177 and adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225 conflict inadopt-project.pyat three places, thekind,modeandplan-bad-idlines (about :6828, :6849 and :7198 on main 4552efa), where each changes{path}to{_shown(str(path))}on the same line this one changes the value on. Both sides are small and independent: the merge keeps their_shown(str(path))and this change's value words. Neither PR's tests pin a non-text spelling (they pin'something-else','new-root','North Wind'), so no row changes. The issue says to take this one after adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177 lands; it conflicts only until then, and whichever lands second takes the mechanical merge. adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177 landed first (8bcdb2c), and that merge is done in this PR, in9aabd8afe, with the three hunks resolved as above. adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as_first_saidspells gh's, so--local-remote-dirno longer reaches the terminal raw there; a NOTE beforeNEXT:says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) #1225 (open, a draft) has since merged adopt-project.py: the--planpath incheckandexecute, and the--local-remote-dirpath inexecute'sbare, leg andsplitlines, are named with_shown, as #1154 names--outand--work-dir, so a bidi control, an escape, a line feed or a byte that is not UTF-8 in either no longer reaches the terminal as it was typed (#1152) #1177's squash and main5c662f75einto its branch (headbdaf3ed1d):git merge-tree --write-treeof9aabd8afewith it is clean, tree86c793640, and with main370a23cd2clean, treeb09bebff7. At its earlier head73c9f57e8it conflicted with9aabd8afeinadopt-project.pyandtests/test_adopt_plan_and_remote_paths_spelled.py, and with main in that test file only.git rm -fand writes the twins the root keeps back from the index, so on a disk that ignores caseexecutekeeps a set the plan splits across repositories or drops (#1183) #1237 conflicts intests/test_adopt_check_throwaway_repos.py: it conflicts with main itself (merge-treemain with adopt-project.py: the mount removes a path a case twin is at or under withgit rm -fand writes the twins the root keeps back from the index, so on a disk that ignores caseexecutekeeps a set the plan splits across repositories or drops (#1183) #1237 gives the same file), and this change touches neither.Clean: #1268, #1265, #1253, #1252, #1249, #1210, #1207, #1198, #1194, #1189, #1186, #1178, #1171, #1154, #1141, #1125, #1122, #1120.
Out of scope
kind is {data.get('kind')!r}, expectedpattern, in other tools and under other codes:scripts/path_classify.py:189(path-policy-wrong-kind),scripts/repo_shape.py:2242(policy-wrong-kind),scripts/bump-leg.py:241(bump-leg-wrong-kind),scripts/family.py:580(family-wrong-kind),templates/assembly-root/scripts/validate-manifest.py:824(manifest-kind),templates/assembly-root/scripts/validate-pins.py:793(pin-wrong-kind) andtemplates/family-root/scripts/validate-family.py:648(family-kind) (these four on mainebb87168a), anddeclares leg {rule.get('leg')!r}atscripts/path_classify.py:136(path-policy-leg). They are policy, manifest, family and pin files, not the adoption plan; the issue namesadopt-project.pyonly.961640c68:_pin_row_problem:527-:543, :616, :629, :4198, :4233, :5150, :5162, :15561, :16605-:16612) and the--source,--pin-source, confirmation-answer and--local-remote-dirvalues: unchanged.plan-bad-idat :7184 on main 4552efa (the id fromlegs.assembly) is text by then: unchanged.Closes #1199
Lane: openreposhape-3 (openRepoShape-3)
🤖 Generated with [Claude Code]
Summary by Sourcery
Make adoption-plan validation errors describe non-text and missing values consistently with the plan reader.
Bug Fixes:
Enhancements:
Tests: