runx_contracts
Shared Rust contract types for runx JSON and protocol boundaries.
Modules §
act §
Act algebra: intents, governed acts, success criteria, and verification details.
agent_context §
Agent-context envelope (runx.ai/spec/agent-context-envelope): the bulky
per-act execution context referenced from a receipt act's context_ref
(instructions, inputs, current/historical artifact context, provenance, and
the resolved skill profiles).
Identity is the legacy bare runx.ai/spec $id (no x-runx-schema).
artifact §
Artifact contract: emitted artifacts and their producer attribution.
aster §
Aster operator contracts: targets, opportunities, selections, feed entries, reflections.
authority §
Authority algebra: terms, capabilities, verbs, attenuation, and payment bounds.
cli §
Deferred contract module home for CLI JSON.
Deferred contract module home: actual CLI JSON envelope parity belongs to
rust-contracts-cli-json-parity after rust-cli-feature-parity-matrix
produces the CLI fixture oracle.
credential_delivery §
Credential delivery contracts: public refs, handles, and observations only.
decision §
Decision contracts: choices, justifications, and closure dispositions.
dev §
Dev-loop report contracts.
doctor §
Doctor diagnostic report contracts: diagnostics, repairs, summaries.
execution §
Execution semantics contracts: governed disposition, outcome state, and receipt outcome.
external_adapter §
External adapter contract types.
fingerprint §
Fingerprint contracts: content hashing identifiers.
fixture §
Fixture contract for dev/replay inputs.
handoff §
Handoff boundary contracts: per-signal records (runx.handoff_signal.v1)
and the rolled-up handoff state (runx.handoff_state.v1).
host_protocol §
Host protocol contracts: execution events, resolution requests, host-run lifecycle.
json §
Boundary JSON model: deterministic value, object, and number types for cross-language contracts.
ledger §
Ledger-entry contract used for artifact chain records.
links §
Receipt link contracts: duplicate candidates and reference linking.
list §
Native list command report contracts.
maturity §
Skill maturity tier and the signals it is computed from.
Maturity describes how ready a skill is (tests, graph integration). It is orthogonal to trust, which describes the author. The tier is computed from harness signals at event points (publish, harness seal) and stored on the registry record; readers never recompute it.
operational_policy §
Operational policy contracts for governed source, runner, target, and owner routing.
operational_proposal §
Operational proposal contract: reviewable handoffs over existing actions.
output §
Skill output declaration types: the value shape of the runx.ai/spec
output map (a field is either a bare type name or a typed field spec).
The standalone output.schema.json document is a top-level open map carrying
a bare $id; it is modeled here as the transparent map newtype Output,
whose RunxSchema derive emits the committed patternProperties shape. The
same BTreeMap<String, OutputField> is embedded by the agent-context
envelope's output field.
packet_index §
Packet index contract (runx.packet.index.v1): the manifest of materialized
skill packets and their content hashes.
policy_proof §
Policy-proof contracts: the authority-proof receipt envelope and its two
standalone companions (credential-envelope, scope-admission).
These carry the legacy bare runx.ai/spec $id (no x-runx-schema). They
are produced by the local policy engine and guarded as wire contracts; their
authoritative Rust shape lives here so the schema wire-conformance gate can cover
them.
post_merge_observer §
Post-merge observer closure planning contracts.
receipt §
Governance receipt contracts: the flat runx.receipt.v1 shape, seals,
fanout sync, lineage, and signatures.
One flat artifact, each top-level key answering one question: integrity
(envelope), dedup (idempotency), what ran (subject), what allowed it
(authority), the inbound triggers (signals[]), the reasoning
(decisions[]), what was done (acts[]), the outcome (seal), and graph/resume
lineage. The post-run verdict is a review/verification act in acts[]
(or a follow-up receipt linked by lineage), never a side contract. The
reasoning and the full acts (intent, success criteria, criterion
bindings) are INLINE: that is simultaneously the proof, the training signal,
and the inspection narrative. Only the bulky per-act execution I/O (the
agent-context envelope: instructions/inputs/output) is referenced via
acts[].context_ref + artifact_refs and hydrated by projections.
Verification is computed at read time, never part of the signed body.
receipts §
Deferred contract module home for receipt JSON.
Receipt contract parity and verification logic belong to
rust-receipts-parity. This module intentionally exposes no public receipt
types until that fixture-backed split lands.
redaction §
Redaction contracts: redacted-field markers and hash commitments.
reference §
Reference contracts: typed references to receipts, acts, and external surfaces.
registry §
Deferred contract module home for registry and marketplace JSON.
Registry and marketplace contract parity belong to rust-registry-parity.
This module intentionally exposes no public registry types until that
fixture-backed work lands.
registry_binding §
Upstream registry binding contract (runx.registry_binding.v1): the open
(additionalProperties: true) document tying a skill to its upstream source,
registry placement, and harness verification status.
Identity is the legacy bare runx.ai/schemas $id (no x-runx-schema).
review §
Review-receipt output contract: the diagnosis the managed reviewer produces for the review-receipt skill, consumed by write-harness downstream.
Identity is the legacy bare runx.ai/schemas $id (no x-runx-schema,
no schema discriminant). The document is open (additionalProperties: true).
run_summary §
Run summary report contract.
schema §
Type-driven JSON Schema for runx contracts (Phase 1 of
rust-contract-pipeline-inversion).
A contract type that derives RunxSchema emits its own wire-conformant
JSON Schema document, so the Rust type is the single source of truth and the
parallel TypeScript schema sources stay deleted. The emitted document
reproduces the committed shape: fully inlined, closed string enums as
anyOf of const, additionalProperties: false, and the $id /
x-runx-schema identity.
schema_artifacts §
Published JSON Schema artifact manifest.
This is the authoritative Rust-side list consumed by the schema generation
gate. Keep filenames aligned with oss/schemas/*.json.
signal §
Signal contracts: trust-tagged events that enter the act lifecycle.
source_packet §
Source packet contract: normalized, redacted intake from any source loader.
SourcePacket is the canonical wire shape every source adapter produces
before handing off to triage / action skills. It carries provider-neutral
identity (source_ref) and the typed workflow slots that downstream skills
consume, plus optional raw adapter_payload for replay and audit.
Provider names and locators live inside the central refs, not top-level fields, so the same packet can be rendered through Slack, GitHub, Teams, Linear, Jira, email, or any other channel without contract changes.
suppression §
Suppression record contract (runx.suppression_record.v1): a do-not-contact
record scoped to a handoff, target, repo, or contact.
target_runner §
Target repo runner planning contracts.
thread_outbox_provider §
Thread outbox provider contract types.
tools §
Contract types for tool manifests and tool catalog JSON surfaces.
verification §
Verification contracts: checks and statuses for governed verification.