Skip to content

docs: add canonical navigation and ownership - #1095

Merged
brokemac79 merged 1 commit into
mainfrom
codex/csw-114-doc-architecture
Aug 10, 2026
Merged

brokemac79 merged 1 commit into
mainfrom
codex/csw-114-doc-architecture

Conversation

@brokemac79

@brokemac79 brokemac79 commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a canonical documentation hub organized by audience, task, category, and lifecycle
  • add role ownership, source-of-truth, last-verified, and update-trigger metadata to volatile references
  • make repair documentation roles explicit and remove duplicated command-routing and merge-policy prose
  • preserve the generated site landing while publishing the new hub at documentation.html

Problem

The repository had no documentation index, so contributors and operators had to infer the right page from a large README and several overlapping repair guides. Volatile runbooks rarely named an owner, source, verification revision, or update trigger. The repair entry point repeated the comment command matrix, trust rules, merge gates, repair ladder, and routing behavior already maintained in the operator and autofix/automerge references.

Adding docs/README.md also exposed two generated-site routing assumptions: docs/README.md mapped to the same index.html as the synthetic landing, and links to root-level Markdown were rewritten to nonexistent escaped .html paths.

Implementation

  • create docs/README.md with start-here routes, lifecycle definitions, category navigation, update triggers, and explicit historical/proposed boundaries
  • link the hub from README, CONTRIBUTING, and AGENTS; document Node 24 plus pinned [email protected]
  • add lightweight metadata to scheduler, limits, dashboard, Bay, target, queue, local-review, containment, and repair references
  • assign canonical roles to repair entry, operations, internal feature, steerable architecture, and auto-update documents
  • replace duplicated repair comment/gate details with short invariant summaries and canonical links
  • separate local development commands from operator-only mutation paths and remove the personal checkout path
  • route docs/README.md to documentation.html, retain the synthetic landing at index.html, and rewrite links outside docs/ to repository source URLs

Current-main reconciliation

After #1092 merged, this PR's single information-architecture commit was replayed onto current main 9c32c14c65b0551b43a10c2086c0031338ae41e7. The rebase was conflict-free. Fourteen active-page Last verified fields were refreshed from the former stacked head to that merged baseline; the proposed queue-service split runbook retains its own older explicit verification revision. No runtime, configuration, workflow, queue, deployment, or production-state change is included.

Validation

At exact head 8842fb82e4ab124d10b8b01325e9e33b188b1f72:

  • corepack pnpm run check:limits — pass
  • corepack pnpm run build — pass
  • node scripts/build-docs-site.mjs — pass, 54 pages
  • node --test test/docs-site-theme.test.ts — pass, 1/1
  • repository-wide relative Markdown link sweep — pass, 74 tracked Markdown files
  • evergreen index coverage — pass, all 34 non-proof documentation pages linked
  • canonical personal-path scan — pass
  • git diff --check origin/main...HEAD — pass

Inspectable exact-head trace:

HEAD=8842fb82e4ab124d10b8b01325e9e33b188b1f72
check:limits: PASS
build: PASS
built docs site: dist/docs-site (54 pages)
docs-site focused test: 1/1 PASS
relative Markdown links: PASS (74 files)
evergreen index coverage: PASS (34 pages)
canonical personal-path scan: PASS
git diff --check: PASS

Review closeout

  • dirty-patch review of the post-rebase metadata refresh found no functional, accuracy, or maintainability issue
  • focused validation was rerun after the refresh
  • final committed review against origin/main found the documentation reorganization and docs-site routing internally consistent, the synthetic landing preserved, and repository-root Markdown links correctly routed to GitHub; no actionable correctness issues

