Skip to content

DESIGN.md recut: rules kept, rulings typed, half the words - #13679

Merged
briansrls merged 5 commits into
mainfrom
session/sunny-ant-669-recut
Oct 10, 2026
Merged

briansrls merged 5 commits into
mainfrom
session/sunny-ant-669-recut

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Recuts DESIGN.md and the repository docs. Targets main (#13641 has merged; the branch was replayed onto main).

What changed

  • DESIGN.md: 14,434 → 7,496 words (96,434 → 53,352 bytes), measured both times with the same instrument, gunbc run --entry dag/gunbc/design_document.dag --function expected_design_md. The section structure (§1 to §7, Building & checks) is unchanged and every rule is still there. Restatements are cut, stale citations are repaired, and "Building & checks" is now a short operator page for the one-job gate.
  • Dated rulings moved to a typed home: dag/gunbc/design_ruling.dag holds 12 DesignRuling rows (when decided, section, rule, provenance). DESIGN.md cites each one by symbol through gunbc.documentary_refs, and expected_design_rulings_md gives an on-demand view of them.
  • Conformance narratives: the seven narratives in gunbc.design_argument are cut down to their rules and scope boundaries.
  • The key-sharing ban is gone, at the operator's request. The relay-refusal line no longer appears anywhere in the document.
  • Dead docs deleted after listing their consumers:
    • docs/notes/allocation-ui-handoff.md
    • docs/notes/tracker-bundle-handoff.md
    • docs/plans/s2-v2-self-emit-brief.md, along with its doc_graph_roots bind and the link to it
    • docs/plans/v1-closeout-pr-accounting.md
  • Links: the links in replacement-migration-doctrine.md are now relative.

Review follow-ups

  • Rulings: one authority, one population. DesignRuling no longer copies the rule; a ruling holds only its reference, date, section and provenance. design_rulings() is the single roster: documentary refs, DESIGN.md citations (by import) and the witness fixture all derive from it. A new live-lookup claim (decl_facts_at) fails if a ruling's reference doesn't name its real declaration (mutant-checked).
  • §3b roster restructured for readers. ConformanceDomain now has owns, boundaries and grouped homes (label + purpose) instead of one narrative string. Each domain renders as its own subsection with one declaration per line. Review identity still hashes only key/question/tells/algebra/homes; the flat home order changed for the grouped domains, so prior conformance review observations for fabric/compute and keys/hashing will re-plan once.
  • §5 collapses the fallback / escape hatch / workaround / scaffold family under one rule; externalization stays separate.
  • §6b is a numbered method plus one example; the PR specimens moved into the ruling's provenance.
  • Building & checks keeps only the CI contract; CLIs, local checks, hooks and regeneration moved to docs/onboarding.md (new onboarding_reference rows).
  • Witnesses: review role 13/13, documentary refs 5/5, onboarding 18/18.

Evidence

  • Before the change, the render instrument reproduced the committed DESIGN.md byte for byte.
  • These witnesses pass:
    • documentary_refs_witness_test, 4/4. It now requires every ruling ref to be rendered. As a mutant control, removing one citation turns it red.
    • roadmap_review_role_witness_test, 13/13
    • realization_selection_witness_test, 1/1
    • rung_drop_standing_partition_witness_test, 4/4
  • These fail, and fail the same way on the base authorities, so this change did not cause them:
    • required_lane_claim_agreement w_no_projected_ledger_denies_a_lane_the_roster_requires
    • ledger_row_coherence, which fails to resolve on unrelated host and auth modules

Not yet done

🤖 Generated with Claude Code

Base automatically changed from integration/v1-closeout to main October 10, 2026 15:27
gunbc-ci-auto-heal and others added 2 commits October 10, 2026 15:28
…lf the words

DESIGN.md is regenerated from a recut gunbc.design_document, with the same
sections. Restatements are cut and dated operator rulings are moved into a
typed carrier, which the document cites by symbol through
gunbc.documentary_refs. "Building & checks" is now a short page for the
one-job gate.

- New gunbc.design_ruling: one DesignRuling row per dated ruling (12 rows),
  with an on-demand view expected_design_rulings_md.
- documentary_refs gains one DeclarationRef per ruling. Its witness now
  requires EVERY row to render in the document, and its fixture covers them.
- Conformance narratives in gunbc.design_argument are cut to their rule and
  scope boundaries. Mechanism detail is already stated in the home modules.
  The map-key equality trigger was stated nowhere else, so it moves to a
  std.algebra annotation.
- Citation fixes: product.node_power_envelope (not gunbc.product.*) and the
  dag/std/os.dag path. Removed a backticked name that is not a declaration
  (compiler_pipeline_entry_is_ambiguous).
- Docs: deleted (zero consumers, checked by name) docs/notes/allocation-ui-handoff.md,
  docs/notes/tracker-bundle-handoff.md, docs/plans/v1-closeout-pr-accounting.md,
  and docs/plans/s2-v2-self-emit-brief.md (which targets the byte fixed point
  §7 rejects), plus its doc_graph_roots row and the one inbound link.
  Fixed the doubled relative links in replacement-migration-doctrine.md.

Size (same render instrument, before and after): 96,434 -> 59,160 bytes,
14,434 -> 8,394 words.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ment)

