Skip to content

Split AGENTS.md Onto the Fleet Router Model and Carry the Instruction Set - #276

Merged
ptr727 merged 4 commits into
developfrom
resync/instruction-set
Sep 26, 2026
Merged

ptr727 merged 4 commits into
developfrom
resync/instruction-set

Conversation

@ptr727

@ptr727 ptr727 commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Part 2 of the ProjectTemplate resync, stacked on #275 (this PR retargets develop once that merges). Audit run 2026-09-26T02:16:51Z | hub 45669468.

Why This Is Not a Re-Vendor

AGENTS.md predated the hub's AGENTS.md/GOVERNANCE.md router split, so it held stale copies of fleet law beside rules written for this repo. Copying the hub canonical over it would have deleted the second kind silently. Every local rule was probed against the hub canonical and the carried Skills first, and each one that is not fleet law has a destination rather than a deletion.

What Moved Where

File Change
AGENTS.md An adapted preamble plus the three declared sections (Fleet Bootstrap, Context and Delegation Discipline, Where the Rules Live), byte-identical to the hub.
CLAUDE.md New, byte-identical to the hub. Claude Code reads CLAUDE.md and never AGENTS.md, so without it that provider had no rules at all.
GOVERNANCE.md New. The 18 verbatim sections match the hub, and Devcontainer and Repository Layout are written for this repo. The two hub-only sections are omitted.
OPERATIONS.md New, with the six required headings and Local Verification first. It takes the Device Builder SubscriberPresence trap, the docker cp/tmpfs trap, what PR CI cannot exercise (arm64, a running dashboard), the build and compile runbooks, and the develop staleness check.
CODESTYLE.md The hub copy, plus a local "Human-Authored Comments" subsection.
AUDIT.md, .markdownlint-cli2.jsonc, host-tools.json, .github/skills/ Carried from the hub. host-tools.json drops $schema, per the hub's own note.
.github/copilot-instructions.md Re-vendored. The hub's own "Disproved Claims" entries are left out, since none of their subjects exist here. The old copy had no local entries.
cspell.json Gains the hub's mermaid ignoreRegExpList.

Every repo-specific rule in the old file was traced to a home. The fleet-law ones, such as the strict-flag rationale, client-id App tokens, Closes #N placement, and the maintainer-only main merge, now live in the carried branching-and-release-model, pr-review-conduct, and comment-and-doc-style Skills.

Two local rules have no hub home yet: mirror-to-develop and leaving human-authored comments as written. They are recorded as recurrence evidence on ptr727/ProjectTemplate#1116.

One claim dropped deliberately: the old "Devcontainer" said devcontainer.json's extensions mirror the workspace file's recommendations. The two lists differ, so the claim was false, and reconciling them is an editor change outside this PR's scope.

Fixes Found Along the Way

  • .devcontainer/devcontainer.code-workspace kept a parallel cSpell.words list, against the single-source rule, and every word was already in cspell.json. The list is removed. This answers CodeRabbit's finding on Move the Repository to the Fleet LF Line-Ending Default #275. The same file pointed at python3.13/site-packages, while the image builds /opt/venv from python:3.14-slim. The path is corrected.
  • .github/dependabot.yml and WORKFLOW.md pointed at AGENTS.md sections that no longer exist there. They are re-pointed at GOVERNANCE.md.

Verification

  • carry.py check-sections reports every declared verbatim section current (stale: []) for both AGENTS.md and GOVERNANCE.md. carry.py check reports the Skills tree matching the hub digest.
  • editorconfig-checker, actionlint, markdownlint-cli2 (53 files), and cspell pass locally.
  • A local adversarial review ran over the full diff, and a second pass ran after its fixes. Both are recorded.

repo-config/ and the hub-hosted task workflows are retired in the next part.

🤖 Generated with Claude Code

ptr727 and others added 2 commits September 25, 2026 19:22
Carry the hub's .editorconfig, .gitattributes, and .editorconfig-checker.json
whole, renormalize every tracked CRLF file to LF, and have the upstream-version
tracker and the upstream-dependency watcher write their JSON state as LF so a
bot PR does not reintroduce CRLF. AGENTS.md and WORKFLOW.md stated the old
CRLF model and are corrected in the same change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… set

AGENTS.md predated the hub's AGENTS.md/GOVERNANCE.md split, so it held stale
copies of fleet law beside rules written for this repo. Each local rule was
probed against the hub canonical and its Skills before anything was replaced,
and every one that is not fleet law has a destination rather than a deletion.

