You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][multi-agent-shared-context]: before_acting() reads a 'memories' key the SDK never returns, so agents always report 0 retrieved memories #475
There is no memories key, so bundle.memories is always []. Knock-on effects:
ContextBundle.has_context() (line 37) is always False, so agents/coder.py:56 always prints "No compiled memories found in shared context yet." even when the planner's decisions were retrieved.
used_shared_context in both agents' output is always False.
memories_of_kind() (line 41) filters on m.get("type"), but SDK memories carry kind, not type — so it would still return nothing after the key is fixed. Same for the mem.get('type', 'memory') label at agents/coder.py:61.
The LLM still receives assembled_context, so answers look fine — only the "what did I retrieve" side of the demo is wrong, which is the part the demo exists to show.
Expected Behavior
bundle.memories holds the retrieved memories, and the coder/reviewer logs report the real count.
Suggested fix
Read facts (plus procedures if you want them shown) instead of memories, and switch type → kind in memories_of_kind() and agents/coder.py:61.
Steps to Reproduce
Run python main.py against a local Statewave. The planner writes decisions, then the coder logs "No compiled memories found in shared context yet." while its prompt contains them.
Environment
main @ eb66ddc; statewave SDK from PyPI.
Severity
Low–medium — no data loss, but the reference implementation misreports the exact thing it demonstrates. Related: #400 (same files, different bug).
Activity
g-seo commentedon Oct 6, 2026
I'd like to work on this issue.
I'll keep the fix narrowly scoped to the SDK response-mapping bug:
I'll verify that has_context(), kind filtering, and the coder/reviewer retrieval counts reflect the SDK response correctly.
/claim
Assignment 5: fill Understanding the Issue, with real before and afte…
Assignment 5: fill the Testing Strategy chapter
g-seo commentedon Oct 26, 2026
I've opened a PR to fix this issue: smaramwbc/statewave-multi-agent-shared-context#6
Would appreciate a review when you have a chance. Thanks!