>_
.issue.db
/highway
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #771
Update issue details
Title *
Description
durable_leaves=true routes tools.agent.execute_leaf_agent to the activity worker (agent_leaf DSL, 600s timeout). execute_leaf_agent + the LLM cost rails (engine/tools/llm/usage.py) + agent_trace assume DurableContext (ctx.conn held, ctx.jumper_client present). On ActivityContext ctx.conn is None and jumper_client is absent -> AttributeError on the counter-join record; and even patched, token usage/budget ceilings/leaf traces silently no-op (cost-safety regression). Fix: context_connection(ctx) helper (held conn for durable, short-lived pooled conn for activity), add lazy jumper_client to ActivityContext, route the 3 usage.py fns + agent_trace + execute_leaf_agent join-record through it. Durable path byte-identical; re-test golden demos (v2, ultimate, disaster recovery).
Priority
Low
Medium
High
Critical
Status
Open
In Progress
Closed
Won't Do
Due Date (YYYY-MM-DD)
Tags (comma separated)
Related Issues (IDs)
Enter IDs of issues related to this one. They will be linked as 'related'.
Update Issue
Cancel