Jump to content

MindAttic.Docs/SPEC

From MindAttic Docs

MindAttic.Docs — Product specification

The complete product, written down before it is built (MAT-T360, MAT-T476). Every ID below is a ticket; the tree mirrors this file one to one. docs/RELEASE.md says which part the current milestone delivers.

1. Product definition

In docs/ECOSYSTEM.md MindAttic.Docs is the content half of the documentation hub platform concern (MindAttic.Docs.Wiki is the site half). It gathers every public, active MindAttic repo's front page and docs/** into one hub that the wiki at https://mindattic.com/wiki/docs/ is built from. The finished product carries every active public repo, documents itself, puts the ecosystem's source vision and waterfall in front of readers, and stays current within minutes.

2. Scope boundary

2.1 In the product

Aggregation of front pages and docs with links and images; secret scan before every write; private-repo exclusion; incremental and daily rebuilds; the hub's own documentation; the ecosystem pages; a coverage report.

2.2 Never in the product

  • Hand-written content for other repos: every repo writes its docs in its own docs/; the hub only copies.
  • Private repos' docs: a private repo never gets public documentation (HOUSE-LAW-14).
  • Editing on the wiki: the wiki is regenerated from here.

3. Users and roles

Readers and LLMs (through the wiki); every repo (as a source); the owner (sign-off).

4. Requirements

Status: built (closed ticket with evidence) or MS-165 (approved).

E1. Every repo's docs in one hub — MAD-T2 — built

F1.1 Aggregation — MAD-T3 — built

  • S1.1.1 One front page per repo — MAD-T4 — built Acceptance: Given a repo whose README is the standard pointer, when the hub builds, then its docs/overview.md is the repo's front page. Evidence: cbf9081 (MAT-T355).
  • S1.1.2 Docs copied with links and images — MAD-T5 — built Acceptance: Given a repo's docs/**/*.md, when the hub builds, then links resolve and images are copied. Evidence: tools/build-hub.ps1, 4440b00.
  • S1.1.3 Hub homepage and nav — MAD-T24 — built Acceptance: Given a rebuild, when the front page opens, then every included repo is one card in its PORTFOLIO.md group (or "Other"), the stat strip counts repos and pages, and the top nav follows the same groups. Evidence: 4440b00.

F1.2 Nothing secret, nothing private — MAD-T6 — built

  • S1.2.1 Secret scan before write — MAD-T7 — built Acceptance: Given a file with a credential, when the hub builds, then the value never reaches the hub.
  • S1.2.2 Private repos excluded — MAD-T8 — built Acceptance: Given a private repo, when the hub builds, then it is listed as excluded and nothing of it is copied.
  • S1.2.3 Secret scan from one owner (debt) — MAD-T26 — MS-165 Acceptance: Given a staged page with a token of each known shape and a placeholder, when the hub rebuilds, then each token is redacted as before and build-hub.ps1 holds no pattern list of its own (it calls the owner repo's scanner).
  • S1.0.1 Hub pipeline joins both epics (membrane) — MAD-T25 — built tools/build-hub.ps1 joins E1 and E2 in one pipeline and one DocFX site (R17). Evidence: 4440b00, b4b9518.

E2. Current within minutes — MAD-T9 — built

F2.1 Incremental rebuild — MAD-T10 — built

  • S2.1.1 Rebuild after a docs edit — MAD-T11 — built Acceptance: Given a docs push in any public wip repo, when the workflow runs, then only changed repos are restaged and a daily run rebuilds all. Evidence: tools/docs-signatures.ps1, b4b9518 (MAT-T352).

E3. The hub explains the whole ecosystem — MAD-T12 — MS-165 (built but for the owner's sign-off)

F3.1 The hub documents itself — MAD-T13 — built

F3.2 The source on the wiki — MAD-T15 — built

  • T3.2.1 Ecosystem pages in the hub — MAD-T16 — built (related GG-T2262) Acceptance: Given the hub front page, then it links the workspace docs/ECOSYSTEM.md and the waterfall. Evidence: 3911097.

F3.3 Every active repo present — MAD-T17 — built

  • T3.3.1 Coverage report — MAD-T18 — built Acceptance: Given the build stats, then every public wip repo without a front page or docs is named. Evidence: 330753e.

F3.4 Polish and release 1.0 — MAD-T19 — MS-165

  • S3.0.1 One rebuild, one front page (membrane) — MAD-T27 — built Acceptance: Given a full rebuild and a wiki sync, then the front page links ECOSYSTEM and the waterfall, the MindAttic.Docs page shows the hub's own docs, and every public wip repo is a card or named in the coverage report. Joins F3.1, F3.2 and F3.3. Evidence: full rebuild run 46659814464 (2b6dbbf), wiki checked 2026-12-01.
  • T3.4.1 Owner sign-off: the hub — MAD-T20 — MS-165 (requires MAD-T14, MAD-T16, MAD-T18, MAD-T27)

Filed after this spec was written (MAT-T478)

Open tickets filed after the last spec pass, listed under their parent until the spec tree is rendered from the plan (M.TIX-T535).

  • Under MAD-T12 The hub explains the whole ecosystem
    • MAD-T23 (task) Hub rebuild keeps the hub's own docs

5. Non-functional requirements

Runs in GitHub Actions and locally with PowerShell and gh; every file secret-scanned; idempotent builds.

6. Interfaces and dependencies

Platform it uses: MindAttic.Agency (README pointer and brochure conventions), MindAttic.Scheduler (the 15-minute wiki sync job), MindAttic.Tickets (the plan). Feeds MindAttic.Docs.Wiki (the site), which publishes the hub.

7. Release sequence

One milestone, MS-165 "MindAttic.Docs 1.0: the hub explains the whole ecosystem"; it is the finished product.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from README, the build tools and git history; built work recorded as E1-E2; MS-165 created; the ecosystem pages (F3.2) follow from ECOSYSTEM.md naming this hub as where every repo's docs flow MAT-T476
2026-11-30 MAT-T478 spec drift repaired: 2 open tickets filed after the spec listed in section 4 MAT-T478
2026-12-01 Build-up plan phase: ledger 1/4 to 4/4 plus site config (R39); built S1.1.3 (MAD-T24) and built membrane S1.0.1 (MAD-T25); debt S1.2.3 (MAD-T26, one of three secret scanners, R35); membrane S3.0.1 (MAD-T27), with the sign-off after it; steward checks MAD-T21, T22 closed wont-do as covered by MAD-T14, T16 MAD-T26
2026-12-01 Build phase: MAD-T14 hub docs (the hub is a section of itself), MAD-T16 ecosystem and waterfall copied into docs/source and linked from the front page, MAD-T18 coverage report (docs-only repos staged), membrane MAD-T27 closed on a full rebuild and a wiki check; MAD-T26 waits on M.VALT-T241; MAD-T20 is the owner's MAD-T27
From MindAttic.Docs/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.