Repository navigation
docs(#9803): split managed config guide from reference rules - #9804
Conversation
The Managed configuration section of the repo-management guide mixed the steps a user needs (where to declare values, what the managed file looks like, how to adopt an existing file) with internal rules: layered list validation, the source-manifest comment line, the pre-write safety gate's accessor chain and read-only manifest handling. Readers had to filter that detail out to find what they must configure. Rewrite the guide section around the user-facing example, the precedence of manifest sections, the managed file, adoption steps and the status/install commands, and link to the CLI reference for the complete rules. In docs/cli/repos.md, give the existing managed-configuration text its own "Managed configuration" heading under `repos install` (the anchor the guide now links to), and add the guide-only facts there so no rule is lost: Git-history note for the source-manifest line, zero-byte file adoption, install's adoption guidance output, safety-gate fall-through and combined overlay/base checks, and the read-only manifest definition. This covers repo-management.md only; the other getting-started pages named in the issue still need an audit. Note: pre-commit could not fetch remote hook repositories (TLS error). The local lint-docs-links hook and lychee (lint-md-links, offline with fragments) were run directly and passed; whitespace and EOF were checked manually. Related to #9803 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Finished Review · ✅ Success · Started 9:25 AM UTC · Completed 9:36 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.16 |
Site previewPreview: https://4ac815fd-site.fullsend-ai.workers.dev Commit: |
|
Risk Assessment: moderate (2/5) DetailsDocumentation-only restructuring by a bot with no protected paths, elevated to moderate risk due to high recent commit churn and change coupling across the modified documentation pages. Previous runRisk Assessment: moderate (2/5) DetailsDocumentation-only restructuring by a bot with no protected paths, elevated to moderate risk due to high recent commit churn and change coupling across the modified documentation pages. |
|
Looks good to me Earlier findings
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzdGFsZS1kb2MiLCJmaWxlIjoiZG9jcy9ndWlkZXMvaW5mcmFzdHJ1Y3R1cmUvbGF5ZXJlZC1jb25maWctcmVmZXJlbmNlLm1kIiwiaWQiOiJmXzdkM2UxZWVjZGI0NzA3Y2EiLCJsaW5lIjo5NiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiZG9jcy1jdXJyZW5jeSJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfN2QzZTFlZWNkYjQ3MDdjYSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= --> Looks good to me Earlier findings
Previous run (2)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InN0YWxlLWRvYyIsImZpbGUiOiJkb2NzL2d1aWRlcy9pbmZyYXN0cnVjdHVyZS9sYXllcmVkLWNvbmZpZy1yZWZlcmVuY2UubWQiLCJpZCI6ImZfN2QzZTFlZWNkYjQ3MDdjYSIsImxpbmUiOjk2LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In1dfQ== --> ReviewFindingsLow
Labels: PR modifies user-facing documentation Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 9:39 AM UTC · Completed 9:42 AM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.20 |
Point the managed-configuration link at docs/cli/repos.md, which now holds the detailed rules, instead of the summary guide page. Note: pre-commit could not fetch hook repositories (TLS failure in the sandbox); only trailing-whitespace, line-ending, and link-target checks were verified by hand. Addresses #9804 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 1 (bot-triggered)Addressed the single low-severity stale-doc finding by retargeting the link. Pre-commit could not fetch hook repos in the sandbox, so whitespace/line-ending/link-target checks were done manually. Fixed (1):
Tests: passed CI inspections (3):
Conflict update: skipped; strategy
|
|
🤖 Finished Review · ✅ Success · Started 9:44 AM UTC · Completed 9:50 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.21 |
Superseded by updated review
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
This PR rewrites the "Managed configuration" section of
docs/guides/getting-started/repo-management.mdso it covers only what a user has to configure and do. The internal rules, such as validation, the safety gate's accessor chain, source-manifest line handling and read-only manifests, now live in the CLI referencedocs/cli/repos.md. The guide links there.Related Issue
Partially addresses the issue below. This PR covers
repo-management.mdonly. The other getting-started pages the issue mentions (GitLab, migration, operations) still need checking, as triage suggested, and can go in follow-up PRs.Changes
docs/guides/getting-started/repo-management.md: The Managed configuration section went from about 200 lines to about 100. It keeps:defaults.config, over the preset and code defaults)repos.yamlinstead of editing the filetrackerdefaultIt ends with a link to the full rules. The
#managed-configurationanchor is unchanged, so links from other pages still work.docs/cli/repos.md:repos installnow has its own### Managed configurationheading, so the guide can link to it. The generalrepos installexample commands moved above that heading.repos status[]stays deny-allTesting
make lintpasses (stage changes first, then run). Not run in full:pre-commitcould not download its remote hook repositories in the sandbox (TLS certificate error). The hooks that apply to Markdown were run directly and passed:./hack/lint-docs-linkslychee --offline --include-fragmentson both changed files and on the pages that link to#managed-configuration. This includes the newrepos.md#managed-configurationand#runtime-and-allowed_remote_resources-moved-into-config-breakinganchors.Trailing whitespace, end-of-file and line endings were checked by hand.
Tests added/updated for new or modified logic: not applicable, documentation only.
Context
config.trackerexplanation would fit the same split: user steps in the guide, detailed rules indocs/cli/repos.md.Checklist
!for breaking changes)🤖 Generated with Claude Code
Related to #9803
Post-script verification
agent/9803-split-managed-config-docs)34d10a6376b6e61e90fd147b5fecf26c519835e0..HEAD)