Skip to content

State the rule that agent text illustrates with constructed data - #531

Merged
ptr727 merged 1 commit into
developfrom
representative-data
Aug 3, 2026
Merged

ptr727 merged 1 commit into
developfrom
representative-data

Conversation

@ptr727

@ptr727 ptr727 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Answers the first TODO.md entry, 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.md section, Representative Data in Agent-Authored Text, placed next to Repository Boundaries and Write Safety because 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:

  • Synthetic evidence is the better evidence, not a weaker substitute. 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. Where observed data is what revealed the defect, name the property that triggers the fault and construct a case that carries it.
  • The exposure is one-way. A public comment is fetched, cached, and indexed the moment it posts, so an edit afterwards is mitigation and leaves the original in the edit history. Text that has landed is reported to the maintainer rather than quietly rewritten, and the exposed data is not quoted again while reporting it.
  • No checker closes this. A pattern finds an absolute home path or a drive letter, and that floor is worth gating. The data that leaked was name-shaped, and a name is not pattern-detectable, so a search of the offending text for path-shaped strings returns nothing while the names sit in plain sight.

Registration

The section is declared verbatim in spec/files.json, classified in the spec/section-model.md table, and given a row in the AGENTS.md map, so the audit checks every downstream copy and validate.py fails 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 153 test_prose_lint.py cases all pass.

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]>
Copilot AI review requested due to automatic review settings August 3, 2026 14:42

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

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.md section, 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 the AGENTS.md task→section map.
  • Updates TODO.md to replace the completed backlog item with the follow-on work item to gate the pattern-detectable subset in prose_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
ptr727 merged commit e17a9bc into develop Aug 3, 2026
7 checks passed
@ptr727
ptr727 deleted the representative-data branch August 3, 2026 14:52
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.
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