Skip to content

ProDocs 1.2.1: fix and validate generated view links - #22

Merged
boyeesu merged 2 commits into
mainfrom
codex/fix-generated-view-links
Aug 9, 2026
Merged

ProDocs 1.2.1: fix and validate generated view links#22
boyeesu merged 2 commits into
mainfrom
codex/fix-generated-view-links

Conversation

@boyeesu

@boyeesu boyeesu commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Outcome

Fixes nested audience-view links that were calculated from the output root, replaces misleading generic empty states with section-specific messages, and makes prodocs check fail on broken generated local links.

Kourti validation

  • regenerated 12 artifacts
  • 0 broken local links (previously 39)
  • validLinks: true
  • fresh source, knowledge, and input hashes
  • 1/1 supported knowledge item

Production gates

  • 82 tests passing
  • 94.00% line / 80.79% branch / 96.79% function coverage
  • production verification passed
  • Semgrep: 0 findings
  • Gitleaks: 0 leaks
  • npm audit: 0 vulnerabilities

Summary by CodeRabbit

  • New Features

    • Added validation for broken local links in generated documentation.
    • Updated check to report link health and fail when links are invalid or documentation is stale.
    • Added section-specific empty-state messages and corrected generated documentation links.
  • Bug Fixes

    • Fixed nested-audience links and relative paths in generated views.
    • Improved handling of missing or unreadable documentation files.
  • Documentation

    • Updated release notes, validation guidance, command help, and project version to 1.2.1.
    • Refreshed generated documentation metadata and knowledge snapshots.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 56 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dd76163b-177c-4532-9092-62a6c103a38c

📥 Commits

Reviewing files that changed from the base of the PR and between 4cfbeef and 876bbfa.

📒 Files selected for processing (11)
  • docs/prodocs/CODE_MAP.md
  • docs/prodocs/SYSTEM_OVERVIEW.md
  • docs/prodocs/knowledge.json
  • docs/prodocs/manifest.json
  • docs/prodocs/views/coding-agents.md
  • docs/prodocs/views/operations.md
  • docs/prodocs/views/product.md
  • docs/prodocs/views/security.md
  • docs/prodocs/views/support.md
  • docs/prodocs/views/technical.md
  • test/render.test.js
📝 Walkthrough

Walkthrough

The release adds generated Markdown link validation, updates CLI check states and JSON output, corrects nested audience-view links and empty states, refreshes generated documentation metadata, and increments the project version to 1.2.1.

Changes

Generated documentation validation and release

Layer / File(s) Summary
Generated link validation and CLI check flow
src/generated-links.js, src/cli.js, test/cli.test.js, README.md, docs/VALIDATION.md
The CLI validates local generated links, reports validLinks and linkIssues, and exits with failure when documentation checks are not ready.
Nested audience rendering and link paths
src/render.js, test/render.test.js, docs/prodocs/views/*
Audience views now resolve source links relative to their nested output directories and use section-specific empty-state text.
Version and release documentation
src/constants.js, package.json, CHANGELOG.md, docs/MATURITY.md, docs/SUPPLY_CHAIN.md
Project version and release references now use 1.2.1.
Generated documentation index refresh
docs/prodocs/CODE_MAP.md, docs/prodocs/KNOWLEDGE_HEALTH.md, docs/prodocs/SYSTEM_OVERVIEW.md, docs/prodocs/knowledge.json, docs/prodocs/manifest.json
Generated indexes, metrics, hashes, relationships, timestamps, and health text were regenerated for the new source and test files.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CLI
  participant generatedLinks
  participant FileSystem
  CLI->>generatedLinks: validateGeneratedLinks(root, config)
  generatedLinks->>FileSystem: Read generated Markdown artifacts
  FileSystem-->>generatedLinks: Markdown content or link issues
  generatedLinks-->>CLI: validLinks and linkIssues
  CLI->>generatedLinks: documentationCheckState(...)
  generatedLinks-->>CLI: Check readiness
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary change: fixing and validating generated audience-view links.
Description check ✅ Passed The description explains the changes, outcomes, validation results, tests, coverage, and production gates, although it uses headings different from the template.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-generated-view-links

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.

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

🧹 Nitpick comments (1)
test/render.test.js (1)

85-92: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Cover the changed audience branches.

This test configures only product and technical audiences and checks only the product fallback. The changes in src/render.js also alter the support, security, and operations empty states. Add cases for those branches, or call renderAudienceView directly, so regressions in those messages fail the test.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/render.test.js` around lines 85 - 92, Extend the render tests around the
existing product fallback assertions to cover the support, security, and
operations audience branches changed in renderAudienceView. Configure or invoke
renderAudienceView for each audience with empty-state input, then assert the
expected generated message for each while preserving the existing link
validation.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@test/render.test.js`:
- Around line 85-92: Extend the render tests around the existing product
fallback assertions to cover the support, security, and operations audience
branches changed in renderAudienceView. Configure or invoke renderAudienceView
for each audience with empty-state input, then assert the expected generated
message for each while preserving the existing link validation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 138ff91f-c6e5-45e9-a63c-477750d213c2

📥 Commits

Reviewing files that changed from the base of the PR and between 36ef00e and 4cfbeef.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (23)
  • CHANGELOG.md
  • README.md
  • docs/MATURITY.md
  • docs/SUPPLY_CHAIN.md
  • docs/VALIDATION.md
  • docs/prodocs/CODE_MAP.md
  • docs/prodocs/KNOWLEDGE_HEALTH.md
  • docs/prodocs/SYSTEM_OVERVIEW.md
  • docs/prodocs/knowledge.json
  • docs/prodocs/manifest.json
  • docs/prodocs/views/coding-agents.md
  • docs/prodocs/views/operations.md
  • docs/prodocs/views/product.md
  • docs/prodocs/views/security.md
  • docs/prodocs/views/support.md
  • docs/prodocs/views/technical.md
  • package.json
  • src/cli.js
  • src/constants.js
  • src/generated-links.js
  • src/render.js
  • test/cli.test.js
  • test/render.test.js

@boyeesu
boyeesu merged commit 356c335 into main Aug 9, 2026
9 checks passed
@boyeesu
boyeesu deleted the codex/fix-generated-view-links branch August 9, 2026 16:13
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