v1.1 F-Q-E: long-running query cancellation for Memory.searchFacts and Turn.listTurns #79

Open
opened 2026-05-12 19:30:10 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-12 19:30:10 +00:00 (Migrated from github.com)

Summary

Add cancellation-on-disconnect semantics to `Memory.searchFacts` and `Turn.listTurns`. Currently bounded by `limit:` parameter only; long-running queries on large stores can't be interrupted when the client disconnects mid-request.

Evidence

  • Migration plan §10: `.planning/architecture/JARVIS-API-MIGRATION-PLAN.md:733` — "F-Q-E (long-running query cancellation) — Memory.searchFacts/Turn.listTurns gain cancellation-on-disconnect semantics. Currently bounded by limit: only."

Gap classification

"design-mapped but not built" — F-Q-E is an explicit v1.1 deferral in the API design open-questions table.

Recommended action

File against v1.1 milestone. Pattern: thread a `CancellationToken` (or Swift `Task` cancellation) through the SQLite query path; check on row-batch boundaries.

Cross-references

  • Migration plan §10 v1.1
  • API design v0.2 F-Q-E
## Summary Add cancellation-on-disconnect semantics to \`Memory.searchFacts\` and \`Turn.listTurns\`. Currently bounded by \`limit:\` parameter only; long-running queries on large stores can't be interrupted when the client disconnects mid-request. ## Evidence - Migration plan §10: \`.planning/architecture/JARVIS-API-MIGRATION-PLAN.md:733\` — \"F-Q-E (long-running query cancellation) — Memory.searchFacts/Turn.listTurns gain cancellation-on-disconnect semantics. Currently bounded by limit: only.\" ## Gap classification \"design-mapped but not built\" — F-Q-E is an explicit v1.1 deferral in the API design open-questions table. ## Recommended action File against v1.1 milestone. Pattern: thread a \`CancellationToken\` (or Swift \`Task\` cancellation) through the SQLite query path; check on row-batch boundaries. ## Cross-references - Migration plan §10 v1.1 - API design v0.2 F-Q-E
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#79