Real Behavior Proof

  • Claim: the static docs build keeps the existing landing at /, publishes the new canonical hub at /documentation.html, and emits valid links for root-level repository guidance.
  • Exercised surface: exact-head docs-site generation, focused generated-output assertions, repository-wide relative-link validation, and complete evergreen-index coverage.
  • Scenario/environment: Node 24.13.0 and pnpm 11.10.0 on exact head 8842fb82e4ab124d10b8b01325e9e33b188b1f72 after replay onto merged main.
  • Observed result: 54 pages generated; focused test passed 1/1; index.html retained the three-hosted-lane landing; documentation.html contained the canonical hub and repository-source link for CONTRIBUTING.md; all 74 tracked Markdown files passed relative-link validation and all 34 non-proof docs pages were indexed.
  • Artifact/trace: reproducible generated output in dist/docs-site/index.html and dist/docs-site/documentation.html; exact terminal trace above.
  • Limits: documentation and deterministic static-output behavior only. No Pages deploy, Worker mutation, workflow dispatch, queue mutation, gate change, secret access, or production write was performed. An earlier public-PR proof on pre-rebase head e3614fe3542c711399aaf9000d93a4f1c683b12d also passed in Crabbox local-container run/lease cbx_120dd6652601 (crimson-shrimp) with the Playwright noble image, but that historical run is not substituted for the exact-head trace above.

Ownership decision

This PR uses the responsibility role “ClawSweeper maintainers.” It deliberately does not add .github/CODEOWNERS: repository team discovery was unavailable to the current token, and the inspected organization examples established security/release teams but no approved general-documentation owner. A maintainer should provide the stable individual or team slug before a CODEOWNERS rule is added.

Risks and rollout

  • lifecycle and owner metadata are human-reviewed; PR docs: add deterministic drift checks #1096 adds deterministic checks for links, documented commands, and selected configuration-derived claims, not policy ownership
  • repair detail was removed only where a canonical operator or autofix/automerge page already owns it
  • documentation/static-site change only; rollback is the squash commit

Related work

@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 7:59 AM ET / 11:59 UTC.

ClawSweeper review

What this changes

The PR adds a canonical documentation hub and ownership metadata, then publishes that hub separately from the existing static-site landing page.

Merge readiness

✅ Ready for maintainer review

This PR remains necessary: current main still treats docs/README.md as the generated site index and starts navigation at the scheduler. The proposed separate documentation hub and route are focused, consistent with the current runtime documentation, and have no actionable patch defect in this review.

Priority: P3
Reviewed head: 8842fb82e4ab124d10b8b01325e9e33b188b1f72

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused route change, regression coverage, and exact-head static-output trace provide normal merge-ready evidence for this documentation PR.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The exact-head terminal trace directly exercises generation and generated-output assertions, with successful link and index coverage checks; it is sufficient for this static documentation behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The exact-head terminal trace directly exercises generation and generated-output assertions, with successful link and index coverage checks; it is sufficient for this static documentation behavior.
Evidence reviewed 6 items Current-main gap: Current main still maps the documentation README to index.html and its Start navigation begins with the scheduler, so it does not yet provide this PR’s separate hub route.
Focused route change: The PR maps docs/README.md to documentation.html, adds it to Start navigation, and sends root-level Markdown links to repository source URLs.
Generated-output coverage: The updated focused test checks that the generated hub contains its heading and lifecycle navigation, preserves the existing landing assertions, and emits a repository URL for a root-level guide.
Findings None None.
Security None None.

How this fits together

Repository guides describe ClawSweeper’s operator, repair, dashboard, and contributor surfaces. The static documentation builder converts those Markdown guides into the public site used by contributors and operators.

flowchart LR
  Sources[Repository guides and runbooks] --> Hub[Documentation hub]
  Sources --> Builder[Static documentation builder]
  Hub --> Builder
  Builder --> Routes[Landing and documentation routes]
  Routes --> Readers[Contributors and operators]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Documentation surface 21 files: 19 documentation, 1 generator, 1 focused test The change is broad in documentation coverage but confines executable behavior to one static-site route transformation and its regression coverage.

Technical review

Best possible solution:

Land the focused hub and routing change after normal maintainer review so the generated landing remains intact while a canonical documentation route becomes available.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a documentation and deterministic static-site routing change, and the PR supplies exact-head generated-output evidence rather than a user-reported failure reproduction.

