Skip to content

docs: add pre-pr doc cross-link audit#31

Merged
flyingrobots merged 3 commits intomainfrom
docs/tr-009-pre-pr-doc-cross-link-audit
Apr 1, 2026
Merged

docs: add pre-pr doc cross-link audit#31
flyingrobots merged 3 commits intomainfrom
docs/tr-009-pre-pr-doc-cross-link-audit

Conversation

@flyingrobots
Copy link
Copy Markdown
Member

@flyingrobots flyingrobots commented Apr 1, 2026

Summary

  • add the TR-009 Truth cycle doc and define a lightweight pre-PR doc cross-link audit
  • wire the audit into the existing docs checklist, workflow, and contributing doctrine without creating a second process layer
  • close TR-009 across backlog, archive, design, legend, and changelog surfaces

Verification

  • npx prettier --check CONTRIBUTING.md WORKFLOW.md docs/DOCS_CHECKLIST.md docs/BACKLOG/README.md docs/archive/BACKLOG/README.md docs/archive/BACKLOG/TR-009-pre-pr-doc-cross-link-audit.md docs/design/README.md docs/design/TR-009-pre-pr-doc-cross-link-audit.md docs/legends/TR-truth.md CHANGELOG.md
  • git diff --check
  • npx eslint .
  • npm test

Summary by CodeRabbit

  • Documentation
    • Added a pre-PR documentation cross-link audit to ensure changed docs route readers to canonical adjacent content.
    • Updated workflow and contributor guidance to require this pre-review check for doc-heavy branches.
    • Added detailed audit procedures, checklist entries, and a landed design note describing scope and verification steps.
    • Updated backlog and legend indexes to reflect the new audit as a landed item.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 1, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 36911e24-626a-4950-81c7-25eff5c12756

📥 Commits

Reviewing files that changed from the base of the PR and between 5eeedfa and 079adb2.

📒 Files selected for processing (1)
  • docs/design/TR-009-pre-pr-doc-cross-link-audit.md
✅ Files skipped from review due to trivial changes (1)
  • docs/design/TR-009-pre-pr-doc-cross-link-audit.md

📝 Walkthrough

Walkthrough

Adds a landed TR-009 “Pre-PR Doc Cross-Link Audit” to documentation workflows: new design doc, checklist entry, WORKFLOW/CONTRIBUTING updates, backlog archival moves, and legend/index updates to require a lightweight pre-review cross-link verification for doc-heavy branches.

Changes

Cohort / File(s) Summary
Changelog & Primary Workflow
CHANGELOG.md, CONTRIBUTING.md, WORKFLOW.md
Inserted a changelog bullet; updated CONTRIBUTING.md to require a pre-PR doc cross-link audit for branches touching top-level/canonical docs; added a WORKFLOW section defining the audit scope, trigger conditions, and requirement before review.
Docs Checklist
docs/DOCS_CHECKLIST.md
Added a detailed "Pre-PR Doc Cross-Link Audit" section enumerating target surfaces (top-level docs, planning indexes, legend summaries), validation points, and updated Exit Criteria to require the audit for touched surfaces.
Backlog Lifecycle
docs/BACKLOG/README.md, docs/archive/BACKLOG/README.md, docs/archive/BACKLOG/TR-009-pre-pr-doc-cross-link-audit.md
Removed TR-009 from active backlog; added archived backlog entry with "landed as" link; adjusted relative cross-links and minor wrapping in archived doc.
Design Docs & Index
docs/design/README.md, docs/design/TR-009-pre-pr-doc-cross-link-audit.md
Added landed-cycle design doc TR-009 (goals, non-goals, triggers, validation, implementation outline) and updated design README to link the new doc.
Legends / Indexes
docs/legends/TR-truth.md
Moved TR-009 into the "Current Cycle Surface" and updated focus statements to include running the lightweight pre-PR cross-link audit.

Sequence Diagram(s)

(omitted — changes are documentation/metadata updates without multi-component control-flow requiring visualization)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 I hop through docs with careful paws,
I nudge each link to follow laws,
From backlog burrows to landed light,
I weave the paths so readers site,
TR-009 — tidy trails in flight. 🥕✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs: add pre-pr doc cross-link audit' directly and clearly summarizes the main change: introduction of a new pre-PR documentation cross-link audit mechanism across multiple documentation files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/tr-009-pre-pr-doc-cross-link-audit

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 and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
docs/design/TR-009-pre-pr-doc-cross-link-audit.md (1)

