-
Notifications
You must be signed in to change notification settings - Fork 14
refactor(aidd-context): dedupe project-memory templates and lighten actions #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,22 @@ | ||
| # 04 - Review memory | ||
|
|
||
| Review every memory file together for cross-file consistency, and fix what is safe. | ||
| Review every memory file together for cross-file consistency and duplication, fixing what is safe. | ||
|
|
||
| ## Input | ||
|
|
||
| The `aidd_docs/memory/` directory with the generated files. | ||
|
|
||
| ## Output | ||
|
|
||
| The memory files, corrected in place where needed, and a status table. | ||
| The memory files, corrected in place where safe, and a status report. | ||
|
|
||
| ## Process | ||
|
|
||
| 1. **Read.** Load every `.md` under `aidd_docs/memory/`, recursively. | ||
| 2. **Review.** In one pass with all files in context, check consistency and accuracy across them. Fix a safe inconsistency in place. Flag one that needs a human. | ||
| 3. **Report.** A table: file, status (clean, fixed with reason, or needs review). | ||
| 2. **Review.** In one pass, check cross-file consistency and accuracy. Fix a safe issue in place, flag one that needs a human. | ||
| 3. **Deduplicate.** Keep each fact in one file, drop the copies (judge by meaning, not wording). May be handed to an independent checker subagent. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because this action first loads every Useful? React with 👍 / 👎. |
||
|
|
||
| ## Test | ||
|
|
||
| - The status table covers every memory file, and each flagged file carries a reason a human can act on. | ||
| - Every memory file is covered by the report, each flagged file with a reason a human can act on. | ||
| - No fact's definition is duplicated across files. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| # Integration | ||
|
|
||
| How this system talks to others: internal communication and external services. | ||
|
|
||
| ## Internal | ||
|
|
||
| - <How services or modules communicate (HTTP, events, gRPC)> | ||
| How this system integrates with external/third-party services. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In API projects that expose HTTP/RPC but do not consume third-party services, this external-only template is still selected because Useful? React with 👍 / 👎. |
||
|
|
||
| ## External services | ||
|
|
||
| - <Each external service (payments, email, storage), its purpose, integration point> | ||
|
|
||
| ```mermaid | ||
| flowchart LR | ||
| A[TODO: macro communication between this system and its services] | ||
| A[TODO: macro map of this system and its external services] | ||
| ``` | ||
|
|
||
| <!-- | ||
| Capture: the macro communication map and the external integrations. | ||
| Skip: implementation detail. Keep the diagram macro. Remove this comment when filled. | ||
| Capture: the external integrations and the macro map to them. | ||
| Skip: internal module flow (that lives in architecture). Keep the diagram macro. Remove this comment when filled. | ||
| --> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # Memory block | ||
|
|
||
| The `<aidd_project_memory>` block is where a tool's AI context file points to the generated memory files. It sits under `## Memory Management` → `### Project memory` (full template: `@../assets/AGENTS.md`). | ||
|
|
||
| ## Upsert | ||
|
|
||
| Apply the first case that matches a tool's context file: | ||
|
|
||
| - **Absent:** copy `@../assets/AGENTS.md`, set the tool's title. | ||
| - **No `## Memory Management`:** append that section from the template. | ||
| - **Section but no block:** insert an empty `<aidd_project_memory>` block after `### Project memory`. | ||
| - **Block present:** leave it, report "already ok". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a repo already has one mapped context file for another reason, for example an existing
AGENTS.mdfrom Codex/Cursor but no memory block yet, this no longer says how to distinguish that fresh init from a re-run. Interpreting the detected file as “tools present” skips the target-tool prompt, so missing context files for other tools the user actually uses, such asCLAUDE.md, are never created; the previous wording only skipped the prompt after every detected context file already carried the block.Useful? React with 👍 / 👎.