Memory unification slice 3: chat read path #38
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: sam/archie#38
Reference in new issue
Block a user
Prerequisite: slice 2.
The Memory seam on SystemPromptConfig, the block in templates/archie.md.tpl between and ,
per-channel subject resolution (UserIdentity func on TurnRunnerConfig), and the
composition-ordering fix so the engine is non-nil at every turn-runner
construction site (setupGateways before setupMemoryAll; startGatewayRuntime
before setupMemory).
The read is synchronous and total inside prepareTurn, a scope-only Query over
the subject's scopes — not ranked search — degrading to an empty block on any
engine failure or provider panic. Records render with their short id. A
per-scope record limit and a rendered-block byte cap are named constants.
Fail closed: an empty UserID yields global and agent scopes only, and a write
targeting user or agent-user fails with a clear error. A webhook route path
never becomes a user identity.
Close reason
PR #887 open: chat memory read path landed, task check green
Imported from beads
archie-core-2ent.3· GitHub #852 · type task · priority P1 · created 2026-09-17 · closed 2026-09-19