Skip to content

feat: expose recall as a native harness tool - #2065

Merged
BYK merged 23 commits into
mainfrom
feat/native-recall-tool
Oct 30, 2026
Merged

BYK merged 23 commits into
mainfrom
feat/native-recall-tool

Conversation

@BYK

@BYK BYK commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Expose native recall tools in Pi and OpenCode, with execution bound to the authenticated gateway session.
  • Preserve recall scopes, detail references, and mixed-tool replay across sessions and restarts.
  • Keep provider and gateway credentials, session attribution, and concurrent recall requests isolated across adapter lifecycles.
  • Move native macOS builds to macOS 15 because GitHub is retiring the macOS 14 runner.

Validation

  • Workspace typecheck, type-aware lint, formatting, and gateway bundle build.
  • Focused gateway, adapter, replay, migration, authentication, and request-routing regressions.
  • Full UI suite twice with default workers: 1,280 tests passed in each run.
  • Independent Sol 6.1 High security and integration reviews.
  • Full PR-head GitHub Actions checks.

@BYK BYK self-assigned this Oct 15, 2026
Comment thread packages/gateway/src/pipeline.ts Resolved
Comment thread packages/opencode/src/recall-tool.ts Resolved
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ Patch coverage is 92.28% (825 of 894 changed executable lines covered; target 80%).
Project statement coverage is 86.78%.

Changed files with executable lines (22)
File Patch coverage Changed executable lines
packages/gateway/src/recall.ts 84.33% 183/217 covered; missed: 485, 486, 498, 499, 500, 501, 503, 511, 521, 801, 916, 952, 998, 999, 1000, 1337, 1470, 1472, 1489, 1490, 1491, 1492, 1497, 1499, 1501, 1502, 1506, 1508, 1510, 1511, 1512, 1515, 1517, 1522; partial branches: 484, 497, 505, 516, 745, 800, 912, 937, 948, 995, 997, 1048, 1249, 1309, 1318, 1322, 1333, 1390, 1393, 1469, 1488, 1521, 1557, 1572
packages/core/src/recall.ts 95.40% 166/174 covered; missed: 857, 858, 859, 860, 947, 1957, 2692, 2693; partial branches: 821, 960, 1956, 1969, 2015, 2038, 2059, 2310, 2344, 2365, 2411, 2446, 2471, 2502, 2689, 2691
packages/gateway/src/pipeline.ts 90.24% 74/82 covered; missed: 6767, 19324, 19333, 19372, 19375, 19389, 19390, 22042; partial branches: 6766, 15540, 19323, 19332, 19336, 19365, 19374, 19393, 20285
packages/gateway/src/translate/responses-tool-search.ts 96.30% 78/81 covered; missed: 147, 158, 274; partial branches: 98, 99, 127, 142, 153, 189, 206, 241, 287, 295
packages/core/src/recall-gateway-client.ts 95.83% 46/48 covered; missed: 76, 77; partial branches: 75, 81, 84, 85, 141, 142, 149
packages/core/src/recall-detail-ref-store.ts 90.63% 29/32 covered; missed: 22, 28, 73; partial branches: 16, 27, 48, 78
packages/core/src/recall-tool.ts 93.62% 44/47 covered; missed: 136, 169, 178; partial branches: 132, 163, 171, 261
packages/opencode/src/index.ts 95.12% 39/41 covered; missed: 56, 417; partial branches: 354, 355, 523
packages/core/src/fetch-interceptor.ts 96.55% 84/87 covered; missed: 567, 1015, 1094; partial branches: 1181
packages/gateway/src/stream/openai-responses.ts 87.50% 7/8 covered; missed: 1496; partial branches: 1489
packages/opencode/src/recall-tool.ts 100.00% 12/12 covered; partial branches: 63, 94
packages/core/src/remote-gateway.ts 88.89% 8/9 covered; missed: 8
packages/core/src/vector-query.ts 80.00% 4/5 covered; missed: 462
packages/core/src/db.ts 100.00% 6/6 covered
packages/core/src/ltm.ts 100.00% 6/6 covered
packages/core/src/recall-limits.ts 100.00% 17/17 covered
packages/core/src/recall-turn.ts 100.00% 1/1 covered
packages/gateway/src/api.ts 100.00% 3/3 covered
packages/gateway/src/routes/recall.ts 100.00% 4/4 covered
packages/gateway/src/translate/openai-responses.ts 100.00% 8/8 covered
packages/gateway/src/translate/openai.ts 100.00% 4/4 covered
packages/opencode/src/internal.ts 100.00% 2/2 covered

Generated by Coverage Action

BYK added a commit that referenced this pull request Oct 27, 2026
Comment thread packages/core/src/recall.ts Resolved
Comment thread packages/core/src/fetch-interceptor.ts Resolved
Comment thread packages/core/src/recall.ts Resolved
@BYK
BYK force-pushed the feat/native-recall-tool branch from 21e809e to 33172d3 Compare October 28, 2026 19:37
Comment thread packages/pi/src/recall-tool.ts Resolved
Comment thread packages/gateway/src/pipeline.ts Resolved
Comment thread packages/opencode/src/index.ts Resolved
Comment thread packages/pi/src/index.ts Resolved
Comment thread packages/core/src/recall.ts Resolved
Comment thread packages/gateway/src/pipeline.ts Resolved
Comment thread packages/gateway/src/pipeline.ts Resolved
@BYK
BYK merged commit bebcddb into main Oct 30, 2026
36 of 38 checks passed
@BYK
BYK deleted the feat/native-recall-tool branch October 30, 2026 22:57
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-10-30 22:58 UTC

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