- AGENTS.md carries only the three declared sections, byte-identical to the hub.
- CLAUDE.md, AUDIT.md, and the hub's CODESTYLE.md are carried; CODESTYLE.md keeps
  the local human-authored-comments rule.
- GOVERNANCE.md is new: 18 verbatim sections plus this repo's Devcontainer and
  Repository Layout.
- OPERATIONS.md is new and takes the local verification traps, the build and
  compile runbooks, the develop staleness check, and the configuration layout.
- .github/copilot-instructions.md is re-vendored with no hub ledger entries.
- The .github/skills tree, host-tools.json, and .markdownlint-cli2.jsonc are
  carried, and cspell.json gains the hub's mermaid ignore pattern.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 26, 2026 02:30
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 44 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: d4b7ca4c-0f4a-4573-b315-f3cd799477dc

📥 Commits

Reviewing files that changed from the base of the PR and between 22d5f1c and 9d1d17d.

📒 Files selected for processing (54)
  • .devcontainer/devcontainer.code-workspace
  • .github/copilot-instructions.md
  • .github/dependabot.yml
  • .github/skills/add-host-tool/SKILL.md
  • .github/skills/agent-conduct/SKILL.md
  • .github/skills/audit-a-repo/SKILL.md
  • .github/skills/backlog-burndown/SKILL.md
  • .github/skills/branching-and-release-model/SKILL.md
  • .github/skills/branching-and-release-model/references/branch-protection-and-promotion.md
  • .github/skills/branching-and-release-model/references/release-publish-mechanics.md
  • .github/skills/carried-instruction-file-guard/SKILL.md
  • .github/skills/check-this-repo/SKILL.md
  • .github/skills/comment-and-doc-style/SKILL.md
  • .github/skills/comment-and-doc-style/references/carried-doc-references.md
  • .github/skills/comment-and-doc-style/references/line-endings.md
  • .github/skills/comment-and-doc-style/references/markdown-links.md
  • .github/skills/copilot-instructions-keeper/SKILL.md
  • .github/skills/dotnet-codestyle/SKILL.md
  • .github/skills/dotnet-codestyle/references/conventions.md
  • .github/skills/dotnet-codestyle/references/project-config.md
  • .github/skills/dotnet-codestyle/references/testing.md
  • .github/skills/drive-pr/SKILL.md
  • .github/skills/fleet-code-review/SKILL.md
  • .github/skills/git-commit-conventions/SKILL.md
  • .github/skills/git-commit-conventions/references/history-rewrite.md
  • .github/skills/local-strict-review/SKILL.md
  • .github/skills/merge-and-release/SKILL.md
  • .github/skills/pr-review-conduct/SKILL.md
  • .github/skills/python-codestyle/SKILL.md
  • .github/skills/python-codestyle/references/code-style.md
  • .github/skills/python-codestyle/references/profiles.md
  • .github/skills/python-codestyle/references/testing.md
  • .github/skills/repo-worktree/SKILL.md
  • .github/skills/resync-a-repo/SKILL.md
  • .github/skills/session-handoff/SKILL.md
  • .github/skills/shell-codestyle/SKILL.md
  • .github/skills/skill-lifecycle/SKILL.md
  • .github/skills/standup-a-repo/SKILL.md
  • .github/skills/unattended-handoff/SKILL.md
  • .github/skills/upstream-contribution-workflow/SKILL.md
  • .github/skills/workflow-ci-contract/SKILL.md
  • .github/skills/workflow-ci-contract/references/architecture.md
  • .github/skills/workflow-ci-contract/references/d-guarantees.md
  • .github/skills/workflow-ci-contract/references/test-methodology.md
  • .markdownlint-cli2.jsonc
  • AGENTS.md
  • AUDIT.md
  • CLAUDE.md
  • CODESTYLE.md
  • GOVERNANCE.md
  • OPERATIONS.md
  • WORKFLOW.md
  • cspell.json
  • host-tools.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Changes appear internally consistent (docs repointed correctly, structural checks for carried Skills pass) with no functional regressions identified in the reviewed config/doc surfaces.

Review effort: Lite
Findings: None

What changed in this PR

Updates this repository to the fleet “router + carried instruction set” model by introducing the split governance documents and vendoring the current fleet Skills distribution, while also refreshing local operational runbooks and tooling configs to match the new structure.

Changes:

  • Add/refresh the core instruction-set documents (AGENTS.md, GOVERNANCE.md, CODESTYLE.md, OPERATIONS.md, CLAUDE.md, AUDIT.md) and repoint references accordingly.
  • Carry the fleet’s .github/skills/ distribution into this repo and update markdownlint/cspell/devcontainer settings to match the expected contract.
  • Minor follow-ups to repo tooling docs/config (e.g., Dependabot comment pointer, devcontainer python site-packages path, cspell mermaid ignore).
