M-4: Memory surface (factMutated/factsRetrieved/searchFacts; cache-eligibility regression gate) #8
Open
opened 2026-05-12 19:02:19 +00:00 by KofTwentyTwo
·
0 comments
No Branch/Tag Specified
develop
ci/secrets-historical-baseline
feature/security-findings-2026-10
dependabot/npm_and_yarn/webview/npm_and_yarn-3ac77625be
dependabot/npm_and_yarn/webview/packages/bus/npm_and_yarn-c86b58a346
dependabot/npm_and_yarn/webview/vitejs/plugin-react-6.0.2
dependabot/npm_and_yarn/webview/vite-8.0.13
dependabot/npm_and_yarn/webview/zustand-5.0.13
dependabot/npm_and_yarn/webview/types/node-25.9.1
dependabot/npm_and_yarn/webview/vitest-4.1.6
dependabot/github_actions/actions/setup-node-6
dependabot/github_actions/github/codeql-action-4
dependabot/github_actions/actions/checkout-6
dependabot/github_actions/actions/cache-5
dependabot/github_actions/pnpm/action-setup-6
feat/local-first-llm-routing
docs/local-first-llm-routing-spec
fix/v0.2-wave-1-code-fixes
docs/v0.2-wave-1-doc-drift
docs/handoff-2026-05-14
docs/multi-runner-inventory
docs/ollama-baseline-58
fix/ci-env-harness-sqlite-voice-warmup
fix/ci-xcode-26-and-batcher-timing
chore/typecheck-blocking
fix/hud-typecheck-strict-undefined
wip/voice-log-menu-stash4
v0.1.0-dev.71
v0.1.0-dev.68
v0.1.0-dev.64
v0.1.0-dev.50
Labels
Clear labels
area:agent
area:build
area:bus
area:devtool
area:hud
area:logging
area:mcp
area:memory
area:vision
area:voice
audit-finding
bug
carry-forward
comment-cleanup
dependencies
documentation
duplicate
enhancement
epic
good first issue
help wanted
invalid
javascript
migration
question
severity:critical
severity:high
severity:low
severity:medium
wontfix
Something isn't working
Comment / docstring cleanup per .planning/code-commenting-guide.md
Dependency updates
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Pull requests that update javascript code
Further information is requested
This will not be worked on
Milestone
No items
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: KofTwentyTwo/Jarvis#8
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Land Memory surface.
factMutated/factsRetrieved/searchFacts/forgetFact/listRecentFacts/listTurnsthrough the typed API. Cache-eligibility regression gate (R-006) pins behavior of the B-02 tactical patch against the new surface.Scope — surfaces in this phase
JarvisAPI.Memoryqueries:listRecentFacts,searchFacts,listTurns(substrate-side helper;listTurnslives on Turn surface per F-008)forgetFact(norequiresConfirmationparam — F-009; confirmation viaConfirmationBrokertest seam under UQ-1)factMutated,factsRetrieved— REPLACE old replay-event emit, do not parallel-emitsearchFactsreturnsResult<MemoryHits, MemoryError>with.vectorIndexUnavailabletriggerable under harness (R-011 typed degraded result)getSelfState.memoryVectorAvailable: Boolreflects current dylib load stateFiles (created/modified)
packages/JarvisAPI/Sources/JarvisAPI/Surfaces/Memory+Adapter.swift(new) — wrapsMemoryStorepackages/AgentCore/Sources/AgentOrchestrator/AgentOrchestrator.swift— history-load via Memory surfacepackages/Memory/Sources/Memory/MemoryStore.swift— delete legacy replay-event emit sitepackages/Harness/Tests/HarnessTests/MemoryScenarioTests.swift(new)Test contract
Scenarios
S-MEM-001..S-MEM-008perJARVIS-API-TEST-CONTRACT.md:JARVIS_REAL_MODELS=1(skipped in defaultswift test; required for PR merge if D-5/D-6/D-7 closed — see Path A vs Path B in plan §7)S-MEM-CACHE-REGRESSION(BLOCKING): two short turns then a third produces ZEROstreamTruncatedretries — pins R-006 mitigation post-B-02 patchStubEmbedderAcceptance criteria
bash scripts/check-single-memory-mutated-emit.shgreen AFTER migration (literal moved to new site; gate updated)bash scripts/check-single-memory-used-emit.shgreenbash scripts/check-embedding-dim-literal.shgreenS-MEM-CACHE-REGRESSIONproduces zerostreamTruncatedretries.inProcessActorrunner.jsonRoundTripWebViewrunnergetSelfState.memoryVectorAvailablereflects current state; harness asserts at bootCarry-forward closures
Dependencies
Related issues
:32b-instruct-q8_0variant availableSub-issues
Estimate
2.0–3.0 engineer-days
Source
.planning/architecture/JARVIS-API-MIGRATION-PLAN.md§2.5 + §7 (D-5/D-6/D-7 dependency).planning/architecture/JARVIS-API-DESIGN-v0.1.md—Memorysurface.planning/architecture/JARVIS-API-DESIGN-v0.2.md— F-008, F-009, F-021.planning/architecture/REVIEW-MIGRATION-RISK.mdR-006, R-011, R-017