Skip to content

repo_shape.py and bootstrap.py: COMMIT_RE, SHA256_RE and COMMIT_40 end in \Z, not $, so a pin's commit: or tree_sha256: that ends in a line break is refused as not 40 or 64 hex by every validator and adopt-project.py (#1017) - #1126

Merged
brettheap merged 4 commits into
mainfrom
fix/1017-repo-shape-match-end
Oct 23, 2026

Conversation

@brettheap

@brettheap brettheap commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openreposhape-5 (openRepoShape-5)
Claim: #1017 (comment)

Goal

scripts/repo_shape.py ends COMMIT_RE and SHA256_RE in $, and every caller reads them with .match. In Python $ also matches just before a trailing line feed, so a pin's commit: or tree_sha256: that ends in a line break passed as well formed. This makes both patterns refuse it, wherever a value is decided to be valid, and changes nothing else about them.

What still held on main

Measured on main (2a119f28, then re-checked on 6da757cbe; the use sites of both patterns are the same on 823624d93, and no new copy of either pattern was added). Python 3.12.3:

pattern value .match on main
COMMIT_RE / SHA256_RE 40 / 64 hex a match
same hex and a line feed a match (the defect)
same hex and a carriage return and line feed None
same hex and a space None

A line feed reaches the patterns through YAML: the double-quoted escape "<hex>\n" and a block scalar both read as the hex and a line feed. On main:

  • validate-manifest.py: shape.commit and shape.digests.tree_sha256 ending in a line feed -> manifest ok, exit 0.
  • validate-family.py: shape.digests.tree_sha256 in family.yaml ending in a line feed passed (family ok, exit 0). shape.commit did not pass: it exited 1 with shape-pin-manifest-disagree, because contracts/shape-pin.yaml and family.yaml's shape.commit differ only by the line feed, so the same 40 hex is printed on both sides; the finding that names the commit as not 40 hex, family-shape-commit, was not raised. A member pin's tree_sha256 ended in a line feed gave member-digest-mismatch, not the malformed finding, and a member pin's commit gave member-commit-unresolvable, not member-pin-commit.
  • validate-pins.py: a leg pin's commit gave exit 2 pin-commit-unresolvable, not pin-tag-only; a leg digest gave pin-digest-mismatch, not pin-digest-malformed; a shape pin's commit gave only shape-pin-manifest-disagree, not shape-pin-commit.
  • adopt-project.py check (_pin_row_problem): the row read as well formed, with no plan-pin-malformed.
  • templates/assembly-root/scripts/bootstrap.py holds a copy of the commit pattern, COMMIT_40, with the same defect: shape_upstream_notice printed its notice for a pin ending in a line feed.
  • shape-doctor.py pin_commit returned "<hex>\n" for such a leg pin.

Checked and not affected: bump-leg.py --to and family.py --at/--to go through checked_value (a fullmatch that already refuses a line feed); bump-leg.py line 2212 strips first; update-shape.py line 558 reads git_out, which is stripped; shape-doctor's recorded_gitlink splits fields; src/openreposhape/standard.py uses fullmatch. The @(?P<sha>[0-9a-fA-F]{40}) patterns in bump-leg.py and validate-pins.py are unanchored workflow-ref patterns.

What changed

  • scripts/repo_shape.py: COMMIT_RE and SHA256_RE end in \Z, not $ (comment added). \Z matches only at the very end of the value, so each caller's .match refuses a line feed as it already refused a carriage return and line feed, and a space. 40 and 64 digits, either case, are unchanged.
  • templates/assembly-root/scripts/bootstrap.py: COMMIT_40 likewise (comment added).
  • Nothing else in production changes. No README, doc, handbook or AGENTS.md text pins the old pattern bytes (grepped), and tests/test_pinned_copy_text.py and every tests/test_bootstrap*.py pass unchanged (shard tB and shard tA).
  • Rows:
    • new tests/test_pin_pattern_line_break.py (46 rows: 42 at first, and 4 added in fix round 1, below): the three patterns x case, length, after-suffix (line feed, carriage return and line feed, space, two line feeds, carriage return, tab) and before-prefix; the holder's gate (four rows and a baseline); the bootstrap upstream notice (two rows); the doctor's pin_commit (two rows);
    • tests/test_pin_validator.py: 3 rows (leg commit, leg digest, shape-pin commit);
    • tests/test_manifest_validator.py: 2 rows (shape.commit, shape digest) and a helper shape_of;
    • tests/test_adopt_pins.py: 2 malformed() cases (commit-line-break, digest-line-break);
    • tests/test_shape_doctor.py: 1 ROOT_PIN_FAULTS param (a-commit-ending-in-a-line-break).

Rows that fail on main

Run with the two production files of main checked out, on a head with the same tree as this one (git 2.43.0, [email protected]):

  • the new file, test_pin_validator.py, test_manifest_validator.py, test_adopt_pins.py: 16 failed, 307 passed in 294.83s. The 16:
    • new file (9): line-feed-COMMIT_RE, line-feed-SHA256_RE, line-feed-bootstrap-COMMIT_40, test_a_member_pin_commit_that_ends_in_a_line_break_is_refused, test_a_member_pin_digest_that_ends_in_a_line_break_is_malformed, test_a_family_shape_commit_that_ends_in_a_line_break_is_a_finding, test_a_family_shape_digest_that_ends_in_a_line_break_is_a_finding, test_the_upstream_notice_is_silent_over_a_pin_that_ends_in_a_line_break, test_the_doctor_reads_a_pins_commit_as_the_validators_do[40-hex-and-a-line-feed];
    • test_pin_validator.py (3): a commit, a digest and a shape-pin commit that end in a line break;
    • test_manifest_validator.py (2): a shape commit and a shape digest;
    • test_adopt_pins.py (2): plan-pin-malformed-commit-line-break, plan-pin-malformed-digest-line-break;
  • test_shape_doctor.py -k a_root_pin_that_does_not_read: 1 failed, 12 passed, 436 deselected in 57.84s (a-commit-ending-in-a-line-break).

With the change the same files pass (see the runs).

Mutants (the new file only, -rf)

mutant failed passed
M1: both repo_shape patterns back to $ 11 35
M2: only COMMIT_RE back to $ 7 39
M3: only SHA256_RE back to $ 4 42
M4: only the bootstrap COMMIT_40 back to $ 2 44

Re-measured in fix round 2, at 4c1f80cf, on the 46-row file. The first round measured its 42 rows: 7/35, 4/38, 3/39 and 2/40. M1 is M2 and M3 together.

Each is killed by at least one row, and each pattern is killed by a row of its own. Every mutant was undone: the production files are byte for byte (cmp) their backups of this change.

Runs with the change (head ae30dbd0e0eecfb7092c5ef257da2367d114fc62, worktree clean at each START)

git 2.43.0 (/usr/bin/git):

  • shard tA, 35 files: 2782 passed, 8 skipped in 4138.49s, rc=0;
  • shard tB, 39 files: 2630 passed, 6 skipped in 4532.76s, rc=0;
  • trio (tests/test_repo_hygiene.py tests/test_agents_md_codes.py tests/test_cli_reference.py): 170 passed in 37.48s, rc=0.

The two shards are 74 targeted files: every file that names a pin code (pin-tag-only, pin-digest-*, shape-pin-*, manifest-shape-*, family-shape-*, member-pin-*, update-pin-*, neutral-pin-*, plan-pin-*, not 40/64 hex) or one of COMMIT_RE, SHA256_RE, COMMIT_40, every tests/test_bootstrap*.py (13 of 13), test_shape_doctor.py, 6 of the 19 test_update_shape*.py files, test_family.py, test_scaffold_e2e.py, and the pin tests. They replaced a wide run (226 importer files, about 27k tests) that was killed by PID under load (load average 72 on 32 cores, 2% in 11 minutes); that run is not evidence. The new file and the four edited files are all inside the shards. The other 13 test_update_shape*.py files, which name no pin code, ran as a third run (480 passed, 3 skipped in 441.06s, rc=0), and tests/test_scaffold_leg_path_collisions.py as a fourth (104 passed in 4.35s, rc=0). No full suite was run.

git 2.47.1 (git --version printed first in each log):

  • the new file, test_pin_validator.py, test_manifest_validator.py, test_adopt_pins.py: 323 passed in 208.37s, rc=0.
  • test_shape_doctor.py -k a_root_pin_that_does_not_read: 13 passed, 436 deselected in 52.85s, rc=0.

Merge-trees

Refreshed after the fix round, against the re-fetched origin/main:

Fix round 1

One new commit on top, 03b2b97b9d3cccc42b4703cb2f7c978693488266, after the independent review of ae30dbd0e0eecfb7092c5ef257da2367d114fc62 (not ready on one must). It changes tests/test_pin_pattern_line_break.py and nothing else; no production file changes.

  • Composite asserts (SonarCloud python:S9073, the two issues at lines 164 and 173). member_pin and holder_shape ended in assert commit and digest, text. Each value now has its own assert, with a message that names it (fixture drift: no member pin commit, no member pin tree_sha256, no shape commit, no shape tree_sha256).

  • Two callers had no row of their own, so a .rstrip("\n") before the match in either survived every row. The new rows (the file now has 46):

    • test_a_neutral_pin_commit_that_ends_in_a_line_break_is_refused: the neutral product's pin in validate-pins.py, exit 2, REFUSED neutral-pin-tag-only. On main the commit passed COMMIT_RE and the run exited 1 with neutral-pin-source-unreadable, git refusing the name;
    • test_a_neutral_pin_digest_that_ends_in_a_line_break_is_malformed: the same pin's tree_sha256, exit 1, neutral-pin-digest-malformed. On main it was recomputed and compared (neutral-pin-digest-mismatch);
    • test_a_recorded_source_commit_that_ends_in_a_line_break_is_a_finding, two rows (submodules, answered-paths): a record row's source_commit: in validate-manifest.py, exit 1, manifest-submodule-commit and manifest-answered-commit. On main: manifest ok.
  • The four rows fail on main. The new file with main's two production files checked out: 13 failed, 33 passed (the nine of the first round, and these four).

  • Mutants, each applied alone to the committed head, the file restored afterwards (sha256 94f125c5f5e4b8a0 for validate-pins.py and 260c4742fe422597 for validate-manifest.py, the same as before the mutant, and clean against HEAD; repo_shape.py and bootstrap.py unchanged at 623af12131447f95 and 4102d375f4c9bc38). The new file only:

    • S1, .rstrip("\n") on the neutral pin's commit before the match (validate-pins.py line 1790): 1 failed, 45 passed, killed by the neutral-commit row;
    • S1b, the same on the neutral pin's recorded digest before the match (line 1800): 1 failed, 45 passed, killed by the neutral-digest row;
    • S2, .rstrip("\n") on source_commit before the match (validate-manifest.py line 1264): 2 failed, 44 passed, killed by both source_commit rows;
    • before this round S1 and S2 survived.
  • Runs, at head 03b2b97b9d3cccc42b4703cb2f7c978693488266, worktree clean at each START:

    • git 2.43.0: the new file, tests/test_pin_validator.py and tests/test_manifest_validator.py: 175 passed in 58.03s, rc=0;
    • git 2.43.0: the trio: 170 passed in 39.29s, rc=0;
    • git 2.43.0, extra: tests/test_neutral_pin_validator.py (the new rows use its helpers): 39 passed in 99.62s, rc=0;
    • git 2.47.1 (git --version printed first): the new file: 46 passed in 19.32s, rc=0.
    • The shards, the other git 2.47.1 runs and the extras above ran at ae30dbd0e; the two production files and the four other test files are the same at this head.

Fix round 2

This round is one merge of main and one new commit, after rc1126's re-check: READY at 03b2b97b, with two prose NITs (#1126 issuecomment-6340973564).

Not changed

Other ^...$ patterns are used with .match on values read from files or arguments: PROJECT_ID_RE, DATE_RE and QUALIFIED_RE (validate-manifest.py, validate-family.py), REPOSITORY_RE (update-shape.py), PIN_ARG_RE (shape_materialize.py), and NAME_RE, REF_RE and PATH_RE (setup-project.py). They have the same $ property and are outside the two patterns this issue names, so they are left for #1139, filed from this PR's review.

Closes #1017

🤖 Generated with Claude Code

Summary by Sourcery

Require pin identifiers and tree digests to end exactly at the expected hexadecimal value, preventing trailing line breaks from being accepted as valid pins.

Bug Fixes:

  • Reject commit and tree digest values with trailing line breaks across repository validation, adoption, bootstrap, and shape-doctor flows.

Enhancements:

  • Expand regression coverage for malformed pin values and affected validation outcomes.

Tests:

  • Add focused coverage for regex anchoring, validator behavior, bootstrap notices, adoption checks, and shape-doctor pin parsing.

…40` end in `\Z`, not `$`, so a pin's `commit:` or `tree_sha256:` that ends in a line break is refused as not 40 or 64 hex by every validator and `adopt-project.py` (#1017)

`$` also matches just before a trailing line feed, and every caller reads these
patterns with `.match`, so a `commit:` or `tree_sha256:` read as the hex and a
line feed (the double-quoted escape for a line feed, or a block scalar) passed as
well formed. On main, validate-manifest.py and validate-family.py passed one
(`manifest ok`, `family ok`), validate-pins.py refused one for another reason
(`pin-commit-unresolvable`, `pin-digest-mismatch`), and the assembly root's
bootstrap.py, which holds a copy of the commit pattern as `COMMIT_40`, printed
its upstream notice over one.

`\Z` matches only at the very end of the value, so each caller's `.match`
refuses a trailing line feed as it already refused a carriage return and line
feed, and a space. Nothing else about the patterns changes: 40 and 64 digits,
either case.

Rows: tests/test_pin_pattern_line_break.py (the three patterns, the holder's
gate, the upstream notice, the doctor's `pin_commit`), and a row each in
test_pin_validator.py, test_manifest_validator.py, test_adopt_pins.py and
test_shape_doctor.py. Each fails on main and passes with the change.

Closes #1017

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR fixes an anchoring defect where Python’s $ accepted a single trailing line feed in 40-character commits and 64-character digests, changing the canonical and bootstrap validators to use \Z and adding targeted regression tests across every affected consumer.

Flow diagram for strict pin validation

flowchart LR
    Input["commit or tree_sha256 value"] --> Pattern{Strict \Z pattern}
    Pattern -->|"exact hex length"| Valid["Accepted"]
    Pattern -->|"trailing line feed or other suffix"| Invalid["Rejected as malformed"]
Loading

File-Level Changes

Change Details Files
Harden hexadecimal pin validation against trailing line feeds by replacing $ with \Z in the canonical validators and the bootstrap copy.
  • Require commit and SHA-256 values to terminate at the true end of the string while preserving exact lengths and case handling.
  • Keep the template bootstrap validator synchronized with repo_shape.COMMIT_RE.
  • Leave unrelated regexes and production behavior unchanged.
scripts/repo_shape.py
templates/assembly-root/scripts/bootstrap.py
Add regression coverage for pattern behavior and all affected validation and pin-reading paths.
  • Cover trailing line feeds, CRLF, whitespace, extra digits, prefixes, and case variants for all three patterns.
  • Verify malformed/refused findings for manifest, family, leg-pin, shape-pin, and adopted-plan values.
  • Verify bootstrap upstream notices and shape-doctor pin reads reject newline-terminated commits.
  • Document baseline behavior and test the scaffolded-family gate.
tests/test_pin_pattern_line_break.py
tests/test_pin_validator.py
tests/test_manifest_validator.py
tests/test_adopt_pins.py
tests/test_shape_doctor.py

Assessment against linked issues

Issue Objective Addressed Explanation
#1017 Make COMMIT_RE and SHA256_RE reject trailing line breaks and other trailing characters while continuing to accept exactly 40 or 64 hexadecimal digits. ✅
#1017 Update the copied commit pattern in bootstrap.py so it applies the same strict end-of-value validation. ✅
#1017 Add regression tests demonstrating that newline-terminated commit and digest values are rejected by the patterns and relevant validators/readers. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • 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!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

Independent review of #1126 (#1017) at ae30dbd0, for lane openRepoShape-5: NOT READY

The fix is right. Nothing that worked before is refused now, and I found no other copy that needs the change. The only blocker is two composite asserts in the new test file, which SonarCloud has flagged on the PR. Splitting them is a two-line fix round.

Findings

MUST: two composite asserts (fix round). tests/test_pin_pattern_line_break.py:164 and :173

  • Both lines are assert commit and digest, text.
  • SonarCloud has two open MAJOR python:S9073 issues on PR 1126, at exactly these lines (keys AaFfCc0yxzEwGRCiMIPw and AaFfCc0yxzEwGRCiMIPx).
  • The quality gate still reads OK: the ratings are 1 and new duplication is 0.0%. I call this a MUST only because the lane's rule is that S9073 always gets a fix round.
  • The scenario: when the fixture drifts and one of the two re.search calls finds nothing, the message cannot say which one failed.
  • The fix: one assert for each of the two values.

NIT: the body misstates what main does with family.yaml's shape.commit. Body line 19 (in $Q/v118/w1017/body.md) says both shape fields "passed". Measured on 4ed7c7bf:

  • shape.digests.tree_sha256 with a line feed does pass: family ok, exit 0.
  • shape.commit with a line feed exits 1 with FINDING shape-pin-manifest-disagree: contracts/shape-pin.yaml commit 4ed7c7bf... != family.yaml shape.commit 4ed7c7bf.... The same 40 hex is printed on both sides.
  • STATE.md has the same error.

NIT: the merge-tree section is stale. Body lines 80-82 name 823624d93 and "the two PRs that landed since (#1101, #1102)".

NIT: two callers have no row of their own, so a caller-side mutant survives (details under Rows and mutants). These callers are protected only through the shared pattern; that is what the PR changes, so they work. The gap is coverage, not a bug:

  • the neutral-product pin at templates/assembly-root/scripts/validate-pins.py:1791 (and its digest at :1800);
  • the chain record's source_commit at templates/assembly-root/scripts/validate-manifest.py:1264.

Checked and true

1. The defect on main (4ed7c7bf; git diff --quiet 823624d93 4ed7c7bf5 over repo_shape.py, templates/, shape-doctor.py, update-shape.py, family.py and bump-leg.py is empty). Python 3.12.3:

  • .match takes 40 or 64 hex followed by a line feed, for COMMIT_RE, SHA256_RE and COMMIT_40 alike.
  • It refuses the hex followed by \r\n, a space or two line feeds. fullmatch refuses the line feed.
  • repo_shape.parse_yaml reads both commit: "<hex>\n" and commit: | as the hex plus a line feed. A single-quoted '<hex>\n' is a literal backslash and n, already refused.

Per-tool outcomes on main, through the PR's own rows run against main's production files (17 failed, 319 passed in 330.72s):

Tool and field (value ends in a line feed) On main
validate-manifest.py shape.commit, shape digest manifest ok, exit 0
validate-pins.py leg commit REFUSED pin-commit-unresolvable (not pin-tag-only)
validate-pins.py leg digest pin-digest-mismatch
validate-pins.py shape-pin commit only shape-pin-manifest-disagree
validate-family.py member pin commit REFUSED member-commit-unresolvable
validate-family.py member pin digest member-digest-mismatch
adopt-project.py check exit 0
shape-doctor.py pin_commit returned '...\n'
shape-doctor.py gate exit 3 where 1 is expected
bootstrap.py upstream notice printed

A direct probe of shape_upstream_notice agrees: main prints the notice for a "<hex>\n" pin, and the head is silent. The 17 failing ids are exactly the writer's 16 plus the doctor row.

2. No caller relied on $. I grepped every use outside tests/. Each value is one of:

  • A YAML read, str()-ed:
    • adopt-project.py (the plan's commit: and tree_sha256:, and source.commit in _not_a_whole_clone);
    • validate-manifest.py 993, 999 and 1264;
    • validate-pins.py 755, 1265, 1367, 1791 and 1800;
    • validate-family.py 664, 669, 756, 1435, 1646 and 2417;
    • update-shape.py 822;
    • shape-doctor.py 3694, 5483, 6424 and 10368;
    • bootstrap.py 1797.
  • Stripped git output: git_out strips in text mode (repo_shape.py:1406), which covers update-shape.py:558. bootstrap.py:1802 reads _try_git, which strips, or _cached_tip, which uses .strip().
  • Split fields: recorded_gitlink, for shape-doctor.py:2933.
  • checked_value first: bump-leg.py:1669 and family.py 6521 and 9334. SAFE_ARG_RE fullmatch already refuses the line feed.
  • Stripped first: bump-leg.py:2250.
  • Not these patterns: src/openreposhape/standard.py has its own and uses fullmatch.

No site where valid input is now refused. The only values that change are YAML values that end in a line feed. No tool writes one; it takes a double-quoted escape, or a block scalar written by hand.

3. Copies.

  • No other copy shares the $ property. templates/family-root/scripts/bootstrap.py and siblings.py hold no hex pattern. In shape_materialize.py, README_SHAPE_LINE_RE is a MULTILINE per-line pattern and OBJECT_ID_RE uses fullmatch. release.yml uses fullmatch. The @(?P<sha>...) patterns are unanchored.
  • The pinned-copy rule holds: the PR adds no import, and test_pinned_copy_text.py passes at the head.
  • No test or doc pins the old bytes or hashes. I grepped for the old blob ids 6309c115/49eb0412, the old sha256s ebbb9061/92d74d78 and {40}$/{64}$: the only hits are the three code lines.

4. Rows and mutants. Run in a worktree at the predicted merge, with the new file (and target rows) only:

Mutant Change Result
M1 (writer's) both repo_shape patterns back to $ 7 failed / 35 passed, matches the writer
M2 (writer's) COMMIT_RE only 4/38, matches
M4 (writer's) COMMIT_40 only 2/40, matches
W1 COMMIT_RE ends \n?\Z killed, 4/38
W2 SHA256_RE ends \n?\Z killed, 3/39
W3 validate-pins.py leg commit .rstrip("\n") before the match killed (exit 0 where 2 expected)
W4 validate-family.py:1435 digest .rstrip killed
W5 adopt-project.py _pin_row_problem .rstrip killed
W6 shape-doctor.py pin_commit .rstrip killed
W7 bootstrap.py:1797 .rstrip killed
W8 validate-manifest.py:993 .rstrip killed
S1 .rstrip on the neutral-pin commit, validate-pins.py:1791 survived: 67 passed over the new file and test_pin_validator.py
S2 .rstrip on source_commit, validate-manifest.py:1264 survived: 146 passed over the new file and test_manifest_validator.py

A caller's .match changed to .search is equivalent under ^...\Z, so I did not count it. After the runs the production files were restored, with sha256 623af12131447f95 and 4102d375f4c9bc38, the same as the writer's.

5. Runs (all through run9.sh, [email protected]):

  • Head, git 2.43: 593 passed in 384.49s. That is the five files (with only the edited doctor test, 13 rows) plus test_pinned_copy_text.py and the trio.
  • Head, git 2.47.1: the new file, 42 passed in 11.17s. git --version printed 2.47.1, both outside and under run9's PATH.
  • Predicted merge with 4ed7c7bf (commit 81bffaa3, tree 0db1b9ca), git 2.43: the five files, 336 passed in 511.31s.

6. Title and body.

  • The title is 240 characters and true.
  • The only closing keyword in the live body and in the commit message is Closes #1017, and closingIssuesReferences is [1017] only. body-guard.py gives rc=0.
  • Body numbers reproduced by me: 42 rows; the failures on main (16+1, matching my 17 out of 336); M1, M2, M4; 13 of 13 test_bootstrap*.py files; 19 test_update_shape*.py files with 6 in the shards; shards of 35 and 39 files, 74 in all, no duplicates; 17 open PRs in open-prs2.json.
  • The rest are numbers I only read in the writer's logs (see below).

Sonar-style checks:

  • No production function changed (only module constants and comments), and the test helpers are flat, so cognitive complexity is not an issue.
  • Sonar reports duplication at 0.0%.
  • The added production lines are at most 79 columns. Three lines of the new test file are 80-81 columns, within the widths of sibling test files (82-90).
  • The diff adds no non-ASCII character.
  • The commit is authored by Brett Heap [email protected], with the Lane and Co-Authored-By trailers.

Could not verify

  • The writer's 74-file shards (tA 2782 passed and 8 skipped; tB 2630 passed and 6 skipped), the extra update-shape run (480 passed, 3 skipped), the collisions run (104 passed), g247a (323) and g247b (13). I read the logs (all rc=0) but did not re-run them.
  • The full test_shape_doctor.py: I ran only the edited parametrized test.
  • The body's measurements on 2a119f28 and 6da757cbe. I measured on 4ed7c7bf.
  • test_pinned_copy_text.py's own count. 87 is inferred from 593 - 336 - 170, not measured alone.
  • No run on git 2.55 (CI) or on Windows.

Follow-up assessment (item 7; input for the lane's issue, not findings against this PR)

  • PROJECT_ID_RE: reachable from files (the id: of project.yaml, family.yaml and an adoption plan, and a member's project.yaml read by family.py) and from --id.
    • Measured on main: validate-manifest.py with id: "atlas\n" gives only FINDING manifest-topic (expected 'xf-project-atlas\n', exit 1).
    • validate-family.py with id: "inkrouter\n" gives family ok, exit 0.
    • The scaffold and family.py init run checked_value after it (refused). adopt-project.py --id and the plan id: were not measured end to end.
  • DATE_RE: reachable from files and from --elected-on.
    • Measured on main: validate-manifest.py elected_on: "2026-09-02\n" gives manifest ok, exit 0; validate-family.py created_on: "2026-09-04\n" gives ok, exit 0.
    • shape_materialize.py's --elected-on and shape_advisory.py then call date.fromisoformat, which refuses it (measured: election-date-malformed).
  • QUALIFIED_RE: reachable from files.
    • Measured on main: validate-manifest.py leg repository: "testorg/Atlas\n" gives manifest ok, exit 0.
    • validate-family.py member repository: "InkRouter/IRRS\n" gives FINDING member-repository-name ("whose name is 'IRRS\n'"), exit 1.
  • REPOSITORY_RE (update-shape.py:209/680): reachable from --upstream and from the shape pin's source_repository:. On main it takes the line feed, and the next line, checked_value("--upstream", ...), refuses it as unsafe-value (measured in-process). That message names --upstream even when the value came from the pin.
  • PIN_ARG_RE: --pin is .strip()-ed first. adopt-project.py builds repository@commit with the commit COMMIT_RE-checked first, which this PR makes \Z. A line feed in the repository falls mid-string and the character class refuses it. So nothing reaches its $ unguarded after this PR.
  • NAME_RE/REF_RE/PATH_RE (setup-project.py): argv and $OPENREPOSHAPE_REPO only. why_refused checks CONTROL_RE and then fullmatch (measured: "It holds a control character"). Not affected.

Scratch left

  • Notes and logs in /tmp/claude-1000/-workspace-projects-openRepoShape/50cede29-ab82-4ca3-9f67-d98e1a58c8d2/scratchpad/v118/rv1126/: r1-head-243.log, r2-head-2471.log, r3-merge-243.log, base-main-rows.log, probe-out.txt, probe-run.log, mutants-summary.log, mut/*.log, tools/, the probe roots nb1/ and nb2/, issue1017.txt, pr1126.json and pr-body.md.
  • My basetemps under /tmp/claude-1000/-workspace-projects-openRepoShape/50cede29-ab82-4ca3-9f67-d98e1a58c8d2/scratchpad/v110/bt/: rv1126-base, rv1126-mut, rv1126-probe, rv1126-r1, rv1126-r2 and rv1126-r3. The first reviewer's rv1126-g247, -h1, -h2, -m1, -m2, -onmain, -ph and -pm are still there too.
  • The first reviewer's four worktrees, and my own four (rv1126-head, -main, -merge, -mut), are removed with git worktree remove. refs/l5rv/rv1126-pr and refs/l5rv/rv1126-merge are deleted.
  • Nothing of mine is running (pgrep -af rv1126 finds nothing).
  • Nothing was pushed, posted or filed.

Lane: openreposhape-5 (openRepoShape-5)

…n's commit or digest, or a record's `source_commit:`, has a row, so `.rstrip` before the match in validate-pins.py or validate-manifest.py fails; each read asserts one value (#1017)

Fix round 1 for #1126, from its independent review.

`member_pin` and `holder_shape` ended in `assert commit and digest, text`
(SonarCloud S9073): when one of the two reads found nothing, the message could
not say which. Each value now has its own assert and a message that names it.

Two callers of the patterns had no row of their own, so a `.rstrip("\n")` before
the match survived every row: the neutral product's pin in validate-pins.py
(`commit:` is refused as `neutral-pin-tag-only`, `tree_sha256:` is
`neutral-pin-digest-malformed`) and the `source_commit:` of a `submodules:` or
`answered_paths:` row in validate-manifest.py (`manifest-submodule-commit`,
`manifest-answered-commit`). On main the first was the product's checkout
refusing the name (`neutral-pin-source-unreadable`), the second a digest
recompute (`neutral-pin-digest-mismatch`), the third `manifest ok`.

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Re-check of #1126 (#1017) fix round 1 at 03b2b97b, for lane openRepoShape-5: READY

All five checks hold. There is no MUST or SHOULD, and two NITs, both about prose. The fix round does what rv1126 asked, and the SonarCloud S9073 issues are now closed.

Findings

NIT 1: the test file's module docstring still says what the body no longer says. tests/test_pin_pattern_line_break.py:25-27 says validate-family.py "passed" shape.commit and shape.digests.tree_sha256 in family.yaml on main. That is true of the digest and false of the commit.

  • With main's two production files, test_a_family_shape_commit_that_ends_in_a_line_break_is_a_finding fails with FINDING shape-pin-manifest-disagree: contracts/shape-pin.yaml commit 03b2b97b... != family.yaml shape.commit 03b2b97b..., and "1 finding(s)". The same hex is printed on both sides, and family-shape-commit was not raised.
  • The digest row on main printed family ok, exit 0.
  • The writer fixed this in the PR body, which matches that behaviour, but not in the docstring. One clause of the docstring fixes it.

NIT 2: the body's "Mutants" table is measured on the 42-row file. It reads 7/35, 4/38, 3/39 and 2/40, which sum to 42. The file now has 46 rows. I re-measured on the head:

Mutant Failed Passed
M2: COMMIT_RE back to $ 7 39
M3: SHA256_RE back to $ 4 42
M4: COMMIT_40 back to $ 2 44

Every pattern is still killed by a row of its own. M1 is the union of M2 and M3, so I did not run it. Nothing is wrong, the table is just stale.

Main moved to 038dafba after the body's merge-tree section (written against 4ed7c7bf). It is clean against the new main too (below), so this is only a refresh before landing.

Checked and true

1. The MUST is fixed.

  • The four asserts are at :171, :172, :181 and :182:
    • assert commit, f"fixture drift: no member pin commit in {text}"
    • assert digest, f"fixture drift: no member pin tree_sha256 in {text}"
    • assert commit, f"fixture drift: no shape commit in {text}"
    • assert digest, f"fixture drift: no shape tree_sha256 in {text}"
  • An ast scan found 27 asserts in the file and no BoolOp (and or or) in any of them, message included.
  • SonarCloud has closed both S9073 issues (AaFfCc0yxzEwGRCiMIPw and ...Px, status CLOSED). The PR's quality gate reads OK, with ratings 1 and 0.0% new duplication, and there are no other issues on the PR.

2. The four new rows.

  • Each asserts what its name says and reuses the helpers it imports:
    • the neutral commit row asserts exit 2 and REFUSED neutral-pin-tag-only;
    • the neutral digest row asserts exit 1 and FINDING neutral-pin-digest-malformed;
    • the two source_commit rows go through assert_refused with SUBMODULE_RECORD and ANSWER_RECORD, expecting manifest-submodule-commit and manifest-answered-commit.
  • With main's scripts/repo_shape.py and templates/assembly-root/scripts/bootstrap.py checked out (blob ids 49eb0412 and 6309c115, sha256 92d74d78 and ebbb9061), the new file gives 13 failed, 33 passed in 13.37s, as the writer counted. The four new rows each fail for the stated reason:
    • neutral commit: neutral-pin-source-unreadable, with git ls-tree exiting 128, "Not a valid object name 324db5a4..." and a line feed after the commit;
    • neutral digest: neutral-pin-digest-mismatch;
    • both source_commit rows: manifest ok.
  • Each mutant was applied alone to the head in a scratch worktree, with the file restored afterwards. The sha256 prefixes match the writer's, and git status was clean after each:
    • validate-pins.py is 94f125c5f5e4b8a0 and validate-manifest.py is 260c4742fe422597;
    • repo_shape.py is 623af12131447f95 and bootstrap.py is 4102d375f4c9bc38.
  • Mutants on the new file only:
Mutant Change Result
S1 .rstrip("\n") before the match, validate-pins.py:1791 killed, 1 failed / 45 passed, by the neutral-commit row
S1b the same on the digest, :1800 killed, 1/45, by the neutral-digest row
S2 the same on source_commit, validate-manifest.py:1264 killed, 2/44, by both rows
S1a (mine) .rstrip("\n") on the assignment, :1790 killed, 1/45
O1 (mine) .strip() in place of .rstrip("\n") at :1791 killed, 1/45
O2 (mine) .strip() in place of .rstrip("\n") at :1800 killed, 1/45
O3 (mine) .strip() at manifest :1264 killed, 2/44
O4 (mine) .replace("\n", "") at manifest :1264 killed, 2/44
O5a (mine) .rstrip("\n") for the submodules record only killed, 1/45 ([submodules])
O5b (mine) .rstrip("\n") for the answered-paths record only killed, 1/45 ([answered-paths])

No mutant survived. O5a and O5b show that both source_commit rows are needed.

3. Runs through run9.sh, [email protected], at the head, worktree clean at each start.

  • Git 2.43.0:
    • the new file, test_pin_validator.py and test_manifest_validator.py: 175 passed in 44.31s;
    • the trio: 170 passed in 43.66s;
    • extra, test_neutral_pin_validator.py, test_pinned_copy_text.py and test_adopt_pins.py: 278 passed in 224.70s;
    • the four new rows run alone: 4 passed, so there is no import-order dependence.
  • Git 2.47.1 ($Q/v115/w764/git247/bin/git): the new file, 46 passed in 13.02s. Under run9's PATH composition, command -v git gives that binary and git --version gives 2.47.1.

4. Merges.

5. The body's NITs.

Could not verify

Scratch I leave

  • I removed my three worktrees (rc1126-head, -base, -merge) with git worktree remove, and deleted refs/l5rv/rc1126-pr and refs/l5rv/rc1126-merge.
  • Logs and scripts are under /tmp/claude-1000/-workspace-projects-openRepoShape/50cede29-ab82-4ca3-9f67-d98e1a58c8d2/scratchpad/v119/rc1126/:
    • the logs base-main-prod.log, head-243-a.log, head-243-trio.log, head-243-extra.log, head-243-iso.log, head-2471.log, merge-243.log and chain-mut.out;
    • mut/*.log, bak/*.orig, mt-038dafba.txt, mutate.py, mut.sh and chain-mut.sh.
  • The review body and PR JSON I read are v119/rc1126-review-body.md, rc1126-pr.json and rc1126-pr-body.md.
  • Basetemps under $Q/v110/bt/: rc1126-base, -ex, -g247, -h1, -iso, -mg, -mut and -trio.
  • Nothing of mine is running. I pushed, posted and filed nothing, and changed no branch.

Lane: openreposhape-5 (openRepoShape-5)

Brett Heap and others added 2 commits October 22, 2026 13:18
Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…date-family.py` passed only the digest of `family.yaml`'s `shape:` on main, and gave `shape-pin-manifest-disagree` over the commit, not that it passed both (#1017)

