huanghuoguoguo
09adf4c541
Propagate agent runner model usage context
2026-06-14 07:41:57 +08:00
huanghuoguoguo
d0b0a682c7
feat(agent-runner): expose effective prompt pull api
2026-06-13 17:48:26 +08:00
huanghuoguoguo
2094993afb
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 17:46:50 +08:00
huanghuoguoguo
54a2f7060d
feat(agent-runner): support run steering
2026-06-13 17:46:50 +08:00
huanghuoguoguo
86ec12a391
feat(agent-runner): enforce typed host permissions
2026-06-13 17:46:50 +08:00
huanghuoguoguo
5831198f38
refactor(agent-runner): remove protocol_version from various components and update related documentation
2026-06-13 17:46:31 +08:00
huanghuoguoguo
54bba1a1f5
feat(agent-runner): expose skill resources through host context
2026-06-13 17:45:53 +08:00
huanghuoguoguo
4a8c1a76d7
refactor(agent-runner): use protocol version field
2026-06-13 17:45:53 +08:00
huanghuoguoguo
dc4cf5711e
refactor(agent-runner): simplify event-first entry path
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
16faeca508
refactor(agent-runner): remove host context windowing
2026-06-13 17:45:14 +08:00
huanghuoguoguo
4852b21f9b
feat(agent-runner): normalize binding config boundaries
2026-06-13 17:45:14 +08:00
huanghuoguoguo
fc2dc34ecf
fix(agent-runner): stabilize event context and streams
2026-06-13 17:45:14 +08:00
huanghuoguoguo
819a2843e7
refactor(agent-runner): tighten protocol v1 runtime boundaries
2026-06-13 17:44:44 +08:00
huanghuoguoguo
96fa9e1eeb
feat(agent-runner): align protocol adapter terminology
2026-06-13 17:44:44 +08:00
huanghuoguoguo
d1e49a5b44
feat(agent-runner): add persistent state APIs
2026-06-13 17:44:44 +08:00
huanghuoguoguo
2e0343cb21
feat(agent-runner): scope event-first state by binding
2026-06-13 17:44:44 +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
huanghuoguoguo
c1dc5e3970
fix(agent-runner): package context for plugin execution
2026-06-13 17:44:44 +08:00
huanghuoguoguo
d8d98b0838
feat: make agent runner config schema driven
2026-06-13 17:44:44 +08:00
huanghuoguoguo
c97ea27d42
chore(agent): remove v1 wording from runner internals
2026-06-13 17:42:59 +08:00
huanghuoguoguo
bbbbc05201
feat(agent): reserve stable runner event names
2026-06-13 17:42:59 +08:00
huanghuoguoguo
752ac6e9d2
feat(agent-runner): enrich plugin runner host context
2026-06-13 17:42:59 +08:00
huanghuoguoguo
6d0e6dcc63
feat: support dynamic agent runner defaults
2026-06-13 17:42:21 +08:00
huanghuoguoguo
6ef40fbd68
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 17:41:37 +08:00
huanghuoguoguo
45f150da2d
feat(agent-runner): integrate AgentRunner Protocol v1 with plugin system
...
Phase 0 integration complete - verified minimal loop with local-agent stub runner.
Changes:
- Add AgentRunOrchestrator for plugin-based agent execution
- Add AgentResultNormalizer for Protocol v1 result conversion
- Add AgentRunnerDescriptor for runner ID parsing (plugin:author/name/runner)
- Update chat handler to use new orchestrator instead of direct runner lookup
- Add plugin handler methods for list_agent_runners and run_agent
- Add connector methods for AgentRunner protocol forwarding
- Update pipeline API to include runner options in metadata
- Add integration docs and implementation plan
Integration verified:
- Runner: plugin:langbot/local-agent/default
- Input: "你好"
- Output: [stub] Echo: 你好
- Date: 2026-05-10 10:09
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-13 17:41:37 +08:00