Weaver Stack Ecosystem Map

June 5, 2026 · View on GitHub

A neutral map of the projects in the Weaver ecosystem: what each one is, where the boundaries are, and which contracts cross between them.

Note

For a narrative introduction — the problem, the layered architecture, and the closed learning loop — see What Is the Weaver Stack?. This page is the boundary-focused companion to that explainer.

This page is a derived, informative overview. The canonical authorities are docs/BOUNDARIES.md (responsibility boundaries and artifact ownership), docs/LIFECYCLE.md (the normative five-phase lifecycle), and docs/ARTIFACT_CONTRACTS.md (cross-project artifacts). Where this page and a canonical doc differ, the canonical doc wins.


Projects at a glance

Important

None of these projects requires adopting the others. Each is usable on its own as long as the contracts at any boundary it crosses are honored. See the adoption paths in the README.

ProjectOne-line rolePosition
contextweaverContext compilation, tool routing, and ChoiceCard generation.Runtime — routing
agent-kernelCapability authorization, execution, output firewalling, and audit.Runtime — execution
ChainWeaverDeterministic DAG / flow orchestration over a safe execution backend.Runtime — orchestration
lessonweaverTrace-to-lesson/skill learning loop; produces reviewed, reusable lessons and skills.Adjacent — learning
vibeguardPre-merge safety gate for AI-generated code and file changes.Adjacent — dev workflow

Note

Only contextweaver, agent-kernel, and ChainWeaver sit on the runtime request path. lessonweaver and vibeguard are adjacent tools that share contracts and conventions but are not required for a working Weaver stack. AgentFence (an external policy firewall/proxy) is a further adjacent option described in the README ecosystem map. Project names without a link do not yet have a public repository to point at.


Boundary table

Each project owns a distinct, non-overlapping responsibility. Contract type names below (such as Frame or RoutingDecision) are defined in contracts/json/ (Core) and contracts/json/extended/ (Extended); a marks a project that emits or consumes no contract in that direction.

ProjectOwnsDoes not ownConsumes contractsEmits contracts
contextweaverContext compilation, routing, ChoiceCard generationExecution, firewalling, token issuanceFrame; passes CapabilityToken throughRoutingDecision, ChoiceCard
agent-kernelOutput firewall, capability execution, authorization, auditRouting, flow orchestrationRoutingDecision; the CapabilityToken it issuedCapabilityToken, PolicyDecision, Frame, Handle, TraceEvent
ChainWeaverDAG/flow definition, step sequencing, pure inter-step transformsDirect tool execution, token issuance, raw output accessRoutingDecision, CapabilityToken (delegates execution to agent-kernel)— (orchestrates only; reuses RoutingDecision / CapabilityToken per step, emits no new contract type)
lessonweaverTrace → lesson/skill review and exportRouting, execution, authorizationReviewArtifact / trace recordsLessonCard, SkillCard
vibeguardPre-merge artifact safety gateThe runtime request pathArtifactSafetyGateRequestArtifactSafetyReport

Important

The runtime artifact-ownership rows (contextweaver, agent-kernel, ChainWeaver) are normative and defined in docs/BOUNDARIES.md. This table is a convenience view; it must not contradict that document. Changing a runtime boundary requires a spec-level ADR.


Example end-to-end lifecycle

Example: an illustrative request flowing through the full ecosystem. The normative routing-to-execution phases are defined in docs/LIFECYCLE.md; the learning and safety-gate steps are adjacent and optional.

  1. Context selection — contextweaver compiles context and emits a RoutingDecision carrying ChoiceCards.
  2. Policy check — agent-kernel evaluates authorization and emits a PolicyDecision (allow / deny).
  3. Deterministic execution — agent-kernel executes the selected capability behind its firewall, emitting a Frame (safe view) plus a Handle (opaque reference to raw output). For multi-step work, ChainWeaver sequences the steps but still delegates each invocation to agent-kernel.
  4. Trace capture — agent-kernel appends TraceEvents to the audit log; these can be packaged as ReviewArtifacts for downstream review.
  5. Lesson review / export — lessonweaver reviews captured traces and exports approved LessonCard / SkillCard artifacts for reuse.
  6. Repo safety gate — when an agent proposes code or file changes, vibeguard consumes an ArtifactSafetyGateRequest and emits an ArtifactSafetyReport before merge.

Note

A minimal request can stop after step 4. Steps 5 and 6 belong to adjacent tools and are not part of the runtime request path.

The learning steps form a closed loop: agent-kernel ActionTraces, ChainWeaver flow failures, vibeguard findings, and AgentFence audit decisions all map into one canonical interchange — FailureCaseArtifact referencing a TraceBundle — which lessonweaver reviews into reusable LessonCard / SkillCard artifacts that re-enter routing. The end-to-end sequence is tracked in docs/GOLDEN_PATH.md.


What lives in weaver-spec vs the individual repos

ConcernHome
Contract shapes (JSON Schemas + Python dataclasses)weaver-spec
Invariants, responsibility boundaries, lifecycle definitionweaver-spec
Versioning rules and the compatibility manifestweaver-spec
Routing algorithms, ChoiceCard scoringcontextweaver
Firewall rules, token issuance/verification, audit storageagent-kernel
Flow/DAG engine, retry and step-sequencing logicChainWeaver
Lesson/skill extraction and review workflowlessonweaver
Code-risk scanning rules and gate policyvibeguard

Important

weaver-spec is documentation + contracts only. Algorithms, runtime logic, and storage live in the individual repos — never here. See AGENTS.md.


Compatibility and versioning

No sibling repository has published a verified compatibility declaration yet; every entry in the manifest is currently unverified.