Repository navigation
State the rule that agent text illustrates with constructed data - #531
Merged
Merged
Conversation
An agent proving a review finding quoted real paths from the maintainer's filesystem, which carried family members' names, into a comment on a public repository. The finding needed none of them, and nothing in the governance said not to, so the rule was left to judgment. The section binds every surface an agent writes, and bounds what it copies out of the environment rather than what it reads. Three points carry the reasoning a bare prohibition would lose. Synthetic evidence is the better evidence, since a constructed case demonstrates the defect exactly and any reader can re-run it, where observed data proves the same thing and can never be reproduced. The exposure is one-way, because a public comment is fetched, cached, and indexed the moment it posts, so an edit afterwards is mitigation and the decision on text that has landed is the maintainer's. And no checker closes this, since the data that leaked was name-shaped and a name is not pattern-detectable, so a path gate is a floor that must not be read as the answer. Carried verbatim, since every repo is public and each is worked by agents reading the same rules. Registered in files.json, the section-model table, and the AGENTS.md map, so the audit checks it and a rename cannot silently stop the check. The backlog entry it answers is replaced by the follow-on gate, and the re-vendor entry names the new section, which downstream audits report as missing rather than stale. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an explicit fleet-governance rule that agent-authored text must illustrate findings with constructed/representative data rather than quoting data observed from a maintainer’s environment, and wires that new section into the spec/audit model so downstream repos must carry it verbatim.
Changes:
- Introduces a new
GOVERNANCE.mdsection, Representative Data in Agent-Authored Text, explaining the rule and its rationale. - Registers the new section in the section model and baseline (
spec/section-model.md,spec/files.json) and links it from theAGENTS.mdtask→section map. - Updates
TODO.mdto replace the completed backlog item with the follow-on work item to gate the pattern-detectable subset inprose_lint.py.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| TODO.md | Replaces the completed “state the rule” backlog entry with the next-step gating backlog entry. |
| spec/section-model.md | Classifies the new governance section as verbatim for audit hashing. |
| spec/files.json | Declares the new governance section in the carried baseline so validation/audits require it. |
| GOVERNANCE.md | Adds the new “Representative Data in Agent-Authored Text” rule section. |
| AGENTS.md | Maps “Quoting data…” tasks to the new governance section for discoverability. |
ptr727
added a commit
that referenced
this pull request
Aug 3, 2026
Follow-on to [#531](#531), which stated the representative-data rule in `GOVERNANCE.md`. That file reaches a fleet repo and nothing else, so a session working outside any project writes comments, commits, and docs under the same identity with the rule nowhere in context. Closing that gap for the write rules is what this kit already exists to do. ## What lands - `claude-md-safety.md` gains a **`Data in Agent-Authored Text`** section, the short form of the carried rule. It keeps the three points that carry the reasoning rather than the prohibition alone: synthetic evidence is the stronger evidence and not a concession, the exposure is one-way so text that has already landed is reported rather than quietly rewritten, and no pattern closes it, since the leak that motivated the rule was name-shaped. It is a restriction, which is the only kind of rule this block is permitted to carry. - The kit README described the installed block as one section of write rules. That stopped being true when the authorization-scope section landed, so it now names each of the three sections, what each mirrors, and which of them a hook backs, since two are prose only and no hook can see what a line of text means. ## Deployment The installed copy on each machine is a snapshot, so the block only changes on a host after `install.sh` is re-run there. This host is refreshed once this merges. [#365](#365) tracks the per-machine rollout. ## Verification `prose_lint.py` (diff-scoped and whole-file on both changed files), markdownlint-cli2, editorconfig-checker, and `spec/validate.py` all pass. No hook or installer code changes, so the marker regex already matches the block and the installer replaces it in place. --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ptr727
added a commit
that referenced
this pull request
Aug 3, 2026
Promotes two commits. Forward merge, no back-merge, and this pull request merges as a **merge commit** rather than a squash, since its head is `develop` itself. - [#531](#531) states the representative-data rule as a new carried `GOVERNANCE.md` section, **Representative Data in Agent-Authored Text**, declared `verbatim` in `spec/files.json`, classified in `spec/section-model.md`, and mapped from `AGENTS.md`. Agent-authored text illustrates with data the agent constructed, never with data it observed in the maintainer's environment. - [#532](#532) mirrors the rule into the host-wide `CLAUDE.md` block the agent-safety kit installs, so a session outside a fleet repo carries it too, and corrects the kit README, which still described that block as one section of write rules. `TODO.md` trades the answered entry for the follow-on `prose_lint.py` floor gate, and the re-vendor entry now names the new section, which downstream audits report as a missing section rather than as drift. Both pull requests were reviewed to green on their own heads. The new section makes every downstream repo non-conformant until the re-vendor sweep, which is the audit working rather than a regression.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Answers the first
TODO.mdentry, which recorded that agent-authored text quoting the maintainer's own data was left to judgment rather than stated as a rule. An agent proving a review finding on a downstream pull request quoted real paths from the maintainer's filesystem, carrying family members' names, into a comment on a public repository. The finding needed none of them.What lands
A new
GOVERNANCE.mdsection, Representative Data in Agent-Authored Text, placed next toRepository Boundaries and Write Safetybecause both bound an outward-facing act. It binds every surface an agent writes (pull request and issue comments, review replies, commit messages, code, tests, fixtures, docs), leaves reading unrestricted, and bounds what an agent copies out of the environment into text that is committed or posted. It holds in a private repository too, since the audience changes with one settings toggle while the text stays where it was written.Three points carry the reasoning, since a bare prohibition invites the exception that caused this:
Registration
The section is declared
verbatiminspec/files.json, classified in thespec/section-model.mdtable, and given a row in theAGENTS.mdmap, so the audit checks every downstream copy andvalidate.pyfails if the heading is ever renamed out from under the declaration.Backlog
The answered entry is replaced by the follow-on gate in
prose_lint.py, recorded with the three things that need settling: the exemption carries the whole burden because the rule's own wording quotes path shapes to describe them, no committed-file linter reads a pull request comment which is where the leak happened, and an operator's literal path in a runbook is the repo's own content rather than an agent quoting the environment. The re-vendor entry now names the new section, which downstream audits report as a missing section rather than as drift.Verification
spec/validate.py,prose_lint.py(diff-scoped and whole-file on every changed doc), markdownlint-cli2, cspell, editorconfig-checker, actionlint, and the 153test_prose_lint.pycases all pass.