Skip to content

v1.25.0

Choose a tag to compare

@openadapt-release openadapt-release released this 30 Nov 20:07
· 190 commits to main since this release
Immutable release. Only release title and notes can be modified.
08bc9fc

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_transducer adds SimplexTransducer and
    WriteAheadSagaLog, which wrap uses.
  • A run that reaches its step cap is no longer marked VERIFIED on the strength
    of intermediate saves alone (#2797).

Behavior changes

  • verify_wrap_receipt trusts only keys you pass. It returns True only
    when the receipt's Ed25519 signature verifies against public_key= or a key
    in trusted_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 init key and returns False for unsigned and self-signed
    receipts. allow_digest_only=True checks the digest only, which shows a
    receipt is intact but not who wrote it. check_wrap_receipt returns the
    reason a receipt failed.
  • openadapt.wrap signs by default. Without signing_key=, it signs with
    this computer's openadapt trust init key and records key_id and
    key_fingerprint. With no key, a receipt says integrity: "digest_only"
    and signed: false, and wrap logs once how to create a key. It never
    creates a key itself. signing_key=False opts out without the warning.
  • A check= callable is recorded as caller_check, not same_screen.
    A check that returns a mapping can no longer set checked_how itself (for
    example to system_of_record); declare it with wrap(checked_how=...) or
    a Contract. A check may still report unchecked.

Features

  • openadapt verify checks openadapt.wrap_receipt/v1 files against the
    pinned key registry plus this computer's openadapt trust init key. It
    refuses an unknown signer, and a digest-only receipt fails as "not signed".
  • OPENADAPT_TRUST_DIR sets the key directory openadapt trust init uses.