Skip to content

Commit 867568c

Browse files
dsymeCopilot
andcommitted
validate repo assist memory writes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3a9e55b commit 867568c

2 files changed

Lines changed: 21 additions & 19 deletions

File tree

‎.github/workflows/repo-assist.lock.yml‎

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/repo-assist.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ steps:
345345
json.dump(result, f, indent=2)
346346
EOF
347347
348-
source: githubnext/agentics/workflows/repo-assist.md@3efa3db307e0f5568f4a24d8e1814065c2a95698
348+
source: githubnext/agentics/workflows/repo-assist.md@c37c59984b429ef6aa4b354ece4afee53c1dfe65
349349
---
350350

351351
# Repo Assist
@@ -385,6 +385,8 @@ The schema stores only:
385385

386386
Keep notes terse and current. Replace superseded entries, remove resolved issue records and closed fix records once they are no longer needed for duplicate prevention, and never store run-by-run narration, exhaustive label histories, stale PR inventories, copied GitHub content, or facts that can be cheaply queried again. Stay within the schema's array and text limits; do not create another memory file.
387387

388+
After every change to `notes.json`, run `jq empty /tmp/gh-aw/repo-memory/default/notes.json`, then call `push_repo_memory`. A successful tool result is required before finishing the run. If either check reports an error, repair `notes.json` and retry both checks. Prefer `jq` with a temporary file and atomic rename over manual partial JSON edits.
389+
388390
**Important**: Memory may not be 100% accurate. Issues may have been created, closed, or commented on; PRs may have been created, merged, commented on, or closed since the last run. Always verify memory against current repository state — reviewing recent activity since your last run is wise before acting on stale assumptions.
389391

390392
**Memory backlog tracking**: Records in `issues`, `fixes`, and `priorities` are **action items for you**, not just informational notes. Each run, prioritise applicable work from those fields and remove or replace entries as their state changes.

0 commit comments

Comments
 (0)