File Description
AGENTS.md Adopts the fleet router structure and pointers for repo-wide rules.
AUDIT.md Adds/updates the audit procedure document carried for conformance measurement.
CLAUDE.md Adds Claude Code entry point importing AGENTS.md.
CODESTYLE.md Updates the fleet-wide codestyle router content and adds a local comments note.
GOVERNANCE.md Adds/updates governance sections, including Release/Branching model pointers.
OPERATIONS.md Adds repo-specific operational runbooks and local verification guidance.
WORKFLOW.md Updates documentation references to point at GOVERNANCE.md for process rules.
cspell.json Ignores mermaid fenced blocks to reduce false positives in spellcheck.
host-tools.json Adds repository-level host tooling overlay stub (empty tools list).
.markdownlint-cli2.jsonc Adds explicit globs and ignores node_modules to prevent no-op runs.
.github/​copilot-instructions.md Re-vendored Copilot bootstrap/runbook aligned with new doc routing.
.github/​dependabot.yml Updates comment reference from AGENTS.md to GOVERNANCE.md.
.devcontainer/​devcontainer.code-workspace Removes duplicate cSpell words list; updates venv path to 3.14.
.github/​skills/​add-host-tool/​SKILL.md Carried fleet skill: host tool contract updates.
.github/​skills/​agent-conduct/​SKILL.md Carried fleet skill: verification/communication discipline surfacing.
.github/​skills/​audit-a-repo/​SKILL.md Carried fleet skill: audit procedure summary and routing.
.github/​skills/​backlog-burndown/​SKILL.md Carried fleet skill: backlog batching and PR-driving orchestration.
.github/​skills/​branching-and-release-model/​SKILL.md Carried fleet skill: branching/promotion/release model rules.
.github/​skills/​branching-and-release-model/​references/​branch-protection-and-promotion.md Carried reference for branch protection/promotion mechanics.
.github/​skills/​branching-and-release-model/​references/​release-publish-mechanics.md Carried reference for release build/publish mechanics.
.github/​skills/​carried-instruction-file-guard/​SKILL.md Carried fleet skill: guard against overwriting local carried-doc content.
.github/​skills/​check-this-repo/​SKILL.md Carried fleet skill: in-repo drift/self-check procedure.
.github/​skills/​comment-and-doc-style/​SKILL.md Carried fleet skill: documentation/comment style and constraints.
.github/​skills/​comment-and-doc-style/​references/​carried-doc-references.md Carried reference: carried-doc reference constraints and exceptions.
.github/​skills/​comment-and-doc-style/​references/​line-endings.md Carried reference: line-ending policy details.
.github/​skills/​comment-and-doc-style/​references/​markdown-links.md Carried reference: reference-style link conventions and exceptions.
.github/​skills/​copilot-instructions-keeper/​SKILL.md Carried fleet skill: keep Copilot instructions in sync safely.
.github/​skills/​dotnet-codestyle/​SKILL.md Carried fleet skill: .NET codestyle contract.
.github/​skills/​dotnet-codestyle/​references/​conventions.md Carried reference: .NET conventions detail.
.github/​skills/​dotnet-codestyle/​references/​project-config.md Carried reference: .NET project config detail.
.github/​skills/​dotnet-codestyle/​references/​testing.md Carried reference: .NET testing conventions detail.
.github/​skills/​drive-pr/​SKILL.md Carried fleet skill: driving PRs through review/promotion loops.
.github/​skills/​fleet-code-review/​SKILL.md Carried fleet skill: review procedure and required review marker.
.github/​skills/​git-commit-conventions/​SKILL.md Carried fleet skill: commit/signing/push discipline.
.github/​skills/​git-commit-conventions/​references/​history-rewrite.md Carried reference: history rewrite and re-identification rules.
.github/​skills/​local-strict-review/​SKILL.md Carried fleet skill: pre-push adversarial review procedure.
.github/​skills/​merge-and-release/​SKILL.md Carried fleet skill: promotion merge + release dispatch procedure.
.github/​skills/​pr-review-conduct/​SKILL.md Carried fleet skill: reviewer-finding disposition and merge gate.
.github/​skills/​python-codestyle/​SKILL.md Carried fleet skill: Python codestyle contract.
.github/​skills/​python-codestyle/​references/​code-style.md Carried reference: Python style details.
.github/​skills/​python-codestyle/​references/​profiles.md Carried reference: Python build vs lint-only profiles.
.github/​skills/​python-codestyle/​references/​testing.md Carried reference: Python testing conventions.
.github/​skills/​repo-worktree/​SKILL.md Carried fleet skill: worktree isolation and cleanup procedure.
.github/​skills/​resync-a-repo/​SKILL.md Carried fleet skill: resync procedure driver and safeguards.
.github/​skills/​session-handoff/​SKILL.md Carried fleet skill: handoff chain creation/resumption rules.
.github/​skills/​shell-codestyle/​SKILL.md Carried fleet skill: shell scripting rules and verification.
.github/​skills/​skill-lifecycle/​SKILL.md Carried fleet skill: skill generation/distribution lifecycle rules.
.github/​skills/​standup-a-repo/​SKILL.md Carried fleet skill: standup procedure driver for new repos.
.github/​skills/​unattended-handoff/​SKILL.md Carried fleet skill: unattended handoff loop orchestration rules.
.github/​skills/​upstream-contribution-workflow/​SKILL.md Carried fleet skill: upstream (non-fleet) contribution workflow.
.github/​skills/​workflow-ci-contract/​SKILL.md Carried fleet skill: CI/CD contract surface for workflow changes.
.github/​skills/​workflow-ci-contract/​references/​architecture.md Carried reference: workflow architecture section include.
.github/​skills/​workflow-ci-contract/​references/​d-guarantees.md Carried reference: D-guarantees contract include.
.github/​skills/​workflow-ci-contract/​references/​test-methodology.md Carried reference: workflow test methodology section include.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727
ptr727 changed the base branch from resync/eol-lf to develop September 26, 2026 03:06
…-set