Tightens §3 (witness rule, migrations), §3d, §4, §4b, §5, §6b, §3c and
Building & checks. Every rule is kept. The document witnesses rerun green:
documentary refs 4/4, review role 13/13, §3d 1/1.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gunbai-bot
gunbai-bot Bot force-pushed the session/sunny-ant-669-recut branch from a168f17 to 457776f Compare October 10, 2026 15:29
gunbc-ci-auto-heal and others added 2 commits October 10, 2026 16:55
Review on #13679: DesignRuling carried a second copy of each rule and the
ruling population was registered in six places. The row now carries only
reference/decided/section/provenance; DESIGN.md is the rule's sole home.
design_rulings() is the one roster: documentary_refs derives the ruling refs
from it, design_document cites rows by import, and the witness derives its
fixture from it. A live keyed decl_facts_at claim pins each row's reference to
its real declaration (mutant: a misspelt self-reference reds it). DESIGN.md
bytes unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 3b roster: ConformanceDomain carries owns / boundaries / home groups
  (label + purpose) instead of one narrative string; each domain renders as
  its own subsection with homes one per line under grouped headings. The
  flat home population is derived from the groups, so reviewer briefs and
  DESIGN.md still name one population.
- 5: absorbing fallback, escape hatch, workaround and scaffold collapse under
  one parent rule (stop visibly, never conceal the deficit); externalization
  stays distinct.
- 6b: a numbered method plus one upstream/local example; PR specimens move
  into the chain_re_derivation ruling's provenance.
- Building & checks keeps the CI contract; CLIs, local checks, hooks and
  regeneration move to docs/onboarding.md (gunbc.contributor_onboarding_path
  onboarding_reference).
- 3b three-valued answer, 3d outcomes and the delete-first carve-outs become
  lists.

Witnesses: review role 13/13, documentary refs 5/5, onboarding 18/18.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review October 10, 2026 19:09
@briansrls
briansrls merged commit 29f0c57 into main Oct 10, 2026
1 check passed
@briansrls
briansrls deleted the session/sunny-ant-669-recut branch October 10, 2026 19:44
gunbai-bot Bot pushed a commit that referenced this pull request Oct 10, 2026
…moved the heal-publisher sentence this PR amended, so main's design document and its projection are taken as they are
briansrls pushed a commit that referenced this pull request Oct 10, 2026
review 78457 on #13679: the recut's §2 summary dropped load-bearing
distinctions std.materialization_ladder still enforces (a single
undeclared pure demand recomputes; when a reuse obligation arises; demand
minimization vs cache purity before §6 picks the realization). Restored
from the pre-recut text as an ordered list.

Co-authored-by: gunbc-ci-auto-heal <gunbc-ci-auto-heal@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant