1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: memory_scopes
title: Two memory primitives with different lifecycle scopes
summary: The `store:` field is the closed lifecycle catalog (`ephemeral | none | session | persistent`). Each `memory` primitive picks ONE scope; multiple memories with different scopes coexist in one program.
topic: memory
primitives:
- -
// The closed memory lifecycle catalog:
// ephemeral — single-turn; cleared as the writing step returns
// none — alias for ephemeral; explicit "intentionally amnesiac"
// session — lives across the conversation; cleared on disconnect
// persistent — survives reconnect, scoped by tenant + user
persona Tutor {
}
// Per-turn scratch — gone the moment the step returns.
memory ScratchPad {
}
// Lives for the duration of the conversation.
memory SessionState {
}
// Survives reconnect — tenant + user scoped.
memory StudentProgress {
}