Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/repo-assist.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Every non-command-mode run that performs work, whether scheduled or manually dis

Repo Assist uses one schema-validated `notes.json` file to carry concise, actionable state across runs. It records backlog cursors, unresolved issue interactions, fix attempts, the latest engineering checks, maintainer-completed monthly actions, and a short priority queue. The workflow verifies remembered facts against current repository state before acting, replaces superseded entries, and removes stale records rather than accumulating a run-by-run activity log.

Repositories upgrading from the earlier multi-file memory format are migrated automatically: legacy memory files are removed the next time Repo Assist saves `notes.json`.
Repo Assist stores this file on the dedicated `memory/repo-assist-memory` branch. Repositories upgrading from an earlier Repo Assist version start with fresh memory on this branch; legacy memory branches are not migrated or modified.

### Guidelines Repo Assist Follows

Expand Down
20 changes: 2 additions & 18 deletions workflows/repo-assist.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ tools:
min-integrity: none # This workflow is allowed to examine and comment on any issues or PRs
bash: true
repo-memory:
branch-name: memory/repo-assist-memory
max-file-size: 65536
max-patch-size: 65536
# Allow one migration commit to delete up to five legacy entries while
# notes.json remains the only persisted file accepted by validation.
max-file-count: 6
max-file-count: 1
format-json: true
allowed-extensions: [".json"]
validation:
Expand Down Expand Up @@ -220,21 +219,6 @@ safe-outputs:
target: "*"

steps:
- name: Migrate legacy Repo Assist memory
env:
MEMORY_DIR: /tmp/gh-aw/repo-memory/default
run: |
node <<'EOF'
const fs = require("node:fs");
const path = require("node:path");
const memoryDir = process.env.MEMORY_DIR;
for (const entry of fs.readdirSync(memoryDir, { withFileTypes: true })) {
if (entry.name !== ".git" && entry.name !== "notes.json") {
fs.rmSync(path.join(memoryDir, entry.name), { recursive: true, force: true });
}
}
EOF

- name: Fetch repo data for task weighting
env:
GH_TOKEN: ${{ github.token }}
Expand Down
Loading