docs-15 follow-up: single-pass route mapping, tasks scope, parity wording#206
docs-15 follow-up: single-pass route mapping, tasks scope, parity wording#206
Conversation
Add build_route_mappings() so route index and path-to-route maps share one docs tree pass; wire scan_published_route_body_links, build_valid_internal_routes, and nav tests to use it. Clarify OpenSpec section 6: CI/pre-commit/docs validation artifacts live in specfact-cli-modules, not the paired specfact-cli repo by default. Reword invalid-combination docs without private helper names; align parity tests with user-facing phrases (review flags, request validation, targeting conflicts). Made-with: Cursor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughPull Request Summary: docs-15 follow-up (Single-Pass Route Mapping & Parity Wording)Bundles and Modules SurfaceNo command interface, adapter, or runtime behavior changes. This PR is purely documentation and internal validation infrastructure:
Manifest and RegistryNo changes to module-package.yaml, pyproject.toml versioning, or publish workflows:
Internal Tooling OptimizationRefactored
Cross-Repo Coordination: specfact-cliNo required specfact-cli changes. OpenSpec clarification added to
VerificationPre-commit checks (including contract test slice) and targeted unit tests passed locally:
WalkthroughThe PR updates documentation describing CLI flag validation order in the code-review command, clarifies implementation location in the openspec tracking file, and refactors the docs validation script to consolidate route and path mappings into a single unified builder function while updating corresponding tests. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Follow-up on docs-15 code review validation guardrails after prior merges to
dev.Changes
scripts/docs_site_validation.py: Addbuild_route_mappings()soroute_to_pathandpath_to_routeare built in one pass over the docs tree;scan_published_route_body_links,build_valid_internal_routes, andbuild_route_index/build_path_to_canonical_routeuse it (no double full-tree reads for link scanning).tasks.md: Clarify that §6 CI/pre-commit/docs artifacts are owned by specfact-cli-modules, not the paired specfact-cli repo unless explicitly coordinated.test_docs_review.pyusesbuild_route_mappingsonce for nav resolution.Verification
pytest tests/unit/docs/test_code_review_docs_parity.py tests/unit/docs/test_docs_review.pyandpython scripts/check-docs-commands.pywere run during development.Made with Cursor