Repository navigation
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.