Skip to content

docs: organize documentation by reader tier - #2778

Merged
Sinity merged 5 commits into
masterfrom
feature/fanout/docs-ia
Jul 12, 2026
Merged

Sinity merged 5 commits into
masterfrom
feature/fanout/docs-ia

Conversation

@Sinity

@Sinity Sinity commented Jul 12, 2026 •

Copy link
Copy Markdown
Owner

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

  • Assign every Markdown page under docs/ to a deliberate tier: guides, reference, architecture/internals, operations, evidence, design, or historical records.
  • Make devtools render docs-surface --check compare that registry with the recursive docs tree, so an unregistered new page fails the generated-surface gate.
  • Regenerate the root and docs maps, expose the tiers in site navigation, and add local indexes for audits, examples, and retrospectives.
  • Normalize the verified export/configuration examples to find QUERY then read.

Acceptance criteria

  • Satisfied: every current Markdown page is reachable through the generated tiered map; adding one without a registry entry fails the render gate.
  • Satisfied: site navigation exposes the reader-facing tiers and the new directory indexes.
  • Partial: devtools render all --check validates rendered local links; the all-document internal-anchor/cross-page link crawler remains deferred to polylogue-6bu.
  • Deferred: a claim-by-claim freshness audit of every command/version remains tracked by polylogue-ccma; this PR corrects the query-export drift found during this IA pass.
  • Misframed: onboarding.md was a stale-doc candidate by age/name, but its polylogue init workflow 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 production render_outputs gate: removing it or introducing unregistered, duplicate, or nonexistent catalog paths makes them fail.
  • devtools render all --check — render docs-surface: sync OK and OK: 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.

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]>
@coderabbitai

coderabbitai Bot commented Jul 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 6 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e7d7d90c-a2c0-4f40-87cc-b863b5b6fdca

📥 Commits

Reviewing files that changed from the base of the PR and between 901825e and 1bc1c54.

📒 Files selected for processing (11)
  • README.md
  • devtools/docs_surface.py
  • devtools/render_docs_surface.py
  • docs/README.md
  • docs/audits/README.md
  • docs/configuration.md
  • docs/examples/README.md
  • docs/export.md
  • docs/retro/README.md
  • docs/site/pages.toml
  • tests/unit/devtools/test_render_docs_surface.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fanout/docs-ia

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread docs/export.md Resolved
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]>
@Sinity

Sinity commented Jul 12, 2026

Copy link
Copy Markdown
Owner Author

Adversarial review — iteration 1

Findings and fixes:

  • Real gap: the initial regression test called undocumented_paths() directly, so removing render_outputs() enforcement would not fail it. Fixed in 301201789: the test now calls production render_outputs() and asserts its unregistered-document error.
  • Real gap: live CLI diagnosis showed read --all --format html is rejected by the standard root query path. Fixed in 301201789: docs/export.md now lists only standard query-set formats and points readers to polylogue read --views --format json for view-specific contracts.
  • Borderline, recorded: the bead design proposes per-document front matter; this PR deliberately uses one explicit generated registry as the metadata source. It does not claim a literal front-matter implementation. The registry is coverage-checked and therefore satisfies the stated reachability/render-gate AC, while preserving existing document files.

Verification: POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytest devtools test tests/unit/devtools/test_render_docs_surface.py — 3 passed; devtools render all --check — docs-surface sync and site links resolved.

A fresh, independent iteration follows.

Sinity and others added 2 commits July 13, 2026 00:53
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]>
@Sinity

Sinity commented Jul 12, 2026

Copy link
Copy Markdown
Owner Author

Adversarial review — iteration 2

Findings and fixes:

  • Real gap: the export table claimed universal Markdown/NDJSON defaults even though the default varies by view and cardinality. Fixed in 32782afe1: the guide now requires an explicit format in automation and gives only format capabilities.
  • Real gap: the catalog gate detected omitted pages but accepted a page registered in multiple tiers. Fixed in 32782afe1: production render_outputs() now rejects duplicate and nonexistent registry paths; the added regression fixture invokes that production gate.
  • Real review comment: natural-language date values with spaces now use since:"last month" (commit 98792f670); the parser route was exercised directly and the inline thread was answered.
  • Deferred scope, not claimed as complete: per-document front-matter metadata and a complete stale-claim/archival pass remain requirements of the still-open polylogue-ttu bead. This PR provides a coverage-checked explicit registry and correction of export drift, but does not represent a literal front-matter migration or close that stale-triage scope. The complete command/version sweep remains polylogue-ccma; anchor-level site-link verification is owned by open polylogue-6bu.

Verification: POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytest devtools test tests/unit/devtools/test_render_docs_surface.py — 4 passed; devtools render all --check — render check passed in the pre-push quick baseline.

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]>
@Sinity

Sinity commented Jul 12, 2026

Copy link
Copy Markdown
Owner Author

Adversarial review — iteration 3

Finding and fix:

  • Real gap: the new registry validator rejected nonexistent paths, but its tests covered only unregistered and duplicate paths. Fixed in 1bc1c54fd: a production render_outputs() regression test now asserts the missing-path failure. The gate’s omission, duplicate, and nonexistent-path branches are all exercised.

Verification: POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytest devtools test tests/unit/devtools/test_render_docs_surface.py — 5 passed; the pre-push devtools verify --quick baseline passed its rendered/docs checks before pushing the commit.

A fresh, independent iteration follows.

@Sinity

Sinity commented Jul 12, 2026

Copy link
Copy Markdown
Owner Author

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 polylogue-6bu. No code claim was changed, and polylogue-ttu remains open.

Final AC matrix for polylogue-ttu

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.

@Sinity
Sinity merged commit cb29ae7 into master Jul 12, 2026
3 of 15 checks passed
@Sinity
Sinity deleted the feature/fanout/docs-ia branch July 12, 2026 23:28
Sinity added a commit that referenced this pull request Jul 12, 2026
…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]>
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 57.F084 / P2: fixed-already at the checked revision: The export example now quotes the multiword DSL date value. docs/export.md:42 passes since:"last month" inside the quoted find expression, so the parser no longer splits it into a since:last clause and a separate month term.

Only the rows listed above are dispositioned. Held findings remain open.

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