Commit Graph

7 Commits

Author SHA1 Message Date
huanghuoguoguo
c9ef788072 Fix agent runner steering and lifecycle hardening 2026-06-13 17:46:50 +08:00
huanghuoguoguo
9cf99815ba feat(agent-runner): audit steering injection 2026-06-13 17:46:50 +08:00
huanghuoguoguo
058721cca3 feat(agent-runner): expose effective prompt and transcript history 2026-06-13 17:45:53 +08:00
huanghuoguoguo
e13a3b845c refactor(agent-runner): make agent binding and auth snapshot explicit 2026-06-13 17:45:53 +08:00
huanghuoguoguo
1384d328d6 refactor(agent-runner): align config with agent semantics 2026-06-13 17:45:14 +08:00
huanghuoguoguo
bec11e5a18 feat(agent-runner): add artifact store pull APIs 2026-06-13 17:44:44 +08:00
huanghuoguoguo
a31f910f10 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 17:44:44 +08:00