Skip to content

A scaffolded README's trailing Shape: … @ <sha> line is never rewritten by update-shape.py, so it drifts silently from contracts/shape-pin.yaml — InkRouter's holder reads 6fe09a4 four re-pins after the fact #148

Closed

Description

@brettheap

Lane: openreposhape-2 (openRepoShape-2)

Recorded, NOT claimed — a design decision for Brett Heap (found 2026-09-12 while closing InkRouter's stale governing issues under his word 'do all 4').

What is wrong. The rendered README.md of a scaffolded FAMILY HOLDER (only templates/family-root/README.md:140 carries it — the assembly-root template does not) ends with a Shape: opensoft/openRepoShape @ <sha> line that names the standard the root was scaffolded at. Nothing updates it afterwards: update-shape.py apply re-copies the pinned files and moves contracts/shape-pin.yaml (and family.yaml's shape: block in a holder), and README.md is deliberately not a pinned copy (it is the project's own document), so the line drifts silently. Evidence in InkRouter/InkRouter: line 78 reads Shape: opensoft/openRepoShape @ 6fe09a41535a… while contracts/shape-pin.yaml reads 57ddeacc9f1d… — four re-pins later (3abeb8a, 3a927a2, cd57c4b, 57ddeac); git log -- README.md shows only the creation commit and InkRouter#18 (a one-off hand correction of the same line, 2026-09-09) ever touched it. The same class of drift recurred within a day of being fixed by hand, and the doctor does not read the README, so no row reports it.

What would fix it — two shapes, Brett's to choose.

  1. update-shape.py apply rewrites the line when a README carries one in the exact rendered form (^Shape: <repository> @ <40 hex> on its own trailing line), the way it already rewrites family.yaml's shape: block: same commit, same PR, byte-identical README otherwise; a README without the line is left alone (adopted projects may have none). The doctor's shape currency row could then also read it and say note when the README names a different sha than the pin — a note, never a finding, because a README is prose.
  2. Drop the line from the family-root template (templates/family-root/README.md:140) so nothing rendered claims a sha that only contracts/shape-pin.yaml is authoritative for; existing roots keep or remove theirs by hand. Cheaper, and honest about where the truth lives.

Either way InkRouter/InkRouter's README wants one correction now; that belongs in the holder's next shape re-pin PR (owed after the pending leg advances and the normaliser consolidation land), not in a standalone edit.

Not in scope. Rewriting anything in the InkRouter repositories from here; touching the digest-pinned copies.

Activity

  1. brettheap commented on Sep 12, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-12T17:32Z) CLAIMED — session 9c6378ea, on Brett Heap's word 'do option 1 on 148'. Branch feat/apply-rewrites-readme-shape-line, worktree ~/projects/openRepoShape--i148-readme-shape-line on Eagle, from origin/main 57ddeac. Scope: OPTION 1 — update-shape.py apply rewrites the root README's rendered Shape: \` @ ``.line in the same commit as the pin move (through theRollbackledger, so a red validator restores it),checkgains areadme-shape-line:verdict row that never moves its exit code, the doctor'sshape currencyrow gains anoteon a mismatch, and ONE compiled pattern inscripts/shape_materialize.pyis proven against whattemplates/family-root/README.md` renders. Option 2 (dropping the line) is NOT taken.

  2. brettheap commented on Sep 12, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-12T17:54Z) PULL REQUEST OPEN: #152 (head 4acb4fd).

  3. brettheap commented on Sep 13, 2026

    @brettheap
    ContributorAuthor

    (lane openreposhape-2 (openRepoShape-2), 2026-09-13T00:22:53Z) MERGED — #152 → b83ba5c (squash), on Brett Heap's word 'land 152 and 156 when they report, then re-pin'. update-shape.py apply moves the README's trailing 'Shape: @ .' line in the same commit as the pin it names (option 1 on #148), so a holder's README stops drifting from contracts/shape-pin.yaml; check gains a readme-shape-line row; a README that is absent, ambiguous, uncommitted (git status + bytes vs HEAD), ignored, a symlink, hard-linked or unreadable is left alone and said so; the Shape line is read only at EOF with a [A-Za-z0-9.-]+/[A-Za-z0-9.-]+ name (no escapes reach a terminal); CRLF/BOM bytes preserved; OSError in the README phase is a Refusal so rollback runs; ~7 Copilot/Codex rounds, 3 findings from the last round recorded for follow-up; 1185 passed / 1 skipped; no pinned file touched. Object complete.

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