Repository navigation
docs(gateway): split the tools configuration reference by domain - #142960
Conversation
docs/gateway/config-tools.md was 59,564 characters across two H2 topics that mixed reference keys, a long explanation of the managed GitHub identity, and how-to provider recipes. Split by reader job into docs/gateway/config-tools/, keeping the parent as a short index. Children: - tool-policy — tool profiles, tool groups, the sandbox tool gate, tools.codeMode, and the allow/deny, byProvider, toolsBySender, and elevated layers (14,547 chars) - github-identity — tools.github: the shared managed gh identity, token refresh, and the execution boundaries that receive it (10,641 chars) - built-in-tools — tools.exec, tools.loopDetection, tools.web, tools.media, tools.updatePlan (6,254 chars) - sessions-and-subagents — tools.agentToAgent, tools.sessions, tools.sessions_spawn, agents.defaults.subagents (7,033 chars) - custom-providers — models.providers registration, base-URL trust, and the provider field reference (12,309 chars) - provider-examples — worked configurations for nine providers (8,980 chars) Anchor strategy: per-anchor routes are impossible here because redirectSource() rejects any source containing [?#], so every id the page published stays alive on the parent index as an authored <a id="..." /> stub next to a link to its new home. parseDocsDocument reports 58 ids before the split; 57 are stubbed and `related` is still published by the index itself, so no duplicate authored/canonical ID is raised. Backticked headings emit both a dotted and a dashed id (tools.github and tools-github) and both are preserved, as is the percent-encoded tools.allow-%2F-tools.deny, the pre-existing authored toolsupdateplan stub, and the ten Accordion-minted ids. All 58 resolve through resolveDocsFragment against the new index, and all 40 index-to-child fragment links resolve on their destination child. Losslessness (source body vs. the six children, measured mechanically against the base sha, not against a working copy): 54 fence markers before and after with identical info strings; 47 table rows before and after; all 12 original outbound links still present; each child's body byte-identical to its source line range after H3-to-H2 promotion. Two thematic breaks that separated the former H2 sections are dropped because those sections are now separate pages, and the empty container heading "## Tools" is not reproduced — its anchor is stubbed. One prose change, the declared orphaned-cross-reference exception: "See the llama.cpp example below" in the compat table pointed at a section that now lives on another page, so it became a real link. The other six directional references stayed within a single child and were re-verified there. taxonomy.yaml references this page without a fragment, so validateTaxonomyDocsReferences still resolves it; maturity:check passes. The eight qa/scenarios docsRefs and the two src/ docs URLs also target the surviving route. Closes audit findings: r3-0337, r3-1539
|
🦞👀 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, 4:19 AM ET / 08:19 UTC. ClawSweeper reviewWhat this changesSplits the tools configuration reference into six focused pages, adds navigation and glossary entries, and preserves existing section links through the original index. Merge readiness✅ Ready for maintainer review The split remains useful: current main still contains the combined reference. Content preservation and navigation checks revealed no actionable defect, and this member-authored PR is protected from cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherThe Gateway configuration documentation helps operators find tool settings, permission policies, and provider examples. Navigation and existing section links now lead through an index to focused reference pages. flowchart TD
A[Documentation navigation] --> C[Tools configuration index]
B[Existing section links] --> C
C --> D[Tool policy and identity]
C --> E[Built-in and session tools]
C --> F[Custom provider reference]
F --> G[Provider examples]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs +146. Total +146 across 9 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one canonical home for each reference domain while retaining the parent route and its existing anchors. Do we have a high-confidence way to reproduce the issue? Not applicable: this reorganizes a reference page rather than reporting a runtime defect; the combined page is directly observable on fetched main. Is this the best way to solve the issue? Yes: the split follows the existing configuration-reference structure, preserves detailed content, and retains old anchors without unsupported fragment redirects. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7115c4b6fccf. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…nclaw#142960) docs/gateway/config-tools.md was 59,564 characters across two H2 topics that mixed reference keys, a long explanation of the managed GitHub identity, and how-to provider recipes. Split by reader job into docs/gateway/config-tools/, keeping the parent as a short index. Children: - tool-policy — tool profiles, tool groups, the sandbox tool gate, tools.codeMode, and the allow/deny, byProvider, toolsBySender, and elevated layers (14,547 chars) - github-identity — tools.github: the shared managed gh identity, token refresh, and the execution boundaries that receive it (10,641 chars) - built-in-tools — tools.exec, tools.loopDetection, tools.web, tools.media, tools.updatePlan (6,254 chars) - sessions-and-subagents — tools.agentToAgent, tools.sessions, tools.sessions_spawn, agents.defaults.subagents (7,033 chars) - custom-providers — models.providers registration, base-URL trust, and the provider field reference (12,309 chars) - provider-examples — worked configurations for nine providers (8,980 chars) Anchor strategy: per-anchor routes are impossible here because redirectSource() rejects any source containing [?#], so every id the page published stays alive on the parent index as an authored <a id="..." /> stub next to a link to its new home. parseDocsDocument reports 58 ids before the split; 57 are stubbed and `related` is still published by the index itself, so no duplicate authored/canonical ID is raised. Backticked headings emit both a dotted and a dashed id (tools.github and tools-github) and both are preserved, as is the percent-encoded tools.allow-%2F-tools.deny, the pre-existing authored toolsupdateplan stub, and the ten Accordion-minted ids. All 58 resolve through resolveDocsFragment against the new index, and all 40 index-to-child fragment links resolve on their destination child. Losslessness (source body vs. the six children, measured mechanically against the base sha, not against a working copy): 54 fence markers before and after with identical info strings; 47 table rows before and after; all 12 original outbound links still present; each child's body byte-identical to its source line range after H3-to-H2 promotion. Two thematic breaks that separated the former H2 sections are dropped because those sections are now separate pages, and the empty container heading "## Tools" is not reproduced — its anchor is stubbed. One prose change, the declared orphaned-cross-reference exception: "See the llama.cpp example below" in the compat table pointed at a section that now lives on another page, so it became a real link. The other six directional references stayed within a single child and were re-verified there. taxonomy.yaml references this page without a fragment, so validateTaxonomyDocsReferences still resolves it; maturity:check passes. The eight qa/scenarios docsRefs and the two src/ docs URLs also target the surviving route. Closes audit findings: r3-0337, r3-1539
docs/gateway/config-tools.mdwas 59,564 characters across two H2 topics that mixed reference keys, a long explanation of the managed GitHub identity, and how-to provider recipes. It is now a short index (7,517 chars) over six children underdocs/gateway/config-tools/, matching the existingconfig-agents/andconfig-channels/split shape.Children
tool-policytools.codeMode,allow/deny,byProvider,toolsBySender,elevatedgithub-identitytools.github: shared managedghidentity, refresh, execution boundariesbuilt-in-toolstools.exec,tools.loopDetection,tools.web,tools.media,tools.updatePlansessions-and-subagentstools.agentToAgent,tools.sessions,tools.sessions_spawn,agents.defaults.subagentscustom-providersmodels.providersregistration, base-URL trust, provider field referenceprovider-examplesAnchor preservation
Per-anchor routes are not possible: a path is not a fragment, and
redirectSource()throws on any source containing[?#]. So every id the page published stays alive on the parent index as an authored<a id="..." />stub beside a link to its new home.parseDocsDocumentreports 58 ids before the split. 57 are stubbed;relatedis still published by the index itself, so noduplicate authored/canonical IDis raised (collisions: 0on the index and on all six children).tools.githubandtools-githubare preserved —docs/plugins/codex-harness-runtime.mdanddocs/tools/exec.mdlink the dotted form, everything else links the dashed form.tools.allow-%2F-tools.deny, the pre-existing authoredtoolsupdateplanstub, the H4custom-provider-capability-declarations, and the ten Accordion-minted ids are all preserved.resolveDocsFragmentagainst the new index, and all 40 index-to-child fragment links resolve on their destination child.origin/mainafter rebase: main'sconfig-tools.mdstill publishes exactly those 58 ids, so no anchor was added while this branch was open.Losslessness
Measured mechanically against the page at
origin/main, not against a working copy.###→##promotion.---) that separated the former H2 sections, now separate pages, and the empty container heading## Tools(its anchor is stubbed).One prose change (declared exception)
check-orphan-refs.pyfound 7 directional references. Six stayed inside a single child and were re-verified there. The seventh,See the llama.cpp example belowin thecompattable, pointed at a section that now lives on another page, so the orphaned cross-reference became a real link to/gateway/config-tools/provider-examples#local-models-llama-cpp-llama-server. No other prose was rewritten.Downstream references
taxonomy.yamlreferences this page three times with no fragment, sovalidateTaxonomyDocsReferencesstill resolves it;maturity:checkpasses.qa/scenarios/*.yamldocsRefsentries,src/commands/doctor/shared/deprecation-compat.ts,src/security/audit-extra.summary.ts, andsrc/security/audit-cross-agent-session-access.test.tsall target the surviving/gateway/config-toolsroute (the last two with#tools-agenttoagent, which is stubbed)..github/labeler.ymlhas no page-specific glob for this page;docs/gateway/**anddocs/**already cover the new subdirectory..github/CODEOWNERSdoes not listdocs/gateway/config-tools.mdor the new directory — the secops entries underdocs/gateway/are the individually named security pages only.Validators
All run after
git add, on the rebased branch.Test lanes:
vitest.unit-srconsrc/docs/— 16 passed / 8 files.vitest.unit-securityonaudit-cross-agent-session-access.test.ts— 29 passed.vitest.toolingonsrc/scripts/— 303 passed, 1 failed: the pre-existing apostrophe-slug fixture insrc/scripts/docs-link-audit.test.ts, confirmed failing at the base sha before any change here.i18n
Six
zh-CNglossary entries appended for the new page titles. The rebase conflict with the concurrent OpenTelemetry split was resolved as a union (825 entries, 0 duplicate sources, every entry fromorigin/mainretained).docs/.i18n/zh-Hans-navigation.jsondeliberately untouched.Closes audit findings: r3-0337, r3-1539. Partially addresses r3-1542 (custom providers now have their own page; inbound links from Models and Providers not rewired here).