Skip to content

Releases

chassis-harness 1.0.0b2

Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Sep 09:13
pip install 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 preserved 0.9.1 stable documentation archive.

chassis-harness 1.0.0b1

Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Sep 20:03
dced699
pip install 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 is v1.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 to main verify 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.md records 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

Choose a tag to compare

@github-actions github-actions released this 22 Sep 15:40
pip install 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.py validates local Markdown fragments against the
    headings MkDocs generates, closing the gap where file-only link checks and
    unrecognized_links: warn let 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

Choose a tag to compare

@github-actions github-actions released this 22 Sep 14:09
pip install 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, AgentSpec materialization, 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 in tests/integration/test_reference_app.py, and is a package-smoke
    canary in CI.
  • Reproducible performance and capacity baselines (roadmap R032).
    scripts/benchmark.py measures 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.json records the 0.9.0 baseline and
    docs/performance.md documents 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.py gates 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.OpenTelemetryTelemetry maps 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 new opentelemetry extra
    (pip install "chassis-harness[opentelemetry]"; opentelemetry-api, never a
    core dependency). Importing chassis.telemetry without it is fine;
    constructing the adapter without it raises MissingExtraError naming the
    extra. Attributes and recorded errors are scrubbed before export, explicit
    backend overrides and SafeTelemetry isolation 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
    in docs/observability.md.
  • Stable operational signal contract (roadmap R031 phase 1, new guarantee
    G27). chassis.telemetry.signals declares 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 — and validate_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 by TeeTelemetry to its surviving siblings), and
    graph.cache eviction (result: "evict"). tool.execute gained the
    registration_id and run_id correlation attributes. The retirement event is
    renamed generation.drain → generation.retired (see migrations); names are
    stable from 0.9.0 on. Documented in docs/observability.md.
  • Stable machine-readable planning contract (roadmap R030, new guarantee
    G26). chassis.planning defines the versioned PlanResult document with a
    closed action vocabulary (add, remove, replace, reuse, rebuild,
    publish, reject, no-op), stable ReasonCodes, 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() declares PLAN_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.py runs 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.py runs 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() (and ResourceCounts) 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-readable reason: 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 the v0.8.1 tag) 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 — snapshot digest() values therefore change.
  • Classified public API and compatibility checking (roadmap R027). The
    documented surface — every top-level export and documented import path — is
    audited in tests/compat/public-api.json with a stability class per name
    (stable public API, provisional API; anything unlisted is internal), and
    tests/compat/api-baseline-0.8.1.json records how the released 0.8.1 surface
    is shaped (kinds, signatures, enum values, public dataclass/Pydantic fields),
    generated from the v0.8.1 distribution. scripts/api_compat.py compares 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.compat adds
    ChassisDeprecationWarning — carrying the deprecated API, its repla...
Read more

chassis-harness 0.8.1

Choose a tag to compare

@github-actions github-actions released this 22 Sep 09:51
pip install 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 and PluginContext.secrets are 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). ToolSnapshot publishes
    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 raises ConfigurationError instead 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 through install(..., 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=True applies to replayed tool errors (R016). Recorded
    error and timeout results raise ToolExecutionError exactly 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).
    HarnessConfig recursively 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-constructed FrozenDict
    instead of assuming its nested values are immutable.
  • AgentResult.text supports 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 description at registration (R018). A
    missing, empty, or non-string description is rejected at registration with a
    typed error instead of failing later inside to_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
    LangGraphAgent forwards its effective telemetry to its GraphCache, so
    graph.cache events reach harness telemetry (explicit overrides stay).
  • The guarantee-to-test gate requires real collected test nodes (R023).
    Every G1–G24 row must name file::test_name nodes 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 from main.

chassis-harness 0.8.0

Choose a tag to compare

