Skip to content

feat(status): report Recall promotion candidates - #149

Merged
edheltzel merged 4 commits into
masterfrom
feat/recall-promotion-candidates
Nov 25, 2026
Merged

edheltzel merged 4 commits into
masterfrom
feat/recall-promotion-candidates

Conversation

@edheltzel

@edheltzel edheltzel commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What

  • gap status prints recall: N promotion candidates when recall is on PATH; skipped after 5 s or on any error, never changes the exit code.
  • New gap source prints the checkout gap sync publishes from.
  • global/docs/agents/recall.md: the recall block is machine-written; promote with do-recall-promote.
  • search_test: catalog now has the non-distro utility muse, so search suggests gap add for it only. This also fixes the two master failures TestSearchCatalogParsesRealCatalog and TestSearchIgnoresLocalStateAndStaysPlainWhenPiped (todo feat(gap): add jcode policy overlay integration #121).

Verify

  • go test ./... passes.
  • Tests: TestStatusPrintsRecallCandidates, TestStatusSkipsHungRecall, TestRecallPairSurvivesSync, TestRecallPairSurvivesUninstallStrip, TestSourcePrintsCheckout.

Blocked on Recall

recall promote --json, recall learn, and do-recall-promote live only on Recall's unmerged feat/learned-tail branch (a9881a6), with no PR. GAP pins Recall main at 1a90629, where recall promote --json fails with "unknown option '--json'", so the count never prints. Merge this after that branch ships and gap update recall moves the pin.

Show the read-only promotion count during status and expose the checkout source so Recall can target the published policy without scanning.
@pullfrog pullfrog Bot added the needs:human label Nov 25, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 status appends an optional Recall count without changing the component exit status, and gap source reuses 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol | 𝕏

Comment thread cmd/gap/cli.go Resolved
Comment thread cmd/gap/cli.go Resolved
Comment thread cmd/gap/cli.go Resolved
- Return before the Recall probe when the profile is crew
- Split the 5 s budget between the run and pipe cleanup
@edheltzel
edheltzel marked this pull request as ready for review November 25, 2026 22:04

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 source reuses 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 main and supplies learn, promote --json, and do-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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol | 𝕏

Comment thread cmd/gap/cli.go Resolved
Comment thread cmd/gap/cli.go
}
ctx, cancel := context.WithTimeout(context.Background(), recallTimeout*4/5)
defer cancel()
cmd := exec.CommandContext(ctx, recall, "promote", "--json")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ 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.

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-6.1-terra | 𝕏

@edheltzel
edheltzel merged commit 6a8b7a9 into master Nov 25, 2026
2 of 3 checks passed
edheltzel added a commit that referenced this pull request Nov 25, 2026
…tasks

- mark the #149 and #150 merge tasks done
- add gap self-update (A) ahead of the v4.1.0 release (B)
- keep the 2026-11-23 and 2026-11-25 regroup snapshots
- keep the PR 138 and 139 review notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant