docs-15: bundle link validation, OpenSpec deltas, Code Review run guide#207
docs-15: bundle link validation, OpenSpec deltas, Code Review run guide#207
Conversation
…segments. Filesystem-first resolution for ../ links matched markdown under docs/ while published permalinks under /bundles/ resolve differently in the browser, which hid broken cross-tree and cross-bundle links. Require published-route checks only for that combination, fix affected bundle overview links to use root-absolute /bundles/... and /reference/... targets, and add regression tests. Made-with: Cursor
Use canonical ## MODIFIED Requirements, ### Requirement, and #### Scenario blocks so openspec validate --strict passes and the change can be archived. Made-with: Cursor
Add worked examples for shadow mode, JSON output paths, --focus facets, folder-scoped --path runs, --level, --bug-hunt, noise and interactive flags. Document that run reviews .py/.pyi only and point Markdown validation to check-docs-commands. Fix bundle overview cross-links; link module notes to the bundle run guide for copy-pastable recipes. Made-with: Cursor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🧰 Additional context used📓 Path-based instructions (1)docs/**/*.md⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (3)📚 Learning: 2026-04-13T10:38:43.524ZApplied to files:
📚 Learning: 2026-04-13T10:38:22.837ZApplied to files:
📚 Learning: 2026-04-13T10:38:29.379ZApplied to files:
🔀 Multi-repo context nold-ai/specfact-cliFindings for nold-ai/specfact-cli
Assessment / relevance to the PR
🔇 Additional comments (6)
📝 WalkthroughBundle and module surface
Bundle/runtime vs specfact_cli APIs
Manifest and integrity
Cross-repo / specfact-cli implications
Manifest / module-package effects on registry or consumers
Docs changes and published-site URL contract
Scripts, tests, and verification
OpenSpec change ID and scenario coverage
CHANGELOG / release notes
Risk and review effort
WalkthroughStandardized bundle overview links to root-relative paths, expanded Code Review run docs with explicit examples and semantics (Python-only focus, --level filtering, shadow mode, JSON output, incompatible flags), added bundle-aware repo-relative link validation in the docs resolver, and added unit tests and OpenSpec doc updates reflecting these behaviors. Changes
Sequence Diagram(s)sequenceDiagram
participant AuthoringPage as Authoring Page
participant Resolver as Docs Resolver
participant FS as Filesystem
participant RouteMap as Published Route Map
AuthoringPage->>Resolver: submit internal link (may contain "..")
Resolver->>Resolver: detect ".." and is_under_bundles(route)
alt non-bundles or no ".."
Resolver->>FS: resolve link via filesystem
FS-->>Resolver: file path (or None)
Resolver-->>AuthoringPage: accept/resolve result
else bundles + ".."
Resolver->>FS: resolve filesystem target (if any)
Resolver->>RouteMap: resolve permalink-relative target
FS-->>Resolver: fs_target (or None)
RouteMap-->>Resolver: permalink_target (or None)
Resolver->>Resolver: compare canonical targets
alt targets match
Resolver-->>AuthoringPage: accept fs_target
else targets differ
Resolver-->>AuthoringPage: return None + published-route mismatch error
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~28 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 940028be3a
ℹ️ 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".
--level warning still includes warnings in scoring; only --level error drops warnings. Align run guide example and module notes with runner behavior. Made-with: Cursor
Summary
This PR continues docs-15-code-review-validation-guardrails (issue #202) with follow-up work already reviewed locally.
Changes
/bundles/: When a page permalink is under/bundles/and a link path contains.., validation now requires browser URL resolution to match the resolved markdown target (or report a missing route). Fixes wrong../../links that passed filesystem checks but 404ed on the site; updates cross-bundle overview links to root-absolute URLs.## MODIFIED Requirements,### Requirement:,#### Scenario:) soopenspec validate docs-15-code-review-validation-guardrails --strictpasses for future archive.docs/bundles/code-review/run.mdwith worked examples (shadow + JSON,--focus,--path,--level,--bug-hunt, noise/interactive); clarified thatrunreviews.py/.pyionly and points Markdown site checks toscripts/check-docs-commands.py. Module notes link to the bundle run guide for recipes.Verification
python scripts/check-docs-commands.pyhatch run pytest(docs parity, authored link scan, link-agreement unit tests)hatch run contract-test(during earlier commits)openspec validate docs-15-code-review-validation-guardrails --strictMade with Cursor