Assert curator-written memory survives session deletion and is read by a later turn #1501

Closed
opened 2026-10-27 13:40:39 +00:00 by sam · 0 comments
Owner

PRD acceptance criterion 4 (docs/prds/memory-engine-unification.md) requires: 'A curator pass over a session writes a record a later turn reads, and which survives that session being deleted.' internal/infrastructure/sessioncurator/sessioncurator_test.go (TestPassWritesExtractedFactsToAgentUserScope) only asserts the curator writes to the correct agent-user scope against a fake engine. No test found asserting (a) a later chat turn's rendered block actually shows a curator-written record end to end through the real builtin engine, or (b) that record survives the originating chat session being deleted. Add an integration test spanning sessioncurator -> real builtin engine -> gateway renderMemory to close this gap.

Close reason

Test-only bead; no breakage or listed seam, closed under the earned-tests policy.


Imported from beads archie-core-p2hc · GitHub #935 · type task · priority P2 · created 2026-09-19 · closed 2026-10-25

PRD acceptance criterion 4 (docs/prds/memory-engine-unification.md) requires: 'A curator pass over a session writes a record a later turn reads, and which survives that session being deleted.' internal/infrastructure/sessioncurator/sessioncurator_test.go (TestPassWritesExtractedFactsToAgentUserScope) only asserts the curator writes to the correct agent-user scope against a fake engine. No test found asserting (a) a later chat turn's rendered <memory> block actually shows a curator-written record end to end through the real builtin engine, or (b) that record survives the originating chat session being deleted. Add an integration test spanning sessioncurator -> real builtin engine -> gateway renderMemory to close this gap. ### Close reason Test-only bead; no breakage or listed seam, closed under the earned-tests policy. --- _Imported from beads `archie-core-p2hc` · GitHub #935 · type task · priority P2 · created 2026-09-19 · closed 2026-10-25_
sam added the mediumtask labels 2026-10-27 13:40:39 +00:00
sam self-assigned this 2026-10-27 13:40:39 +00:00
sam closed this issue 2026-10-27 13:40:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1501