Skip to main content

matrx-runtime

The durable-execution substrate for the Matrx platform.

Every unit of work — a utility call, a workflow run, an agent session — is one row on a single global_execution spine that can nest inside any other. The substrate owns the concerns all three flavors share, so they compose freely and share one lifecycle, one nesting tree, one cost ledger, and one enforced state machine:

  • run identity + lineage (parent_execution_id, denormalized root_execution_id)
  • the lifecycle state machine (transition() — the only legal way to change status)
  • the cost ledger + tree-wide budget and quantity limits
  • cancellation, deadlines, and down-tree propagation
  • generalized checkpoints, leases, recovery, and lifecycle events
  • pluggable durable stores (InMemoryExecutionStore and OrmExecutionStore)
  • immutable per-execution context snapshots with explicit inheritance modes

ContextMode.INHERIT deep-copies the parent's snapshot, SCOPE overlays explicit narrower values, and destructive REPLACE requires a complete replacement context. Omitting that replacement raises MissingReplacementContext both at the engine spawn boundary and in ExecutionContext.derive; silent context erasure is not a valid operation.

Executors plug in as strategies and are NOT owned here: the agent loop (matrx-ai), the superstep DAG (matrx-graph), utility implementations (matrx-scraper).

Status: active. The decision core, durable ORM store, context propagation, metering, budget/cancel/deadline gates, leases, recovery, checkpoints, and request/execution lifecycle are implemented. aidream adopts them through its host integration; domain payloads and entity lookup remain host-owned so this package stays independent and payload-blind.

Durable frontier consumers use runtime.work_item. A provider poll that is still in progress calls defer_work_item(...): it returns the claim to pending, schedules not_before, and does not consume the retry budget. Actual call failures continue through fail_work_item(...) and its bounded retry/dead-letter policy. pending_work_execution_ids(type, limit) is the payload-blind discovery seam for host drainers; providers and domain payloads remain outside this package.

Expired leases obey the same attempt budget: a final expired attempt becomes dead_letter with a typed error instead of returning to pending. Consumers that intentionally encode a resumable terminal wait can use the CAS-fenced resume_failed_work_item(...); it matches the full expected error and restores the claim attempt consumed while discovering that wait.

Large mixed backlogs use generic priority (lower claims first, seq breaks ties). Long workers call renew_work_item_lease(...); coordinators use the bounded list_work_items(...), exact get_work_item(...), and dependency-state lookup without importing ORM rows.

Design + phased plan: docs/runtime/EXECUTION_SPINE.md.

Metadata

Release files for matrx-runtime 0.0.170

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matrx-runtime 0.0.170
File Size Uploaded Provenance
matrx_runtime-0.0.170.tar.gz 111.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for matrx-runtime 0.0.170
File Interpreter ABI Platform
matrx_runtime-0.0.170-py3-none-any.whl Python 3 none any Details

Total release size: 184.2 kB

Release files / matrx_runtime-0.0.170.tar.gz

Download URL matrx_runtime-0.0.170.tar.gz
Size 111.5 kB
Tags Source
SHA-256 checksum
How to use checksums
94f2ee487525b6cea14cd919ea4a64eb868b1cfe7a38c94fdc09485d8bc1695f
BLAKE2b-256 checksum
How to use checksums
d700bd9b74ec17073227584b65f6292b307a512164e586d1e551de6a93d0dfa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / matrx_runtime-0.0.170-py3-none-any.whl

Download URL matrx_runtime-0.0.170-py3-none-any.whl
Size 72.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b025a0aea6be32fecbc33b8a6a0c209f939f4feded6f8dfbd8526d4aa5ceaa2
BLAKE2b-256 checksum
How to use checksums
e2d9f8a32fa490d024dec0f3a9ab20af7fc5ea5189fa6a533b13c13f04bf2ac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for matrx-runtime 0.0.170

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for matrx_runtime-0.0.170.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.170 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page