Commit Graph

11 Commits

Author SHA1 Message Date
huanghuoguoguo
ea96d37e60 feat(agent-runner): enforce typed host permissions 2026-06-13 00:31:54 +08:00
huanghuoguoguo
c859fc37bb refactor(agent-runner): remove protocol_version from various components and update related documentation 2026-06-13 00:31:14 +08:00
huanghuoguoguo
173dc58272 feat(agent-runner): expose skill resources through host context 2026-06-13 00:30:33 +08:00
huanghuoguoguo
b0e576dbb8 refactor(agent-runner): use protocol version field 2026-06-13 00:30:33 +08:00
huanghuoguoguo
86d5148534 refactor(agent-runner): simplify event-first entry path 2026-06-13 00:27:57 +08:00
huanghuoguoguo
efdc3678b1 refactor(agent-runner): align config with agent semantics 2026-06-13 00:27:10 +08:00
huanghuoguoguo
a2b38f5bf2 fix(agent-runner): stabilize event context and streams 2026-06-13 00:27:10 +08:00
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
085a767f97 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-13 00:27:09 +08:00