huanghuoguoguo
35661081ad
refactor(agent-runner): remove protocol_version from various components and update related documentation
2026-06-09 20:57:06 +08:00
huanghuoguoguo
7053acfb1b
feat(agent-runner): expose effective prompt and transcript history
2026-06-04 11:11:40 +08:00
huanghuoguoguo
a850127893
refactor(agent-runner): simplify event-first entry path
2026-06-04 11:11:40 +08:00
huanghuoguoguo
ab96070036
refactor(agent-runner): tighten protocol v1 runtime boundaries
2026-06-04 11:11:39 +08:00
huanghuoguoguo
cc911cc413
feat(agent-runner): align protocol adapter terminology
2026-06-04 11:11:39 +08:00
huanghuoguoguo
0a3bafae4b
feat(agent-runner): add event-first context facts and pull APIs
...
Add EventLog and Transcript persistence entities for storing auditable
event facts and conversation history projection. Implement event-first
AgentRunContext builder that produces Protocol v1 compliant context
payloads with required fields: event, delivery, context (ContextAccess).
Key changes:
- EventLog ORM: auditable event records with indexes
- Transcript ORM: conversation history projection with composite indexes
- AgentRunContextBuilder: Protocol v1 payload with delivery, context, bootstrap
- EventLogStore/TranscriptStore: async stores for fact sources
- Host action handlers: HISTORY_PAGE, HISTORY_SEARCH, EVENT_GET, EVENT_PAGE
- Context validation: build_context output validates via SDK AgentRunContext
- Alembic migration for event_log and transcript tables
- Alembic env.py imports all ORM models for autogenerate discovery
Legacy compatibility: max-round messages go into bootstrap.messages and
compatibility.legacy_messages, not top-level messages field.
2026-06-04 11:11:39 +08:00
huanghuoguoguo
472da29a38
chore(agent): remove v1 wording from runner internals
2026-06-04 11:11:39 +08:00
huanghuoguoguo
b5f08eb1d4
feat(agent-runner): enrich plugin runner host context
2026-06-04 11:11:39 +08:00
huanghuoguoguo
47b1890a4b
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-04 11:11:39 +08:00