Skip to content

scaffold-project.py refuses a neutral-product name as an assembly root: openDox and openXdox cannot elect the shape #41

Closed
opensoft/openXfactory
#700

Description

@brettheap

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

RULING — Brett Heap, 2026-09-05T14:52Z, in session, verbatim: "elect the shape for both, follow the pin chain, no family yet" — recorded on opensoft/openXfactory#656 (opensoft/openXfactory#656 (comment)). This is the SECOND part of that ruling that lands in this repository, found while authoring the openxFactory amendment PR that encodes it. #40 is the descendant-chain half; this is the half nobody had measured.

The defect

The ruling elects the three-repository shape for TWO NEUTRAL PRODUCTS — openDox and openXdox, each an assembly root carrying -spec and -code. The scaffold refuses both, today, at the commit openxFactory pins.

$ python3 scaffold-project.py --org opensoft --project openDox --dry-run
REFUSED naming-role-mismatch: 'openDox' classifies as neutral-product, not as the
'assembly' form of a project leg (the neutral-product form is unambiguous by
construction, so it needs nothing declared)
Remediation: re-run with a --project value that is one CamelCase token.

Identical for openXdox, with or without --pin. The remediation is not takeable: the name is the product's name and is what the ruling elected.

scripts/repo_shape.py accepts_role() admits exactly two classifications — ("project-leg", <role>) and ("domain-descendant", "assembly") — and NamingPolicy.classify returns neutral-product for an open<Product> name because that form "is unambiguous by construction". scaffold-project.py:434 raises on the mismatch. Verified at main f9ff3f8 AND at 122d729bc0c2f2e0ded0bb61b6b97f49512f613e, the commit openxFactory/contracts/openreposhape-pin.yaml pins, so it is not a regression on an unpinned tip.

validate-repository-naming.py --explain openDox already records the resolution this needs: MATCH project-leg ... (role assembly) and also_matches: project-leg/assembly. The overlap is computed and then discarded by accepts_role().

The rule this asks for