Is this the best way to solve the issue?

Yes. A single documentation index plus a narrow route mapping preserves the existing landing while providing a stable hub without duplicating operational procedures.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9c32c14c65b0.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The exact-head terminal trace directly exercises generation and generated-output assertions, with successful link and index coverage checks; it is sufficient for this static documentation behavior.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P3: This is a low-risk documentation and static-site navigation improvement with no runtime, queue, workflow, or production-state change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The exact-head terminal trace directly exercises generation and generated-output assertions, with successful link and index coverage checks; it is sufficient for this static documentation behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The exact-head terminal trace directly exercises generation and generated-output assertions, with successful link and index coverage checks; it is sufficient for this static documentation behavior.

Evidence

What I checked:

  • Current-main gap: Current main still maps the documentation README to index.html and its Start navigation begins with the scheduler, so it does not yet provide this PR’s separate hub route. (scripts/build-docs-site.mjs:13, 9c32c14c65b0)
  • Focused route change: The PR maps docs/README.md to documentation.html, adds it to Start navigation, and sends root-level Markdown links to repository source URLs. (scripts/build-docs-site.mjs:175, 8842fb82e4ab)
  • Generated-output coverage: The updated focused test checks that the generated hub contains its heading and lifecycle navigation, preserves the existing landing assertions, and emits a repository URL for a root-level guide. (test/docs-site-theme.test.ts:32, 8842fb82e4ab)
  • Runtime references reconciled: The metadata baseline is consistent with current production publication overrides of 8, 32, and 40, rather than the older fallback values. (dashboard/wrangler.toml:58, 9c32c14c65b0)
  • Recent-area provenance: Current main’s runtime-documentation alignment changed the same documentation and docs-site surfaces in the merged baseline commit. (scripts/build-docs-site.mjs:13, 9c32c14c65b0)
  • After-fix behavior proof: The PR body records an exact-head Node 24 terminal trace: 54 generated pages, the focused docs-site assertion passing, a 74-file relative-link sweep, and complete evergreen-index coverage. (8842fb82e4ab)

Likely related people:

  • Martin Cleary: Authored the current-main documentation/runtime alignment that touched the docs-site builder, focused site test, and several guides this PR extends. (role: recent area contributor; confidence: high; commits: 9c32c14c65b0, 40ef02ae651c; files: scripts/build-docs-site.mjs, test/docs-site-theme.test.ts, docs/repair/README.md)
  • Peter Steinberger: Authored the repository’s GitHub Pages documentation-site deployment, providing the historical ownership signal for the generated-site surface. (role: original docs-site contributor; confidence: medium; commits: 535fae2c76fd; files: scripts/build-docs-site.mjs)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-10T08:54:07.519Z sha e3614fe :: needs maintainer review before merge. :: none
  • reviewed 2026-08-10T08:58:14.723Z sha e3614fe :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-10T09:13:08.413Z sha e3614fe :: needs maintainer review before merge. :: none
  • reviewed 2026-08-10T10:51:23.977Z sha e3614fe :: needs maintainer review before merge. :: none
  • reviewed 2026-08-10T11:52:22.447Z sha e3614fe :: found issues before merge. :: [P1] Keep production publication values aligned with current main

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 10, 2026
@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 10, 2026
@brokemac79
brokemac79 force-pushed the codex/csw-114-doc-accuracy branch from 8bd13a1 to 413a8de Compare August 10, 2026 11:26
Base automatically changed from codex/csw-114-doc-accuracy to main August 10, 2026 11:48
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 10, 2026
@brokemac79
brokemac79 force-pushed the codex/csw-114-doc-architecture branch from e3614fe to 8842fb8 Compare August 10, 2026 11:53
@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 10, 2026
@brokemac79
brokemac79 marked this pull request as ready for review August 10, 2026 12:01
@brokemac79
brokemac79 merged commit 2f54784 into main Aug 10, 2026
22 of 23 checks passed
@brokemac79
brokemac79 deleted the codex/csw-114-doc-architecture branch August 10, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant