AgentSuiteLocal v0.8.6
Sprint 2 close-out — regression-guard tests for progress_callback wire-up; fix step key collision in pipeline SSE events.
Added
test_execute_run_emits_progress_events: regression guard that turns red ifprogress_callback=progress_callbackis removed fromagent.run()in_execute_run. Usesside_effectto invoke the callback synchronously from the executor thread;await asyncio.sleep(0)flushes thecall_soon_threadsafequeue before asserting onrun["events"].test_execute_pipeline_step_emits_progress_events: same guard for the_execute_pipeline_steppath. Asserts ≥1stage_updateevent inpipeline["events"]and thatstepcarries the pipeline step index (not the AgentSuite internal stage step).- Issue #19 filed: migrate
_execute_pipeline_steptoPipelineOrchestratorto enable K1 cross-stage context accumulation (currently bypassed; each pipeline step runs as an isolated single-agent call).
Fixed
stepkey collision in pipelineprogress_callback:stage_progressevents emitted byBaseAgent.run()include a"step"field (intra-stage step counter). Forwarding the full dict while also passingstep=step_idxto_emit_pipelinecausedTypeError: got multiple values for keyword argument 'step'at runtime, silently swallowing all pipelinestage_updateevents. Now strips"step"from the forwarded payload;step=step_idx(pipeline step index) is authoritative.
Test metrics (v0.8.6)
- Backend tests: 135 passing (was 127 in v0.8.5; +8 net including 2 new progress-event guards)
execution.pycoverage: 72% (was 70% against v0.8.5 tests; +2pp, coversprogress_callbackclosure bodies)- Repo-wide coverage: 67% (floor 60%)