Skip to main content

Sectum AI - Pydantic data models and JSON Schema for the verification spec.

Project description

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 is also published as a standalone JSON Schema document under sectum_ai/spec/schemas/<Model>.schema.json (shipped in the wheel). 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sectum_ai_spec-0.1.2.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sectum_ai_spec-0.1.2-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file sectum_ai_spec-0.1.2.tar.gz.

File metadata

  • Download URL: sectum_ai_spec-0.1.2.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sectum_ai_spec-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f29882b8a8e4d1427a1e4a61485dbf8e2b5100d1b7be8e5d4aa42323ba976214
MD5 a4d143c83fe7b6edef68b0de91da59bf
BLAKE2b-256 296d284f92b7d98d3a6a9392832282a1dfd65d3d297676827e239620b67a2d14

See more details on using hashes here.

Provenance

The following attestation bundles were made for sectum_ai_spec-0.1.2.tar.gz:

Publisher: release.yml on sectum-ai/sectum-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sectum_ai_spec-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sectum_ai_spec-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sectum_ai_spec-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32d2295c24d1ce33a7a0181ee19e7b3f89c59d9a69eb24f7dcd302ad9f834c37
MD5 ac8b878f1b6f4c1109b8b91125ae60c7
BLAKE2b-256 5672dc6af4e08a846c653d0a1d79f267fe2edbcd2b13b9c1387ea183dfd8cf7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sectum_ai_spec-0.1.2-py3-none-any.whl:

Publisher: release.yml on sectum-ai/sectum-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page