-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Why
weaver-spec BOUNDARIES.md states:
ChainWeaver orchestrates flows but does not execute capabilities directly. Each tool-invocation step in a flow is delegated to agent-kernel via the standard
CapabilityToken+RoutingDecisioncontract.
Currently, ChainWeaver's FlowExecutor executes tools directly. While this works for standalone usage, it conflicts with the spec boundary when used as part of the Weaver Stack. The fix is an optional kernel-backed executor that coexists with the standalone executor.
Scope
A new executor/driver that:
- Invokes flow steps via agent-kernel
CapabilityTokenrequests - Returns
Frame/Handleobjects (no raw outputs into LLM context) - Respects the authorization and audit path (I-02, I-07)
Acceptance Criteria
- New executor class (e.g.,
KernelBackedExecutor) implementing the same interface as the existingFlowExecutor - Each step:
- Requests a
CapabilityTokenfrom agent-kernel - Receives execution results as
Frameobjects - Passes
Framedata (not raw output) to subsequent steps
- Requests a
- README section: "Kernel-backed execution" explaining:
- When to use it (Weaver Stack integration) vs. standalone executor
- Configuration required (kernel endpoint, auth)
- At least one integration test demonstrating a multi-step flow executing via the kernel path
- The standalone
FlowExecutorremains fully functional (no breaking changes to existing users)
References
- weaver-spec BOUNDARIES.md — ChainWeaver boundary
- weaver-spec Invariant I-07: ChainWeaver delegates execution to the kernel
Context
Part of Milestone E0 — Connect + Align Boundaries.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Projects
Status
Todo