Repository navigation
docs: generate docs map at publish time - #117398
Conversation
Security-sensitive changes notedThis PR includes security-sensitive file changes. The guard is informational because the PR author is a repository admin or a member of
Changed files:
Security review is still recommended before merge when the change is intentional. |
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 9:41 AM ET / 13:41 UTC. ClawSweeper reviewWhat this changesThe branch retains a small tracked docs-map stub and generates the full deterministic heading map only for documentation publishing and npm/Docker package archives. Merge readinessThis PR is still necessary: current Priority: P3 Review scores
Verification
How this fits togetherOpenClaw derives documentation navigation metadata from source documentation pages. The proposed lifecycle sends that map to publishing and package assembly, then restores the tracked source state after the archive is made. flowchart LR
A[Source docs] --> B[Heading-map renderer]
B --> C[Docs publish tree]
B --> D[Package preparation]
D --> E[Package archive]
D --> F[Source restoration]
Decision needed
Why: The PR changes ownership and recovery behavior across npm, Docker, and OCM package flows; that contract needs explicit release/package acceptance even though no source defect was found. Before merge
Agent review detailsSecurityNone. PR surfaceTests +417, Docs -11067, Config -1, Other +202. Total -10449 across 27 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the canonical renderer with generation only at publication and archive boundaries after the release/package owner confirms archive parity and source restoration on the final merge result. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors deterministic docs publication and package assembly rather than fixing a reported runtime failure. Is this the best way to solve the issue? Yes, conditionally: one renderer and boundary-only materialization remove duplicated generated source; the package owner should still approve the final merge-result restoration contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 56ffa2bca48b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* origin/main: docs: generate docs map at publish time (openclaw#117398) refactor(plugins): move plugin contributions into the registry bundle (openclaw#117372) fix(tui): keep PTY progress and lifecycle truthful (openclaw#117402) test(xai): type realtime sent item payloads fix(qa): preserve Slack fallback evidence (openclaw#117420) fix(qa): satisfy update lane execution contracts (openclaw#117388) fix(qa): Matrix replies disappear after final replacement (openclaw#117390) test(xai): prove rejected tool call continuation fix(xai): complete rejected realtime tool calls test(xai): add live tool argument probe test(xai): cover rejected realtime tool arguments fix(xai): validate realtime tool arguments before dispatch fix(xai): skip tool call when rawArgs JSON parse fails instead of silently falling back to empty args
* docs: generate docs map at publish time * fix: canonicalize Docker pack entry path * fix: preserve package lifecycle ownership
* origin/main: docs: generate docs map at publish time (openclaw#117398) refactor(plugins): move plugin contributions into the registry bundle (openclaw#117372) fix(tui): keep PTY progress and lifecycle truthful (openclaw#117402) test(xai): type realtime sent item payloads fix(qa): preserve Slack fallback evidence (openclaw#117420) fix(qa): satisfy update lane execution contracts (openclaw#117388) fix(qa): Matrix replies disappear after final replacement (openclaw#117390) test(xai): prove rejected tool call continuation fix(xai): complete rejected realtime tool calls test(xai): add live tool argument probe test(xai): cover rejected realtime tool arguments fix(xai): validate realtime tool arguments before dispatch fix(xai): skip tool call when rawArgs JSON parse fails instead of silently falling back to empty args
Summary
docs/docs_map.mdbody with a 9-line source compatibility stubdocs:listimplementation and delete the duplicate generator/build wrapperRoot cause and architectural owner
docs/docs_map.mdis deterministic output derived from tracked docs frontmatter and headings, but the generated artifact was committed as source. That duplicated canonical docs data, accumulated about 13.5k lines of historical churn, and required a separate generator implementation. The canonical owner is nowscripts/docs-list.js; publication and packaging materialize its output only at their respective boundaries.The tracked 9-line stub intentionally retains the source path and frontmatter so GitHub/Mintlify Edit source links and zero-argument
pnpm docs:listbehavior remain valid.Review follow-ups incorporated
/while leaving ordinary no-argumentdocs:listoutput unchanged; platform-injected tests cover nested Windows index and page paths.package-changelog.mjsowner when the newer composite postpack helper is absent.Compatibility proof
6ec35b71578fa9e54a3636c0c182389d10fbfe65ffc9c483f2f1f2c6fa73263fopenclaw/docs: all 21 English/localized public map routes remained byte-identical; localized routes were untouchedpnpm docs:listoutput SHA-256 remained662a8236355d2619292c88ee75b425598f3401c35b942db90052a8e2cdaf200dpnpm pack: archivepackage/docs/docs_map.mdhad the exact public SHA above; source stub, git status, and lifecycle receipts were restoredLOC
docs/docs_map.md, 11,077 to 9)Validation
Exact head:
745626f74312e205f1cf0794ee790bb1296f6bb0cmp, generated-map SHA, and zero-argumentdocs:listSHA checksnode scripts/check-script-declarations.mjs, targeted oxlint, formatting, andgit diff --checktbx_01kyypwftjr8a2zgzbq8050bzf(jade-crab-02a8), authoritative wrapper JSONexitCode: 0,runStatus: succeeded; transport run. The backing transport may show canceled during Testbox lifecycle cleanup and is not used as the pass signal.tbx_01kyyqeks6md6kzs409pek2erj(blue-hermit-4386), authoritative wrapper JSONexitCode: 0,runStatus: succeeded; transport run. Archive SHA, source restoration, clean status, and absent receipts were asserted in the command.ClawSweeper exact-head review
ClawSweeper reviewed exact head
745626f74312e205f1cf0794ee790bb1296f6bb0, found no actionable patch defect, rated proof and patch quality 5/6, and confirmed that currentmainhas no touched-path overlap since the PR base. Its only remaining item is explicit release/package maintainer approval while preserving the clean GitHub three-way result and exact-head package restoration evidence. Hosted exact-head CI is terminal green: 88 passed and 22 intentionally skipped, with no failures.