Repository navigation
chassis-harness 0.5.0
First-class, versioned agent composition.
pip install chassis-harness- Documentation: https://andreolli-davide.github.io/chassis/
- Changelog: https://github.com/andreolli-davide/chassis/blob/main/CHANGELOG.md
Introduces first-class, versioned agent composition on top of the existing
kernel without turning Chassis into an agent framework. AgentSpec describes what
runtime composition a logical agent sees, materializes into the existing composition
scopes, and is published as an immutable revision. It does not execute, plan,
remember, or authorize; LangGraph's AgentDefinition remains the engine-specific
graph-build contract. Every 0.4 guarantee still holds.
Added
AgentSpecandAgentRevision.chassis.agents(backed by
chassis.agent_spec) exposes an immutable, engine-neutral description of an
agent's composition — name, author-declared revision, scope path, runtime
reference, capability view, requirements, plugin contributions, tool view,
profile, and metadata. Every container is frozen recursively, so an authoring
object cannot alias mutable state into a published revision.AgentRevision
records a published revision and its materialization facts.- Agent revision registry and materialization.
AgentRegistrygained
install/replace/remove/spec/active_spec/revisions/specs/history.
A spec materializes into a realCompositionScope(default/agents/<name>)
that owns its plugin contributions, capability and tool views, requirements, and
reserved metadata naming the agent and revision. A published(name, revision)
is immutable; changing the active revision requiresreplace; retirement
withdraws the active revision from desired state without touching published
generations, and historical revisions stay reachable. - Run pinning and attribution.
HarnessRunContext,AgentResult, and
AgentEventcarryagent_revision; invocation reads the revision the acquired
generation actually materialized, so a run stays associated with the revision it
started under even when a newer revision is published concurrently.
RuntimeSnapshotgainedagent_revision,agent_identity, and an additive
public_composition_digest()alias forsemantic_digest(). - Tool visibility in composition scopes. Tools follow the same
inheritance-plus-narrowing rule as capabilities: a scope declares a tool view,
build_scope_treebinds it to the tools the mounted instances own, and
Harness.tool_snapshot(..., scope=)/run_environment(..., scope=)narrow a run's
tools to its scope. Sibling scopes no longer leak tools into each other. - Agent diagnostics.
harness.diagnostics.explain_agent(...)reports a
revision's scope, views, contributions, requirement provenance, visible providers
and tools, composition digest, and the generations that published it;
harness.diagnostics.diff_agents(...)compares two revisions structurally and
delegates the runtime reuse/rebuild analysis to the existing generation impact
engine (AgentExplanation,AgentDiff). - Optional
PluginManifest.implementation_revision. An author-declared identity
for two builds that sharename@versionand a module qualname; it participates in
the implementation fingerprint, and an absent value keeps the previous identity. - Guarantees G21–G24 and a new agent-composition.md
guide, plusexamples/agent_composition.py.
Changed
RuntimeSnapshot.to_dict()(and thereforedigest()) gainedagent_revision;
stored 0.4 snapshots should be re-baselined.harness.agents.invoke/streamstamp the logical agent name and revision on the
result and streamed events. An agent registered only as a runtime is unchanged.build_scope_treeaccepts the live tool registrations and records tool visibility
in the published scope tree, so scope topology and tool views both participate in
the generation digest as composition.