Skip to content

Remove hub-only doc pointers from carried sections (#368, PR-3b) - #372

Merged
ptr727 merged 3 commits into
developfrom
hub-pointer-extract-368
Jul 20, 2026
Merged

Remove hub-only doc pointers from carried sections (#368, PR-3b)#372
ptr727 merged 3 commits into
developfrom
hub-pointer-extract-368

Conversation

@ptr727

Copy link
Copy Markdown
Owner

Follow-up to PR-3 (#368). The carried Branching Model and Documentation Style Conventions sections pointed at hub-only docs a downstream reader cannot follow.

  • Branching Model: drop the two references to the hub-only docs/repo-config-carry.md (the export/import procedure, and the brownfield migration procedure). The behavioral content stays — import the committed repo-config/*.json payloads, configure.sh selects the payload, brownfield repos temporarily disable the ruleset to re-sign. The full setup procedure already lives in the hub-only STANDUP.md.
  • Documentation Style: drop "or the hub-only reports/conformance-matrix.md" from the no-coordination-references rule; the onboarding or conformance issue remains the destination.

The one reports/conformance-matrix.md reference that stays is inside the hub-only Repository Onboarding section, so it is correctly not a carried contaminant.

Deliberately minimal — configure.sh (also hub-only) and the onboarding-flavored setup mechanics in that Branching bullet are left for a possible follow-up. Held on develop.

The carried Branching Model and Documentation Style sections pointed at
hub-only docs a downstream reader cannot follow.
- Branching Model: drop the two references to the hub-only
docs/repo-config-carry.md (the export/import procedure and the brownfield
migration procedure). The behavioral content stays - import the committed
repo-config/*.json payloads, configure.sh selects the payload, and brownfield
repos temporarily disable the ruleset to re-sign. The full setup procedure
lives in the hub-only STANDUP.md.
- Documentation Style: drop the "or the hub-only reports/conformance-matrix.md"
from the no-coordination-references rule; the onboarding or conformance issue
is the remaining destination.
The one reports/conformance-matrix.md reference that stays is inside the
hub-only Repository Onboarding section, not a carried contaminant.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings July 20, 2026 23:04

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the carried governance text in AGENTS.md to avoid pointing downstream readers at hub-only documentation, while keeping the underlying behavioral guidance intact.

Changes:

  • Remove hub-only docs/repo-config-carry.md references from the carried Branching Model ruleset-configuration guidance.
  • Remove the hub-only reports/conformance-matrix.md mention from the carried Documentation Style Conventions "no coordination references" rule.

Comment threadAGENTS.md Outdated
Copilot round-1 finding: the `gh api -X POST .../rulesets` shorthand on the
edited line was inconsistent with the doc's explicit repos/<owner>/<repo>/...
convention. Spell it out.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings July 20, 2026 23:07

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

AGENTS.md:49

  • The gh api endpoint example is unquoted (repos/<owner>/<repo>/rulesets). In a POSIX shell, <owner> / <repo> will be parsed as redirection operators, so the command is not copy/pasteable as written. Quote the endpoint (consistent with the git/refs example a few lines above) so the placeholder brackets are treated as literal text.
- **Configuring branch protection on a fleet repo: don't hand-build the rules.** Reconstructing the rules by hand is error-prone and has gone wrong on past ports. First delete **all** legacy classic branch-protection rules and any stray rulesets (rulesets are the *only* mechanism used), then create **exactly two rulesets named `develop` and `main`** by importing the committed `repo-config/*.json` ruleset payloads via `gh api -X POST repos/<owner>/<repo>/rulesets` (`gh ruleset` is read-only). The names are load-bearing - this file and the workflows reference them. Operational repos import [`operational/develop.json`](./repo-config/operational/develop.json) as their `develop` ruleset (the `main` ruleset is shared); [`configure.sh`](./repo-config/configure.sh) selects the right develop payload from the registry `workflowModel` automatically. **Brownfield repos** (pre-existing history) need an extra step: `Require signed commits` rejects legacy unsigned commits and the admin bypass does not cover `git push --force`, so re-signing requires temporarily disabling the ruleset.

Copilot round-2 low-confidence finding (correct, and self-introduced in round 1):
an unquoted repos/<owner>/<repo>/rulesets parses <owner>/<repo> as shell
redirections. Quote it, matching the git/refs example a few lines above.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings July 20, 2026 23:10

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit ae8689c into developJul 20, 2026
7 checks passed
@ptr727
ptr727 deleted the hub-pointer-extract-368 branch July 20, 2026 23:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ptr727