Repository navigation
feat(status): report Recall promotion candidates - #149
Conversation
Show the read-only promotion count during status and expose the checkout source so Recall can target the published policy without scanning.
There was a problem hiding this comment.
Important
GAP’s pinned Recall cannot report promotion candidates, and the new probe runs even in the project-only crew profile.
Approach: A best-effort CLI probe is a reasonable way to surface the count, provided the shipped Recall supports it and the probe respects the effective GAP profile.
Reviewed changes on 54582ed by edheltzel:
- CLI:
gap statusappends an optional Recall count without changing the component exit status, andgap sourcereuses sync’s checkout resolver. - Policy and tests: The Recall guide documents managed blocks and promotion; tests cover block preservation, status output and timeout, checkout output, and the Muse catalog entry.
Risk: 5/10 (Medium) · Needs:Human. The main feature silently does nothing on standard installations, and crew status can now consult machine-local Recall. The existing component status exit rules are unchanged.
Verification: Focused Go tests, go vet ./..., go build ./..., and a local CGO_ENABLED=0 release-style build passed. go test ./... hit the 120-second local command limit; an earlier bounded run timed out during TestUtilityMCPInterruptedRegistration. On Node 22.23.5, npm ci and npm run for typecheck, build, links, og-image, contrast, toc, flash, and logo-round passed. hero-start and hero-spin timed out locally; the GitHub site / check job passed, including both.
gpt-6.2-sol | 𝕏
- Return before the Recall probe when the profile is crew - Split the 5 s budget between the run and pipe cleanup
There was a problem hiding this comment.
Important
gap status can write Recall database sidecar files and still invokes Recall when crew status fails before its profile check. The newly recommended promotion skill also includes local project and record identifiers in public PRs.
Approach: A best-effort CLI probe is a reasonable way to surface the count, provided it preserves the no-write and project-only guarantees of gap status.
Reviewed changes on 48439bf by edheltzel:
- CLI:
gap sourcereuses sync’s checkout resolver. The status probe reserves one second of its five-second budget for pipe cleanup and now skips Recall on a successful crew status. - Recall rollout: The updated pin points to Recall
mainand supplieslearn,promote --json, anddo-recall-promote. The built pinned CLI returned valid JSON and GAP reported the count in a disposable home. - Policy and tests: The guide documents the learned block and promotion workflow. Tests cover block preservation, status and checkout output, timeout handling, and Muse catalog results.
Risk: 5/10 (Medium) · Needs:Human. Default status can create files but did not alter the database contents in the reproduction. Public disclosure requires the user to choose a note, but the skill includes its local project and record identifiers without a separate disclosure decision. The existing needs:human label is in place.
Verification: go vet ./..., go build ./..., the release-style CGO_ENABLED=0 go build -trimpath, and the focused Go tests passed. The full go test -timeout 5m -v ./... failed four TUI process-control tests: TestTUIRunCancelStopsDescendants, TestTUIRunLateCancelStopsDescendants, and TestTUIRunStopDuringOutputStartsGraceAtOnce also failed on the base; TestTUIRunCleanExitFailsWhenAHookExitsOnSignal passed three isolated reruns. On Node 22.23.4, npm ci and npm run for typecheck, build, links, og-image, contrast, toc, flash, hero-start, and logo-round passed locally. The site CI job passed the full set, including hero-spin, which was still running locally.
gpt-6.2-sol | 𝕏
| } | ||
| ctx, cancel := context.WithTimeout(context.Background(), recallTimeout*4/5) | ||
| defer cancel() | ||
| cmd := exec.CommandContext(ctx, recall, "promote", "--json") |
There was a problem hiding this comment.
This makes gap status write files despite its documented no-write guarantee. With the pinned Recall and a valid WAL-mode database that had no sidecars, running gap status created -wal and -shm files even though the database's contents stayed unchanged.
Technical details
# Keep default status from writing to Recall storage
## Affected sites
- [`loadTailCandidates`](https://github.com/edheltzel/Recall/blob/396e55ed610207fbd6939033662d2baedf99a4ce/hooks/lib/learned-tail.ts#L227-L232) opens the live database with `readonly: true`; SQLite can still create WAL sidecars.
- [`README.md`](https://github.com/edheltzel/GAP/blob/48439bf3efc177c5ce330ee87822ce1dc7aa9383/README.md#L64) promises that `gap status` writes nothing.
## Required outcome
- Use a Recall reporting path that does not create or modify files, or leave this probe out of default status. Verify the behavior with the real pinned CLI and an initialized WAL database without sidecars; the stdout stub does not exercise SQLite.| - Read relevant memory before re-asking settled preferences. | ||
| - Record durable preferences in the right AGENTS.md / DOX user-preferences section when asked to keep them. | ||
| - Recall: follow its installed guide when one exists (Pi: `~/.pi/agent/Recall_GUIDE.md`) and the live MCP schemas. No guide means only the schemas. | ||
| - The `<!-- recall:begin -->` … `<!-- recall:end -->` block is machine-written by `recall learn`. Never hand-edit it. Promote a note that holds across projects with the `do-recall-promote` skill. |
There was a problem hiding this comment.
The recommended skill asks which notes to promote, then includes their source project identifiers and Recall record IDs in the public GAP PR body. A user can approve the policy text without intending to disclose which private projects it came from.
Technical details
# Keep local Recall metadata out of public promotion by default
## Affected sites
- The pinned [`do-recall-promote` approval step](https://github.com/edheltzel/Recall/blob/396e55ed610207fbd6939033662d2baedf99a4ce/agent-skills/do-recall-promote/SKILL.md#L29-L33) asks the user to select notes. The [publish step](https://github.com/edheltzel/Recall/blob/396e55ed610207fbd6939033662d2baedf99a4ce/agent-skills/do-recall-promote/SKILL.md#L54-L65) requires copying project identifiers and record IDs into the PR body.
## Required outcome
- Keep project identifiers and record IDs local by default, and show the exact public policy change and PR body for approval before pushing. Coordinate that change with Recall before GAP recommends the skill.- only probe Recall after statusAll succeeds or reports drift - add TestStatusConfigErrorSkipsRecall for a malformed user lock in a crew project
There was a problem hiding this comment.
ℹ️ No new issues found in the incremental changes. The existing unresolved findings still require human review.
Reviewed changes since the prior Pullfrog review:
- Status error handling: Skipped the Recall probe when status fails before establishing the profile, while retaining it for ordinary drift.
- Regression coverage: Added a malformed user lock test for the crew profile.
Risk: 5/10 (Medium) · Needs:Human. Previously identified filesystem writes and potential disclosure of local Recall metadata remain unresolved; the needs:human label is already present.
Verification: Focused status tests, go vet ./..., and go build ./... passed. go test ./... timed out after 120 seconds. Site typecheck, build, links, og-image, contrast, toc, logo-round, and flash passed; hero-start and hero-spin timed out locally after 25 seconds each. The PR's site check passed on GitHub.
gpt-6.1-terra | 𝕏

What
gap statusprintsrecall: N promotion candidateswhenrecallis on PATH; skipped after 5 s or on any error, never changes the exit code.gap sourceprints the checkoutgap syncpublishes from.global/docs/agents/recall.md: the recall block is machine-written; promote withdo-recall-promote.search_test: catalog now has the non-distro utilitymuse, so search suggestsgap addfor it only. This also fixes the two master failuresTestSearchCatalogParsesRealCatalogandTestSearchIgnoresLocalStateAndStaysPlainWhenPiped(todo feat(gap): add jcode policy overlay integration #121).Verify
go test ./...passes.TestStatusPrintsRecallCandidates,TestStatusSkipsHungRecall,TestRecallPairSurvivesSync,TestRecallPairSurvivesUninstallStrip,TestSourcePrintsCheckout.Blocked on Recall
recall promote --json,recall learn, anddo-recall-promotelive only on Recall's unmergedfeat/learned-tailbranch (a9881a6), with no PR. GAP pins Recall main at 1a90629, whererecall promote --jsonfails with "unknown option '--json'", so the count never prints. Merge this after that branch ships andgap update recallmoves the pin.