# Conflicts:
#	.devcontainer/devcontainer.code-workspace
#	.github/copilot-instructions.md
#	.github/dependabot.yml
#	.markdownlint-cli2.jsonc
#	AGENTS.md
#	CODESTYLE.md
#	WORKFLOW.md
#	cspell.json

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

It makes broad, high-impact instruction-set and carried-skill updates that warrant a final human verification pass for fleet conformance and downstream tooling behavior.

Review effort: Lite
Findings: None

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

One documentation/accuracy issue in host-tools.json should be corrected to avoid misleading local path implications.

Review effort: Lite
Findings: 1 Low severity

Open (1)

Comment thread host-tools.json Resolved
The carried note read as if spec/host-tools.json and scripts/host_gate.py
existed in this repository. Both are hub-hosted, so the note says so, and it
states why this repository declares no tool of its own.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 26, 2026 03:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

CODESTYLE.md and GOVERNANCE.md still point readers to hub-only .agents/skills/... paths even though this repo carries the usable copies under .github/skills/, making the docs less actionable and internally inconsistent.

Review effort: Lite
Findings: None

Resolved since last review (1)
Previously missed (2)

In code that hasn't changed since last review

Low severity Use the repo-local skill path in docs

CODESTYLE.md:13

This references the hub-only .agents/skills/... path, but this repository carries the generated skill copy under .github/skills/. Pointing at the local path keeps the doc actionable from this repo and avoids sending readers to a non-existent directory.

This issue also appears in the following locations of the same file:

  • line 46
  • line 54
  • line 58
Low severity Point docs to .github/skills path

GOVERNANCE.md:25

This points readers at the hub-only .agents/skills/... path, but this repository carries the generated skill copy under .github/skills/. Referencing the local copy keeps the pointer actionable from this repo and avoids sending readers to a path that doesn't exist here.

@ptr727

ptr727 commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

Answering the two "previously missed" low-severity findings from the review of 9d1d17d. Both are declined as carried fleet content, per this repo's .github/copilot-instructions.md "Reviewing Carried Fleet Content".

Use the repo-local skill path in docs - CODESTYLE.md:13 (also lines 46, 54, 58): "This references the hub-only .agents/skills/... path, but this repository carries the generated skill copy under .github/skills/."

Point docs to .github/skills path - GOVERNANCE.md:25: "This points readers at the hub-only .agents/skills/... path, but this repository carries the generated skill copy under .github/skills/."

Declined. GOVERNANCE.md:25 sits inside "Durable Knowledge and Self-Improvement", a section declared verbatim in the hub's spec/files.json, so a local edit would make it modified fixed content. CODESTYLE.md is carried whole. Both sentences already name the path as the hub's on purpose ("in the hub, not a repo-relative link since that path is hub-local and not carried into every fleet repo"). .agents/skills/ is the source, and .github/skills/ is a generated copy that is never hand-edited, so the pointer names where a fix belongs. If the wording should change, the fix goes in the hub canonical.

Sign up for free to 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