Skip to content

Commit 5ab95f8

Browse files
committed
test(learning): pin the docs line on what a soul's id moves in a gmi() brain
Signed-off-by: jddunn <[email protected]>
1 parent 289cce7 commit 5ab95f8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/api/__tests__/learning-store-and-scopes.e2e.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12176,6 +12176,13 @@ describe('the docs a host reads about it', () => {
1217612176
expect(gmiDoc).toContain(
1217712177
"It needs the learning option and a key that names the brain: `learning.agentKey`, or, with a soul, the soul's id (`agentId`, else the slug of its `name`).",
1217812178
);
12179+
// The persona id keys the memory's own traces and the persona scopes, so a soul that moves it moves what they recall.
12180+
expect(gmiDoc).toContain(
12181+
"The memory files its own traces and the `persona` scopes (the agent's, and each user's) under the persona's id, which with a soul is the soul's id.",
12182+
);
12183+
expect(gmiDoc).toContain(
12184+
"A brain whose persona id was the slug of the agent's `name` keeps those traces under the slug, and an agent whose soul gives another id does not recall them; each user's `user` scope it still recalls. To keep recalling them, set the soul's `agentId` to that slug.",
12185+
);
1217912186
expect(gmiDoc).toContain("A store that does not open fails the session's first send naming `memory.store`, before any model call, and the next send tries again.");
1218012187
expect(gmiDoc).toContain('One process serves a SQLite file; several processes share a Postgres database instead, each through an adapter of its own.');
1218112188
expect(gmiDoc).toContain('The manifest\'s `memory_store` loop names the store.');

0 commit comments

Comments
 (0)