NIT 1 of rc1126's re-check of #1126 (issuecomment-6340973564). The docstring said
validate-family.py passed `shape.commit` and `shape.digests.tree_sha256` in
family.yaml on main. Only the digest passed (`family ok`, exit 0). The commit
passed `COMMIT_RE` too, so `family-shape-commit` was not raised, but
`contracts/shape-pin.yaml` holds the commit without the line feed, and the gate
gave `shape-pin-manifest-disagree` with the same hex printed on both sides. The
clause now says that. A docstring only: no code and no row changes.

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Re-check of #1126 (#1017) for lane openRepoShape-5: READY at 4c1f80cf

I checked only the delta from 03b2b97b, the head rc1126 passed (issuecomment-6340973564). No MUST, no SHOULD, no NIT. One body note, below.

Checked and true

1. The merge is clean and adds nothing of its own.

  • c7da27dc merges main 038dafba into 03b2b97b. Its tree is 4729e601b8566546055685abce9e2d0b035b0589, and git merge-tree --write-tree 03b2b97b 038dafba gives the same tree.
  • The PR's seven files have the same blobs at 03b2b97b and 4c1f80cf, except tests/test_pin_pattern_line_break.py.
  • Main did not touch any of the other six between the old merge base 6da757cbe and 038dafba.

2. The NIT commit 4c1f80cf changes only the module docstring of tests/test_pin_pattern_line_break.py (6 insertions, 2 deletions).

  • The added lines are at most 77 wide, ASCII, with no CR and no trailing space.
  • The file still has 27 asserts, and none holds an and or an or (ast scan).

3. The new docstring is true of main.

  • I put main's scripts/repo_shape.py and templates/assembly-root/scripts/bootstrap.py (sha256 92d74d78 and ebbb9061) in my scratch tree. The file then gives 13 failed, 33 passed, as the body says.
  • test_a_family_shape_commit_that_ends_in_a_line_break_is_a_finding fails with FINDING shape-pin-manifest-disagree: contracts/shape-pin.yaml commit 4c1f80cf... != family.yaml shape.commit 4c1f80cf.... The same hex is on both sides, and family-shape-commit is not raised.
  • test_a_family_shape_digest_that_ends_in_a_line_break_is_a_finding fails on assert 0 == 1, and the gate printed family ok: InkRouter (inkrouter), 2 member(s).
  • That is what the docstring now says, so rc1126's NIT 1 is fixed.

3b. The mutants. NIT 2 of the same comment was the stale table. I applied each mutant alone to 4c1f80cf, ran the new file with -rf, and restored it.

Mutant Result In the body
M1: both repo_shape patterns back to $ 11 failed, 35 passed 11/35
M2: only COMMIT_RE 7 failed, 39 passed 7/39
M3: only SHA256_RE 4 failed, 42 passed 4/42
M4: only bootstrap.COMMIT_40 2 failed, 44 passed 2/44
  • Each mutant is killed by a row of its own.
  • After each one, the sha256 was back to 623af12131447f95 for repo_shape.py and 4102d375f4c9bc38 for bootstrap.py, and git status showed 0 modified files.
  • NIT 2 is fixed.

4. Runs at 4c1f80cf, with the worktree clean at each START.

  • git 2.43.0: tests/test_pin_pattern_line_break.py and tests/test_path_guard_hygiene.py, 95 passed (46 + 49) in 38.56s, rc=0.
  • git 2.47.1 (git --version printed first): the same two files, 95 passed in 42.17s, rc=0.

5. Merge-trees.

Body note (not a finding)

The body's merge-tree bullet for fix round 2 is out of date:

Could not verify

  • I did not re-run the writer's two 74-file shards or its extra runs. They ran at ae30dbd0, and no production file has changed since.
  • I did not measure Python 3.14 or Windows. The delta adds no text that depends on the version.

Lane: openreposhape-5 (openRepoShape-5)

@brettheap brettheap added this to the v1.2.1 milestone Oct 23, 2026
@brettheap
brettheap marked this pull request as ready for review October 23, 2026 19:00
@sourcery-ai

sourcery-ai Bot commented Oct 23, 2026

Copy link
Copy Markdown

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 4 hours and 46 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 422a590 into main Oct 23, 2026
5 checks passed
@brettheap
brettheap deleted the fix/1017-repo-shape-match-end branch October 23, 2026 19:01
brettheap added a commit that referenced this pull request Nov 8, 2026
…py: an `id:`, a date or a `repository:` ending in a line feed is refused by name, and a pin's `source_repository:` that is no path or `owner/repo` name is named as the pin's (#1139) (#1166)

The value patterns the issue names refuse a value that ends in a line feed, by name, as #1126 (#1017) makes `COMMIT_RE`, `SHA256_RE` and `COMMIT_40` do:
- `DATE_RE` and `QUALIFIED_RE` in `validate-manifest.py` and `validate-family.py`, `MEMBER_RE` in `scripts/family.py`, `DATE_RE` in `scripts/shape_advisory.py` and `REPOSITORY_RE` in `update-shape.py`;
- `PROJECT_ID_RE`, read with `fullmatch` where the two validators and `family.py add` read an id from a file.

A shape pin's `source_repository:` that is neither a path on this machine nor an `owner/repo` name is refused in the pin's name, not `--upstream`'s. Values without a line feed keep their outcome, and no refusal code is added or renamed. Two inputs do move from one existing code to another (see "Behaviour changed", below).

**What this PR does not cover, and the title does not claim:**
- the naming-policy patterns that `scripts/repo_shape.py` reads from `contracts/repository-naming.yaml`, which `validate-repository-naming.py` still reads with `.match`;
- `update-upstream-not-a-repo`, which still says `--upstream` when a pin names a folder that exists and is not a repository.

Both are follow-ups, with the other findings of the independent review, under "Follow-ups (not in this PR)".

This does not need #1126 and does not touch its files or its test file.

Measured on main `038dafba` (Python 3.12.3, git 2.43.0) by a probe of each tool, before any change. Each value is written in the file as a YAML double-quoted `"...\n"`, which the reader takes as the value and a line feed.

| Read from | Value | On main |
|---|---|---|
| `project.yaml` (`validate-manifest.py`) | `id: "atlas\n"` | only `FINDING manifest-topic: topic is 'xf-project-atlas', expected 'xf-project-atlas\n' derived from id 'atlas\n'`, exit 1 |
| `project.yaml` | `elected_on: "2026-09-02\n"` | `manifest ok`, exit 0 |
| `project.yaml` | a leg's `repository: "testorg/Atlas-spec\n"` | `manifest ok`, exit 0 |
| `family.yaml` (`validate-family.py`) | `id: "inkrouter\n"` | `family ok: InkRouter (inkrouter` and a line break, exit 0 |
| `family.yaml` | `created_on: "2026-09-04\n"` | `family ok`, exit 0 |
| `family.yaml` | a member's `repository: "InkRouter/IRRS\n"` | `FINDING member-repository-name: ... whose name is 'IRRS\n'`, exit 1 |
| a member's `project.yaml`, read by `family.py add` | `id: "irqs\n"` | mounted and committed, exit 0, with the row `id: "irqs\n"`; the holder's gate then said `family ok` |
| `contracts/shape-pin.yaml`, `update-shape.py check` with no `--upstream` | `source_repository: "opensoft/openRepoShape\n"` | `REFUSED unsafe-value: --upstream is 'opensoft/openRepoShape\n'`, exit 2 |
| the same | `source_repository: "opensoft/open Repo"` | `REFUSED update-upstream-unresolvable: --upstream 'opensoft/open Repo' is neither ...`, exit 2 |
| the same | `source_repository: "-opensoft/openRepoShape"` | `REFUSED unsafe-value: --upstream is '-opensoft/openRepoShape'`, exit 2 |
| an adoption plan (`adopt-project.py check`) | `id: "northwind\n"` | `FINDING plan-manifest-invalid: id is 'northwind\n', which the project's own validate-manifest.py refuses: manifest-topic: ...`, exit 1; `execute` refused it, exit 2, before any leg |

In-process on the same main: `repo_shape.PROJECT_ID_RE.match('atlas\n')`, `shape_advisory.DATE_RE.match('2026-09-02\n')` and `REPOSITORY_RE.match('a/b\n')` each matched, and `date.fromisoformat('2026-09-02\n')` raised `ValueError`.

- **`DATE_RE` and `QUALIFIED_RE`** in `templates/assembly-root/scripts/validate-manifest.py` and `templates/family-root/scripts/validate-family.py` end in `\Z`. So do `MEMBER_RE` in `scripts/family.py` (the third spelling `tests/test_family_member_name.py` holds equal to the two `QUALIFIED_RE`), `DATE_RE` in `scripts/shape_advisory.py` and `REPOSITORY_RE` in `update-shape.py`.
- **`PROJECT_ID_RE` keeps its `$`.** Every id refusal prints its text (`must match ^[a-z0-9][a-z0-9-]*$`, pinned in six test files), the validators run against each project's own copy of `repo_shape.py`, and its definition sits inside #1126's hunk. The three callers that read an id from a file ask it with `fullmatch` instead: `validate-manifest.py` (`manifest-id`), `validate-family.py` (`family-id`) and `family.py`'s reading of a member's `project.yaml` (`member-bad-id`, which `add` now says before anything is mounted).
- **`update-shape.py`.** `open_upstream(spec, pin_path=None)` takes the pin the value was read from, which `prepare` passes when no `--upstream` was given. Then `update-upstream-unresolvable` says ``<root>/contracts/shape-pin.yaml: `source_repository:` is '...', which is neither a path on this machine nor an `owner/repo` name``, with a remedy to write the pin's field or pass `--upstream`, and `checked_value` names the same field. **Code kept:** `update-upstream-unresolvable`, the existing code for a value that is not an `owner/repo` name. A line feed now reaches it, since the pattern no longer takes one. Before, `checked_value` refused it as `unsafe-value`.
- **One existing test line:** `tests/test_family_init_values.py` finds validate-family's `DATE_RE` line by its text, which now ends `\Z`.
- **One existing stand-in:** the `temporaries` fixture in `tests/test_update_shape_unreadable.py` stands in for `open_upstream` with `def opening(spec)`, which the new two-argument call refused with `TypeError: ... takes 1 positional argument but 2 were given`. It now takes `pin_path=None` and hands it on to the real `open_upstream`, so `test_a_read_refused_in_prepare_closes_the_upstream[check|apply]` asks what it asked before.
- **The rows** are in a new file of their own, `tests/test_value_pattern_line_break.py`.
- **A second guard, in a second commit (`5102b4294`, a test only, no production file).** The first guard holds the four pattern names this PR ends in `\Z`, and nothing held `PROJECT_ID_RE`, which keeps its `$`. `test_every_reader_of_the_id_pattern_is_in_the_table` reads every tracked `.py` outside `tests/` with `ast` (it runs none) and holds each call of a method of `PROJECT_ID_RE` (`PROJECT_ID_RE.x(...)` or `repo_shape.PROJECT_ID_RE.x(...)`) to the table `ID_READERS`:
  - the three `fullmatch` readers of an id from a file (`validate-manifest.py`, `validate-family.py`, `scripts/family.py`);
  - the modules that still `match` it, each with its reason: argv `--id` in `scaffold-project.py` and `scripts/family.py`, where `checked_value` refuses a line feed after the pattern; argv `--id` in `adopt-project.py`, which the project's own `validate-manifest.py` refuses (`adopt-manifest-invalid`, below; `ID_READERS` still gives it the `checked_value` reason); and `adopt-project.py`'s two `plan-bad-id` readers, of the plan's `id:` and of the id derived from `legs.assembly`, which a line feed never passes (below).

  A new reader of `PROJECT_ID_RE`, `fullmatch` included, fails it by file and method until it is listed in `ID_READERS` with its reason. The table is exact both ways, so a reader taken away fails it too.

**Left as they are, and why:**
- the argv readers of `PROJECT_ID_RE` (`--id` in `scaffold-project.py`, `family.py init` and `adopt-project.py`). The first two hold the id to `checked_value` after the pattern, which refuses a line feed as `unsafe-value` naming `--id`, and `tests/test_derived_id_refusals.py` pins that answer for them. `adopt-project.py` never calls `checked_value` on `--id`: `plan` with `--id` set to `northwind` and a line feed exits 2 with `adopt-manifest-invalid`, in the words of the project's own `validate-manifest.py` (`manifest-id`), and writes no plan (lane 5's re-check, issuecomment-6371408915, NIT 2; measured on `plan` only);
- `adopt-project.py`'s reading of a plan's `id:`: `check` and `execute` hold it to the project's own `validate-manifest.py`, which refused it on main (above) and now names it in `manifest-id`'s words. It is the same value, refused under the same code, `plan-manifest-invalid`, before any leg exists. The id derived from `legs.assembly` is read with `.match` too, and a line feed in `legs.assembly` is `unsafe-value` before that id is asked (the review measured both, on main and here alike). This keeps the open PRs on `adopt-project.py` (24 at 12:02Z) clear;
- `PIN_ARG_RE`, and `NAME_RE`/`REF_RE`/`PATH_RE` in `setup-project.py`, as the issue says;
- `update-upstream-not-a-repo` still says `--upstream`. A pin's value reaches it only when it names a path that exists, not through the pattern.

