Skip to content

Versioning and compatibility

threvo-actions uses Semantic Versioning with an explicit 0.x policy. Pin an exact patch release in applications that execute financial actions.

Contract map

Surface Current commitment
Documented root exports, Action, ActionDefinition, and documented integration exports Supported at the exact release and governed by the patch/minor policy below
threvo_actions.experimental.ActionApplication and related authoring names Conditional evaluation surface; exact-pin, equivalence-test and migration-review obligations apply
Receipt JSON and canonicalization profile internal/v0; readable by documented code but not a stable cross-system wire standard
Database schema Changed only through immutable, checksummed migrations; physical layout remains adapter-internal
threvo.actions.evidence/v1 Experimental external document shape; exact-pin and migration review required
Provider and host effects Never guaranteed by Python compatibility alone; require a library-orchestrated host exercise and authoritative verification

“Supported” describes compatibility for documented calls and meanings. It does not mean every host repository is atomic, every provider version is qualified, or every experimental serialization is frozen. Those are separate evidence gates. Migration records and contract tests identify code compatibility, while release cadence separately affects whether adopters can evaluate and trust a supported line. The 0.x pilot stabilization policy limits publication to corrective patches and explicitly reviewed, pilot-backed consolidation while its evidence gates remain open.

Supported at 0.6.3

The following surfaces are supported at the exact 0.6.3 release:

  • names listed in threvo_actions.__all__ and threvo_actions.__version__;
  • documented public names in threvo_actions.conformance and threvo_actions.testing;
  • documented stores and migration functions in threvo_actions.stores, threvo_actions.stores.postgres, threvo_actions.stores.mysql, threvo_actions.stores.sqlite, threvo_actions.migrations, threvo_actions.mysql_migrations, and threvo_actions.sqlite_migrations, plus compatibility metadata in threvo_actions.migration_compatibility, readiness results in threvo_actions.readiness, and official profiles in threvo_actions.store_security;
  • documented recovery models in threvo_actions.recovery and PostgreSQL due-work discovery;
  • documented approval request contracts and PostgreSQL persistence in threvo_actions.integrations.approval_channels;
  • documented Pydantic AI names in threvo_actions.integrations.pydantic_ai;
  • names listed in threvo_actions.integrations.aws_kms.__all__;
  • names listed in threvo_actions.integrations.local_kek.__all__;
  • the documented contracts in threvo_actions.integrations.stripe; and
  • the documented threvo-actions CLI commands and exit behavior.

A later patch release may add optional fields with safe defaults, new enum members that callers are already required to handle as unknown, new public helpers, or bug and security fixes that preserve this contract. Removing a name, making a valid call invalid, changing a result's meaning, or weakening a safety check is not permitted after 0.6.3 without another explicitly documented exception.

0.6.3 corrects the MySQL adapter. The stores send and read text as hex-encoded UTF-8, raise MySQLAdapterLimitError for text that is not valid UTF-8, and match tenant and proposal references exactly. The mysql extra requires PyMySQL>=1.2.3,<2. It changes no action identity, serialized model, or database schema. Follow the 0.6.3 migration record.

0.6.2 admits period-end cancellation and withdrawal for supported trialing subscriptions under the same safety checks as active subscriptions. It changes no action identity, serialized model, or database schema. Follow the 0.6.2 migration record.

0.6.1 corrects the 0.6.0 pilot surfaces. It completes recovery authorization through the gradual-reveal recipe, prevents unauthorized recovery calls from receiving lifecycle data, makes worker lease loss and denied authorization honest, and distinguishes definite local wrapped-key rejection. It changes no database schema. Follow the 0.6.1 migration record.

0.6.0 is the Threvo pilot consolidation release. It adds an explicit recovery authorization port, host-owned proposal references, lifecycle categories, caller-owned PostgreSQL transaction composition, an installed recovery worker and Stripe host exercise, local-KEK envelope protection, existing-tool Pydantic AI bindings, and minimized external-attestation references. The root additions are additive; the experimental authoring and evidence surfaces still require an exact pin and equivalence tests. Follow the 0.6.0 migration record.

0.5.0 adds host-authorized operator recovery for pending or unresolved verification. It extends the experimental internal/v0 receipt union with the closed recovery discriminator and adds contract migrations for PostgreSQL, MySQL, and SQLite. Existing databases must stop runtime and retention writers and apply the adapter migration before starting 0.5.0. Follow the 0.5.0 migration record.

0.4.3 preserves the complete 0.4.2 Python and persistence contract. It adds documentation, an executable merchant integration example and maintainer-owned adoption planning only. Follow the 0.4.3 migration record.

0.4.2 aligns the PostgreSQL Stripe ledger's expected dispositions with the library-orchestrated exercise, narrows the approval store to an acquire-only connection source, and adds AuthorityDecision.DENY as a wire-compatible alias for REJECT. Follow the 0.4.2 migration record.

0.4.1 corrects the meaning of Stripe host qualification, adds a library-orchestrated exercise, completes gradual-reveal forwarding for recovery and evidence, packages the approval request reference, and exposes the experimental evidence v1 document shape for evaluation. Follow the 0.4.1 migration record.

0.4.0 adds progressive Stripe composition, concrete PostgreSQL host repositories and a driver-attested scenario checklist, actionable recovery and late observations, minimized evidence export, installed billing scenarios, sandbox qualification runners, and a server-bound approval-channel reference recipe. It preserves the supported root exports, existing action identities, receipt JSON, and core database migration history. Follow the 0.4.0 migration record.

0.3.0 adds governed Stripe refund, subscription cancellation and credit-note operation groups while preserving existing connector imports and persisted proposal/receipt contracts. Follow the 0.3.0 migration record.

