From f116ac5eb775f1efe5278e26e074438498784fe9 Mon Sep 17 00:00:00 2001 From: Don Syme Date: Sat, 10 Oct 2026 10:39:08 +0100 Subject: [PATCH] update repo-assist --- docs/repo-assist.md | 2 +- workflows/repo-assist.md | 20 ++------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/docs/repo-assist.md b/docs/repo-assist.md index da7e6ac..ea9f9ba 100644 --- a/docs/repo-assist.md +++ b/docs/repo-assist.md @@ -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 diff --git a/workflows/repo-assist.md b/workflows/repo-assist.md index 3179267..9f47e46 100644 --- a/workflows/repo-assist.md +++ b/workflows/repo-assist.md @@ -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: @@ -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 }}