Skip to content

refactor(docs): consolidate design docs under docs/design - #31

Merged
adust09 merged 2 commits into
developfrom
refactor/consolidate-design-docs
Aug 26, 2026
Merged

refactor(docs): consolidate design docs under docs/design#31
adust09 merged 2 commits into
developfrom
refactor/consolidate-design-docs

Conversation

@adust09

@adust09 adust09 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Root markdown is now README.md, CONTRIBUTING.md, and CLAUDE.md. The eight design
documents that sat alongside them are gone from the root, and the hand-synced duplicate of
the architecture is gone with them.

Two commits, deliberately split

Reviewing the move and the content removal together would defeat git's rename detection.
The first commit removes content in place; the second moves files whose only remaining
edits are link rewrites and frontmatter, so all six show as renames.

1. Drop ZK-STF and verifiable-stf references

ZK-proving the consensus STF has no leanSpec specification, and leanSpec is Verity's
reference implementation. An anticipated migration whose trigger cannot be observed
upstream commits the design to a direction the spec does not describe.

  • memo.md deleted — its ethlambda crate comparison predates crates/, and its only live
    section was the ZK-STF open question
  • the State transition row leaves the boundary migration table, along with the paragraph
    qualifying it; the verification boundary is documented as moving inward only
  • verifiable-stf drops out as cross-language equivalence evidence and as the second
    measurement data set — the leanSSZ C ABI PoC remains and still gates Lean adoption on
    measured seam cost
  • design-philosophy.md gains the frontmatter it predated

2. Consolidate under docs/design/

docs/src/reference/architecture.md was a 420-line hand-synced copy of the root
ARCHITECTURE.md, declaring the root file canonical. It is now canonical itself, and the
root copy is deleted — nothing leaves the published site, only the duplicate.

docs/design/ domain-model · concurrency · sync · storage · key-management · model-check, plus an index
docs/src/reference/architecture.md canonical architecture, published
deleted ARCHITECTURE.md, memo.md

Renamed to the lowercase-kebab convention already used across docs/, with the required
frontmatter added. Retargeted: 45 inter-document links, 6 rustdoc comments, 3 Cargo.toml
comments, CLAUDE.md, _typos.toml.

CI

  • markdownlint and both lychee checks now cover docs/design/ — previously
    CONCURRENCY, KEY_MANAGEMENT, SYNC, and MODEL_CHECK were in none of them
  • the offline link check moves to quality.yml; docs.yml is path-filtered to the book's
    own inputs, and docs/design/ is outside them
  • docs.yml no longer fires on design-document edits, so no site build runs for a page
    the site does not contain

The weekly online check now reaches 6 documents it never covered. Expect it to surface
pre-existing broken external links on its first run.

Verified locally

markdownlint-cli2 0 errors over 14 files · 0 broken relative links across docs/ and
root · mdbook build clean with frontmatter stripped from output · cargo check --workspace --all-targets clean · pre-commit run --all-files passing.

ZK-proving the consensus STF has no leanSpec specification, and leanSpec is
Verity's reference implementation. Recording an anticipated migration whose
trigger cannot be observed upstream commits the design to a direction the
spec does not describe, so the material is removed rather than restated.

- delete memo.md: its ethlambda crate comparison predates crates/, and its
  only live section was the ZK-STF open question
- drop the State transition row from the boundary migration table and the
  paragraph qualifying it; the verification boundary is now documented as
  moving inward only
- drop verifiable-stf as cross-language equivalence evidence and as the
  second measurement data set; the leanSSZ C ABI PoC remains and still
  gates Lean adoption on measured seam cost
- add frontmatter to design-philosophy.md, which predated the rule
The repository root held eight design documents alongside README, CONTRIBUTING,
and CLAUDE, and docs/src/reference/architecture.md was a hand-synced 420-line
copy of the root ARCHITECTURE.md. Both problems close together: the published
page becomes canonical, and the records that elaborate it move under docs/.

- move the six remaining design records to docs/design/, renamed to the
  lowercase-kebab convention already used throughout docs/
- delete the root ARCHITECTURE.md; docs/src/reference/architecture.md is now
  canonical rather than a mirror, so the duplicate no longer has to be synced
  by hand on every edit
- add the required frontmatter to each moved document and an index at
  docs/design/README.md; point README at both surfaces
- retarget every path reference: 45 inter-document links, six rustdoc comments,
  three Cargo.toml comments, CLAUDE.md, and _typos.toml
- widen markdownlint and both lychee checks to cover docs/design/, and move the
  offline link check to quality.yml so it is not gated by the Docs workflow's
  path filter — which now fires only on the book's own inputs

Root markdown is README, CONTRIBUTING, and CLAUDE.
@adust09
adust09 merged commit 8a7d94f into develop Aug 26, 2026
9 checks passed
@adust09
adust09 deleted the refactor/consolidate-design-docs branch August 26, 2026 08:33
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