@andreolli-davide andreolli-davide released this 22 Sep 09:54
pip install 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
    ConfigurationError instead 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 by stable_hash/canonical_json; convert keys to strings first.
  • API ambiguity and silent fallbacks removed (roadmap R022). Passing
    thread_id/resume/checkpoint_id/metadata alongside a complete
    AgentRequest now raises ConfigurationError instead of silently ignoring
    them. AgentResult.text supports the documented message shapes (strings,
    mappings with a text field, 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. ReplayMismatch distinguishes exhaustion
    from a missing key (reason="exhausted"/"missing").
  • Migration note: code that combined a complete AgentRequest with
    convenience arguments now raises; move those fields into the request itself.
    Code relying on providers_of returning () for unknown scope paths must
    handle ConfigurationError.
  • Diagnostics and documentation aligned with implementation (roadmap R023).
    Status and cleanup reports render failures through a structured, redacted
    representation (description, error_type, scrubbed error) instead of raw
    exception strings, and ReconcileResult.to_dict accepts a sanitize
    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 returns error_type plus a
    scrubbed error message instead of one combined "Type: message" string.
  • Coverage and compatibility gates established (roadmap R024). CI now
    enforces branch coverage for src/chassis at 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 in docs/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

Choose a tag to compare

@andreolli-davide andreolli-davide released this 22 Sep 09:54
pip install 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/stream call ensure_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 logical AgentSpec names 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.run span 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 (AgentEvent gained thread_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) raises ReplayMismatch instead of being silently omitted.
    Recorded results preserve llm_output and per-generation metadata.
    ReplaySession gained cursor-aware has_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 on has() 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 the tool.execute span (now tagged replayed) — 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/error stay historical);
    duration_seconds, tool_call_id, generation_id, and the new
    ToolExecutionResult.run_id are stamped with the current run's attribution,
    and replaying in a different generation works cleanly.
  • Migration note: ToolExecutionResult gained run_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
    raises TypeError at every depth). RECORD handler failures on the tool and
    agent data-plane are surfaced as structured hook.failure telemetry 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 TRANSFORM handler 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).
    BudgetLimits rejects 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). ToolPolicy normalizes its
    sequences to tuples, deep-freezes metadata, and requires a positive finite
    timeout_seconds when present. An obviously synchronous ainvoke
    implementation is rejected at registration, and the executor verifies
    awaitability at the boundary with a typed ToolExecutionError. 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-positive ToolPolicy.timeout_seconds, now raises
    ConfigurationError; tools with a synchronous ainvoke must become
    async def.
  • Telemetry failures are isolated and adapter wiring unified (roadmap R019).
    The new SafeTelemetry wrapper 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
    a failures counter and the chassis.telemetry logger. TeeTelemetry runs
    every backend through it and exposes a failures total; the harness wires one
    SafeTelemetry(RedactingTelemetry(...)) chain around every configured
    backend. Registered runtimes that expose bind_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_runtime now reports the identity of the selected
    AgentRuntime (runtime_kind when the runtime declares one, else its class
    name) — custom runtimes are never labelled langgraph, and snapshots built
    without a runtime report unknown. composition_metadata resolves the same
    identity for evaluation experiments. GraphCache validates max_entries
    (non-negative integer; 0 explicitly disables caching) and documents that
    topology or captured static inputs invisible to the cache key require an
    AgentDefinition.version change, 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 report unknown instead of langgraph.

chassis-harness 0.6.0

Choose a tag to compare