A neutral product may elect the shape and be its own assembly root. Electing confers nothing (the doctrine's own first sentence), so open<Product> mounting open<Product>-spec and open<Product>-code is a fact about layout, not a claim about neutrality — exactly the reasoning that already lets a DECLARED domain descendant be an assembly root (2026-09-02, second half). The legs are unaffected: openDox-spec carries the lowercase suffix and classifies as project-leg already.

Two shapes for the fix; the first is what the ruling implies, the second is the conservative reading:

  1. accepts_role() admits ("neutral-product", None) for role == "assembly" where the name also matches project-leg/assembly, and the manifest's naming: block records form: neutral-product, role: assembly, also_matches: [project-leg/assembly] so the resolved overlap stays visible.
  2. the same, gated behind an explicit opt-in flag (--neutral-product-root), so the default keeps refusing and the election is a declared act on the command line.

Acceptance

  • scaffold-project.py --org opensoft --project openDox --visibility public plans three repositories instead of refusing; --project openXdox --pin openDox@<40 hex> likewise.
  • scripts/repo_shape.py: one definition, consulted by the scaffold, adopt-project.py and validate-manifest.py alike — a leg-form name offered as an assembly root stays refused.
  • contracts/repository-naming.yaml: the admission as data, beside the descendant rule.
  • templates/assembly-root/project.yaml: the naming: comment covers the neutral-product root.
  • README § naming families: one paragraph, quoting the ruling.
  • Tests: openDox as an assembly root (classifies, overlap recorded); openDox-spec offered as an assembly root (still refused); openXwallet as a second worked case; a descendant root unchanged.

Dependency and disclosure

The openxFactory amendment PR encoding this ruling states both invocations as the tasks they will be and marks them sequenced after this issue lands — the packet performs nothing, so nothing is blocked today, but the first act of its group 1 is.

CLAIMED by lane openxfactory-4-opendox-extraction (session 012WPaY5WyCqq1p46F3Qtd7H) for the finding only; the FIX is unclaimed and belongs to whoever holds this repository's lane. Sibling lanes touching this repository: repo-shape (owner of the add-project-repo-schema doctrine arc) and codex-intake-shape (PR #37 open on README + setup.sh — this issue's README paragraph would sit in the naming-families section, not its hunk). Related: #40, the descendant-chain half of the same ruling.

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Activity

  1. brettheap commented on Sep 5, 2026

    @brettheap
    ContributorAuthor

    Lane: xfactory-2 (xFactory-2)

    CLAIMED — lane xfactory-2 (xFactory-2), session harness 6bdb2e35-cbc8-4b10-b13f-11d9b421fef9 (Claude Code, cwd ~/projects/openRepoShape), 2026-09-05T16:36Z, for the FIX of this issue: a neutral product may elect the shape and be its own assembly root — option 1 (admit the neutral-product/assembly overlap where the name ALSO satisfies project-leg/assembly; the manifest's naming: block records form: neutral-product, role: assembly, also_matches: [project-leg/assembly] so the resolved overlap stays visible).

    RULING this claim executes — Brett Heap, 2026-09-05 ~16:30Z, in session, verbatim: "rename the lane to xFactory-2 and pick up #41". This lane was codex-intake-shape until that word (LANES.md row renamed; artifacts merged earlier carry Lane: codex-intake-shape and are this lane's).

    Sibling search (Rule 1's three reads, all run before this comment):

    1. This issue: 0 comments; the body claims the FINDING for lane openxfactory-4-opendox-extraction and says the fix "belongs to whoever holds this repository's lane". Descendant referent follows the declared pin chain (ruled by Brett Heap 2026-09-05) #40 (the pin-chain half) stayed with that lane and is DONE — PR Descendant referent follows the declared pin chain (#40) #42 merged c2cc9e25 at 16:26Z, Descendant referent follows the declared pin chain (ruled by Brett Heap 2026-09-05) #40 closed.
    2. gh pr list --repo opensoft/openRepoShape --state all --search "neutral product assembly root": six results, ALL MERGED, none on this object — v0: naming policy, assembly-root templates, scaffold, bootstrap, and the agent procedure #1, Naming: a descendant form is a claim that needs a pin; declared role wins otherwise (Brett, 2026-09-02) #4, v0.2: adopt an existing repository in place, reuse an empty root, scaffold a declared descendant #5, Accept internal visibility; resolve --pin under opensoft by default #6, validate-pins.py rechecks a declared neutral-product pin's referent #15 (naming and pin history) and Descendant referent follows the declared pin chain (#40) #42 (Descendant referent follows the declared pin chain (ruled by Brett Heap 2026-09-05) #40's fix). Because Descendant referent follows the declared pin chain (#40) #42 rewrote classify, the naming contract, the template manifest and the validators, this branch is based on the new main c2cc9e2, after it.
    3. git ls-remote --heads origin | grep -iE 'neutral|opendox|xdox': one branch, neutral-pin-recheck-and-leg-gitignores — PR validate-pins.py rechecks a declared neutral-product pin's referent #15's head, merged, never deleted; no live sibling.

    Shape of the change, so a sibling can see the surface before the PR opens: scripts/repo_shape.py — ONE definition: NamingPolicy.classify carries the DECLARED assembly role for a neutral-product name that also satisfies the leg form, admitted as DATA by admits_declared_role on the family (the mechanism the descendant family already uses), and accepts_role admits ("neutral-product", "assembly") — a fact, never a claim, because classify only returns it when the name satisfies the leg form; contracts/repository-naming.yaml (the admission as data, comment quoting the ruling); templates/assembly-root/project.yaml (the naming: comment); README § naming families (one paragraph quoting the ruling); tests (openDox root classifies with the overlap recorded; openDox-spec offered as a root still refused; <X>-Install as a root still refused; openXwallet as a second worked case; a descendant root unchanged). Referent resolution (#40/#42) is not touched. Nothing else in the standard moves; the shape still confers nothing.

    Worktree fix/neutral-product-root from origin/main c2cc9e2, never the shared checkout. The PR body will open Lane: xfactory-2 (xFactory-2) then Claim: <this comment>, and close #41.

  2. added a commit that references this issue on Sep 5, 2026
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