Repository navigation
refactor(docs): require caller-owned route indexes - #143164
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 10:22 AM ET / 14:22 UTC. ClawSweeper reviewWhat this changesThe docs link checker now requires caller-supplied route and redirect indexes, and contributor guidance accurately explains ClawHub route and anchor checks. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, bounded cleanup, and no actionable correctness defect was found. Current main retains the fallback, and the maintainer-protected PR is not a cleanup-close candidate. Priority: P3 Review scores
Verification
How this fits togetherThe docs link checker reads documentation and navigation entries, resolves redirects against an audit-specific route inventory, and reports broken links or unverifiable fragments. flowchart TD
A[Documentation links] --> C[Docs link audit]
B[Navigation and redirects] --> D[Audit route inventory]
D --> C
C --> E[Resolve route and redirects]
E --> F[Optional anchor check]
F --> G[Validation diagnostics]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs 0, Other -9. Total -9 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep each audit's route inventory explicitly owned by its caller and preserve the existing distinction between route validation and anchor verification. Do we have a high-confidence way to reproduce the issue? Not applicable: this removes an unused internal fallback rather than repairing an observed runtime failure; all existing callers already provide both indexes. Is this the best way to solve the issue? Yes: requiring the existing caller-owned indexes removes a competing inventory path without changing supported CLI behavior or adding another abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff612431704a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…er-ownership-20260909 * origin/main: (147 commits) fix(cli): reject blank account selectors before command startup (#143088) fix(update): repair young runs after recorded drivers exit (#143136) test(telegram): close model callback fixture connections (#143197) improve(test): reduce Telegram policy fixture startup overhead (#143192) test(ci): stabilize systemd manager shim timing (#143134) fix(test): retire chat preview Escape listeners during teardown (#143191) test(memory-wiki): share visibility test callbacks (#143181) fix(ci): accept native iOS keychain filenames (#142968) fix(ci): show publication observations in FRV status (#143171) fix(github): point the stuck-FAQ auto-response at a live anchor (#143194) docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179) refactor(tests): remove duplicate Mistral cache-cost test (#143172) fix(doctor): complete canonical model-reference migration (#142284) fix(ci): reject stale and empty timing sample cohorts (#143182) fix(ui): remove first-reply confetti from chat (#143167) docs: split help/faq into 13 topic pages (#143150) refactor(docs): require caller-owned route indexes (#143164) fix(android): distinguish connection status from chat readiness (#143128) refactor: share agent-turn execution test defaults (#143166) fix(cli): print immutable-config refusals without crash framing (#143140) ...
What Problem This Solves
The docs-link auditor retained a process-global index fallback after every caller moved to indexes owned by an individual audit. That unused path could build a different filesystem index from the one the caller was checking.
Why This Change Was Made
Require both redirect and route indexes at
resolveRouteand remove the global cache and fallback loader. All existing callers already supply both indexes. This removes nine tooling lines and keeps one owner for each audit's route inventory.The docs guide also now matches the existing auditor: declared ClawHub routes resolve without a local checkout, while anchor checks report their fragments as unverified until the ClawHub sources are available.
User Impact
CLI defaults, redirect handling and link-validation behavior are preserved. Contributor instructions accurately distinguish route checks from anchor verification.
Evidence