Add capture-before-act rule for user-supplied reference materials#14
Merged
Add capture-before-act rule for user-supplied reference materials#14
Conversation
New AGENTS.md §11 + docs/ai-project-memory.md §User-supplied reference materials: any external reference the user provides during a change (Figma / Canva / Sketch / prototype links / requirement docs / mockups / transcripts / PDFs / URLs the change must conform to) must be persisted to project memory before implementation begins, with URL + fetch date + accessing identity + a substantive summary, not just the URL alone. Closes the recurring failure where a takeover session "ignores the design" because the original reference was Tier 1 (session) memory only and was lost to compression.
…torage-rule-P83pd # Conflicts: # CHANGELOG.json # CHANGELOG.md
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.
Summary
Adds a new operating-contract rule (AGENTS.md §11) mandating that external reference materials provided by users during a change (design files, prototype links, requirement documents, PDFs, screenshots, transcripts, or any URL/file the change must conform to) are persisted to project memory before implementation begins, rather than held only in conversation scrollback. This closes a recurring failure mode where downstream sessions "ignore the design" because the original reference was lost to context compression or session break.
Scope classification
Surfaces touched
Rationale:
docs/ai-project-memory.md§User-supplied reference materials defines the mandatory capture protocol, rationale, forbidden patterns, and relationships to other rules; CHANGELOG entries document the new requirement.Source of Truth impact
docs/ai-project-memory.md(new section §User-supplied reference materials — the canonical source of truth for capture protocol, forbidden patterns, and rationale)AGENTS.md§11 (operating-contract summary pointing to SoT)CHANGELOG.md(Added section documenting the new rule)CHANGELOG.json(structured changelog entry)CLAUDE.md,GEMINI.md,.windsurfrules,.cursor/rules/*.mdc,agents/*.md) inherit automatically perdocs/file-role-map.mdand carry no new normative content; they are not updated in this PR.Evidence
The change is purely documentation/contract definition:
docs/ai-project-memory.mdnow contains a new section (lines 152–191) titled "User-supplied reference materials" with:AGENTS.md§11 (new section after §10) contains:docs/ai-project-memory.mdCHANGELOG.mdandCHANGELOG.jsonboth document the addition under "Added" with full context and cross-references.No automated tests apply (this is a contract/discipline rule, not code). The change is self-contained and ready for review.
Breaking-change level
This is a new rule that applies prospectively to future sessions. Existing sessions and completed work are not affected. Agents adopting this repo will inherit the rule through AGENTS.md and the referenced SoT.
Rollback mode
Cross-cutting concerns
Checklist before requesting review
https://claude.ai/code/session_01TkDVaswMTWwzwQjxUSzsve