Memory unification slice 3: chat read path #38

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

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

Prerequisite: slice 2. The Memory seam on SystemPromptConfig, the <memory purpose="durable_context" trust="data"> block in templates/archie.md.tpl between <tools> and <env>, 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_
sam added the hightask labels 2026-10-27 13:34:42 +00:00
sam self-assigned this 2026-10-27 13:34:42 +00:00
sam closed this issue 2026-10-27 13:34:42 +00:00
sam added a new dependency 2026-10-27 13:41:40 +00:00
sam added a new dependency 2026-10-27 13:41:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#38