@@ -276,27 +276,29 @@ def test_team_session_private_memories_are_excluded_without_a_session_id():
276276 workspace as sufficient authority.
277277 """
278278 svc = _svc ()
279- secret = "ALICE_SESSION_PRIVATE_DO_NOT_SHARE "
279+ private_memory = "ALICE_SESSION_PRIVATE_MEMORY "
280280 try :
281281 set_current_user ({"id" : "usr_alice" , "email" : "alice@example.test" , "role" : "member" })
282282 svc .create_workspace ("w" , visibility = "shared" , confirmed = True )
283283 svc .remember ("ordinary shared memory" , workspace = "w" , repo = "r" )
284284 alice = svc .start_session ("w" , repo = "r" , agent = "codex" , goal = "private work" )
285285 private = svc .remember (
286- secret , workspace = "w" , repo = "r" , session_id = alice ["session_id" ],
286+ private_memory , workspace = "w" , repo = "r" , session_id = alice ["session_id" ],
287287 scope = "session" ,
288288 )
289289
290290 set_current_user ({"id" : "usr_bob" , "email" : "bob@example.test" , "role" : "member" })
291- recalled = svc .recall (secret , workspace = "w" , repo = "r" )
291+ recalled = svc .recall (private_memory , workspace = "w" , repo = "r" )
292292 assert private ["id" ] not in {memory ["id" ] for memory in recalled ["memories" ]}
293- grounded = svc .grounded_recall (secret , workspace = "w" , repo = "r" )
293+ grounded = svc .grounded_recall (private_memory , workspace = "w" , repo = "r" )
294294 assert private ["id" ] not in {citation ["id" ] for citation in grounded ["citations" ]}
295295 assert private ["id" ] not in {
296- memory ["id" ] for memory in svc .why (secret , workspace = "w" , repo = "r" )["answer" ]
296+ memory ["id" ]
297+ for memory in svc .why (private_memory , workspace = "w" , repo = "r" )["answer" ]
297298 }
298299 assert private ["id" ] not in {
299- memory ["id" ] for memory in svc .timeline (secret , workspace = "w" , repo = "r" )["history" ]
300+ memory ["id" ]
301+ for memory in svc .timeline (private_memory , workspace = "w" , repo = "r" )["history" ]
300302 }
301303 assert private ["id" ] not in {
302304 memory ["id" ]
0 commit comments