97-100: Consider making trigger targets explicit as filenames or “doc surfaces.”

The current list mixes conceptual surfaces and filename-like labels. Making this explicit (for example, README.md, CONTRIBUTING.md, etc., or “canonical doc surfaces such as …”) would reduce interpretation drift for maintainers/agents.

Proposed wording tweak
-The audit should run when a branch changes top-level or canonical docs such as
-README, CONTRIBUTING, WORKFLOW, ARCHITECTURE, SECURITY, API, THREAT_MODEL,
-BENCHMARKS, and planning indexes.
+The audit should run when a branch changes top-level or canonical doc surfaces
+such as README.md, CONTRIBUTING.md, WORKFLOW.md, ARCHITECTURE.md, SECURITY.md,
+API.md, THREAT_MODEL.md, BENCHMARKS.md, and planning indexes.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/design/TR-009-pre-pr-doc-cross-link-audit.md` around lines 97 - 100,
Update the ambiguous trigger-target wording in
TR-009-pre-pr-doc-cross-link-audit.md so it lists explicit filename targets or
clearly labels them as “canonical doc surfaces”; replace the current mixed terms
(README, CONTRIBUTING, WORKFLOW, ARCHITECTURE, SECURITY, API, THREAT_MODEL,
BENCHMARKS, and planning indexes) with explicit examples like README.md,
CONTRIBUTING.md, WORKFLOW.md, ARCHITECTURE.md, SECURITY.md, API.md,
THREAT_MODEL.md, BENCHMARKS.md (or the phrase “canonical doc surfaces such as
…”) so maintainers/agents cannot misinterpret which files should trigger the
audit.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@docs/design/TR-009-pre-pr-doc-cross-link-audit.md`:
- Around line 97-100: Update the ambiguous trigger-target wording in
TR-009-pre-pr-doc-cross-link-audit.md so it lists explicit filename targets or
clearly labels them as “canonical doc surfaces”; replace the current mixed terms
(README, CONTRIBUTING, WORKFLOW, ARCHITECTURE, SECURITY, API, THREAT_MODEL,
BENCHMARKS, and planning indexes) with explicit examples like README.md,
CONTRIBUTING.md, WORKFLOW.md, ARCHITECTURE.md, SECURITY.md, API.md,
THREAT_MODEL.md, BENCHMARKS.md (or the phrase “canonical doc surfaces such as
…”) so maintainers/agents cannot misinterpret which files should trigger the
audit.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1169c298-6589-43f2-a43d-d7deddb3f8a9

📥 Commits

Reviewing files that changed from the base of the PR and between 469de2c and 9f18476.

📒 Files selected for processing (10)
  • CHANGELOG.md
  • CONTRIBUTING.md
  • WORKFLOW.md
  • docs/BACKLOG/README.md
  • docs/DOCS_CHECKLIST.md
  • docs/archive/BACKLOG/README.md
  • docs/archive/BACKLOG/TR-009-pre-pr-doc-cross-link-audit.md
  • docs/design/README.md
  • docs/design/TR-009-pre-pr-doc-cross-link-audit.md
  • docs/legends/TR-truth.md
💤 Files with no reviewable changes (1)
  • docs/BACKLOG/README.md

@flyingrobots
Copy link
Copy Markdown
Member Author

@coderabbitai review please 🥕

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 1, 2026

@flyingrobots Sure, kicking off the review now! 🥕


🧠 Learnings used
Learnt from: flyingrobots
Repo: git-stunts/git-cas PR: 29
File: docs/design/TR-010-planning-index-consistency-review.md:121-131
Timestamp: 2026-03-30T19:53:48.000Z
Learning: In the git-stunts/git-cas repository, CHANGELOG.md uses user-facing, descriptive bullet entries rather than cycle-ID headings (e.g., "Planning-index consistency review" instead of "TR-010 — Planning Index Consistency Review"). Grepping for cycle IDs like "TR-010" in CHANGELOG.md will produce false negatives; search for descriptive keywords instead.
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@flyingrobots flyingrobots merged commit 4b4caf5 into main Apr 1, 2026
6 checks passed
@flyingrobots flyingrobots deleted the docs/tr-009-pre-pr-doc-cross-link-audit branch April 1, 2026 07:37
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