**Behaviour changed, stated plainly, and what the issue's Verify means by "No refusal code changes":** the issue's Verify line reads as no code added or renamed, and none is. Two inputs do move from one existing code to another, exit 2 both before and after:
- `update-shape.py --upstream "opensoft/openRepoShape<LF>"` was `unsafe-value` and is now `update-upstream-unresolvable`, still naming `--upstream`;
- a pin's `source_repository:` that ends in a line feed, with no `--upstream`, was `unsafe-value` naming `--upstream` and is now `update-upstream-unresolvable` naming the pin's field.

No test pinned either old answer: every gate below passed. `family.py add --member` is stripped before `MEMBER_RE`, so `add` answers as before.

**Not changed, seen while measuring:** with `--upstream` passed, `update-shape.py` does not read the pin's `source_repository:` through `REPOSITORY_RE` at all, and it keeps the value as the upstream's repository name. `validate-family.py` does not hold a member row's `id:` to `PROJECT_ID_RE`; it compares the row with the member's manifest. Neither is a `$` question. Both are under "Follow-ups (not in this PR)".

All in `tests/test_value_pattern_line_break.py`, run against main's production code: the five production files swapped in place from `origin/main` (`961640c68`), then put back with their sha256 matching (`dirty=5` in the run's START line is those five files). On the head `5102b4294` (30 rows) the result is **20 failed, 10 passed in 23.12s, git 2.43.0**. The 10 that pass are baselines: the seven `test_a_pattern_takes_its_value` rows, the spelling-table guard and the two double-quoted-without-a-line-feed rows.

The first 19 are the first commit's rows (19 failed, 10 passed in 22.12s on its 29 rows at `038dafba`). The independent review reproduced them from main's bytes of the same five files (19 failed, 10 passed in 26.78s, the same 19 ids). The 20th, `test_every_reader_of_the_id_pattern_is_in_the_table`, is the second commit's: it fails on main because the three readers of an id from a file are `.match` there, not `.fullmatch`.

- `test_a_pattern_refuses_its_value_and_a_line_feed[manifest-DATE_RE]`
- `test_a_pattern_refuses_its_value_and_a_line_feed[manifest-QUALIFIED_RE]`
- `test_a_pattern_refuses_its_value_and_a_line_feed[family-DATE_RE]`
- `test_a_pattern_refuses_its_value_and_a_line_feed[family-QUALIFIED_RE]`
- `test_a_pattern_refuses_its_value_and_a_line_feed[family.py-MEMBER_RE]`
- `test_a_pattern_refuses_its_value_and_a_line_feed[shape_advisory-DATE_RE]`
- `test_a_pattern_refuses_its_value_and_a_line_feed[update-shape-REPOSITORY_RE]`
- `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[id]`
- `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[elected_on]`
- `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[leg-repository]`
- `test_adopt_check_names_a_plan_id_that_ends_in_a_line_break_as_an_id`
- `test_a_family_value_that_ends_in_a_line_break_is_a_finding[id]`
- `test_a_family_value_that_ends_in_a_line_break_is_a_finding[created_on]`
- `test_a_family_value_that_ends_in_a_line_break_is_a_finding[member-repository]`
- `test_add_refuses_a_member_whose_id_ends_in_a_line_break`
- `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]`
- `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[space]`
- `test_a_pins_source_checked_value_refuses_is_named_as_the_pins`
- `test_an_upstream_passed_with_a_line_feed_is_named_as_passed`
- `test_every_reader_of_the_id_pattern_is_in_the_table`

**13 of 13 killed.** Each mutant was applied alone to one file of the branch's production bytes (the same bytes as the first commit and as the head, which adds a test only), the rows were run, and the file was put back with its sha256 checked (`restored=yes` for all 13). Each run is `tests/test_value_pattern_line_break.py` plus `tests/test_family_member_name.py::test_every_spelling_of_the_member_name_rule_is_the_same_pattern`, git 2.43.0.

| Mutant | File | Killed by |
|---|---|---|
| M1 `DATE_RE` back to `$` | `validate-manifest.py` | 2: `test_a_pattern_refuses_its_value_and_a_line_feed[manifest-DATE_RE]`, `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[elected_on]` |
| M2 `QUALIFIED_RE` back to `$` | `validate-manifest.py` | 3: `...[manifest-QUALIFIED_RE]`, `...[leg-repository]`, `test_every_spelling_of_the_member_name_rule_is_the_same_pattern` |
| M3 the id read with `.match` | `validate-manifest.py` | 2: `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[id]`, `test_adopt_check_names_a_plan_id_that_ends_in_a_line_break_as_an_id` |
| M4 `DATE_RE` back to `$` | `validate-family.py` | 2: `...[family-DATE_RE]`, `test_a_family_value_that_ends_in_a_line_break_is_a_finding[created_on]` |
| M5 `QUALIFIED_RE` back to `$` | `validate-family.py` | 3: `...[family-QUALIFIED_RE]`, `...[member-repository]`, `test_every_spelling_of_the_member_name_rule_is_the_same_pattern` |
| M6 the id read with `.match` | `validate-family.py` | 1: `test_a_family_value_that_ends_in_a_line_break_is_a_finding[id]` |
| M7 `MEMBER_RE` back to `$` | `scripts/family.py` | 2: `...[family.py-MEMBER_RE]`, `test_every_spelling_of_the_member_name_rule_is_the_same_pattern` |
| M8 a member's id read with `.match` | `scripts/family.py` | 1: `test_add_refuses_a_member_whose_id_ends_in_a_line_break` |
| M9 `DATE_RE` back to `$` | `scripts/shape_advisory.py` | 1: `...[shape_advisory-DATE_RE]` (its pattern row alone: `date.fromisoformat` refuses the line feed after the pattern, so no tool row sees it) |
| M10 `REPOSITORY_RE` back to `$` | `update-shape.py` | 3: `...[update-shape-REPOSITORY_RE]`, `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]`, `test_an_upstream_passed_with_a_line_feed_is_named_as_passed` |
| M11 `prepare` passes no pin | `update-shape.py` | 3: `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]` and `[space]`, `test_a_pins_source_checked_value_refuses_is_named_as_the_pins` |
| M12 `checked_value` names `--upstream` again | `update-shape.py` | 1: `test_a_pins_source_checked_value_refuses_is_named_as_the_pins` |
| M13 the pin's refusal sentence removed | `update-shape.py` | 2: `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]` and `[space]` |

No mutant is added for the stand-in in `tests/test_update_shape_unreadable.py`: it is a test change.

The independent review re-ran M3, M8, M11 and M12, and one mutant of its own (X1: `prepare` names the pin even when `--upstream` is passed). All five were killed, and each file was put back with its sha256 checked. The other nine of the 13 are this writer's runs alone.

**The second commit's guard: 6 of 6 probes caught.** Each was applied alone to one tracked file at `5102b4294`, `test_every_reader_of_the_id_pattern_is_in_the_table` was run, and the file was put back with its sha256 checked (`restored=yes` for all six). The first commit's guard, `test_every_spelling_of_a_value_pattern_is_in_the_table`, was run with each plant too: it passes every one of them, which is the gap the second guard closes.

| Probe | File | The new guard | The first guard |
|---|---|---|---|
| P1 a new `PROJECT_ID_RE.match(value)` reader appended | `update-shape.py` | failed: `('update-shape.py', 'match'): 1` is more than the table holds | passed |
| P2 a new `repo_shape.PROJECT_ID_RE.search(value)` reader appended | `scripts/shape_advisory.py` | failed | passed |
| P3 `fullmatch` back to `match` | `templates/assembly-root/scripts/validate-manifest.py` | failed | passed |
| P4 `fullmatch` back to `match` | `templates/family-root/scripts/validate-family.py` | failed | passed |
| P5 `fullmatch` back to `match` | `scripts/family.py` | failed | passed |
| P6 main's bytes of those three files together (the 20th row above) | the three | failed | not run |

**The second commit `5102b4294` (dirty=0)**, Python 3.12.3, with the same stub `gh`, bogus token and no global git config:

| Run | Git | Result |
|---|---|---|
| `tests/test_value_pattern_line_break.py` | 2.43.0 | **30 passed** in 23.00s |
| `tests/test_value_pattern_line_break.py` | 2.47.1 | **30 passed** in 23.30s |
| `tests/test_pinned_copy_text.py`, `tests/test_path_guard_hygiene.py`, `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py` | 2.43.0 | **306 passed** in 61.54s |

That commit changes only the test file (62 lines added, no assert that joins conditions with `and` or `or`, ASCII), so the first commit's runs below are not repeated: they hold the production files and every other test file, and those are unchanged. CI on `5102b4294`, and an independent look at the second commit, were not done when this was written.

**The independent review of the first commit** (rv1166c, READY, read-only) reports these gates on `2593952c9`, all passing: the stand-in gate's 6 files (298 passed), the new file on 2.47.1 (29 passed), the five hygiene files (306 passed), 15 more test files that name a changed function, pattern or code (1611 passed, 19 skipped) and `tests/test_shape_doctor.py` (445 passed, 3 skipped). It also read CI on that head at about 20:04Z: `tests` (the full suite on 3.14), `tests-git-bash`, `package` and SonarCloud all passed.

**The first commit's gates ran on `2593952c` (dirty=0)**, Python 3.12.3, with the real `gh` unreachable (a stub first on `PATH`, a bogus token) and no global git config:

| Run | Git | Result |
|---|---|---|
| the files that held every failure and setup error of the shards below: `tests/test_family.py`, `tests/test_update_shape_pr_base.py`, `tests/test_update_shape_unreadable.py`, `tests/test_update_shape_header_comments.py`, `tests/test_update_shape_messages.py` and the new `tests/test_value_pattern_line_break.py` | 2.43.0 | **298 passed** in 343.60s |
| `tests/test_value_pattern_line_break.py` | 2.47.1 | **29 passed** in 21.31s |
| `tests/test_pinned_copy_text.py`, `tests/test_path_guard_hygiene.py`, `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py` | 2.43.0 | **306 passed** in 69.12s |

**The two shards, on the uncommitted tree** holding the same production bytes as the first commit (the 7 files' sha256 checked before and after), git 2.43.0: the validators' test files, the `REPOSITORY_RE`/`source_repository` files and the `update-shape.py`, `shape_advisory.py` and `family.py` files, 125 in all.

- shard 1 (62 files): 4 failed, 5290 passed, 13 skipped in 56 min;
- shard 2 (63 files): 3 failed, 4 setup errors, 3761 passed, 29 skipped in 50 min.

Every failure and setup error is in the five existing files of the first row of the table above, which all pass on the first commit:
- 2 were real: `test_a_read_refused_in_prepare_closes_the_upstream[check|apply]`, the `opening(spec)` stand-in under the two-argument call. The stand-in is fixed in the first commit.
- The other 5 failures and the 4 setup errors were `update-conflict` on `scripts/validate-family.py` ("not a verbatim copy ... at the pinned commit"). This is an artifact of an uncommitted tree: `tests/test_family.py`'s `upstream_clone` commits the working tree into its clone, while `family.py init` pins the holder at the real `HEAD`, so an uncommitted `templates/family-root/` file is never verbatim at its pin. On the first commit they pass.

Every other file of the two shards passed on these production bytes, so the shards were not re-run.

`git merge-tree --write-tree <other> 5102b42` (git 2.43.0) at 2026-10-23T12:08Z, after re-fetching main (still `961640c6`; read again at 12:10Z, just before the push) and re-listing the open PRs at 12:02Z (55 open). Main has moved from the `038dafba` that this body measured to `961640c6` by one file, `docs/release-notes/v1.2.0.md`. Each open PR that touches one of this PR's 8 paths, at its current head, plus #1126:

| Against | Head | Shares | Result |
|---|---|---|---|
| origin/main | `961640c6` | | clean, tree `4613729516ff` |
| #1098 | `dad7961a` | `scripts/family.py` | clean, tree `4d1ff9517588` |
| #1117 | `10dc011c` | `scripts/family.py` | `scripts/family.py` merges clean; conflict in `docs/handbook.html` only, which this PR does not touch (see below) |
| #1124 | `8dfa32bd` | `validate-family.py` | clean, tree `cb2ec1073646` |
| #1126 | `4c1f80cf` | none (its `scripts/repo_shape.py` and tests) | clean, tree `e82c8945ac37` |
| #1133 | `a7bfee1b` | `update-shape.py` | clean, tree `a710870d1ffc` |
| #1144 | `89486f69` | `scripts/shape_advisory.py` | clean, tree `2d3e3e1ef43d` |
| #1147 | `b75babee` | `validate-manifest.py` | clean, tree `a82ac3b47a3f` |
| #1159 | `66e68f94` | `scripts/shape_advisory.py` | clean, tree `4abeb7b38665` |
| #1164 | `74096eb4` | `scripts/family.py` | clean, tree `ee285e1cb8cf` |
| #1172 | `5aa0f116` | `validate-family.py` | clean, tree `aa32d41e6e2c` |
| #1187 | `cc8a87ee` | `update-shape.py`, `tests/test_update_shape_unreadable.py` | clean, tree `25711eb1cac4` |
| #1201 | `eac177af` | `scripts/family.py` | `scripts/family.py` merges clean; conflict in `docs/handbook.html` only (see below) |

- #1117 and #1201 conflict in `docs/handbook.html` alone. #1201 is stacked on #1117 (their merge-base is #1117's head `10dc011c`). Each of them against origin/main alone gives the same conflict in the same file, so it is theirs: #1117's, from its older base `6da757cb`, which #1201 inherits.
- #1187 and #1201 are new since the first merge-trees. #1187 shares `tests/test_update_shape_unreadable.py` with this PR; its diff adds or removes no line that names `open_upstream`, `def opening` or `REPOSITORY_RE`, so it brings no one-argument stand-in for the two-argument call. That was read for all 55 open heads at 12:12Z; only this PR's own lines name them.
- No other open PR adds or removes a call of a method of `PROJECT_ID_RE`, which the second guard counts: the lines each of the 55 open heads adds or removes outside `tests/`, `docs/` and `*.md` were read at 12:04Z. Only this PR's own name it, and #1201's one new `MEMBER_RE.fullmatch` is another pattern. So a sibling landing first does not move the guard's table.

Each is a candidate for its own issue. They come from the independent review (rv1166c, READY at `2593952c9`, issuecomment-6352173084), which measured each of them on main and at the head unless the item says it did not. The review's finding numbers are in brackets.

- **The naming-policy patterns [1].** `scripts/repo_shape.py` reads the families, the roles and the topic pattern of `contracts/repository-naming.yaml` with `.match` (`family["_re"].match(name)`, `family["_split_re"].match(name)`, `role["_re"].match(name)`, and `topic_pattern`, which defaults to `^xf-project-[a-z0-9-]+$`). `validate-repository-naming.py --project project.yaml` runs in the root template's `Makefile` and `validate.yml`. At the head, and on main, it exits 0 on a leg `repository: "testorg/Atlas\n"` and prints the line feed inside its table; `-spec` and `-code` the same. The project's gate as a whole still fails, because `validate-manifest.py` now refuses that manifest.
- **`update-upstream-not-a-repo` with a pin [3].** With no `--upstream`, a pin whose `source_repository:` names a folder that exists and is no repository (the review measured `contracts` and `scripts/repo_shape.py`) is `REFUSED update-upstream-not-a-repo: --upstream contracts exists but is not a git repository`, exit 2, on main and here. `pin_path` is in scope at `update-shape.py:686-687`, so that refusal can name the pin as `update-upstream-unresolvable` now does.
- **A pin's line feed when `--upstream` is passed [9].** `update-shape.py check --upstream <clone>` over a pin whose `source_repository:` ends in a line feed exits 0, `nothing to do`. The value is kept as `upstream.repository`, which reaches the README shape line's check, `apply`'s commit subject and the pull request words (`update-shape.py:2525`, `3017` and `5121`). The review measured `check`, not `apply`. It belongs with the previous item.
- **A member row's `id:` [4].** On main, `add` of a member whose `project.yaml` reads `id: "irqs\n"` commits the row `id: "irqs\n"`, and the holder's `validate-family.py` then says `family ok`. Under mutant M8 (this branch with main's `.match` in `add`) the same row is written, and the gate still says `family ok`. By code reading, not measured end to end: `validate-family.py` compares a row's id with the member manifest's by `str` equality (`member-id-mismatch`, `validate-family.py:1608`), and `_check_member_ids_unique` does the same, so neither asks `PROJECT_ID_RE` of a row. This PR makes `add` refuse such a member, so no new holder gets such a row.
- **Values that no pattern reads [8].** The review's sweep found these `manifest ok` or `family ok`, exit 0, with a trailing line feed, at the head and on main alike:
  - in `project.yaml`: `name`, a spec or code leg's `path`, `shape.repository` and `shape.digests.digest_algorithm`;
  - in `family.yaml`: `org`, the family's own `repository`, `tracking_branch`, and the shape's and each member pin's `digest_algorithm`.

  No `^...$` pattern reads them, so they are not this PR's. A leg's `path` is checked only by `_leg_path_findings`, which asks no pattern, and the family's `tracking_branch` is refused in `project.yaml` (`manifest-tracking-branch`, U+000A) but not in `family.yaml`. `shape.commit` and `tree_sha256` with a line feed are also `manifest ok`; that is #1126's.

The first commit's message says "the three readers of an id from a file ask it with `fullmatch` (`manifest-id`, `family-id`, `member-bad-id`)". That is true of those three, but it reads as if there were no others [2]. What the review measured instead:
- `adopt-project.py` still reads the id derived from `legs.assembly` (`:6780`) and the plan's `id:` (`:6791`), both `plan-bad-id`, with `.match`;
- neither lets a line feed through. A plan `id: "northwind\n"` is `plan-manifest-invalid`, now in `manifest-id`'s words. A plan with no `id:` and `legs.assembly: "NorthWind\n"` is `REFUSED unsafe-value: legs.assembly is 'NorthWind\n'`, exit 2, before the derived id is asked, on main and here alike.

So it is the wording alone that overstates. The second commit's `ID_READERS` lists both readers with that reason.

The title's pin clause is the narrower one (the pin's name only where the value is no path and no `owner/repo` name), and two inputs change from `unsafe-value` to `update-upstream-unresolvable` (see "Behaviour changed", above).

Review: rv1166 and rv1166c, lane 5's independent opus reviewers, at `2593952c` (issuecomment-6352173084); then rc1166b, lane 5's independent sonnet re-checker, which wrote none of #1166: READY at `5102b429`, H0 of this landing (issuecomment-6371408915), with no MUST or SHOULD; its NITs 1 and 2 are corrected in the body. CI (Brett Heap's ruling 27 and his fast-refresh ruling of 2026-10-15T22:48:35Z): H0 5102b42 passed tests, tests-git-bash and SonarCloud; the head 5c8afef is a clean update-branch merge of main 93d2931, with tests-git-bash and SonarCloud green; and the local gate passed on its predicted squash tree 3c89065 over main 11560eb: the family_init_values, update_shape_unreadable, value_pattern_line_break, repo_hygiene, agents_md_codes, cli_reference sets, 365 passed, 19 skipped. Landed on Brett Heap's word of 2026-10-23T13:10:26Z, relayed to every lane by lane 3 (#473 issuecomment-6365697123): "merge v1.2.1 PRs once reviewed and green".

Closes #1139

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Nov 10, 2026
…not text as `_read_as` says what the plan's reader read, "records `commit:` as the number 7", where it spelled it as Python does, `commit: 7` and `True`, so `check` and `execute` name it in the words the plan's other refusals use under the same `plan-pin-malformed` (#1114) (#1198)

This PR lands only after the v1.2.0 tag, on Brett's word.

## What

`_pin_row_problem` holds each of a pin's five fields (`product`, `repository`, `commit`, `tree_sha256`, `digest_source`) to text. A value that is not text it spelled with Python's `repr`: a number as `commit: 7`, a boolean as `True`, a list as `['a', 'b']` and a mapping as `{'k': 'v'}`. Every other refusal of a plan's value says what the reader read, with `_read_as`: "the number 7", "the boolean true", "a list of 2 item(s)", "a mapping of 1 key(s)". W1020 found the gap while working on #1020.

It says it that way now, field by field, in `adopt-project.py`'s `_pin_row_problem`, in the `not_text` branch only:

- one field: ``records `commit:` as the number 7, which is not text``
- two or more: ``records `commit:` as the number 7, `tree_sha256:` as the boolean true, which are not text``

What stays as it was:

- the code, `plan-pin-malformed`, the remedy, and the sentence's ending, `which is not text`;
- every text value's spelling, byte for byte (`commit: '7'`, which is not 40 hex);
- a null or a blank: it is "records no `commit:`" under the code it has always had, and no value is spelled there.

Every field takes the one site (`PIN_FIELDS`). The docstring and a comment say so. The change is 13 lines added and 4 removed in `adopt-project.py`.

## Behaviour change

A pin field that is a number, a boolean, a list or a mapping is named by what it was read as, where it was named as Python spells it. A text value, a null and a blank print as they did.

## Rows

`tests/test_adopt_pin_row_values.py` is new, ASCII only, with 45 rows. Each runs `check` and then `execute --yes`, with a stub `gh` first on PATH and `--local-remote-dir`, and asserts one finding, `execute` refusing with that same finding, an empty `gh` log, no remotes directory made and no Traceback.

| Group | Rows | On main's code | On this head |
| --- | --- | --- | --- |
| The matrix: 5 fields by number, boolean, list, mapping | 20 | 20 failed | 20 passed |
| The whole sentence: `commit: 7`, and a boolean `digest_source` | 2 | 2 failed | 2 passed |
| Edge forms: 0, false, 7.5, -3, 007, `[]`, `{}`, `[a]` | 8 | 8 failed | 8 passed |
| Two fields at once, a non-text commit beside bad text, entry 2 | 3 | 3 failed | 3 passed |
| Null and blank controls | 6 | 6 passed | 6 passed |
| Text controls (`commit: "7"` and `"true"`, another product, no owner, short digest, source by hand) | 6 | 6 passed | 6 passed |
| **All** | **45** | **33 failed, 12 passed** | **45 passed** |

Every one of the 33 failures is the finding text holding the repr spelling (``records `commit: 7` ``, `True`, `['a', 'b']`, `{'k': 'v'}`, `{}`, `[]`). There is no crash or other cause. The 12 that pass on main are the controls, which pin what must not change.

Two existing rows pinned the old spelling, and no others did. Each now expects the new one, and both pass on this head (2 passed):

- `tests/test_adopt_pins.py`, the `a-number-commit` row: `` `commit:` as the number 1234567 ``;
- `tests/test_adopt_plan_value_order.py`, the `not-text` row: `` `digest_source:` as the number 7 ``.

## Mutants

19 mutants of this head's `adopt-project.py`, all killed. Each was run against the new file (first failure with `-x`, or a whole run where the table says so), and each run was restored with its sha256 checked.

| Mutant | Result |
| --- | --- |
| M1: main's repr form put back | killed, 33 failed and 12 passed |
| M2: `!r` inside the new "as" form | killed, 33 failed and 12 passed |
| M3: `str()` in place of `_read_as` | killed |
| F-repr-product, F-repr-repository, F-repr-commit, F-repr-tree_sha256, F-repr-digest_source: repr put back for one field only | 5 of 5 killed, each by that field's own rows |
| M4: "is" in place of "as" | killed |
| M5: singular and plural swapped | killed |
| M6: only the first field named | killed |
| M7: `missing` takes any falsy value (an existing guard; the zero, false and empty rows pin it) | killed |
| M8: only a list and a mapping counted as not text | killed |
| M9: the ending without "how it was read" | killed |
| M10: the code `plan-pin-unrecorded` | killed |
| T1 to T4: the text branches unquoted (commit, product and repository, digest, source) | 4 of 4 killed |

## Gate

A scratch merge of this head `d38e4e36d` with main `961640c68`: commit `1ef3f0783`, tree `b12197610`, which is this head's own tree. Targeted files only, in the landing gate's environment (a stub `gh` first on PATH, `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`, an empty global git config). The set is 47 test files: every one that names `plan-pin-malformed`, `plan-pin-unrecorded`, `_pin_row_problem`, `_read_pins` or `pins:`, the new file, and `test_path_guard_hygiene.py`, `test_repo_hygiene.py` and `test_scaffold_leg_path_collisions.py`; and `test_shape_doctor.py` (448 ids, each in exactly one shard, run from a script that reads each list into an array because 25 ids hold spaces). Every chunk exited 0, with 0 failed.

| Chunk | Files | Result |
| --- | --- | --- |
| f01 | `test_adopt_pins.py` | 150 passed |
| f02 | `test_adopt_plan_yaml_quoting.py`, `test_adopt_plan.py` | 606 passed, 1 skipped |
| f03 | `test_adopt_execute_refusals.py`, `test_adopt_pin_row_values.py`, `test_adopt_plan_escapes.py`, `test_adopt_plan_value_order.py`, `test_adopt_reencoded_files.py`, `test_adopt_root_symlinks.py`, `test_adopt_shape_pin_and_work_dir.py`, `test_adopt_template_values.py` | 661 passed, 3 skipped |
| f04 | `test_bump_remedies_family_root.py`, `test_chain_link_fold.py`, `test_chain_pin_sources.py`, `test_chain_remedy_callers.py`, `test_doctor_gitlink_repairs.py`, `test_doctor_recorded_answers.py`, `test_family_add_member_id.py`, `test_family_makefile_siblings.py` | 255 passed |
| f05 | `test_family_tracking_branch.py`, `test_legs_not_a_list.py`, `test_link_source_chain_defaults.py`, `test_manifest_validator.py`, `test_naming_policy.py`, `test_neutral_pin_entry_one_spelling.py`, `test_neutral_pin_validator.py`, `test_non_list_project_fields.py` | 757 passed |
| f06 | `test_path_guard_hygiene.py`, `test_pin_annotated_tag.py`, `test_pin_source_env_collisions.py`, `test_pinned_copy_text.py`, `test_reader_refusals_named.py`, `test_repo_hygiene.py`, `test_scaffold_e2e.py`, `test_scaffold_leg_path_collisions.py` | 599 passed |
| f07 | `test_scaffold_pin_and_reuse.py`, `test_scaffold_pin_collisions.py`, `test_scaffold_referent_chain_links.py`, `test_setup_project_py.py`, `test_template_text_placeholders.py`, `test_update_shape_add_ignored.py`, `test_update_shape_landing.py`, `test_validate_pins_named_and_spelled.py` | 1078 passed |
| f08 | `test_yaml_flow_brackets.py`, `test_yaml_flow_quotes.py`, `test_yaml_indicator_openers.py`, `test_yaml_reader_spaces.py` | 813 passed |
| d01 | `test_shape_doctor.py`, 56 ids | 56 passed |
| d02 | the same, 56 ids | 56 passed |
| d03 | the same, 56 ids | 56 passed |
| d04 | the same, 56 ids | 56 passed |
| d05 | the same, 56 ids | 56 passed |
| d06 | the same, 56 ids | 56 passed |
| d07 | the same, 56 ids | 56 passed |
| d08 | the same, 56 ids | 53 passed, 3 skipped |

The file chunks hold 4919 passed and 4 skipped (f02: `SHAPE_MEDXEHR_CLONE` is unset; f03: the reftable backend needs git 2.45). The doctor shards hold 445 passed and 3 skipped (d08: the PowerShell line is printed only on a Windows host). In all, **5364 passed, 7 skipped, 0 failed.**

**Run on the merge with #1125's head.** A scratch merge of this head with #1125's head `9549006fe`: commit `8a291d8b2`, tree `88530bb7`. The new file (45), `test_adopt_pins.py` (150), `test_adopt_plan_value_order.py` (40), `test_adopt_execute_refusals.py` (181) and `test_adopt_check_plan_name.py` (45): **461 passed.**

## Merge-trees

`git merge-tree --write-tree`, this head against each, all clean (exit 0), at the heads of 2026-10-23T08:20Z:

- `origin/main` `961640c68`;
- the 23 open PRs that touch `adopt-project.py`: #1194 `900f77af9`, #1190 `00f959c61`, #1189 `4d40ce9fd`, #1186 `07486a498`, #1180 `b316f4157`, #1178 `c4beba193`, #1177 `5208e874e`, #1171 `8162b874e`, #1170 `24ee133aa`, #1169 `258051022`, #1154 `8a7828332`, #1153 `ff33ba12a`, #1143 `7af5fabc3`, #1141 `7a2711d03`, #1125 `9549006fe`, #1123 `5c3908f8d`, #1122 `c01c4d73d`, #1121 `1c5173758`, #1120 `c55e55e33`, #1119 `bba168bdd`, #1118 `2307036ab`, #1106 `504a1dd65`, #1105 `b28f40de0`;
- #1126 `4c1f80cf4`, which touches `tests/test_adopt_pins.py`.

## This PR needs no #1125

#1125 (for #1020) makes `_read_pins` say an entry that is not a pin as `_read_as` says it. Its `adopt-project.py` hunks are at the `_read_pins` docstring and at the non-dict entry's `{row!r}` (about line 625 on main), and they do not touch `_pin_row_problem`. Its test hunks do not overlap the lines this change edits. The two are textually independent: this PR is based on main, not stacked, the merge-tree with #1125's head is clean, and the run above on the merge with its head passed.

An entry that is neither a name nor a mapping stays #1020's, in #1125.

## Not in this PR

The other `repr` in the pin rows are on a value that is text by then: the later branches of `_pin_row_problem` (spelled as before), a text product in an entry's name, and an entry that is a name. They are not gaps.

`docs/release-notes/v1.2.0.md` is left alone. Its lines 297 to 299 mention #901's pins wording, and the release owner may want a line there.

## Out of scope

Four other places in `adopt-project.py` put a plan value of any type into a refusal with `!r`, as the pin rows did: `plan-wrong-kind`, `plan-unsupported-mode`, `plan-bad-leg` and `plan-bad-id`. They are not pin rows, so this change leaves them. They were found by reading the code, not by running it. They are filed as #1199, with each site's line and what it would print.

Closes #1114

Lane: openreposhape-4 (openRepoShape-4)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Nov 10, 2026
…able character, which a terminal draws as nothing, is spelled by its code point in `plan`'s lines and in the `unsafe-value` refusal, so a branch `ma<U+034F>in` no longer prints as `main` (#1128) (#1171)

**It was stacked on #1120,** which landed as `6740776`. RS1171 then restacked it onto `main`: it merged #1120's final head, then its squash, then `main` as `main` moved, and the result carries exactly the reviewed change (#1171 issuecomment-6752897940).

## What was wrong

`_shown` printed a name as it is wherever `str.isprintable()` passed it, and `_spelled_character` wrote such a character as it is. `str.isprintable()` passes 267 of Unicode's Default_Ignorable_Code_Point characters, which a terminal draws as nothing: 263 combining marks, among them U+034F and the variation selectors, and the four Hangul fillers, among them U+3164. Git takes each in a branch or a path, so a source on `ma<U+034F>in` printed in `plan`'s `source` line (#1120's) as `(main)`. `checked_value`'s `unsafe-value` refusal names the value with `repr`, which printed U+3164 raw on stderr the same way. RV1120 found both (#1120 issuecomment-6319321596).

## What changed

- `scripts/repo_shape.py`:
  - `DEFAULT_IGNORABLE_RANGES`: the property's 27 lines of `DerivedCoreProperties.txt`, joined into 17 ranges, 4174 code points. The table is the same in Unicode 14.0.0, 16.0.0 and 17.0.0, and is written into the code with a citation, not asked of `unicodedata`. CI runs Python 3.14 and the bench 3.12, and their `unicodedata` differ.
  - `DEFAULT_IGNORABLE`, one character of the table as a pattern.
  - `code_point_escaped`, taken out of `_escaped`, which writes exactly what it wrote before.
  - `visible_repr`: `repr` with each default-ignorable character written as its code-point escape.
  - `checked_value`'s `unsafe-value` refusal names the value with `visible_repr`: `'ma\u3164in'`, where it said `'ma<U+3164>in'`.
- `adopt-project.py`:
  - `_shown` spells a name that holds a default-ignorable character, whatever `str.isprintable()` says of it: `` `ma\u034fin` ``.
  - `_spelled_character` writes one as its code-point escape, which the plan's reader reads back as the character.
  - `_shown`'s signature, and its output for every other character, are unchanged, so #1120's and #1154's rows still pass.

`scripts/repo_shape.py` is a shape copy that every root digest-pins, so this change shows every project an `upstream-changed` row, as every change to it does. The new names are used inside the file itself: `checked_value` calls `visible_repr`. No pinned copy calls `checked_value` (`validate-family.py` only names it in a comment); the change is in `scripts/repo_shape.py` because `checked_value` lives there, so its refusal cannot change without the `upstream-changed` row. No pinned script imports a new name, so the skew rule in `test_pinned_copy_text.py` holds, and its list of names a kept `repo_shape.py` may lack, `NEWER_THAN_A_KEPT_LIBRARY`, now holds the four, so it refuses a pinned script that imports one. No sentence in README.md, AGENTS.md or the handbook describes these helpers.

## Tests

`tests/test_adopt_shown_default_ignorables.py` (new, 48 rows, ASCII only; every character outside ASCII is written as an escape):

- The table against `DerivedCoreProperties.txt`, listed again line by line in the test, so no row depends on the Python's Unicode data.
- The compiled `DEFAULT_IGNORABLE` against the table, over all 0x110000 code points: not one more, not one fewer (RV1171's N1).
- All 4174 code points through `_shown`, `_spelled_character` and `checked_value`'s refusal.
- A value that holds three, `m` U+034F `a` U+3164 `in` U+FE0F, through `checked_value`'s refusal and `_shown`: each is written as its escape and none is raw (RV1171's S1).
- The issue's characters (U+034F, U+3164, U+FE0F, and the controls U+200B, U+2060 and U+180E, which were spelled already) through `_shown`, through a read back of the plan, and end to end through `plan`. In `plan`, they appear in the `source` line, the tracking-branch NOTE, a path in the table, and the `unsafe-value` refusal on stderr.
- The rows RV1120 asked for on #1120's `source` line (#1128 items 2 and 3):
  - `feat/caf\u00e9` prints as it is;
  - a branch named `` `main` ``, backticks included, is spelled `` `\x60main\x60` ``;
  - the branch that is not UTF-8 is spelled `` `caf\udce9` `` under a `utf-8:surrogateescape` stdout, where main wrote the byte 0xE9 itself.

`tests/test_adopt_spelled_unambiguous.py`: its two sweeps of every character take the default-ignorables apart and hold each to its escape.

`tests/test_pinned_copy_text.py`: `NEWER_THAN_A_KEPT_LIBRARY` holds the four new names, so the skew rule refuses a pinned script that imports one (RV1171's N3).

Counts for the new file:

| Code | Result |
|---|---|
| main `961640c68` | 28 failed, 20 passed |
| #1120 alone `c55e55e3` (the 10 `source`-line and item 2-3 rows) | 3 failed, 7 passed |
| this head | 48 passed |

- On main, every failure is for the right reason:
  - the table is missing;
  - 267 characters come back raw from `_shown`, `_spelled_character` and the refusal, and the three in one value are raw in both;
  - the compiled pattern is missing too;
  - the raw bytes are in the `source` line, the NOTE, the table and stderr;
  - `` (`main`) `` is printed as it is;
  - `caf\xe9` is on stdout.
- The 20 rows that pass on main are the controls: the three format characters, the printable names and `feat/caf\u00e9`.
- On #1120 alone, the 3 failures are U+034F, U+3164 and U+FE0F in the `source` line. **Items 2 and 3's three rows pass on #1120 alone: they pin #1120's code**, which is right in each case. They kill RV1120's mutants E (`_spelled` for every branch outside ASCII) and N (`str.isprintable()` alone, with no backtick rule).

## Sweep

Run with `/usr/bin/python3` 3.12.3 (Unicode 15.0.0), against #1120's head `c55e55e3`, whose helpers are main's:
- Of the 4174 default-ignorable code points, 267 pass `str.isprintable()` (263 Mn, 4 Lo). Raw on the base: 267. Raw on this head: 0.
- Of the 148731 printable code points that are not default-ignorable, none is spelled on this head.
- For every code point that is not default-ignorable, `_shown`, `_spelled_character` and `visible_repr` give the same output as the base's `_shown`, `_spelled_character` and `repr`: 0 differ.

## Mutants

Each ran against the new file, `test_adopt_spelled_unambiguous.py` and #1120's `test_adopt_plan_source_branch_shown.py` (212 rows). Each file was restored afterwards and its sha256 checked.

| Mutant | Result |
|---|---|
| The table empty | killed: the pattern no longer compiles, so every row errors |
| The table's pattern matches nothing | killed, 20 rows fail |
| The range U+115F-U+1160 dropped | killed, 3 rows fail |
| The range U+1D173-U+1D17A dropped | killed, 1 row fails (the table row) |
| The escape removed from `_spelled_character` | killed, 18 rows fail |
| `checked_value` back on `repr` | killed, 4 rows fail |
| The compiled pattern runs one past each range, the table unchanged | killed, 1 row fails (the compiled-pattern row) |
| `visible_repr` escapes only the first match (`count=1`) | killed, 1 row fails (the three-in-one row) |
| A pinned script (`validate-family.py`) imports `visible_repr` | killed, 1 row fails (the skew rule's `validate-family` row); passes on the old list |

## Gate

On a scratch merge commit of `origin/main` `038dafba9`, #1120's `c55e55e3` and this head (`39cb15180`), in the landing gate's environment with a stub `gh`:
- 94 test files, 9806 ids, in 6 shards: every test file that mentions `_shown`, `_spelled` or `unsafe-value`, with `test_tracking_branch_ref.py`, `test_pinned_copy_text.py`, `test_adopt_plan_escapes.py`, `test_stdout_encoding.py`, `test_non_utf8_name_callers.py`, `test_path_guard_hygiene.py`, `test_repo_hygiene.py` and `test_scaffold_leg_path_collisions.py`. 9777 passed, 29 skipped, 0 failed.
- `test_shape_doctor.py`, 448 ids in 8 shards from `mapfile` lists: 445 passed, 3 skipped, 0 failed.
- On a merge of main, #1120, this head and #1154, the rows of #1154, of #1120 and of this PR: 166 passed, 1 skipped.
- Fix round 1 (RV1171's S1, N1 and N3), test-only, so no doctor shards: on a scratch merge `331dc93c7` of `origin/main` `961640c68` and `8162b874e`, `test_adopt_shown_default_ignorables.py`, `test_adopt_spelled_unambiguous.py`, `test_pinned_copy_text.py`, `test_adopt_plan_source_branch_shown.py`, `test_stdout_encoding.py`, `test_path_guard_hygiene.py` and `test_repo_hygiene.py`: 496 passed, 1 skipped, 0 failed.

## Merge-trees

`git merge-tree` of this head with `origin/main` is clean. So is each of the 13 other open PRs that touch `adopt-project.py` or `scripts/repo_shape.py`, against both this head and the scratch merge: #1154, #1153, #1143, #1141, #1126, #1125, #1123, #1122, #1121, #1119, #1118, #1106 and #1105.

Fix round 1: `git merge-tree` of `8162b874e` with `origin/main` and with #1105 (the one other open PR that touches `tests/test_pinned_copy_text.py`) is clean, and so is the scratch merge with #1105.

## Out of scope: filed separately by the lane

The other helpers that test only `str.isprintable()`, or use `repr`, let the same characters through. They are:
- the `repr`-based `_shown` copies in `validate-repository-naming.py`, `validate-manifest.py` and `validate-pins.py`, and `repo_shape.shown_path`;
- `shape_materialize.py`'s `-`-leading `unsafe-value` refusal;
- `repo_shape.double_quoted`, which writes them raw into the plan file;
- `adopt-project.py`'s `_worded`, `_line_shown`, `unwritable_values` and `_refuse_an_unwritable_clone_url`.

They are filed separately by the lane as #1165 (see #1165), and are untouched here.

Closes #1128

Lane: openreposhape-4 (openRepoShape-4)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Nov 11, 2026
…tHub's limits (an owner over 39 characters, a repository over 100) names no `org/repo`, by the rule `_github_name` reads a typed name by, so `plan --org testorg` is no longer told to pass `--org <40 c's>`, `check` holds the plan alike with `origin` there or gone, and the doctor's adoption line asks for `--org` (#1211) (#1304)

A local source whose `origin` names an owner over 39 characters or a
repository over 100 (GitHub's limits, `GITHUB_OWNER_MAX` and
`GITHUB_NAME_MAX`) names no `org/repo` now, as a path `origin` does.
`url_repository`, the one reading of an `origin`, which
`adopt-project.py` and `shape-doctor.py` both ask, asked neither limit,
though `_github_name` asks both of a typed or recorded `owner/repo`
(#1129). So `plan --org testorg` on a clone whose `origin` is
`https://github.com/<40 c's>/Thing.git`, or the same on gitlab.com, was
refused `adopt-not-the-source` and told to run `plan` again with `--org
<40 c's>`, which `execute` refuses as `adopt-org-too-long` (a repository
of 101 was told `--project <101 r's>`); `plan` with no `--org` wrote
`org: <40 c's>`, which `execute` also refuses; `check` held a plan to
that name while `origin` was there (`plan-not-the-source`) and to
nothing once it was gone (`plan ok`); and the doctor's adoption line for
such a clone, `the way in`, carried no `--org`, as it read `<40 c's>` as
`plan` did.

Now `plan --org testorg` writes the plan (exit 0) with `repository:
null` and offers nothing; `plan` with no `--org` is `adopt-no-org`
("pass --org <org>"), as for a path `origin`; `check` says `plan ok`
with `origin` there or gone, and `execute` without `--yes` says
`adopt-unconfirmed` either way; and the doctor's line ends `--org
<your-org>`, with its why, "this repository's `origin` names none that
`plan` can read", as for a path `origin` (#545), so the line and `plan`
still read one answer. Nothing changes at the limits: an owner of 39 and
a repository of 100 are read as before, by `plan`, `check` and the
doctor.

The rule is one function, `repo_shape.github_can_hold(owner, repo)`: an
owner of at most `GITHUB_OWNER_MAX` and a repository of at most
`GITHUB_NAME_MAX`, counted once one trailing `.git`, in any case, is
dropped. `_github_name` hands it the repository as written, with the
answer its own count gave for every spelling, and `url_repository` hands
it the last segment of the url's path as written, `.git` and all, so an
`origin` and the same `owner/repo` typed get one answer:
`https://github.com/testorg/<100 r's>.git.git` names nothing, as
`testorg/<100 r's>.git.git` names nothing to `_github_name`. The two
limits were defined in `shape_materialize.py`, which imports from
`repo_shape.py`; `repo_shape.py` cannot import back, and is copied alone
into every assembly root and family holder. So they are defined in
`repo_shape.py` now, and `shape_materialize.py` imports them, as it
imports `TOPIC_PREFIX`; every other importer still reads them from
`shape_materialize`. `repo_shape.py` is digest-pinned in every estate,
and v1.2.1 already changes it (#1126, #1266 and #1274 since the v1.2.0
tag), so this adds no re-pin of its own.

The limits go in `url_repository`, not `_remote_repository`, as the
issue left to settle. With them in `_remote_repository` alone, `plan`
would refuse that `origin` as `adopt-no-org` while the doctor, which
reads `url_repository` through `origin_org`, still offered its line with
no `--org`: #545's case, made again. Review ran that narrow fix and 10
rows failed.

Not changed: `adopt-no-org`'s words, which say the `origin` "ends in no
`org/repo`" and name no limit, and `--org`'s help; no NOTE is printed
for such an `origin`, as for a url that ends in no `org/repo`;
`url_repository` drops only a lowercase `.git`, as before, and the limit
counts a `.GIT` name with the `.GIT` dropped, as `_github_name` does;
`github_can_hold` asks lengths only, not owner characters; and `--source
github.com/<40 c's>/Thing` with that directory here is
`source-unresolvable`, as for every `github.com/` spelling that names no
`owner/repo` (`--source ./github.com/<40 c's>/Thing` is read in place,
with no `gh` call).

Measured, by one probe of 50 commands run on the bytes before and after,
in the landing gate's environment with a `gh` that refuses every call:
21 changed, as above, and 29 are byte-identical, among them every
`origin` at the limits (an owner of 39, a repository of 100 with `.git`,
`.GIT` or a trailing `/`), a path `origin`, no `origin` and six doctor
rows. No `adopt-project.py` command made a `gh` call. Review added 11
commands and a sweep of 13,440 urls: 2,453 answers change, every one to
None, and each url is past a limit.

34 new rows: 30 in `tests/test_adopt_source_github_limits.py` and 4 in
the `ORIGIN_ORGS` table of `tests/test_shape_doctor.py`. 22 fail at the
bytes before this change, at the assertion that names the defect, and
all 34 pass; the 12 controls pass both ways. They are `url_repository`
read by the rule a typed name is (11 rows, 7 fail), `plan --org testorg`
offering no org (7, all fail), the same `origin` at the limits still the
source (4 controls), `plan` reading no org from such an `origin` (4, 3
fail), `check` and `execute` holding a plan alike with `origin` there or
gone (4, 2 fail) and the doctor's four (3 fail). One row,
`repository-101-slash` (`https://github.com/testorg/<101 r's>.git/`, an
owner of 7 characters, so only the repository is past a limit), kills
the mutant that reads the repository from the url before its trailing
`/` is stripped. All 8 mutants run are killed: the rule left out of
`url_repository` (20 rows), `.git` handled wrongly (M2, M3 and M6, 1 to
5 rows), the owner limit one lower or one higher and the repository
limit one lower (27, 22 and 14 rows), and the `/` read (2 rows).

Before the restack onto #1194's squash,
`tests/test_adopt_source_github_limits.py` with
`tests/test_adopt_unsearchable_source.py` gave 118 passed; the two other
groups of adoption modules that name the three codes 648 passed, 4
skipped and 632 passed, 3 skipped; `tests/test_github_name_limits.py`,
`tests/test_github_limits_init_check_org.py` and
`tests/test_scaffold_leg_path_collisions.py` in one pytest 264 passed;
`tests/test_shape_doctor.py` with
`tests/test_doctor_unsearchable_links.py` and
`tests/test_shape_advisory.py` 546 passed, 3 skipped; and the guards 470
passed, 3 skipped. At the restacked head the 27 gate files give 2131
passed, 9 skipped in three pytests, one at a time, each exit 0:
`tests/test_adopt_source_github_limits.py` with
`tests/test_github_name_limits.py`,
`tests/test_github_limits_init_check_org.py`,
`tests/test_scaffold_leg_path_collisions.py` and the two guards that
always run, 406 passed, 2 skipped; the 18 other adoption modules with
`tests/test_shape_advisory.py`, 1226 passed, 4 skipped; and
`tests/test_shape_doctor.py` with
`tests/test_doctor_unsearchable_links.py`, 499 passed, 3 skipped.

Closes #1211

Lane: openreposhape-3 (openRepoShape-3)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant