Skip to content

Define per-section fidelity for AGENTS.md; make fleet-law verbatim - #420

Merged
ptr727 merged 3 commits into
developfrom
agents-section-fidelity-model
Jul 24, 2026
Merged

Define per-section fidelity for AGENTS.md; make fleet-law verbatim#420
ptr727 merged 3 commits into
developfrom
agents-section-fidelity-model

Conversation

@ptr727

@ptr727 ptr727 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Establishes that a fleet-wide rule carries verbatim and only a section describing one repo carries as intent - so a rule can no longer silently paraphrase, weaken, or vanish downstream (the recurring drift: comment style, Verification Discipline, Write Safety).

AGENTS.md is rule text, and rule text is universal - the repo-specific values live in other files (.editorconfig, .devcontainer/, the real tree), not this prose. So the default is verbatim; intent is the exception.

  • Classify all 18 sections and declare each fidelity in files.json. 16 verbatim (one appliesTo: operational), 2 intent (Devcontainer, Repository Layout - they describe this repo's own toolchain and tree).
  • Generalize the Branching Model back-merge sentence (drop this repo's own history SHAs) so it carries verbatim - the only section that needed a content edit.
  • New spec/section-model.md - the ground-truth classification an agent or human consults, not re-derived each session. It also codifies that adding, removing, or re-typing a section carries fleet-wide review weight.

Blast radius (intended): the next audit lights up AGENTS verbatim drift across the fleet - ~90% of AGENTS.md is now byte-checked. That is the convergence pressure, applied idempotently via the catalog and burned down over time (progress, not perfection). Verified: validate.py green (every verbatim section resolves in the hub AGENTS.md), selftest green, and a sample audit shows the expected wave (PhotoCleaner: 3 -> 14 AGENTS section findings).

A fleet-wide rule carried as intent drifts - it paraphrases, weakens, or
vanishes downstream, which has happened repeatedly (comment style, Verification
Discipline, Write Safety). AGENTS.md is rule text and rule text is universal, so
the default is verbatim; intent is the exception for a section that describes one
repo. Classify all 18 sections and declare each fidelity in files.json:

- verbatim (16, one operational-scoped): Foundational Principles, Repository
  Boundaries and Write Safety, Git and Commit Rules, Branching Model, Release
  Model, Operational Repositories (appliesTo operational), Repository Onboarding
  and Conformance, PR Title and Commit Conventions, Documentation Style
  Conventions, Verification Discipline, PR Review Etiquette, Communicating with
  the User, Workflow YAML Conventions, Supported Development Platforms, Editor
  and Tasks, Repository Details.
- intent (2): Devcontainer and Repository Layout describe this repo's own
  toolchain and tree.

Generalize the Branching Model back-merge sentence (drop this repo's own history
SHAs) so it can carry verbatim. Add spec/section-model.md as the ground-truth
classification an agent or human consults - it also states that adding, removing,
or re-typing a section carries fleet-wide review weight.

This lights up AGENTS verbatim drift across the fleet on the next audit, which is
the convergence pressure, applied idempotently and burned down over time.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 24, 2026 02:10

Copilot AI 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

Defines a per-section fidelity model for AGENTS.md so fleet-wide rule text can be enforced verbatim (byte-checked) while explicitly repo-specific sections remain intent-checked, reducing silent drift across downstream repos.

Changes:

  • Add spec/section-model.md documenting which AGENTS.md sections are verbatim vs intent, plus how structure/fidelity changes are governed.
  • Update spec/files.json to declare fidelity for all AGENTS.md sections (mostly verbatim, with Devcontainer and Repository Layout as intent).
  • Generalize AGENTS.md Branching Model guidance by removing repo-specific historical back-merge SHAs so the section can carry verbatim.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
spec/section-model.md New ground-truth doc for AGENTS.md section fidelity and governance.
spec/files.json Declares per-section fidelity for AGENTS.md in the baseline.
AGENTS.md Removes repo-specific SHA examples from Branching Model back-merge guidance.

Comment thread spec/section-model.md Outdated
Comment thread spec/section-model.md
Comment thread AGENTS.md Outdated
- section-model.md: convert inline links to reference-style per the DSC rule.
- AGENTS.md Branching: drop 'still' for pure present tense.
- fidelity-model.md: the old 3-section verbatim rationale is stale, point it at
  section-model.md for the current per-section classification.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 24, 2026 02:15

Copilot AI 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 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread spec/fidelity-model.md Outdated
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 24, 2026 02:27

Copilot AI 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 4 out of 4 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 970b0d7 into develop Jul 24, 2026
7 checks passed
@ptr727
ptr727 deleted the agents-section-fidelity-model branch July 24, 2026 04:38
ptr727 added a commit that referenced this pull request Jul 24, 2026
…el (#421)

Carries #419 (comment layout codification) and #420 (per-section AGENTS fidelity model + spec/section-model.md). ~90% of AGENTS.md is now byte-checked fleet-wide. Merge commit, no release.
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