substr8-core
Core schemas and utilities for the Substr8 RunProof system.
Installation
pip install substr8-core
Usage
RunProof Schema
from substr8_core.schemas import RunProof, RunProofHeader, TraceEntry
# Create a RunProof
proof = RunProof(
schema_version="runproof/v2",
header=RunProofHeader(
proof_id="proof_abc123",
run_id="run_xyz789",
agent_id="claims/orchestrator",
runtime="langgraph",
started_at="2026-03-09T10:00:00Z",
status="completed"
),
# ... rest of proof
)
# Serialize
proof_json = proof.model_dump_json()
# Validate
proof = RunProof.model_validate_json(proof_json)
RunState Schema
from substr8_core.schemas import RunState, LifecycleStatus
# Create run state
state = RunState(
run_id="run_xyz789",
agent_id="claims/orchestrator",
lifecycle_status=LifecycleStatus.RUNNING,
current_node="validate_output",
step_index=5
)
# Update state
state.lifecycle_status = LifecycleStatus.COMPLETED
Verification
from substr8_core.crypto import verify_proof
result = verify_proof(proof)
print(result.valid) # True/False
print(result.checks) # Detailed check results
Schema Version
This package implements RunProof schema version runproof/v2.
License
MIT © 2026 Substr8 Labs
Metadata
Release files for substr8-core 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| substr8_core-0.3.0.tar.gz | 13.9 kB | Without provenance | Details for substr8_core-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| substr8_core-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for substr8_core-0.3.0-py3-none-any.whl |
Total release size: 28.6 kB
Release files / substr8_core-0.3.0.tar.gz
| Download URL | substr8_core-0.3.0.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4126d0cb5d8a0bc27c753fdcbf2575bd68cd54dc049890627f7d1b3160d95bd
|
|
BLAKE2b-256 checksum How to use checksums |
aa8bc01ea719a8208bd2c25a7febfb7946e2f930d45ca821fd404120d1bfebef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / substr8_core-0.3.0-py3-none-any.whl
| Download URL | substr8_core-0.3.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81fc84b32ea6e0ef2f82cfcd8ac7a33f4fdbca1c372c0ef763dc3c61ed7e1b66
|
|
BLAKE2b-256 checksum How to use checksums |
2fa167ff980e96fa17e15656deb39620086e23a6e77643869c1f3d13eb4cf016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for substr8-core 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.