Skip to content

docs(architecture): propose the target layout of site/ for sign-off - #1301

Merged
apresmoi merged 5 commits into
mainfrom
untangle7/s2-site-architecture
Oct 5, 2026
Merged

apresmoi merged 5 commits into
mainfrom
untangle7/s2-site-architecture

Conversation

@apresmoi

@apresmoi apresmoi commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What changed

The layout plan for site/: eleven sibling layers, each site/ folder assigned one. The owner decided the loader composition (option 3: the router starts at module evaluation and all loading goes through the single queue chain, exactly today's behaviour). No application file moves in this PR.

  • docs/site-architecture.md: layers, move map summary, the code changes S3 must make (seven atomic groups, in order), the S4 sequence, risks. Its tables are generated from the data below.
  • docs/site-architecture/{moves,tiers,edits,references}.json: the data (289 moved paths, graph edits, the reference inventory).
  • .github/scripts/architecture/: import declarations by kind, the projection (cycles, upward, lateral and denied edges per kind, after moves and edits), and the plan checks (acceptance, identity, sequence, minimality, generated tables, reference scan).
  • pnpm check:architecture runs the plan check with status planned (findings warn) until the plan is switched to enforced.
  • New layer rule production-imports-no-tests: site/ production code may not import tests, fixtures or helpers.

After the moves and edits the projection finds 0 cycles and 0 upward, lateral and denied edges in every view, and 0 unassigned files.

Checks

  • node --test .github/scripts/architecture/*.test.mts: 156 pass.
  • site-architecture.mts --accept, --identity, --sequence, --minimality: pass.
  • pnpm check:architecture: ARCHITECTURE_OK.
  • eslint on .github/scripts/architecture: pass.

Follows the PR rules.

@apresmoi
apresmoi force-pushed the untangle7/s2-site-architecture branch from 5242813 to 2b15cb4 Compare October 5, 2026 08:04
@apresmoi
apresmoi marked this pull request as ready for review October 5, 2026 08:04
@apresmoi
apresmoi merged commit 56c07d3 into main Oct 5, 2026
16 checks passed
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