Commit Graph

5 Commits

Author SHA1 Message Date
huanghuoguoguo
2fd2c6aadc refactor(agent-runner): tighten protocol v1 runtime boundaries 2026-06-13 00:27:09 +08:00
huanghuoguoguo
f9e07df539 feat(agent-runner): align protocol adapter terminology 2026-06-13 00:27:09 +08:00
huanghuoguoguo
f23f343edc feat(agent-runner): add persistent state APIs 2026-06-13 00:27:09 +08:00
huanghuoguoguo
a7d90d196f feat(agent-runner): scope event-first state by binding 2026-06-13 00:27:09 +08:00
huanghuoguoguo
790588fa22 perf(agent-runner): improve session registry and orchestrator efficiency
- Add pre-computed _authorized_ids (frozenset) at session registration for O(1) lookup
- Refactor is_resource_allowed() from linear search to set membership check
- Add thread-safe locking to get_session_registry() singleton
- Cache _session_registry and _state_store references in orchestrator __init__
- Add asyncio.gather() for parallel resource building in AgentResourceBuilder
- Create shared test fixtures in tests/unit_tests/agent/conftest.py
- Update test files to import from shared conftest.py

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-13 00:26:43 +08:00