Repository navigation
docs: organize documentation by reader tier - #2778
Conversation
Problem: The generated documentation map exposed only a fraction of the repository's Markdown pages, leaving current reference, operational, design, and historical material without a navigable home. What changed: The docs-surface registry now assigns every Markdown page to a reader-facing tier and fails rendering when a new page is not registered. The generated README map and site navigation follow those tiers, while audit, example, and retrospective directories have local indexes. Query-export examples now use the current query-first CLI flow. Compatibility: Existing documentation paths and site routes remain stable; this change adds navigation and corrects command examples only. Ref polylogue-ttu Co-Authored-By: Claude <[email protected]>
|
Warning Review limit reached
Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9468e1f0d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Problem: The export guide still advertised renderer formats that the standard query-set path rejects, and its docs-surface regression test bypassed the actual render gate. What changed: Document only the standard query-set formats, direct readers to the live per-view contract, and make the regression test invoke render_outputs so it exercises enforcement. Ref polylogue-ttu Co-Authored-By: Claude <[email protected]>
Adversarial review — iteration 1Findings and fixes:
Verification: A fresh, independent iteration follows. |
Problem: A query DSL field value containing a natural-language date with spaces was split into an invalid field plus text term. What changed: Quote the relative date value in the export pipeline example so it stays one query field. Ref polylogue-ttu Co-Authored-By: Claude <[email protected]>
Problem: The generated docs registry accepted duplicate ownership, and the export guide described view-dependent output defaults as universal. What changed: The render gate now rejects duplicate and nonexistent catalog paths, with a regression test through render_outputs. The export guide requires an explicit format in automation and no longer claims universal defaults. Ref polylogue-ttu Co-Authored-By: Claude <[email protected]>
Adversarial review — iteration 2Findings and fixes:
Verification: A fresh, independent iteration follows. |
Problem: The production docs-surface gate rejected nonexistent catalog entries, but its regression tests only covered omitted and duplicate registrations. What changed: Exercise the production render_outputs gate with a missing catalog path so all three registry violations remain enforced. Ref polylogue-ttu Co-Authored-By: Claude <[email protected]>
Adversarial review — iteration 3Finding and fix:
Verification: A fresh, independent iteration follows. |
Adversarial review — iteration 5 (cap reached)Finding: the prior PR wording could be read as satisfying the bead’s all-document link AC, while the executed site validator covers rendered local links only. The PR body now states that precise boundary and defers all-document internal-anchor/cross-page link integrity to Final AC matrix for
|
| Acceptance criterion | Status | Evidence / residual work |
|---|---|---|
Every docs/**/*.md is reachable from the generated index or explicitly archived |
Satisfied for current tree | The tiered registry contains all current Markdown pages; production gate rejects unregistered, duplicate, and nonexistent entries; 5 focused tests pass. |
render all --check fails for an unindexed new doc |
Satisfied | Production render_outputs() test exercises the exact failure path. |
| Pages navigation reflects the tiers | Satisfied | docs/site/pages.toml exposes guides, reference, architecture/internals, operations, evidence/product, design, and historical routes; rendered-site local links pass. |
| Zero dead intra-document links | Deferred to polylogue-6bu |
Current rendered-site validator checks local targets, not all document anchors/cross-page links; the required crawler belongs to that open bead. |
| Front-matter-derived metadata and complete stale-doc claim triage/archive banners | Deferred within open polylogue-ttu |
This PR uses a coverage-checked explicit registry and fixes export drift. It does not claim a literal front-matter migration or a full primary-claim audit. |
| Full command/version freshness sweep | Deferred to polylogue-ccma |
Explicit follow-up already exists. |
Final verification remains: POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytest devtools test tests/unit/devtools/test_render_docs_surface.py (5 passed) and devtools render all --check (docs surface synchronized; rendered local links resolved).
Five independent adversarial iterations ran. The cap was reached after this wording correction; remaining scope is explicitly tracked above. This PR remains open and neither merges nor closes a bead.
…803,2787,2798 013x (search-coverage, PR #2803) and g9f2 (write-model, PR #2798) fully satisfied — closed. y8s5 (distribution, PR #2779), ttu (docs-ia, PR #2778), kwsb (PR #2799), and n4hb/c52g/znwj (test-hardening, PR #2787) partially satisfied — noted with disposition, left open per closure-discipline. Co-Authored-By: Claude <[email protected]>
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Organizes the documentation map by reader task and makes unregistered Markdown pages fail the docs-surface render gate.
Problem
The generated map covered only a fraction of the repository documentation, leaving current reference, operational, design, audit, and retrospective pages orphaned from the primary navigation. Several query-export examples also used a retired provider shorthand or omitted the current query-first flow.
Solution
docs/to a deliberate tier: guides, reference, architecture/internals, operations, evidence, design, or historical records.devtools render docs-surface --checkcompare that registry with the recursive docs tree, so an unregistered new page fails the generated-surface gate.find QUERY then read.Acceptance criteria
devtools render all --checkvalidates rendered local links; the all-document internal-anchor/cross-page link crawler remains deferred topolylogue-6bu.polylogue-ccma; this PR corrects the query-export drift found during this IA pass.onboarding.mdwas a stale-doc candidate by age/name, but itspolylogue initworkflow is still implemented, so it remains a current guide rather than being archived.Verification
POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytest devtools test tests/unit/devtools/test_render_docs_surface.py—5 passed. The tests invoke the productionrender_outputsgate: removing it or introducing unregistered, duplicate, or nonexistent catalog paths makes them fail.devtools render all --check—render docs-surface: sync OKandOK: site sources render and generated local links resolve.Ref polylogue-ttu
Remaining polylogue-ccma scope: full claim-by-claim docs command and version audit.
Remaining polylogue-6bu scope: all-document internal-anchor and cross-page link integrity.