Skip to content

shape-doctor.py reads only project.yaml at a root that also carries a family.yaml, so an assembly root whose family.yaml declares two unmounted members is COMPLIANT, and its manifest kinds row says that kind has a registered validator, which is never run #211

Closed

Description

@brettheap

Lane: openreposhape-4 (openRepoShape-4)

Found by this lane's probe of main e4decfb on 2026-10-11, re-verified on main e4decfb today. Not claimed. Lower realism: no tool here writes both files; a hand-copied or mis-merged one does.

What is wrong. Context.__init__ in shape-doctor.py picks ONE kind for the root: project.yaml declaring kind: project-manifest wins, and family.yaml is consulted only when it does not. A root carrying BOTH is reported as an assembly root, every family check is skipped, and check_manifest_kinds lists family.yaml (family-manifest) among the manifests whose kind "has a registered validator", although that validator is never run on this root. So an assembly root whose committed family.yaml declares two members with no gitlink is COMPLIANT, exit 0, while the gate registered for that manifest, validate-family.py, refuses the same root with exit 2.

# Atlas scaffolded into local bare remotes, cloned --recurse-submodules to $C; a family holder made
# separately by `family.py init` + `add` IRRS, IRSS, whose family.yaml is copied into $C and committed
grep "^kind:" $C/project.yaml $C/family.yaml     # project-manifest / family-manifest
python3 shape-doctor.py --root $C
#   kind        assembly root (project.yaml)
#   ok   manifest         the project's own scripts/validate-manifest.py passes
#   ok   manifest kinds   6 manifest(s), every declared kind has a registered validator
#   COMPLIANT   (exit 0)
cp templates/family-root/scripts/validate-family.py $C/scripts/ && (cd $C && python3 scripts/validate-family.py)
#   exit 2   REFUSED member-gitlink-absent: no gitlink (mode 160000) recorded at 'members/IRRS'. IRRS is named
#            in family.yaml but this repository does not record it as a submodule.

What the docs promise. AGENTS.md, "Checking a repository's compliance", item 1: "The verdict names the MOST SPECIFIC finding and the TABLE names every one". AGENTS.md, "Creating a family, and adding a member": a family "is not a project — no legs", so a root that declares itself both is neither, and the registered gate for one of its two manifests refuses it. check_manifest_kinds's own docstring: what it reports is "a manifest travelling in a shape root with no gate behind it"; here the gate exists and is simply never run.

What would fix it. In Context.__init__ (or check_manifest_kinds), a root where both project.yaml and family.yaml declare their kinds should be a FINDING naming both files, with no verdict better than INVALID. Alternatively, check_manifest_kinds could run the registered validator for every declared kind it finds, not only the one the root kind selected, and report the red ones.

Activity

  1. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session 566fec94-6fde-4579-947f-ec4fda5ce14f@Eagle, 2026-10-11T16:23:55Z, for #211

    Logged in lanes/log/openRepoShape-3.md at de843f87c0bcc175e488aeb67bcd6f7c3af04775.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#211:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#211"`, kept where the row or its body names `#211`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `211` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions