Repository navigation
Releases
chassis-harness 1.0.0b2
pip install chassis-harness==1.0.0b2- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/1.0.0b2/
Second 1.0 beta. It fixes correctness issues found during the b1 review.
Fixed
- Plugin configuration and registration now preserve identity boundaries.
Reusing one plugin instance with mismatched configuration is rejected, and
a failing agent-service binder leaves no registration behind. - Snapshots retain duplicate plugin entries. Entry identity is preserved
rather than collapsed by plugin name, and reference snapshot digests are
refreshed for the resulting shape. - LangGraph metadata and scoped system providers remain authoritative.
Caller metadata cannot overwrite harness-owned fields, and system provider
preferences remain pinned to the active generation and isolated by scope. - Replay records live tool and model fallbacks without replaying their own
response. Fallback results are captured at the live boundary and do not
replay within the session that produced them. - Cooperative budget reports are atomic. A rejected report no longer
consumes any of its earlier dimensions, including in ancestor budgets. - Hook failure policy applies to invalid transforms. Invalid hook results
now follow the hook's configured failure behavior. - Configuration schema versions reject booleans. Python's
True == 1
behavior can no longer make a boolean pass as schema version 1.
Documentation
- Added migration notes for the b1-to-b2 correctness fixes and refreshed the
current installation and documentation pointers. The rendered documentation
homepage links to the preserved0.9.1stable documentation archive.
chassis-harness 1.0.0b1
pip install chassis-harness==1.0.0b1- Beta documentation: https://andreolli-davide.github.io/chassis/
- Stable 0.9.1 documentation archive: https://andreolli-davide.github.io/chassis/0.9.1/
- PyPI: https://pypi.org/project/chassis-harness/1.0.0b1/
First 1.0 beta checkpoint. It freezes a candidate public API for review and
makes the release workflow prerelease-aware without yet declaring the permanent
1.0 compatibility baseline.
Changed
- The development version is now
1.0.0b1. Chassis uses the canonical
PEP 440 spelling for the release commonly
described as 1.0.0-beta 1; its eventual tag isv1.0.0b1. - The beta supports Python 3.12 and 3.13. Package metadata now excludes
untested newer interpreters; support for them requires a future tested release. - The 1.0 beta API has its own checked-in candidate baseline. Compatibility
is checked both against the released 0.8.1 contract and against the exact
surface selected for 1.0.0b1, so review changes cannot silently move the beta
target. - Every persisted format has a deterministic 1.0 beta candidate fixture.
Snapshot, replay, configuration, planning, reconciliation, config-apply, and
generation-pressure documents are generated from a real harness, sanitized,
checksummed, and reproduced byte-for-byte in CI. Formats with readers also
prove exact round-trips; the historical 0.8.1 migration fixtures remain green. - Release publication now promotes the complete CI matrix and one verified
build. Tag and dry-run workflows reuse the same Python 3.12/3.13, coverage,
dependency-range, audit, strict-docs, package, extras, quickstart, and
production-reference gates as branch CI. The verified wheel and sdist are
built once, then the same workflow artifact is promoted to PyPI and GitHub
with SHA-256 digests and an SBOM. - Prerelease publication no longer advances stable release channels. A beta
tag is marked as a GitHub prerelease and does not replace the latest stable
documentation deployment. Pushes tomainverify documentation without
deploying it; only a stable release may update the stable site. - The beta has an explicit readiness decision record.
docs/1.0-beta-readiness.mdrecords local validation, API and format review,
publication architecture, the read-only external-control snapshot,
rollback/yank procedure, deliberate limitations, and the exact blockers that
keep the unpublished candidate at NO-GO.
chassis-harness 0.9.1
pip install chassis-harness==0.9.1- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/0.9.1/
Pre-1.0 documentation and release-plan hardening. This patch changes no runtime
API or persisted format and requires no migration.
Fixed
- Internal documentation anchors are now verified (roadmap R035).
tests/test_docs_links.pyvalidates local Markdown fragments against the
headings MkDocs generates, closing the gap where file-only link checks and
unrecognized_links: warnlet a broken production-readiness roadmap link pass
the strict documentation build. The broken 0.9.0 roadmap anchor is corrected. - Release records are internally consistent. The stale hard-coded test count
is removed from the production-readiness validation record, and the
intentionally unused R033 identifier is documented instead of appearing to be
missing work.
Documentation
- The 1.0.0 milestone is specified with auditable gates (roadmap R036): a
permanent 1.0 API and persisted-format baseline, full release-workflow parity,
versioned documentation, post-publication package canaries, supported-Python
verification, and explicit release governance.
chassis-harness 0.9.0
pip install chassis-harness==0.9.0- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/0.9.0/
Production confidence: compatibility, operability, resilience, and scale. The
last planned release with deliberate pre-1.0 compatibility changes — the
surface is classified and baselined, persisted formats are versioned and
migrated, lifecycle behavior is hardened under cancellation and concurrency,
planning and telemetry are stable machine contracts, capacity is measured, and
a production reference application composes it all. The review record is
production-readiness.md.
Added
- Production reference application (roadmap R034).
examples/production_reference/is one self-contained support-desk system on
deterministic local fakes (no credentials, no external services) composing
every documented capability: declarative configuration, a plugin catalog,
scoped composition,AgentSpecmaterialization, capability requirements and
preferences, tool registration and policy (including a denial), secret
resolution and redaction, agent invoke and streaming, replay recording and
replay with zero live calls, hot provider replacement with an old run pinned
to its generation,Harness.preview()before every change, diagnostics and
snapshot attribution, a controlled failure with full rollback, and graceful
shutdown to resource baseline. It executes its own assertions, prints a
deterministic documented transcript (examples/production_reference/README.md),
runs intests/integration/test_reference_app.py, and is a package-smoke
canary in CI. - Reproducible performance and capacity baselines (roadmap R032).
scripts/benchmark.pymeasures no-op reconciliation, one-entry replacement,
dependency cascades, snapshot construction and hashing, plan/preview and
diagnostics generation, tool snapshot lookup, generation acquire/release,
replay lookup with repeated keys, graph-cache lookup, 10/100/1000-object
configurations, and replacement under concurrent held runs — reporting median
and p95 latency, peak memory, and the full environment, with a--check
mode for conservative (3x) regression thresholds on stable scenarios.
benchmarks/baseline-0.9.0.jsonrecords the 0.9.0 baseline and
docs/performance.mddocuments methodology, capacity guidance, and the
measured scaling limits (the data plane is flat; the control plane resolver
is superlinear today — documented, with the optimization deliberately
deferred).tests/perf/test_scaling_structure.pygates CI with deterministic
work-count assertions: one identity computation per entry per plan/reconcile,
one registry scan per tool lookup, and zero composition work on the data
plane. - Optional OpenTelemetry adapter (roadmap R031 phase 2).
chassis.telemetry.OpenTelemetryTelemetrymaps the signal contract onto
OpenTelemetry — Chassis spans become OpenTelemetry spans in the ambient
context (parent/child preserved), Chassis events become events on the active
span or zero-duration spans — behind the newopentelemetryextra
(pip install "chassis-harness[opentelemetry]";opentelemetry-api, never a
core dependency). Importingchassis.telemetrywithout it is fine;
constructing the adapter without it raisesMissingExtraErrornaming the
extra. Attributes and recorded errors are scrubbed before export, explicit
backend overrides andSafeTelemetryisolation are preserved, and a failing
collector cannot break the observed operation. Verified with the SDK's
in-memory exporter (tests/telemetry/test_otel_adapter.py) and added to the
per-extra and combined-extras package smokes. LangSmith support is unchanged —
the two are separate adapters over the same core signal contract. Documented
indocs/observability.md. - Stable operational signal contract (roadmap R031 phase 1, new guarantee
G27).chassis.telemetry.signalsdeclares every span and event Chassis emits
— stable names, required and optional attributes, correlation fields (run id,
thread id, generation id, snapshot digest, agent and revision, plugin entry
and instance id, tool registration id, scope), and bounded-cardinality rules
that forbid raw payloads — andvalidate_signal()checks one emission against
the contract. The contract is enforced backend-independently against the
recording backend (tests/telemetry/test_signal_contract.py), including that
no secret material can reach any attribute. Missing signals now have
emissions at their seams:generation.acquire/generation.release(run
leases),generation.draining,generation.retired,replay.hit/
replay.miss/replay.exhausted(tool boundary decisions),cleanup.failure
(aggregated disposals and drain timeouts),telemetry.failure(a contained
backend failure, announced byTeeTelemetryto its surviving siblings), and
graph.cacheeviction (result: "evict").tool.executegained the
registration_idandrun_idcorrelation attributes. The retirement event is
renamedgeneration.drain→generation.retired(see migrations); names are
stable from 0.9.0 on. Documented indocs/observability.md. - Stable machine-readable planning contract (roadmap R030, new guarantee
G26).chassis.planningdefines the versionedPlanResultdocument with a
closed action vocabulary (add,remove,replace,reuse,rebuild,
publish,reject,no-op), stableReasonCodes, and per-action entry and
scope identity, configuration keys (never values), dependency/capability
cause, expected reuse and instance, generation impact, machine-readable
validation failures, and ambiguity/preference records.Harness.preview()
computes it with zero mutation — no revision bump, no dirty flag, no mount, no
publication, no setup or cleanup effect — over the full pipeline (parse,
migrate, validate, catalog-resolve, diff, resolve, reuse analysis, impact
prediction), for the current state or a declarative configuration. Deterministic
to_dict()declaresPLAN_FORMAT_VERSION; preview parity with the subsequent
apply and preview purity are both tested (tests/planning/). Documented in
docs/planning.md. - Deterministic lifecycle stress and opt-in soak coverage (roadmap R029).
tests/concurrency/test_lifecycle_stress.pyruns bounded, seeded scenarios
with real asyncio tasks — cancellation storms, replacement storms under
lease, shutdown races, repeated cycles, bounded history under a long lease —
each proving resources return to baseline.scripts/soak.pyruns the same
scenario classes for a wall-clock budget (opt-in, excluded from the default
fast suite) and fails on any violated invariant. - Resource counters for lifecycle baselines (roadmap R029).
Diagnostics.resource_counts()(andResourceCounts) aggregates instances,
owned scopes, effects, tasks, stragglers, cleanup failures, leases, and
live/draining generations from authoritative state with no lock and no
await, so a run or stress cycle can be bracketed by two reads and proved to
return every resource to baseline. - Versioned and migrated persisted formats (roadmap R028, new guarantee
G25). Every Chassis document that crosses a process, test-run, deployment, or
package-version boundary now declares its own integer format version — never
the package version: runtime snapshot records (SNAPSHOT_FORMAT_VERSION),
replay recordings (REPLAY_FORMAT_VERSION), planning exports
(PLAN_FORMAT_VERSION), and reconciliation/diagnostics exports
(DIAGNOSTICS_FORMAT_VERSION), all dispatched by
chassis.persistence.formats.RuntimeSnapshot.from_dict()and
ReplaySession.from_dict()/load()are explicit readers that migrate
pre-versioning 0.8.1 payloads and reject future versions, malformed version
values, corrupted payloads, and payloads with no migration path with a typed
FormatError(machine-readablereason:future_version,
malformed_version,corrupted,unmigratable) — never reinterpreting an
unknown field or version. Migration preserves semantic attribution (generation
identity and sequence, agent identity and revision, capability versions,
replay boundary kind and key, redaction status, tool/model result semantics).
Sanitized fixtures produced by the released 0.8.1 implementation
(tests/compat/v0.8.1/, generated from thev0.8.1tag) prove the readers
against what 0.8.1 actually wrote. The one documented non-migration: a 0.8.1
snapshot's semantic scope provider map (0.8.1 persisted provider instance
ids with no instance-to-entry mapping) is reported empty rather than guessed.
RuntimeSnapshot.to_dict()also persists the semantic scope tree now, so a
record round-trips exactly — snapshotdigest()values therefore change. - Classified public API and compatibility checking (roadmap R027). The
documented surface — every top-level export and documented import path — is
audited intests/compat/public-api.jsonwith a stability class per name
(stable public API, provisional API; anything unlisted is internal), and
tests/compat/api-baseline-0.8.1.jsonrecords how the released 0.8.1 surface
is shaped (kinds, signatures, enum values, public dataclass/Pydantic fields),
generated from thev0.8.1distribution.scripts/api_compat.pycompares the
installed surface with a baseline and reports removed names, moved names,
incompatible signatures, changed enum values, and changed public fields
deterministically, exiting non-zero on any of them;tests/test_api_compat.py
covers each detection class and pins the current surface as compatible. - Typed deprecation machinery (roadmap R027).
chassis.compatadds
ChassisDeprecationWarning— carrying the deprecated API, its repla...
chassis-harness 0.8.1
pip install chassis-harness==0.8.1
- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/0.8.1/
Fixed
Post-review regression fixes (found reviewing v0.5.0..v0.8.0):
- Composition-provided secret providers no longer bypass the shared
redactor (R003/G11). Providers handed to plugins through the system
requirement lookup andPluginContext.secretsare wrapped in
RedactingSecretProvider, so every resolved secret is learned by the redactor
and cannot appear in telemetry, replay records, or error strings. Providers
already using a different redactor retain it and also join the harness-owned
boundary. - A published tool policy is immutable (R009/G4).
ToolSnapshotpublishes
deep frozen copies of the registrations — mutating the live registry's tool
policy after publication can no longer alter acquired generations (which
would have allowed skipping authorization without publishing a generation). - Replay keys reject non-string mapping keys (R015/R021). The replay key
builder raisesConfigurationErrorinstead of stringifying keys, which could
silently collapse{1: ..., "1": ...}into one value and one key. Set
elements retain their scalar types during canonical ordering, so{1}and
{"1"}cannot collide either. apply_config()and AgentSpec rollback restore the exact prior state
(R010/R011). Rollback no longer reinstalls entries throughinstall(..., replace=True)(which bumped revisions and re-dirtied the config) and no
longer reinstalls entries that were never removed; revisions and the dirty
flag are restored exactly, and a rejected configuration can no longer be
rebuilt and published by the next reconcile.raise_on_error=Trueapplies to replayed tool errors (R016). Recorded
error and timeout results raiseToolExecutionErrorexactly like the live
path instead of returning the error result.CompositionTree.child()rejects a parent from another tree (R012). The
constructor's cross-tree rule is enforced at the public entry point too.- Declarative config is deeply frozen and de-aliased (R009/R011).
HarnessConfigrecursively freezes nested dicts/lists/sets and copies the
caller's input; neither the input nor direct mutation can change a stored
configuration. Publication also rechecks an author-constructedFrozenDict
instead of assuming its nested values are immutable. AgentResult.textsupports mapping-messages (R022). Messages that are
plain mappings ({"content": ...}) are read like their attribute-based
equivalents, matching the documented shapes and the migration notes.- The tool contract validates
descriptionat registration (R018). A
missing, empty, or non-string description is rejected at registration with a
typed error instead of failing later insideto_dict()or snapshotting. - Replay boundaries report the missing/exhausted reason (R022). The tool
executor and replay chat-model boundaries forward the session's
reason="missing"/"exhausted"instead of raising a reason-less mismatch. - Graph cache telemetry binds to the harness (R019). A defaulted
LangGraphAgentforwards its effective telemetry to itsGraphCache, so
graph.cacheevents reach harness telemetry (explicit overrides stay). - The guarantee-to-test gate requires real collected test nodes (R023).
Every G1–G24 row must namefile::test_namenodes that pytest actually
collects; the design table now names one per enforcement reference. Migration
guide links use the anchors generated by MkDocs. - Release delivery is coordinated across PyPI, GitHub, and the documentation
site. A verified tag publishes the distributions through trusted publishing,
creates a GitHub Release carrying the wheel, sdist, and SBOM, then deploys the
documentation from that same tag. The docs workflow remains independently
usable for previews and updates frommain.
chassis-harness 0.8.0
pip install chassis-harness==0.8.0- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/0.8.0/
Beta readiness: strict canonicalization, an unambiguous public API, aligned
diagnostics and documentation, enforced coverage and compatibility gates,
expanded package and dependency verification, and a completed Beta readiness
review — the package classifier is now Beta. Every change that can break a
caller from 0.7 is listed in
migrations,
and the release-candidate audit is recorded in
beta-readiness.
Fixed
- Persistence canonicalization hardened (roadmap R021). Canonical hashing
now requires string mapping keys — mixed or non-string keys raise
ConfigurationErrorinstead of being stringified into collisions — and the
primitive treatments are documented and pinned by deterministic tests: Unicode
is hashed without silent normalization, signed zero and integral floats
normalize together, non-finite floats are deterministic,Decimal-like values
are rejected rather than guessed, and nested key order never affects a digest.
The 12-digit float rounding is now documented (values that differ only beyond
the 12th decimal share a digest — keep behavior-affecting configuration well
inside that). - Migration note: payloads with non-string mapping keys are no longer
accepted bystable_hash/canonical_json; convert keys to strings first. - API ambiguity and silent fallbacks removed (roadmap R022). Passing
thread_id/resume/checkpoint_id/metadataalongside a complete
AgentRequestnow raisesConfigurationErrorinstead of silently ignoring
them.AgentResult.textsupports the documented message shapes (strings,
mappings with atextfield, and text-block sequences — joined with newlines)
instead of silently omitting mapping-shaped messages.ScopeTree.providers_of
raises for a missing scope instead of answering()— a valid empty scope and
a missing scope are different facts.ReplayMismatchdistinguishes exhaustion
from a missing key (reason="exhausted"/"missing"). - Migration note: code that combined a complete
AgentRequestwith
convenience arguments now raises; move those fields into the request itself.
Code relying onproviders_ofreturning()for unknown scope paths must
handleConfigurationError. - Diagnostics and documentation aligned with implementation (roadmap R023).
Status and cleanup reports render failures through a structured, redacted
representation (description,error_type, scrubbederror) instead of raw
exception strings, andReconcileResult.to_dictaccepts asanitize
callable. The resolver documentation now states the real rule (active plugins
contribute registrations; selection stays ambiguous without a preference —
stability comes from incremental reuse). A documentation test maps every
guarantee G1–G24 to at least one existing test node, and the design, security,
replay, observability, and hook documentation is synchronized with its
regression tests. - Migration note:
CleanupFailure.to_dict()now returnserror_typeplus a
scrubbederrormessage instead of one combined"Type: message"string. - Coverage and compatibility gates established (roadmap R024). CI now
enforces branch coverage forsrc/chassisat the measured 0.5.0 baseline of
91% (pytest --cov=src/chassis --cov-branch) plus focused per-area floors for
lifecycle, resolver, registry, security, replay, and telemetry via
scripts/coverage_gate.py— a high global number can no longer hide an
untested boundary. The lockfile job stays the reproducible development
baseline, with a minimum-supported-direct-dependencies job
(uv lock --resolution lowest-direct) and a latest-compatible job
(uv lock --upgrade) comparing against it. - Package and dependency verification expanded (roadmap R025). CI now
smoke-tests the wheel and the sdist in clean environments and exercises the
core,langgraph,langsmith, and combined extras independently; a
dependency vulnerability scan (pip-audit) runs on every push with a
documented triage process (fix, reviewed upper bound, or a written exception —
untriaged findings fail the build). Lower-bound-only dependencies are reviewed
through the minimum/latest compatibility jobs; no upper bounds are needed
today. Release artifacts ship with a CycloneDX SBOM and PyPI digital
attestations. - Beta readiness review completed (roadmap R026). The release candidate was
re-audited across architecture, security, concurrency, packaging, and
documentation (recorded indocs/beta-readiness.md): every item R001–R026 is
complete with none deferred, the public API is reviewed and pinned (one
accidental export,DependencyResolver, removed), migration instructions
cover all pre-1.0 breaking changes since 0.5.0, and the package classifier is
now Beta.
chassis-harness 0.7.0
pip install chassis-harness==0.7.0- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/0.7.0/
Gives invoke, stream, replay, hooks, budgets, and telemetry one coherent
execution contract: a shared run lifecycle with full attribution on both agent
paths, semantically complete replay keys and results, replayed tool calls that
follow the live boundary, settled hook semantics with surfaced failures,
validated budgets and tool contracts, isolated telemetry failures, and truthful
runtime identity. Every change that can break a caller from 0.6 is listed in
migrations.
Fixed
- Agent lookup runs after readiness reconciliation (roadmap R013).
agents.invoke/streamcallensure_ready()before resolving the agent
runtime and logical revision, so an agent installed or replaced after
Harness.start()resolves and runs — its contributions have mounted (and any
runtime they register exists) before lookup. Generation-owned registrations
are still selected only after the generation is acquired. Evaluation targets
resolve logicalAgentSpecnames as well as raw runtime names. - Invoke and stream share one run lifecycle (roadmap R014). Readiness,
generation acquisition, agent resolution, budget scope, hooks, telemetry,
snapshot attribution, and cleanup run identically for both paths: the same
agent.runspan and snapshot digest are emitted, the parent budget stays
active through before/after hooks and any child-agent call they make, and
every streamed event is stamped with the run's logical agent, revision,
generation, run, and thread attribution (AgentEventgainedthread_id)
instead of trusting a custom runtime to attribute its own events. Hook
failures, agent errors, and cancellation behave identically on both paths. - Replay keys and results are semantically complete (roadmap R015). Model
boundary keys now include normalized stop sequences and every invocation
option — temperature, tools, structured output/response format, provider
options — so requests differing by one semantic option can never collide;
a value that cannot be canonicalized deterministically (arbitrary objects,
non-finite floats) raisesReplayMismatchinstead of being silently omitted.
Recorded results preservellm_outputand per-generation metadata.
ReplaySessiongained cursor-awarehas_remaining()/peek()(and replay
consumption is per key, so out-of-order consumption across keys never skips a
record); replayed tool calls use the cursor-aware check and fall back live
once their records are exhausted. - Migration note: model recordings made with earlier versions omit options
and result metadata from their keys — re-record them for exact matching.
Code that relied onhas()implying an unconsumed record should use
has_remaining(). - Replayed tool calls follow the live boundary (roadmap R016). A replayed
call runs the identical boundary sequence — before hook, authorization,
approval, budget, and thetool.executespan (now taggedreplayed) — fires
the after hook for a successful recorded result, and follows the live failure
shape (error hook, no after hook) for a recorded failure. Replay reuses only
the recorded semantic result (content/artifact/errorstay historical);
duration_seconds,tool_call_id,generation_id, and the new
ToolExecutionResult.run_idare stamped with the current run's attribution,
and replaying in a different generation works cleanly. - Migration note:
ToolExecutionResultgainedrun_id(round-tripped
through replay payloads). Code that assumed replayed results carried the
recording's generation/call ids or its recorded duration should read the
current attribution instead — only the semantic result is historical. - Hook semantics settled and failures surfaced (roadmap R017).
TRANSFORM
now replaces the payload exactly as documented — keys the returned mapping
does not carry are removed — and chained transforms each replace the payload
for the remaining handlers. Hook payloads are deep-frozen (nested mutation
raisesTypeErrorat every depth).RECORDhandler failures on the tool and
agent data-plane are surfaced as structuredhook.failuretelemetry events
(event, handler description, error type — never error text) without failing
the operation; control-plane failures continue to aggregate into the
transition's report. - Migration note: a
TRANSFORMhandler that relied on patch semantics (a
partial mapping merged over the old payload) must now return the complete
replacement payload — omitted keys are removed. Handlers that mutate nested
payload containers must copy them first. - Budgets and tool contracts validate at construction (roadmap R018).
BudgetLimitsrejects negative and non-finite values and requires integers
for count dimensions; consumption amounts are validated the same way at every
charge — fractions on count dimensions raise instead of being truncated
silently (zero remains a valid boundary).ToolPolicynormalizes its
sequences to tuples, deep-freezes metadata, and requires a positive finite
timeout_secondswhen present. An obviously synchronousainvoke
implementation is rejected at registration, and the executor verifies
awaitability at the boundary with a typedToolExecutionError. Wall-clock
enforcement is documented as cooperative — a hard deadline needs a cancellable
boundary of your own. - Migration note: code that passed fractional/negative/non-finite budget
amounts or limits, or a non-positiveToolPolicy.timeout_seconds, now raises
ConfigurationError; tools with a synchronousainvokemust become
async def. - Telemetry failures are isolated and adapter wiring unified (roadmap R019).
The newSafeTelemetrywrapper contains any backend failure at span enter,
update, error, exit, and event time — observability can never break runtime
correctness or suppress another backend — with failures kept visible through
afailurescounter and thechassis.telemetrylogger.TeeTelemetryruns
every backend through it and exposes afailurestotal; the harness wires one
SafeTelemetry(RedactingTelemetry(...))chain around every configured
backend. Registered runtimes that exposebind_harness_services(such as
LangGraphAgent) adopt the harness telemetry and redaction at registration
unless they were constructed with an explicit override. - Runtime snapshots and graph cache validation corrected (roadmap R020).
RuntimeSnapshot.agent_runtimenow reports the identity of the selected
AgentRuntime(runtime_kindwhen the runtime declares one, else its class
name) — custom runtimes are never labelledlanggraph, and snapshots built
without a runtime reportunknown.composition_metadataresolves the same
identity for evaluation experiments.GraphCachevalidatesmax_entries
(non-negative integer;0explicitly disables caching) and documents that
topology or captured static inputs invisible to the cache key require an
AgentDefinition.versionchange, with a guide warning preferring
harness-bound runtime tools over captured static implementations. - Migration note: code that asserted
snapshot.agent_runtime == "langgraph"
for custom runtimes must read the runtime's own identity; snapshots without an
agent run now reportunknowninstead oflanggraph.
chassis-harness 0.6.0
pip install chassis-harness==0.6.0- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/0.6.0/
Makes composition transactional and generation-safe: identity-keyed
registrations, exact capability contract binding, runtime enforcement of
composition visibility, deeply immutable published state, transactional
AgentSpec materialization and declarative configuration, and validated
composition-tree ownership, paths, and names. Every change that can break a
caller from 0.5.1 is listed in
migrations.
Fixed
- Tool and agent registrations are keyed by identity (roadmap R006). Every
registration now carries an immutable registration id, with name indexes
maintained separately from the store, so old and new generations can reference
same-named registrations concurrently and each generation's tool view selects
the registrations owned by its own instances. Cleanup is identity-checked: an
old scope closing can never unregister its successor, in either release order,
and hot replacement of same-named tools and runtimes works while an old run
remains leased (the leased run keeps the objects it resolved). - Migration note: a duplicate tool name is no longer rejected at
registration; a candidate generation that would expose two same-named tools is
rejected at publication withConfigurationErrorand rolled back. Agent
runtime names stay explicitly unique unlessreplace=True.
ToolRegistry.unregister/AgentRegistry.unregistergained keyword-only
owner_id/scope_idfilters so a plugin's early unregister touches only its
own registration. - Requirements bind the exact selected capability contract (roadmap R007).
RequirementResolutionnow carries the selected contract key
(provider_key) alongside the provider identity and version, and
materialization filters registrations with the original requirement
predicate instead of selecting by capability name and provider instance —
registration order and random ids no longer decide which registration a
consumer gets (snapshot and registry ordering are insertion-stable).
Application provisions are keyed by the fullCapabilityKey, sodatabase@1
anddatabase@2provisions coexist. Contract-generation inference from a
specifier now proves a single major before pinning:>1.9,<3,>=1, and
similar open or multi-major ranges stay generation-neutral instead of being
pinned to the lower-bound major.PluginManifest.providesaccepts a sequence
of versions for multi-contract providers. - Migration note: a requirement like
>=2no longer pins@2; pass an
explicitapi_versionwhen a specific contract generation is required.
Harness.provide/withdraware keyed byCapabilityKey;withdrawwith a
name removes every contract generation of that name.PluginManifest.provides
values may now bestr | tuple[str, ...]. - AgentSpec composition visibility is enforced at runtime (roadmap R008).
Runs now receive a capability snapshot filtered by the acquired
ResolvedScope.visibleregistrations, soHarnessRunContext.require_capability()
and graph build-time capability versions observe exactly the composed view:
hidden, narrowed, and sibling-local capabilities are invisible in both the
invoke and stream paths, while inherited and versioned ones resolve as
composed. This is isolation of composition, not security authorization. An
unknown scope path is now rejected withConfigurationErrorinstead of
silently exposing an empty tool view (Harness.scoped_capabilitiesis new). - Migration note: run code that reached capabilities outside its agent's
composition view will now raiseCapabilityNotFound/CapabilityVersionMismatch;
widen the spec'scapabilitiesview where that access is intended. Lookups
against an undeclared scope path raise instead of returning empty results. - Published state is deeply immutable (roadmap R009). Recursive
copy-and-freeze now applies at every publication boundary — plugin config and
manifest metadata, scopes and resolved scopes, generation metadata, capability
and tool registrations,ToolPolicy, run metadata (AgentRequest,
AgentResult,HarnessRunContext), and runtime snapshots — so nested mutation
of any published container raisesTypeErrorand author-owned dicts, lists,
and sets can never alias published state. Semantic fingerprints are computed
from exactly the frozen state a generation exposes. The intentional exception
is documented: executable provider and tool objects are live runtime objects —
their contracts and metadata are frozen, not their internals. - Migration note: code that mutated nested containers obtained from
entry.config,manifest.metadata,scope.metadata,generation.metadata,
registration/tool metadata,ToolPolicy.metadata, run metadata, or snapshot
metadata must mutate its own copies instead; published containers now raise at
every depth. - AgentSpec materialization is transactional and owner-safe (roadmap R010).
Contributions are staged and validated before any desired state is mutated,
and a failed materialization restores the exact previous scope and registry
state — including entries a replacement had swapped. A revision that moves to
a new scope withdraws the old one only after the new one materialized, so a
failed replacement never destroys the active revision.installnow refuses
to take over a pre-existing user-owned composition scope instead of rewriting
it, an agent-owned entry id squatted by a foreign entry is rejected, reserved
metadata keys (chassis.agent,chassis.agent_revision) are rejected at
AgentSpecconstruction, and withdrawal removes only the state a revision
owns. - Migration note: code that pointed an
AgentSpec.scopeat an existing
user-owned scope relied on implicit takeover; declare the agent's own scope
(the default/agents/<name>), or empty the user scope first. Specs carrying
reserved metadata keys now fail construction. - Declarative configuration applies atomically (roadmap R011). The complete
configuration is parsed, migrated, validated, and catalog-resolved before any
desired state is mutated; entries, config-owned preferences, and the stored
config commit as one transaction, and a failure (unknown plugin, invalid
preference, or a failing entry change) restores the exact previous state
including partial removals. Unsupported schema versions are rejected by an
explicit migration dispatcher (and byHarnessConfigitself), config-owned
provider preferences are replaced wholesale on every application, and
programmaticprefer_providerpreferences are stored separately and take
precedence over config-owned ones with the same key. - Migration note: a re-applied configuration now replaces its provider
preferences — a preference omitted from the new document no longer lingers
(re-declare it, or set it programmatically withprefer_provider, which now
outranks the document). Configurations with a schemaversionother than1
are rejected instead of being accepted silently. - Composition-tree ownership and naming are validated (roadmap R012). A
parent scope belonging to anotherCompositionTreeis rejected, and every
tree/AgentSpec/harness API accepts the same canonical absolute scope paths (no relative forms, empty or untrimmed segments,./.., or trailing
slashes) via one sharedchassis.core.paths.canonical_scope_path. Whitespace- only or untrimmed capability, permission, catalog, entry, and agent-runtime
names are rejected, and config/manifest schema versions must be non-negative. - Migration note: non-canonical scope paths (relative,
"//"-containing,
untrimmed, or trailing-slash forms) and whitespace-padded names that were
previously accepted silently now raiseConfigurationError; trim and
canonicalize before calling. Negativeconfig_versionvalues are rejected.
chassis-harness 0.5.1
pip install chassis-harness==0.5.1- Documentation: https://andreolli-davide.github.io/chassis/
- PyPI: https://pypi.org/project/chassis-harness/0.5.1/
Fixed
- Generation lease accounting is authoritative (roadmap R001). The idle event
is now cleared on the0 -> 1lease transition, so await_idle()that joins
after a reacquisition waits for the current cycle instead of observing a stale
idle signal. Releasing a lease id that is not outstanding — a forged id or a
duplicate release — raises the newUnknownLeaseErrorand never alters the
accounting.GenerationManager.retire()refuses a generation with outstanding
leases outside terminal shutdown; the explicitbegin_shutdown()transition is
the only context where a still-leased generation may retire, and late releases
against it stay exact.GenerationManager(history_limit=...)now rejects a
negative value withConfigurationError. - Migration note: callers that released a lease twice or released an unknown
lease id previously corrupted the lease count silently; they now receive
UnknownLeaseError. Catch it only if you intentionally tolerate buggy release
paths; correct callers are unaffected. - Policy and secret resolution fails closed (roadmap R002). Registered policy
and secret providers are resolved as explicit system requirements: the
configured default is used only when the generation registers no provider,
several eligible providers are rejected unless an explicit
prefer_provider(...)preference selects one, and a registration that does not
implement the contract is a provider failure. Resolution failures deny the tool
call (and deny secret reads) instead of falling back toAllowAllPolicyor the
environment-backed default, and a policy provider that raises while deciding
denies the call withPolicyDenied, preserving the original exception only as
an internal cause. - One end-to-end redaction boundary (roadmap R003). A single harness-owned
SecretRedactornow covers replay, diagnostics, tool execution, agent
execution, LangGraph run configuration, recording telemetry, and LangSmith.
Telemetry backends receive pre-scrubbed attributes, updates, events, and errors
through the newRedactingTelemetrywrapper, andLangSmithSpanscrubs
attribute updates on its own path. Redaction is recursive over nested mappings
and sequences and replaces whole values under sensitive key names on request
and response paths. Policy-denial reasons and agent runtime exceptions are
sanitized before crossing a public, hook, diagnostic, replay, or telemetry
boundary, with the original exception preserved only as an internal cause.
EffectCleanupErrorand cleanup reports render sanitized text while keeping
the original exceptions as structured detail. Tool, capability, and
replay-session metadata are scrubbed, and aReplaySessionattached to a
harness adopts the harness redactor and is re-scrubbed (bind_redactor). - Migration note: an agent runtime failure other than a
ChassisErrornow
surfaces asAgentExecutionError(cause preserved) instead of the raw runtime
exception. New:AgentExecutionError,RedactingTelemetry,
ReplaySession.bind_redactor,LangSmithSpan(run, redactor=...). - Secret values shorter than four characters are now protected like any
other; only the empty string is untrackable. Callers relying onadd()
refusing short values must stop doing so. - Publication validates actual capability registrations (roadmap R004).
Before a candidate generation is published, every mounted plugin's effective
registrations are compared with the contracts its manifest promises, and the
resolution fixpoint is re-checked against the registrations consumers actually
got. A provider that promised a capability but registered none — including in
the first generation — a registration on the wrong contract generation, or a
registered version no consumer's requirement accepts now rolls the entire
candidate back with a structuredPluginContractErrornaming the provider,
promised contract, actual registrations, affected consumers, and rollback
result. Previously such a candidate published silently and the gap surfaced
only at run time. - Migration note: plugin fixtures that declare
provideswithout registering
the capability now fail at publication; register what you declare or narrow
the manifest. - Failed scope entry and failed plugin cleanup are reversible (roadmap R005).
A__enter__/__aenter__that fails no longer leaves an effect record the
scope cannot revert. Rollback cleanup failures are aggregated into the raised
PluginSetupError(cleanup_failures, with a count in the structured
context) and intolast_cleanup_failuresinstead of being hidden inside the
failed scope. Failed plugin instances stay inspectable and retryable while
their entry is desired, and are reclaimed once it is not — no orphaned
FAILEDinstances remain resident. Owned tasks that resist cancellation past
the shutdown timeout are reported and stay visible (Scope.stragglers), and
such a scope is never presented as fully disposed (Scope.fully_disposed,
plusstragglers/fully_disposedinScope.to_dict()). - Migration note:
PluginSetupErrorgainedcleanup_failures=and reports
acleanup_failurescount in its context; a scope that failed to stop all its
tasks now reportsfully_disposed: Falsewhere it previously claimed a clean
close.
Documentation
- Added the release roadmap, mapping every finding from the 0.5.0
repository audit to the planned 0.5.1–0.8.0 releases, with acceptance criteria,
dependencies, exit gates, and permanent traceability. - Marked the known 0.5.0 enforcement gaps in the design guarantees and security
guide so the documentation does not overstate current secret, lifecycle, and
transactional protections while remediation is pending.
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.