Skip to content

docs(#9803): split managed config guide from reference rules - #9804

Merged
rh-hemartin merged 2 commits into
mainfrom
agent/9803-split-managed-config-docs
Nov 23, 2026
Merged

rh-hemartin merged 2 commits into
mainfrom
agent/9803-split-managed-config-docs

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

This PR rewrites the "Managed configuration" section of docs/guides/getting-started/repo-management.md so 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 reference docs/cli/repos.md. The guide links there.

Related Issue

Partially addresses the issue below. This PR covers repo-management.md only. 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:

    • the example manifest
    • which section wins over which (repository entry over forge section over defaults.config, over the preset and code defaults)
    • what the managed file looks like, and that you change repos.yaml instead of editing the file
    • the first-install tracker default
    • adoption as numbered steps
    • one sentence on the "no less restrictive" safety gate
    • the status/install commands
    • a link for the removed sibling keys

    It ends with a link to the full rules. The #managed-configuration anchor is unchanged, so links from other pages still work.

  • docs/cli/repos.md:

    • The managed-configuration paragraph that was already under repos install now has its own ### Managed configuration heading, so the guide can link to it. The general repos install example commands moved above that heading.
    • Facts that only the guide had are now in this section, so none are lost:
      • the source-manifest line ends up in Git history
      • a file without that line never needs adoption
      • a zero-byte file needs adoption
      • when install skips a repository for adoption, it prints the same guidance as repos status
      • the safety gate reads omitted keys through to the base and defaults, and an explicit [] stays deny-all
      • a blanket adoption acknowledgement is not enough
      • overlay and base are checked together, and both problems are reported
      • the checks apply to glob-covered repositories too
      • a malformed file is never replaced
      • what counts as a read-only manifest

Testing

  • make lint passes (stage changes first, then run). Not run in full: pre-commit could 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-links
    • lychee --offline --include-fragments on both changed files and on the pages that link to #managed-configuration. This includes the new repos.md#managed-configuration and #runtime-and-allowed_remote_resources-moved-into-config-breaking anchors.

    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

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO): not applicable, autonomous agent commit
  • I wrote this contribution myself and can explain all changes in it: written by an autonomous agent

🤖 Generated with Claude Code


Related to #9803

Post-script verification

  • Branch is not main/master (agent/9803-split-managed-config-docs)
  • Secret scan passed (gitleaks — 34d10a6376b6e61e90fd147b5fecf26c519835e0..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

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>
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner November 23, 2026 09:23
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Nov 23, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:25 AM UTC · Completed 9:36 AM UTC

Commit: feb6be1 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.16

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://4ac815fd-site.fullsend-ai.workers.dev

Commit: 99299977fae0c29551c9a7640ba433f06a24c21b

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 23, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Documentation-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 run

Risk Assessment: moderate (2/5)

Details

Documentation-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.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Looks good to me

Earlier findings

  • docs/guides/infrastructure/layered-config-reference.md:96, stale-doc, resolved: the link now targets ../../cli/repos.md#managed-configuration, which holds the pre-write safety-gate rules that paragraph summarizes.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzdGFsZS1kb2MiLCJmaWxlIjoiZG9jcy9ndWlkZXMvaW5mcmFzdHJ1Y3R1cmUvbGF5ZXJlZC1jb25maWctcmVmZXJlbmNlLm1kIiwiaWQiOiJmXzdkM2UxZWVjZGI0NzA3Y2EiLCJsaW5lIjo5NiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiZG9jcy1jdXJyZW5jeSJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfN2QzZTFlZWNkYjQ3MDdjYSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Looks good to me

Earlier findings

  • docs/guides/infrastructure/layered-config-reference.md:96, stale-doc, resolved: the link now targets ../../cli/repos.md#managed-configuration, which holds the pre-write safety-gate rules that paragraph summarizes.
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InN0YWxlLWRvYyIsImZpbGUiOiJkb2NzL2d1aWRlcy9pbmZyYXN0cnVjdHVyZS9sYXllcmVkLWNvbmZpZy1yZWZlcmVuY2UubWQiLCJpZCI6ImZfN2QzZTFlZWNkYjQ3MDdjYSIsImxpbmUiOjk2LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In1dfQ== -->

Review

Findings

Low

  • [stale-doc] docs/guides/infrastructure/layered-config-reference.md:96 — The managed-configuration paragraph (adoption, whole-file drift, overlay → base → code-defaults safety gate) ends with a See link to repo-management.md#managed-configuration. This PR moves those detailed rules out of the guide into the new ### Managed configuration heading in docs/cli/repos.md, so the link now goes through a summary page that only forwards readers to the reference. The link still resolves, but it no longer points at the most specific source.
    Remediation: Point the link at [fullsend repos — Managed configuration](../../cli/repos.md#managed-configuration), or cite both the reference page and the guide.

Labels: PR modifies user-facing documentation


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the component/docs User-facing documentation label Nov 23, 2026
@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 9:39 AM UTC · Completed 9:42 AM UTC

Commit: feb6be1 · View workflow run →

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>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 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):

  1. Managed-configuration link in the layered config reference points at the summary guide page instead of the CLI reference that now holds the detailed rules (docs/guides/infrastructure/layered-config-reference.md): Repointed the link to the Managed configuration section of the CLI reference page (docs/cli/repos.md).

Tests: passed

CI inspections (3):

  1. project CI (build, commit-lint, DCO, semgrep, behaviour, gate, web, etc.) (passing, success): All completed project checks passed.
  2. test (pending, in_progress): Still running at inspection time; the change is docs-only.
  3. behaviour-github-emulator (agents) (pending, in_progress): Still running at inspection time; the change is docs-only.

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push

Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:44 AM UTC · Completed 9:50 AM UTC

Commit: 9929997 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.21

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rh-hemartin
rh-hemartin added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit ffa2a77 Nov 23, 2026
73 checks passed
@rh-hemartin
rh-hemartin deleted the agent/9803-split-managed-config-docs branch November 23, 2026 11:34

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — 99299977 Deployed Nov 23, 2026 by github-actions[bot]
forgejo-dev — 99299977 Deployed Nov 23, 2026 by fullsend-ai-coder[bot] via forgejo-behaviour #20976
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/docs User-facing documentation ready-for-merge All reviewers approved — ready to merge ready-for-review Triggers review agent dispatch risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant