Skip to content

chassis-harness 0.8.0

Choose a tag to compare

@andreolli-davide andreolli-davide released this 22 Sep 09:54
· 52 commits to main since this release
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.