docs(agents): bound what documentation holds #264
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry!264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/lean-documentation-rules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
AGENTS.md§ Documentation tells agents in every adopting repositorywhat to document when a change lands. Its first rule, "Update
documentation when behavior or operational procedures change", set no
bound on what or how much. Agents documented every behavior they
touched, at length, together with what existed before and steps for
readers still in an earlier state, and
change-reviewerasked that thedocumentation describe each new behavior. Over time the documentation
grows until it is hard to read.
What changed
§ Documentation's first rule now says what tracked documentation holds:
the software's architecture, the external dependencies it needs, and
what else its reader needs to act and cannot easily find elsewhere, all
as they stand now. History, earlier states, and migration steps belong
only in a changelog or another file dedicated to them, and a change
updates tracked documentation only where it makes it wrong or brings a
new fact of these kinds. The non-obvious clause reuses § Writing for
readers' own words, so the two cannot drift apart. "Tracked" keeps work
folders, commit bodies, and pull request bodies outside the rule.
change-reviewer's feature check, for a pull request someone elseopened, now judges the documentation by § Documentation instead of
asking that it describe the new behavior.
How to verify
Base
mainata399533, branchdocs/lean-documentation-rulesatf85d322.AGENTS.md§ Documentation, before:After:
.agents/agents/change-reviewer.md, before: "the change stays withinthe stated scope, and the documentation describes the new behavior."
After: "the change stays within the stated scope, and its documentation
is as
AGENTS.md§ Documentation asks."Untested: the behavioral evals, which
docs/MAINTENANCE.mdleaves tothe maintainer before merging. From the branch's worktree:
The
document-featurecase, which asks to documentbin/tally'soptions in the README, is expected to pass on both policies, since
those options are what the README's reader cannot easily find
elsewhere.
Run on the tree of
f85d322, as a non-root user, outside Claude Code'ssandbox:
bash tests/verify-agent-config.sh(361 tests, none skipped),bash tests/check-work-folder.sh(46 tests),.agents/hooks/shellcheck.sh repo,prettier --check '**/*.md',scripts/verify-agent-config.sh, andgit diff --check main, allpassing. No test reads either passage.
Considerations
as ceilings, and this change acts on what documentation holds.
and documentation" stays: under the new rule it asks only for the
documentation the rule admits.
UPGRADING.mdneeds no entry, since its Migrations cover layoutchanges only.