Skip to main content

sectum-ai-spec

Shared data models and JSON Schema for Sectum AI, the multi-tenant AI verification toolkit.

This distribution holds the Pydantic v2 models and exported JSON Schema that every other Sectum package builds on — Scenario, Marker, GroundTruthManifest, ProbeStep, Observation, Finding, RunResult, and EvidencePack — plus the typed error hierarchy (SectumError and friends). It is the lowest layer in the package graph and depends on nothing else in the family.

pip install sectum-ai-spec

Most users install the umbrella package sectum-ai instead, which pulls this in automatically.

JSON Schema

Every model a consumer parses on its own is published as a standalone JSON Schema document under sectum_ai/spec/schemas/<Model>.schema.json (shipped in the wheel). The models a parent only ever embeds — SyntheticTenantSpec, SyntheticUserSpec, SharedEntity, PlantedLocation — have no file of their own; they appear in their parent's $defs. Principal appears in neither: no model carries it as a field. Each carries a $schema dialect (draft 2020-12) and a version-pinned $id (https://schemas.sectum.ai/<schema_version>/<Model>.schema.json), so external tooling can validate Sectum artifacts without importing Python:

from sectum_ai.spec import json_schemas
from sectum_ai.spec.schema import SCHEMA_DIR  # the committed, packaged artifacts

finding_schema = json_schemas()["Finding"]

The Pydantic models are authoritative; the schemas are generated from them. Regenerate after a model change with uv run python scripts/gen_schemas.py (a test fails if a committed artifact drifts). The schema_version field versions the models — bump it for a backward-incompatible change, then regenerate.

Apache-2.0.

Metadata

Release files for sectum-ai-spec 0.13.0

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

Source distribution (sdist)

Source distribution for sectum-ai-spec 0.13.0
File Size Uploaded Provenance Actions
sectum_ai_spec-0.13.0.tar.gz 39.5 kB With provenance Details for sectum_ai_spec-0.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sectum-ai-spec 0.13.0
File Interpreter ABI Platform Actions
sectum_ai_spec-0.13.0-py3-none-any.whl Python 3 none any Details for sectum_ai_spec-0.13.0-py3-none-any.whl

Total release size: 93.8 kB

Release files / sectum_ai_spec-0.13.0.tar.gz

Download URL sectum_ai_spec-0.13.0.tar.gz
Size 39.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c2935c535bca2cf9222ae2ee57b81837bdf8195eee8448808c640b9cc169af4f
BLAKE2b-256 checksum
How to use checksums
7ea9509489f65cae182dbbb25b259bc6ec057ed63e9533bf7a2476acd12a5a15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Release files / sectum_ai_spec-0.13.0-py3-none-any.whl

Download URL sectum_ai_spec-0.13.0-py3-none-any.whl
Size 54.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0314dc24899997a3e9d20461f14ab618aa59bede89e519f7faf32cd000c4486f
BLAKE2b-256 checksum
How to use checksums
5e5fc074a05aa8d5f547e670179761289deea275d9e60ea0b401c93ca7554a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Security for sectum-ai-spec 0.13.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sectum_ai_spec-0.13.0.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 Nov 6, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.13.0 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