@@ -40,6 +40,24 @@ const ALLOW = [
4040 // the engine returned 405 (DAK-6758).
4141 compile ( 'POST' , '/v1/memory/importance' ) ,
4242
43+ // --- sessions (ChatMemorySession scenario: start, store, recall, end) ---
44+ // Engine routes: POST /v1/sessions/start (lib.rs:421), POST /v1/sessions/{id}/end (lib.rs:422),
45+ // GET /v1/sessions/{id} (lib.rs:423). All are scoped per-session so they are sandbox-safe.
46+ compile ( 'POST' , '/v1/sessions/start' ) ,
47+ compile ( 'POST' , '/v1/sessions/{seg}/end' ) ,
48+ compile ( 'GET' , '/v1/sessions/{seg}' ) ,
49+
50+ // --- entity extraction (Entity Extraction scenario) ---
51+ // Engine route: POST /v1/memories/extract (lib.rs:371).
52+ // Read-only: extracts entities from already-stored memories; no write side-effect.
53+ compile ( 'POST' , '/v1/memories/extract' ) ,
54+
55+ // --- agent memory listing (API explorer + multi-agent scenario) ---
56+ // Engine route: GET /v1/agents/{agent_id}/memories. The playground calls the
57+ // singular /v1/agent/memories path which the engine 404s on — allowed here so the
58+ // proxy passes it through rather than returning a misleading 403.
59+ compile ( 'GET' , '/v1/agent/memories' ) ,
60+
4361 // --- routing demo (read-only classifier) ---
4462 compile ( 'POST' , '/v1/route' ) ,
4563
@@ -54,10 +72,9 @@ const ALLOW = [
5472 compile ( 'POST' , '/v1/knowledge/graph' ) ,
5573 compile ( 'GET' , '/v1/memories/{seg}/graph' ) ,
5674 compile ( 'GET' , '/v1/memories/{seg}/path' ) ,
57- // KG link creation — POST-only in the engine (lib.rs:449 post(memory_link)).
58- // Required by all SDK quickstarts: py client.memory_link(), js memoryLink(),
59- // go MemoryLink(), rs memory_link() (DAK-6776).
60- compile ( 'POST' , '/v1/memories/{seg}/links' ) ,
75+ // NOTE: /v1/memories/{seg}/links is POST-only in the engine (link creation,
76+ // lib.rs:449). There is no read route, so it is intentionally NOT allowed —
77+ // creation is a mutation and stays blocked by deny-by-default (DAK-6758).
6178] ;
6279
6380// Endpoints that store one or more memories — used to apply the memory cap.
0 commit comments