fix(index): stop leaking per-engineer STATE_* snapshots into AGENTS.md - #68
Merged
Conversation
STATE_*.md snapshots are per-engineer working files. Indexing them all churned the shared, committed AGENTS.md with personal scratch state. The State section is now a pointer to the state convention rule (.agents/rules/state.md); a snapshot is listed only when it opts in as a shared task via `shared: true` frontmatter (mirrors the `import: true` opt-in for reference docs). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
🤖 AI Code Review CompleteReview performed on changed files. Check inline comments for specific findings. Severity Levels:
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
🤖 AI Code Review CompleteReview performed on changed files. Check inline comments for specific findings. Severity Levels:
|
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.
Problem
The generated AGENTS.md index enumerated every
.agents/STATE_*.mdunder## State. Those snapshots are per-engineer working files — listing them leaks one engineer's scratch state into the shared, committed AGENTS.md and churns it on everyindex/syncregeneration.Fix
## Stateis now a pointer to the convention rule (.agents/rules/state.md) so agents still remember to keep state snapshots.shared: truefrontmatter (same pattern as theimport: trueopt-in for reference docs, feat: remaining polish — import:true opt-in, gate legacy import, SPEC-006, SPEC-005 Part C #65). Opted-in snapshots render under a### Sharedsubheading..agents/STATE.md(pre-migration) still lists under Shared untilfixmigrates it.docs/commands/index.mddocument the sharing opt-in.Tests
TestCmdIndex_WithStateSnapshotsnow asserts: private snapshot excluded,shared: truesnapshot included, rule pointer present. Full suite green (go test ./...).🤖 Generated with Claude Code