Commit Graph

8 Commits

Author SHA1 Message Date
huanghuoguoguo
897a708a13 Fix agent runner host migration and runtime guards
Migrates legacy runner blocks into plugin runner configs, preserves run-scoped history boundaries, enforces operation/file authorization, and sanitizes inline attachment persistence. Also fixes plugin runner form dirty handling and adds regression coverage.
2026-06-13 00:31:54 +08:00
huanghuoguoguo
ea96d37e60 feat(agent-runner): enforce typed host permissions 2026-06-13 00:31:54 +08:00
huanghuoguoguo
173dc58272 feat(agent-runner): expose skill resources through host context 2026-06-13 00:30:33 +08:00
huanghuoguoguo
3dc579feb3 refactor(agent-runner): make agent binding and auth snapshot explicit 2026-06-13 00:27:57 +08:00
huanghuoguoguo
86d5148534 refactor(agent-runner): simplify event-first entry path 2026-06-13 00:27:57 +08:00
huanghuoguoguo
b27e9c80cb docs(agent-runner): align runner protocol boundaries 2026-06-13 00:27:10 +08:00
huanghuoguoguo
d560a1eff3 feat(plugin): implement INVOKE_RERANK handler with run-scoped authorization
- Add invoke_rerank action handler in plugin handler
- Validate rerank model access via run session
- Cap documents at 64 for API limit
- Return sorted results by relevance score
2026-06-13 00:26:43 +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