Repository navigation
v1.25.0
·
190 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Features
openadapt.wrap(agent)wraps any Python agent callable. It checks only the
actions that save or submit something, writes each save to an on-disk
write-ahead log, reads the result back, and returns a receipt.
wrap(..., wal=WriteAheadSagaLog("session.wal"))lets a restarted process
skip records it already saved and resume at the first unfinished one.openadapt.simplex_transduceraddsSimplexTransducerand
WriteAheadSagaLog, whichwrapuses.- A run that reaches its step cap is no longer marked VERIFIED on the strength
of intermediate saves alone (#2797).
Behavior changes
verify_wrap_receipttrusts only keys you pass. It returns True only
when the receipt's Ed25519 signature verifies againstpublic_key=or a key
intrusted_keys=. The key a receipt carries is never trusted. Before this
change, an unsigned receipt with a recomputed SHA-256, or a receipt signed by
the key embedded in it, returned True. Calling it with no key (and
WrapReceipt.verify()) is deprecated: it now trusts only this computer's
openadapt trust initkey and returns False for unsigned and self-signed
receipts.allow_digest_only=Truechecks the digest only, which shows a
receipt is intact but not who wrote it.check_wrap_receiptreturns the
reason a receipt failed.openadapt.wrapsigns by default. Withoutsigning_key=, it signs with
this computer'sopenadapt trust initkey and recordskey_idand
key_fingerprint. With no key, a receipt saysintegrity: "digest_only"
andsigned: false, andwraplogs once how to create a key. It never
creates a key itself.signing_key=Falseopts out without the warning.- A
check=callable is recorded ascaller_check, notsame_screen.
A check that returns a mapping can no longer setchecked_howitself (for
example tosystem_of_record); declare it withwrap(checked_how=...)or
a Contract. A check may still reportunchecked.
Features
openadapt verifychecksopenadapt.wrap_receipt/v1files against the
pinned key registry plus this computer'sopenadapt trust initkey. It
refuses an unknown signer, and a digest-only receipt fails as "not signed".OPENADAPT_TRUST_DIRsets the key directoryopenadapt trust inituses.