@andreolli-davide andreolli-davide released this 22 Sep 09:54
pip install 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 with ConfigurationError and rolled back. Agent
    runtime names stay explicitly unique unless replace=True.
    ToolRegistry.unregister/AgentRegistry.unregister gained keyword-only
    owner_id/scope_id filters so a plugin's early unregister touches only its
    own registration.
  • Requirements bind the exact selected capability contract (roadmap R007).
    RequirementResolution now 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 full CapabilityKey, so database@1
    and database@2 provisions 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.provides accepts a sequence
    of versions for multi-contract providers.
  • Migration note: a requirement like >=2 no longer pins @2; pass an
    explicit api_version when a specific contract generation is required.
    Harness.provide/withdraw are keyed by CapabilityKey; withdraw with a
    name removes every contract generation of that name. PluginManifest.provides
    values may now be str | tuple[str, ...].
  • AgentSpec composition visibility is enforced at runtime (roadmap R008).
    Runs now receive a capability snapshot filtered by the acquired
    ResolvedScope.visible registrations, so HarnessRunContext.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 with ConfigurationError instead of
    silently exposing an empty tool view (Harness.scoped_capabilities is new).
  • Migration note: run code that reached capabilities outside its agent's
    composition view will now raise CapabilityNotFound/CapabilityVersionMismatch;
    widen the spec's capabilities view 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 raises TypeError and 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. install now 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
    AgentSpec construction, and withdrawal removes only the state a revision
    owns.
  • Migration note: code that pointed an AgentSpec.scope at 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 by HarnessConfig itself), config-owned
    provider preferences are replaced wholesale on every application, and
    programmatic prefer_provider preferences 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 with prefer_provider, which now
    outranks the document). Configurations with a schema version other than 1
    are rejected instead of being accepted silently.
  • Composition-tree ownership and naming are validated (roadmap R012). A
    parent scope belonging to another CompositionTree is 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 shared chassis.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 raise ConfigurationError; trim and
    canonicalize before calling. Negative config_version values are rejected.

chassis-harness 0.5.1

Choose a tag to compare

@andreolli-davide andreolli-davide released this 22 Sep 09:54
pip install chassis-harness==0.5.1

Fixed

  • Generation lease accounting is authoritative (roadmap R001). The idle event
    is now cleared on the 0 -> 1 lease transition, so a wait_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 new UnknownLeaseError and never alters the
    accounting. GenerationManager.retire() refuses a generation with outstanding
    leases outside terminal shutdown; the explicit begin_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 with ConfigurationError.
  • 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 to AllowAllPolicy or the
    environment-backed default, and a policy provider that raises while deciding
    denies the call with PolicyDenied, preserving the original exception only as
    an internal cause.
  • One end-to-end redaction boundary (roadmap R003). A single harness-owned
    SecretRedactor now 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 new RedactingTelemetry wrapper, and LangSmithSpan scrubs
    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.
    EffectCleanupError and cleanup reports render sanitized text while keeping
    the original exceptions as structured detail. Tool, capability, and
    replay-session metadata are scrubbed, and a ReplaySession attached to a
    harness adopts the harness redactor and is re-scrubbed (bind_redactor).
  • Migration note: an agent runtime failure other than a ChassisError now
    surfaces as AgentExecutionError (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 on add()
    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 structured PluginContractError naming 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 provides without 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 into last_cleanup_failures instead 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
    FAILED instances 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,
    plus stragglers/fully_disposed in Scope.to_dict()).
  • Migration note: PluginSetupError gained cleanup_failures= and reports
    a cleanup_failures count in its context; a scope that failed to stop all its
    tasks now reports fully_disposed: False where 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

Choose a tag to compare

@andreolli-davide andreolli-davide released this 17 Sep 21:34

First-class, versioned agent composition.

pip install chassis-harness

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

  • AgentSpec and AgentRevision. 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. AgentRegistry gained
    install/replace/remove/spec/active_spec/revisions/specs/history.
    A spec materializes into a real CompositionScope (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 requires replace; retirement
    withdraws the active revision from desired state without touching published
    generations, and historical revisions stay reachable.
  • Run pinning and attribution. HarnessRunContext, AgentResult, and
    AgentEvent carry agent_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.
    RuntimeSnapshot gained agent_revision, agent_identity, and an additive
    public_composition_digest() alias for semantic_digest().
  • Tool visibility in composition scopes. Tools follow the same
    inheritance-plus-narrowing rule as capabilities: a scope declares a tool view,
    build_scope_tree binds 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 share name@version and 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, plus examples/agent_composition.py.

Changed

  • RuntimeSnapshot.to_dict() (and therefore digest()) gained agent_revision;
    stored 0.4 snapshots should be re-baselined.
  • harness.agents.invoke/stream stamp the logical agent name and revision on the
    result and streamed events. An agent registered only as a runtime is unchanged.
  • build_scope_tree accepts 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.