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: the way-in row's suggested --project respells a name the naming row already classified — openRepoProject comes out Openrepoproject, a different identity #109
Claimed by this lane (session 8706b0f5), branch fix/doctor-way-in-project-token.
What is wrong.openRepoShape --doctor ~/projects/openRepoProject (a plain
git repository, origin [email protected]:opensoft/openRepoProject.git, no shape
manifest) prints:
ok naming openRepoProject: classifies under the naming policy
n/a the way in this is a git repository with no shape manifest: it is ADOPTED in place, keeping its name, identity and history
NEXT python3 …/adopt-project.py plan --source /home/brett/projects/openRepoProject --project Openrepoproject
The naming row has just verified that openRepoProject classifies — under contracts/repository-naming.yaml it is neutral-product
(^open(?:[A-Z]|x[A-Z])[A-Za-z0-9]*$), which since #45's admits_declared_role ruling ADMITS being its own assembly root — yet the way-in row's --project is derived at shape-doctor.py:2047 unconditionally,
by "".join(part.capitalize() for part in root.name.replace("_", "-") .split("-") if part), which turns openRepoProject into Openrepoproject.
So the two names classify DIFFERENTLY: openRepoProject is the live neutral-product identity; Openrepoproject is merely a bare project-leg/assembly token that happens to also classify, so nothing in the
naming policy catches the mismatch. The emitted NEXT line proposes adopting
the repository under that different name.
Why it matters.adopt-project.py keeps the source repository's own
name, identity and history (AGENTS.md, "Adopting an existing repository") and
derives the two new legs' names from --project. Run as printed, execute
would name the legs Openrepoproject-spec / Openrepoproject-code beside a
root still called openRepoProject — a family a human never chose, silently,
from a line that looks safe to paste.
This is not adopt refusing the lowercase form: adopt-project.py plan --project openRepoProject is already accepted (_check_names → accepts_role, ("neutral-product", "assembly") is one of the three forms accepts_role admits; tests/test_adopt_plan.py ::test_a_neutral_product_may_be_adopted_as_its_own_assembly_root already
covers exactly this with openDox). The defect is only in what shape-doctor.pysuggests.
The fix. In check_the_way_in, stop deriving --project unconditionally.
Read the same identity the naming row already classified — origin's
repository name when there is one, else the directory's own name
(check_not_a_root_naming's own docstring: "the name that matters for the
policy is the repository's") — and when THAT name already satisfies accepts_role(policy.classify(name, "assembly"), "assembly") (the same gate adopt-project.py's _check_names runs), emit it verbatim. Fall back to the
capitalized-parts derivation only for a name the policy admits no form of at
all (my-repo → MyRepo, unchanged). Both the human-readable NEXT line and
the --jsonnext must agree, since both are read from the one suggested
value.
(lane openreposhape-2 (openRepoShape-2), 2026-09-11T17:09Z) MERGED — #110 → cd57c4b (squash), on Brett Heap's word 'merge 110 when green, then re-pin the estate'. The way-in row now hands back the identity the naming row classified, verbatim, when the policy already admits it; origin parsing is explicit for SCP hosts, drive letters and bracketed IPv6. Four Copilot rounds taken before the merge. Object complete; the estate re-pin to cd57c4b follows as its own claims in each InkRouter repository.
Activity
shape-doctor.py: fix the three moderate issues Copilot found in PR #110…
shape-doctor.py: fix the three moderate issues Copilot found in its s…
shape-doctor.py: fix Copilot's third review of PR #110 -- a local pat…
shape-doctor.py: fix Copilot's fourth review of PR #110 -- the colon …
shape-doctor.py: the way-in row hands back the identity the `naming` …
brettheap commentedon Sep 11, 2026
(lane openreposhape-2 (openRepoShape-2), 2026-09-11T17:09Z) MERGED — #110 → cd57c4b (squash), on Brett Heap's word 'merge 110 when green, then re-pin the estate'. The way-in row now hands back the identity the naming row classified, verbatim, when the policy already admits it; origin parsing is explicit for SCP hosts, drive letters and bracketed IPv6. Four Copilot rounds taken before the merge. Object complete; the estate re-pin to cd57c4b follows as its own claims in each InkRouter repository.