cookbook/02_agents/14_advanced/TEST_LOG.md
Tested: 2026-02-13 Environment: .venvs/demo/bin/python, pgvector: running
Status: PASS Tier: untagged Description: Demonstrates 01 create cultural knowledge. Ran successfully and produced expected output. Result: Completed successfully in 6s.
Status: PASS Tier: untagged Description: Demonstrates 02 use cultural knowledge in agent. Ran successfully and produced expected output. Result: Completed successfully in 10s.
Status: PASS Tier: untagged Description: Demonstrates 03 automatic cultural management. Ran successfully and produced expected output. Result: Completed successfully in 26s.
Status: PASS Tier: untagged Description: Demonstrates 04 manually add culture. Ran successfully and produced expected output. Result: Completed successfully in 8s.
Status: TIMEOUT Tier: untagged Description: Demonstrates advanced compression. Timed out after 120s - likely making many API calls or stuck. Result: Timed out after 120s.
Status: PASS Tier: untagged Description: Cancels an agent run mid-stream and verifies partial content and messages are preserved in the database. Result: Completed successfully. Status=CANCELLED, content preserved, 2 messages persisted.
Status: PASS Tier: untagged Description: Demonstrates agent serialization. Ran successfully and produced expected output. Result: Completed successfully in 5s.
Status: PASS Tier: untagged Description: Demonstrates background execution. Ran successfully and produced expected output. Result: Completed successfully in 8s.
Status: PASS Tier: untagged Description: Demonstrates background execution structured. Ran successfully and produced expected output. Result: Completed successfully in 19s.
Status: PASS Tier: untagged Description: Demonstrates basic agent events. Ran successfully and produced expected output. Result: Completed successfully in 3s.
Status: PASS Tier: untagged Description: Demonstrates cache model response. Ran successfully and produced expected output. Result: Completed successfully in 2s.
Status: PASS Tier: untagged Description: Demonstrates cancel run. Ran successfully and produced expected output. Result: Completed successfully in 10s.
Status: PASS Tier: untagged Description: Demonstrates compression events. Ran successfully and produced expected output. Result: Completed successfully in 26s.
Status: PASS Tier: untagged Description: Demonstrates concurrent execution. Ran successfully and produced expected output. Result: Completed successfully in 49s.
Status: PASS Tier: untagged Description: Demonstrates custom cancellation manager. Ran successfully and produced expected output. Result: Completed successfully in 8s.
Status: PASS Tier: untagged Description: Demonstrates custom logging. Ran successfully and produced expected output. Result: Completed successfully in 9s.
Status: PASS Tier: untagged Description: Demonstrates debug. Ran successfully and produced expected output. Result: Completed successfully in 5s.
Status: PASS Tier: untagged Description: Demonstrates metrics. Ran successfully and produced expected output. Result: Completed successfully in 5s.
Status: PASS Tier: untagged Description: Demonstrates reasoning agent events. Ran successfully and produced expected output. Result: Completed successfully in 83s.
Status: PASS Tier: untagged Description: Demonstrates retries. Ran successfully and produced expected output. Result: Completed successfully in 8s.
Status: TIMEOUT Tier: untagged Description: Demonstrates tool call compression. Timed out after 120s - likely making many API calls or stuck. Result: Timed out after 120s.
Status: PASS (live, real Redis) Tier: untagged Description: Demonstrates cross-process streaming resume with RedisEventStream: a producer starts a background streaming run writing events to Redis Streams; a separate observer (own RedisEventStream instance and client, sharing only Redis) replays missed events and tails live ones to completion. Verified with real OpenAI calls and fakeredis substituted for the Redis client (shared FakeServer = two clients of one Redis) - the exact cookbook code path minus the server: observer replayed missed events, tailed to terminal state, saw COMPLETED and the full output. Rerun against real Redis (./cookbook/scripts/run_redis.sh) when available. Result: PASS against real Redis (redis-stack via run_redis.sh): observer replayed missed events and tailed 51 events to completion, saw COMPLETED and full output.
Status: PASS Tier: untagged Description: Demonstrates background streaming (background=True, stream=True) with disconnect and resume via the pluggable event stream (get_event_stream). Run live with real OpenAI calls: consumed 3 SSE events, disconnected, run continued in background; replay() returned the 8 missed events and tail() streamed to the terminal state (index 10), with final status COMPLETED and the full poem retrievable via aget_run_output. Also documents RedisEventStream configuration for multi-container resume. Result: Live run PASS end to end (replay, live tail, terminal detection, final output).
Status: PASS (live, real Postgres) Tier: untagged Description: Demonstrates the process-wide concurrency limit for background runs: 5 runs submitted (one session each), at most 2 execute at once, the rest wait as PENDING. Run live against pgvector Postgres with real OpenAI calls: all 5 completed in 14s, cap held. Also covered by unit tests in libs/agno/tests/unit/run/test_background_concurrency.py and libs/agno/tests/unit/agent/test_background_execution.py. Result: PASS end to end. Observation: Running the earlier version of this cookbook (all runs sharing the agent's default session) reproduced the known shared-session status-clobbering bug on cue - runs stuck at PENDING forever with free slots (different victims each run: 1 then 2). The transition-site fix ships in the durable run queue PR chain; the cookbook now uses one session per run, which is also the realistic shape.