Skip to content

Descendant referent follows the declared pin chain (ruled by Brett Heap 2026-09-05) #40

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 issue is the part of that ruling that lands in THIS repository.

The defect the ruling resolves

validate-repository-naming.py --explain codexDox says: a CLAIM: needs a declared pin on openDox or openxDox. descendant_referents() derives the referent from the NAME alone, and openXdox (capital X, lowercase d) matches the neutral-product form as a product called "Xdox", so it is never a referent for <Domainx>Dox. Under the ratified split-opendox-two-layer-product (openxFactory, merged ceb6dc9e) and its ruling OQ-2 (one pin chain; descendants pin openXdox; no direct openDox pin inside the family), codexDox and MedxDox would classify as plain assembly roots, not descendants. The same latent gap exists for LedgerxWallet → openXwallet.

The rule, as ruled

A <Domainx><Product> name classifies as a domain descendant when its declared neutral_product_pins REACH the matching open<Product> through a chain of declared neutral-product pins: codexDox declares openXdox; openXdox's own manifest declares openDox. Every link is an offline fact in a tree (the 2026-09-02 offline principle holds — no host is asked whether anything exists). A direct pin on open<Product> remains sufficient; the chain is the addition. The chain is RECORDED, not inferred: the descendant's manifest carries the chain it relies on (e.g. naming.referent_chain: [openXdox, openDox]), and the validator checks each link's declaration where the linked tree is available and otherwise reports the link as declared-unverified rather than failing offline.

Acceptance (for the PR that closes this)

  • scripts/repo_shape.py / scripts/validate-repository-naming.py: chain-aware referent resolution; --explain codexDox names the chain it would accept.
  • contracts/repository-naming.yaml: the rule as data, alongside the existing referent rule.
  • templates/assembly-root/project.yaml: the naming block records referent_chain (documented in the template's comments).
  • README § "A descendant form is a claim; a claim needs a referent": one paragraph on the chain, quoting the ruling; the doctrine sentence in openxFactory docs/project-repo-schema.md § same title is amended in the openxFactory amendment PR (cross-referenced here when opened).
  • Tests: a descendant with a direct pin (unchanged), a descendant reached by a two-link chain (classifies), a descendant with a broken chain (assembly root by residual form, overlap recorded), openXwallet as a second worked case.
  • Nothing else in the standard moves; the shape still confers nothing.

Claim + sibling disclosure

CLAIMED by lane openxfactory-4-opendox-extraction (session 012WPaY5WyCqq1p46F3Qtd7H) 2026-09-05T14:53Z for authoring the PR above. Sibling lanes touching this repository: repo-shape (owner of the add-project-repo-schema doctrine arc — the doctrine-sentence amendment is disclosed to it in the openxFactory PR) and codex-intake-shape (PR #37 open on README + setup.sh — this PR's README paragraph is placed to avoid its hunk; whichever lands second merges). If either lane wants this item, say so here before the PR opens.

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

Activity

  1. brettheap commented on Sep 5, 2026

    @brettheap
    ContributorAuthor

    CORRECTION to the defect statement above — 2026-09-05T16:25Z, lane openxfactory-4-opendox-extraction (session 011z8xpxRKZXyN3jLzFHoxj1). The sentence "codexDox and MedxDox would classify as plain assembly roots" was WRONG for this family's spelling: the pre-existing referent match casefolds both sides (repo_shape.py at origin/main, lines 861/899), and openXdox casefolds onto the accepted x-stem openxDox, so a pin on openXdox already read as a DIRECT referent. What the rule fixes is narrower and still real: the match holds by a spelling coincidence, for one link only, and for no layer named anything else — LedgerxWallet → openXwallet is saved by the same accident. PR #42 turns the accident into a declared, recorded rule and says so in contracts/repository-naming.yaml. The ruling stands; the urgency was overstated, and the record should say so.

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

  2. brettheap commented on Sep 5, 2026

    @brettheap
    ContributorAuthor

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

    A correction to this issue's body, measured while authoring the openxFactory amendment that depends on it (opensoft/openXfactory#684). It does not change what the issue asks for; it changes the argument for it, and it removes an interim this issue predicts that does not exist.

    The body says

    openXdox (capital X, lowercase d) matches the neutral-product form as a product called "Xdox", so it is never a referent for <Domainx>Dox. … codexDox and MedxDox would classify as plain assembly roots, not descendants.

    What the tool actually does today

    Measured at main f9ff3f8 and at 122d729b (the commit openxFactory's contracts/openreposhape-pin.yaml pins):

    policy.classify('codexDox', 'assembly', ['openXdox'])
    # -> family=domain-descendant  role=assembly  also_matches=('project-leg/assembly',)

    and shape_materialize.naming_block(...) writes:

    naming:
      form: domain-descendant
      role: assembly
      also_matches: [project-leg/assembly]
      descendant_referent: openDox
      referent_declared: true

    templates/assembly-root/scripts/validate-manifest.py accepts that manifest: the pin file it looks for is contracts/<satisfied referent lowercased>-pin.yaml = contracts/openxdox-pin.yaml, which the scaffold wrote.

    Why — it passes by accident

    contracts/repository-naming.yaml gives the descendant family also_accepted: "openx{product}", present so codexFactory may descend from openxFactory. For codexDox the referents are therefore ('openDox', 'openxDox'). Both naming_block and validate-manifest.py compare case-folded:

    declared_pins = {pin.casefold() for pin in pins}
    satisfied = next((r for r in referents if r.casefold() in declared_pins), None)

    and 'openXdox'.casefold() == 'openxDox'.casefold() == 'openxdox'. A pin on the integration layer satisfies the referent test for the neutral core.

    Why this argues FOR the chain rule rather than against it

    The classification is right and the reason it records is false: the manifest asserts descendant_referent: openDox, referent_declared: true in a tree that declares no openDox pin anywhere. That is worse than a refusal, because nothing surfaces it — and it is fragile, evaporating the moment anyone compares spellings exactly or tightens the x-stem rule. #40 makes the same classification true, by naming the chain the descendant actually relies on.

    Two things worth folding into this issue's acceptance list:

    1. A test that codexDox --pin openXdox classifies as a descendant because of the recorded chain, not because of the casefold overlap — i.e. one that still passes if also_accepted is tightened.
    2. A decision on whether openx{product} should keep matching case-insensitively at all now that a real openX<lowercase> product exists in the same family. LedgerxWallet → openXwallet has the identical shape and the identical accidental pass.

    Recorded in the amendment as design.md § D12 and tasks.md § 1.10 (openxFactory#684), so the interim § 1.10 decides is the measured one rather than the predicted one. Posted here rather than edited into the body: the body is the ruler's.

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

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