You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shape-doctor.py: in a directory that is not a shape root, the the way in rows load this checkout's naming policy unguarded, so an unloadable policy shows as FINDING the way in refused: … and a policy whose pattern does not compile ends the doctor in a traceback, exit 1 #707
Goal: when the doctor runs on a directory that is not a shape root, a fault in this checkout's own contracts/repository-naming.yaml reaches the the way in rows the same way #678 makes it reach the naming row. The row is an environment row about the checkout, and never a traceback.
Filed by lane openRepoShape-3 under v1.1.1, on Brett Heap's word of 2026-10-16T13:35:28Z ("yes create v1.1.1"). It is a follow-up to #678 (PR #701), found by #678's writer and measured by lane 3's reviewer RV-a. Main does the same thing, so it is not a regression.
What happens (measured on #701's head f44c1bc, and on main 8062810 where noted):
A policy that does not load (one tab-indented line in this checkout's contracts/repository-naming.yaml).
On a plain directory, the doctor prints FINDING the way in refused: …/contracts/repository-naming.yaml: line 509: tab used for indentation.
On a git repository, it also prints FINDING the other way in refused: ….
A policy whose pattern does not compile (pattern: "(^open(?:). On a directory that is not a root, the doctor dies with a traceback: re.error: missing ), unterminated subpattern, exit 1.
The path is run_checks, then check_the_way_in, then way_in_project.
run_checks catches only Refusal and OSError (shape-doctor.py:8729, :8735 at f44c1bc).
Main gives the same frames and exit 1.
Where it is (f44c1bc): way_in_project at shape-doctor.py:8363 calls NamingPolicy.load with no guard. check_the_way_in and run_checks are its callers.
the the way in rows say that the policy is this checkout's;
a policy that raises something other than a Refusal gives the same environment row, not a traceback;
no verdict moves: NOT A SHAPE ROOT, exit 2.
Correct the docstring at tests/test_doctor_validator_verdicts.py:496, which says the doctor "must not die of it". On a directory that is not a root, it does today.
Tests: on a directory that is not a root, with a tab-line policy and with a policy whose pattern does not compile:
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-16T13:52:16Z, for #707
Logged in lanes/log/openRepoShape-3.md at 44c0ae897c6a604ee014523391574d894517013e.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#707:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#707"`, kept where the row or its body names `#707`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `707` as a whole token:
none
(lane openRepoShape-3, 2026-10-16T17:31:06Z) Two wording nits for #707's PR to carry, from RV-a's round-2 re-verification of #701 (issuecomment-6220995941). Both are in shape-doctor.py's EXIT CODES list, as of #701's head 785e730e:
NIT-A, :283-284: "INVALID names each red row" is broader than the code. invalid_verdict (:8901-8906) names only red gate rows. Other FINDING rows are named only when no gate is red, through the catch-all in verdict_for. Suggested wording: "INVALID names its red gates, or, when none is red, every row that is a FINDING".
NIT-B, :286-288: the manifest-kinds description leaves out two of the row's FINDING causes:
a file unreadable as YAML (:3324-3328);
a file declaring one kind where a gate here reads it as another, and no gate here checks the kind it declares (:3333-3337).
Activity
brettheap commentedon Oct 16, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-16T13:52:16Z, for #707
Logged in
lanes/log/openRepoShape-3.mdat44c0ae897c6a604ee014523391574d894517013e.The three reads (lane-collision-protocol Rule 1):
shape-doctor.py: the `naming` policy row's `why` says "not to this di…
brettheap commentedon Oct 16, 2026
(lane openRepoShape-3, 2026-10-16T17:31:06Z) Two wording nits for #707's PR to carry, from RV-a's round-2 re-verification of #701 (issuecomment-6220995941). Both are in
shape-doctor.py's EXIT CODES list, as of #701's head785e730e::283-284: "INVALID names each red row" is broader than the code.invalid_verdict(:8901-8906) names only red gate rows. Other FINDING rows are named only when no gate is red, through the catch-all inverdict_for. Suggested wording: "INVALID names its red gates, or, when none is red, every row that is a FINDING".:286-288: themanifest-kindsdescription leaves out two of the row's FINDING causes::3324-3328);:3333-3337).Lane: openreposhape-3 (openRepoShape-3)
shape-doctor.py: a checkout whose own `contracts/repository-naming.ya…
shape_advisory.py and shape-doctor.py: `_naming_policy` answers None …
docs/release-notes/v1.1.1.md: the v1.1.1 notes take RV883's NIT list …
docs/release-notes/v1.1.1.md: the v1.1.1 notes take RV883's round 3 a…
docs/release-notes/v1.1.1.md: the v1.1.1 notes run to main a249910, w…
Merge origin/main into l3-707-way-in-policy
docs/release-notes/v1.1.1.md: the v1.1.1 notes run to main 0d5d2b1, w…
docs/release-notes/v1.1.1.md: the v1.1.1 notes run to main e7039b7, w…