cookbook/08_learning/TEST_LOG.md
Last updated: 2026-01-27
.venvs/demo/bin/pythonStatus: PASS
Description: Tests AGENTIC mode for LearnedKnowledgeStore with the restructured prompt (Rules 1-4 consolidated in CRITICAL RULES section).
Result: Agent correctly:
Status: PASS
Description: Tests PROPOSE mode where agent proposes learnings for user approval before saving.
Result: Agent correctly:
Status: PASS
Description: Tests the learning=True shorthand which now enables both UserProfile and UserMemory stores by default.
Result:
['user_profile', 'user_memory']Status: PASS
Description: Basic ALWAYS mode learning with automatic extraction.
Result: Agent learned user info (Alice, Anthropic research scientist, prefers concise responses) and recalled it in session 2.
Status: PASS
Description: Basic AGENTIC mode where agent has tools to update memory.
Result: Agent used update_user_memory tool and correctly recalled user info.
Status: PASS
Description: Tests learned knowledge sharing across users.
Result:
Status: PASS
Description: UserProfileStore with ALWAYS mode extraction.
Result: Extracted profile (Alice Chen / Ali) and recalled correctly in session 2.
Status: PASS
Description: UserMemoryStore with ALWAYS mode extraction.
Result: Extracted memories about user's work and preferences, applied them in session 2 response.
Status: PASS
Description: SessionContextStore tracking conversation state.
Result: Maintained session summary across turns, correctly summarized the API design discussion when asked "What did we decide?"
Status: PASS
Description: Basic LearnedKnowledgeStore functionality.
Result: Agent searched learnings, incorporated egress cost goal into cloud provider recommendations.
| Category | Tests | Passed | Failed |
|---|---|---|---|
| Priority 1 (Recent Changes) | 3 | 3 | 0 |
| Priority 2 (Smoke Tests) | 3 | 3 | 0 |
| Priority 3 (User Profile/Memory) | 2 | 2 | 0 |
| Priority 4 (Other Stores) | 2 | 2 | 0 |
| Total | 10 | 10 | 0 |
All tests passing after the following changes:
learning=True now enables both user_profile and user_memory by defaultlearning_saved state reset bug