0.3.1 corrects the Stripe optional-dependency boundary, exposes runtime observability and deterministic clock injection, classifies unsettled refunds as provisional, and reports concurrent execution admission accurately. It is a backward-compatible patch. Follow the 0.3.1 migration record.

0.3.2 publishes that corrective change set from one exact main source identity after v0.3.1 could not be promoted. It adds no further runtime behavior. Follow the 0.3.2 release record.

0.2.0 was a minor-line upgrade with stricter verification and cancellation contracts, plus the optional Stripe connector. See the 0.2.0 migration record. The app remains a reference host; its static credentials, master-key custody and deployment are not a production support claim.

0.1.6 carries no corrective exception. It changes only the pydantic-ai extra's dependency range and is backward compatible with the 0.1.5 supported surface.

0.1.5 itself is an owner-directed pre-1.0 corrective exception. It changes provider contracts and one integration result where preserving 0.1.4 behavior could misstate persistence, visibility, or erasure. It does not claim drop-in compatibility with 0.1.4; exact-pinned consumers must follow the 0.1.5 migration record.

A correctness or security fix may require a new explicit safety acknowledgement. Such a change must fail closed, preserve a documented path for the previously valid operation, and be called out in the changelog. Requiring writers_quiesced=True before an existing schema crosses a declared contract migration is one such acknowledgement; it does not affect fresh bootstrap.

Still experimental

The following are not cross-implementation standards and may change in a later minor 0.x release with a migration note:

  • the namespaced gradual-reveal authoring API in threvo_actions.experimental;
  • threvo.actions.evidence/v1 and its namespaced evidence helpers;
  • internal/v0 receipt JSON and the canonicalization profile;
  • physical PostgreSQL, MySQL, and SQLite table or procedure layout;
  • migration file internals, except that an applied migration is immutable;
  • the supplier-destination example's application/v0 envelope; and
  • undocumented module members and private names.

Persisted rows remain upgradeable through the adapter's explicit migration path. An experimental wire shape must not be exchanged between independently versioned systems without an application-owned compatibility agreement.

Evidence envelope promotion

Promotion of threvo.actions.evidence/v1 requires observed use by a consenting outside application, not a maintainer fixture. That application must export representative pending, terminal, and retained-or-erased action records from its real host implementation. An independently maintained consumer must validate and render those records, reject altered content, and confirm that the declared omissions are sufficient for its operator or audit workflow without requesting private snapshots or replayable authority evidence.

The evaluation must record the exact producer and consumer versions, sample digests, retention behavior, security and privacy review, and a post-adoption observation period with no unresolved schema-safety anomaly. Record failures as well as successes in the append-only adoption ledger. A named maintainer then makes an explicit promote, revise, or retain-experimental decision in a release record. Elapsed time, maintainer CI, or a schema-version suffix cannot promote the envelope by itself.

Gradual-reveal compatibility window

The threvo_actions.experimental support and evaluation window lasts 120 days from publication of 0.1.4. During that window, patch revisions may add names or make fail-closed correctness fixes, but they will not silently reinterpret an existing ActionSpec, make a valid typed recipe grant more authority, or move the surface into the package root. Applications must still pin an exact revision and re-run their action equivalence tests before upgrading.

Documentation and bundled agent guidance recommend this namespace only conditionally: the consumer must pin an exact patch, own those equivalence tests, and perform an explicit migration review before a minor-line upgrade. Consumers that cannot accept those obligations should use the supported Action or ActionDefinition surface.

The support decision is evidence-driven. It requires the published DX protocol, production consumer equivalence, transaction and tenant isolation, rollback compatibility, and post-adoption qualification. Record each condition, its acceptance command and output, the production observation window, and the resulting decision in the append-only gradual-reveal adoption and support ledger. Every failed or assisted evaluation attempt remains part of the record. The first review is due no later than 120 days after publication; lack of evidence, a failed required condition, or an unresolved safety anomaly cannot produce a support decision by default.

A revision decision may keep the namespace experimental and publish a new minor-line migration note. A retirement decision must name an owner, publish a dated migration back to Action or ActionDefinition, and preserve durable proposal and receipt compatibility. Existing names remain available through the announced retirement window unless an immediate security or correctness failure requires fail-closed removal.

The stable promotion decision is separate from support. It requires either a second real production action or an external design partner, the independent-human absolute DX gates, and completed post-adoption safety evidence. Bind those proofs to a dedicated stable-promotion entry in the append-only ledger. Promotion is always an explicit documented release; it never occurs merely because the 120-day window elapsed.

PostgreSQL is the reference durable adapter. MySQL and SQLite remain supported at their documented tiers, but new authoring-layer work does not imply new schema features or broaden their deployment guarantees.

Each immutable packaged migration declares whether it expands or contracts the schema contract, whether the preceding runtime remains compatible, and whether writers must be stopped. This metadata describes deployment compatibility; it does not let an older library silently accept a newer migration history.

Version changes

  • Later 0.4.z releases: backward-compatible fixes and additions to the supported 0.4.3 surface unless an explicit corrective exception is documented before publication.
  • 0.y.0: may change an experimental surface or the supported Python API, with a changelog entry and migration guidance.
  • 1.0.0: reserved for a stable cross-release contract informed by external production adoption.

Security fixes target the newest supported minor 0.x line. The historical 0.1.4 contract remains recorded by its immutable release record and tag; the 0.1.5 migration record makes the corrective exception explicit rather than silently redefining that release. The project does not maintain multiple pre-1.0 release lines unless the security policy says so.

Deprecation

When practical, a supported name is deprecated in one minor 0.x release before removal in a later minor release. A security or correctness defect may require an immediate change; the changelog will identify that exception and the safest migration.