-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
area:flow-as-toolUsing flows as composable toolsUsing flows as composable toolscomplexity:averageModerate effort, some design neededModerate effort, some design neededenhancementNew feature or requestNew feature or requestmilestone:E0priority:mediumImportant but not blockingImportant but not blockingsize:MMedium effort (1-3 days)Medium effort (1-3 days)type:featureNew feature or capabilityNew feature or capability
Description
Goal
Establish that a ChainWeaver flow is itself a routable capability within the Weaver Stack. This means flows can be discovered, selected, and invoked through the same RoutingDecision → CapabilityToken path as any other tool.
What "Flow as Capability" Means
A flow has:
capability_id— a stable identifier that can appear in contextweaver's capability registry- Input/output schema fingerprint metadata — can live as an Extended contract field (per weaver-spec Extended tier)
- Routability — contextweaver can include flows in
ChoiceCardsets alongside atomic tools
Acceptance Criteria
- Documentation (e.g.,
docs/FLOW_AS_CAPABILITY.md) explaining:- How a flow is registered as a capability
- What metadata a flow exposes (capability_id, input schema, output schema)
- How it integrates with contextweaver routing
- A short example showing the full path:
- contextweaver routes → picks a flow as a
ChoiceCardselection - agent-kernel issues a
CapabilityTokenfor the flow - ChainWeaver executes the flow via the kernel-backed executor
- Result returned as
Frame
- contextweaver routes → picks a flow as a
- Flow registry entries include
capability_idand optional schema fingerprint metadata - Unit test: a flow can be serialized to a
SelectableItemcompatible with theweaver_contractsschema
Dependencies
- Kernel-backed executor (Add optional agent-kernel execution backend (FlowExecutor via Kernel) #89)
Context
Part of Milestone E0 — Connect + Align Boundaries.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:flow-as-toolUsing flows as composable toolsUsing flows as composable toolscomplexity:averageModerate effort, some design neededModerate effort, some design neededenhancementNew feature or requestNew feature or requestmilestone:E0priority:mediumImportant but not blockingImportant but not blockingsize:MMedium effort (1-3 days)Medium effort (1-3 days)type:featureNew feature or capabilityNew feature or capability
Projects
Status
Todo