Skip to content

fix(integrations): the pi and Hermes auto-recall hooks work with default settings (#1593) - #1615

Merged
ajianaz merged 1 commit into
developfrom
fix/auto-recall-hooks
Oct 30, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/auto-recall-hooks

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

What

  • uteke recall --min-score (and uteke room recall --min-score) is accepted as an alias of --min.
  • pi extension: calls --min (it called the rejected --min-score) and only when a threshold is set; default threshold 0 (was 0.45). The pure parts (buildRecallArgs, parseRecallOutput) are exported for tests.
  • Hermes plugin: default threshold 0 (was 0.40); the parser reads the flat items that recall --json and POST /recall return, and still accepts the nested memory shape.
  • The embedded pi copy that uteke init --agent pi installs is synced, with a byte-equality test against extensions/ (it had kept the old call). The unreferenced assets/hermes-memory-provider/ template (dead since feat(integrations): committed Hermes plugin package + drift guard #1301) is deleted. Docs and both skill copies say the default is 0.
  • Fixture tests for both parsers against real recall --json output, run by a new Adapter tests CI job (python unittest, bun test).

Why

With default settings both auto-recall hooks injected nothing (atlas finding 4): pi's call was rejected by the CLI, and both adapters filtered on a threshold the default fusion strategy never reaches (its scores are rank-based and top out near 0.04). The Hermes parser looked for item["memory"]["content"] while the real output is flat.

Testing

  • Real CLI output captured and used as the fixture; the Hermes tests fail on the old template and pass now.
  • python3 -m unittest discover -s extensions/hermes-uteke-memory, bun test extensions/pi-memory-provider, cargo test -p uteke-cli (161 passed), fmt, clippy -D warnings, scripts/render-hermes-integration.sh --check.
  • Cora review: no findings after three rounds (asset drift, CHANGELOG wording, test hermeticity, stale skill text fixed).

…ult settings (#1593)

pi called recall --min-score (the CLI flag is --min); both adapters dropped every hit under a default threshold that fusion scores never reach; the Hermes parser expected a nested memory object. Accept --min-score as an alias, keep every hit by default, read the flat JSON, sync the embedded pi copy, drop the unreferenced hermes-memory-provider template, and test both adapters against real recall --json output.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 4aa84e7 into develop Oct 30, 2026
15 checks passed
@ajianaz
ajianaz deleted the fix/auto-recall-hooks branch November 4, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant