From bab192391fcd908885d35df82fb352caacd3ae1a Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sun, 16 Aug 2026 09:21:29 -0700 Subject: [PATCH] fix(retro): point the prior-retros context query at files /retro actually writes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2552's live half. The gbrain context-query glob targeted ~/.gstack/projects//retros/*.md — a directory and extension nothing writes — so prior-retro recall was dead on every brain-aware run. /retro saves to .context/retros/*.json (repo-local); the query now reads that. The issue's second defect (quoted-tilde orphan sweep) is already fixed on main — the preamble sweeps with "$HOME/..." — verified, no change needed. Co-Authored-By: Claude Fable 5 --- retro/SKILL.md | 5 ++++- retro/SKILL.md.tmpl | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/retro/SKILL.md b/retro/SKILL.md index 5e4d58a1c..f6fd85d12 100644 --- a/retro/SKILL.md +++ b/retro/SKILL.md @@ -18,7 +18,10 @@ gbrain: context_queries: - id: prior-retros kind: filesystem - glob: "~/.gstack/projects/{repo_slug}/retros/*.md" + # #2552: /retro writes .context/retros/*.json (repo-local; see the save + # step below) — the old ~/.gstack/.../retros/*.md glob matched a + # directory and extension nothing ever writes, so this query was dead. + glob: ".context/retros/*.json" sort: mtime_desc limit: 5 render_as: "## Prior retros for this project" diff --git a/retro/SKILL.md.tmpl b/retro/SKILL.md.tmpl index b60e0c3f3..338feb531 100644 --- a/retro/SKILL.md.tmpl +++ b/retro/SKILL.md.tmpl @@ -23,7 +23,10 @@ gbrain: context_queries: - id: prior-retros kind: filesystem - glob: "~/.gstack/projects/{repo_slug}/retros/*.md" + # #2552: /retro writes .context/retros/*.json (repo-local; see the save + # step below) — the old ~/.gstack/.../retros/*.md glob matched a + # directory and extension nothing ever writes, so this query was dead. + glob: ".context/retros/*.json" sort: mtime_desc limit: 5 render_as: "## Prior retros for this project"