Skip to main content

qortara-protocol

Shared Pydantic models and JSON Schema for the Qortara Governance wire protocol.

This package defines the request/response contract between a Qortara Governance client SDK and its sidecar, plus the evidence and attestation structures emitted by the system. It is the single source of truth for downstream SDKs (qortara-governance-langchain and future framework adapters) and for any compatible sidecar implementation.

What's in here

Model Role
ActionRequest The action a client wishes to perform, serialized for policy evaluation
ActionDecision The sidecar's response — allow / deny / require_approval / exempt
EvidenceRecord The durable record of what happened, emitted after execution
PortableTrustAttestation Ed25519-signed credential describing the subject's trust posture
SidecarHealth Sidecar introspection, for liveness probes and diagnostics
PolicyCacheState Pinned-policy-pack state, for audit and cache coherence

JSON Schema files for each model are distributed in the schema/ directory alongside the Python source. Use the schemas if you are implementing a non-Python client or need language-agnostic validation.

Install

pip install qortara-protocol

Requires Python 3.10+, Pydantic 2.13+, cryptography 46+.

Usage

from qortara_protocol import ActionRequest, ActionDecision

req = ActionRequest(
    subject_id="agent-42",
    action_kind="tool.invoke",
    resource={"type": "Tool", "name": "send_email", "args": {...}},
)
# Serialize and send to the sidecar; deserialize the response:
decision = ActionDecision.model_validate_json(sidecar_response_body)

Stability

Alpha. The protocol is versioned via schema filenames (*-v0.1.json). Breaking changes will bump the schema version and this package's minor version together.

License

Apache-2.0. See LICENSE.

Metadata

Release files for qortara-protocol 0.1.2

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

Source distribution (sdist)

Source distribution for qortara-protocol 0.1.2
File Size Uploaded Provenance
qortara_protocol-0.1.2.tar.gz 13.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qortara-protocol 0.1.2
File Interpreter ABI Platform
qortara_protocol-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / qortara_protocol-0.1.2.tar.gz

Download URL qortara_protocol-0.1.2.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e0d23b4dce7adab482f5f6d5bf2e27c42701b0a2582740c0b66d657c0f3988ae
BLAKE2b-256 checksum
How to use checksums
661c4fcfb52d91d84571df7141717202c2d84b0c2af73e10e334227249e5d2f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 23, 2026.

Transparency log

Release files / qortara_protocol-0.1.2-py3-none-any.whl

Download URL qortara_protocol-0.1.2-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05dfd867ec650deca0d0a703d0d0f61b985c3fdf0f67532e003453d33708a1a7
BLAKE2b-256 checksum
How to use checksums
2e46a066d0f03f87a79944bd7cbabffe5bdebbda78e3c66006f91517a277aeae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 23, 2026.

Transparency log

Security for qortara-protocol 0.1.2

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 qortara_protocol-0.1.2.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 Apr 23, 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.1.2 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