Repository navigation
Mirror the representative-data rule into the host-wide rules - #532
Conversation
The rule that agent-authored text illustrates with constructed data reaches a fleet repo through its carried `GOVERNANCE.md`, and reaches nothing else. An ad-hoc session outside any project writes comments, commits, and docs under the same identity with none of that loaded, which is the gap this kit exists to close for the write rules already. The `CLAUDE.md` block gains a short form of the rule, keeping the three points that carry the reasoning: synthetic evidence is the stronger evidence, the exposure is one-way so text that has landed is reported rather than quietly rewritten, and no pattern closes it, since the data that leaked was name-shaped. It is a restriction, which is what this block is permitted to carry. The kit README described the block as one section of write rules, which it has not been since the authorization-scope section landed. It now names each section, what it mirrors, and which of them a hook backs, since two of the three are prose only and no hook can see what a line of text means. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR mirrors the repo’s “Representative Data in Agent-Authored Text” rule into the host-wide CLAUDE.md safety block, ensuring the same restriction applies in ad-hoc sessions outside fleet repos. It also updates the kit README to accurately describe the now-multi-section installed rule block and which parts are hook-enforced vs prose-only.
Changes:
- Add a new Data in Agent-Authored Text section to
claude-md-safety.md, mirroring the carried governance rule in a host-wide form. - Update the agent-safety kit README to describe the installed
CLAUDE.mdblock as three mirrored sections (write safety, representative data, authorization/memory hygiene) and clarify enforcement coverage.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| host-setup/agent-safety/claude-md-safety.md | Adds the mirrored “Data in Agent-Authored Text” host-wide rule section. |
| host-setup/agent-safety/README.md | Updates documentation to reflect the three-section host-wide rules block and enforcement split. |
Suppressed comments (1)
host-setup/agent-safety/claude-md-safety.md:15
- This sentence uses “his call”, which is ambiguous in a section that refers to both the agent and the maintainer with gendered pronouns. Consider naming the subject explicitly (e.g., “the maintainer’s call”) to avoid misreading.
- **The exposure is one-way.** A public comment is fetched, cached, and indexed the moment it posts, so an edit afterwards is mitigation rather than a fix, and it leaves the original readable in the comment's edit history. Report text that has already landed rather than quietly rewriting it, since what to do about it, deletion included, is his call. Do not quote the exposed data again while reporting or investigating it.
The section refers to both the agent and the maintainer, so "his environment" and "his call" have no antecedent inside it and read as either party. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Suppressed findings (1), review 4845452508 on head
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
host-setup/agent-safety/claude-md-safety.md:12
- The opening sentence is grammatically awkward (“Text an agent writes illustrates…”) and reads like a missing modal (“must/should”). Rewording improves clarity and keeps the rule phrased as an explicit requirement.
Text an agent writes illustrates with data the agent constructed, never with data it observed in the maintainer's environment. This binds every surface the agent authors, meaning pull request and issue comments, commit messages, code, tests, fixtures, and docs, and it holds in every session on this machine, including ad-hoc work outside any project. Reading real data is unrestricted, and what is bounded is copying it out of the environment into text that is committed or posted. A committed repo's `GOVERNANCE.md` "Representative Data in Agent-Authored Text" states the same rule for its fleet, and the two are kept in sync deliberately, because this file also covers sessions that `AGENTS.md` never reaches.
"Text an agent writes illustrates" reads as a missing modal, and the carried GOVERNANCE.md rule this section mirrors already opens on the same subject without the garden path. The two sentences now match. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Suppressed findings (1), review 4845484293 on head
|
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.
Follow-on to #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.mdgains aData in Agent-Authored Textsection, 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.Deployment
The installed copy on each machine is a snapshot, so the block only changes on a host after
install.shis re-run there. This host is refreshed once this merges. #365 tracks the per-machine rollout.Verification
prose_lint.py(diff-scoped and whole-file on both changed files), markdownlint-cli2, editorconfig-checker, andspec/validate.pyall pass. No hook or installer code changes, so the marker regex already matches the block and the installer replaces it in place.