Validator for Source of Truth (.sot) files - epistemic quality verification for AI-safe documentation
Project description
sot-validator
Validator for Source of Truth (.sot) files — epistemic quality verification for AI-safe documentation.
What is a .sot file?
A Source of Truth (.sot) file is a markdown document structured to communicate explicit confidence levels for all claims, enabling readers (human or AI) to calibrate their trust appropriately.
Part of the Clarity Gate ecosystem for epistemic quality verification.
Installation
pip install sot-validator
CLI Usage
# Validate a single file
sot-validator project.sot
# Validate multiple files
sot-validator docs/*.sot
# Output as JSON
sot-validator project.sot --json
# Quiet mode (errors only)
sot-validator project.sot -q
Python API
from sot_validator import validate, is_valid, detect, validate_file
# Full validation with errors and warnings
result = validate(file_content)
print(result.valid) # bool
print(result.errors) # list of ValidationError
print(result.warnings) # list of ValidationError
# Quick check
if is_valid(file_content):
print('Document passes validation')
# Detect if content is .sot format
if detect(file_content):
print('This appears to be a .sot file')
# Validate from file path
result = validate_file('project.sot')
Validation Rules
Required Elements
-- Source of Truthheader**Last Updated:**field**Owner:**field**Status:**field## Verification Statussection
Warnings
- Unqualified "VERIFIED" status (should be "with noted exceptions")
- Estimates in Verified Data section
- Missing staleness markers (
[STABLE],[VOLATILE], etc.)
Related
- Clarity Gate - Pre-ingestion verification for RAG systems
- Source of Truth Creator - Create .sot files
- cgd-validator - Validate .cgd files
File Format Specification
See the SOT and CGD File Format Specification.
License
CC BY 4.0 — Use freely with attribution.
Author
Francesco Marinoni Moretto
GitHub: @frmoretto
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sot_validator-0.1.0.tar.gz.
File metadata
- Download URL: sot_validator-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
752906159f3abf86a96e320ceb6d18a4672165a70bff646b0d345ec91a93e123
|
|
| MD5 |
9b58c9ce5bb8202cbaa334246939aea5
|
|
| BLAKE2b-256 |
3a356947b0b33477cf523312cbc1fc5b1c02bbfc18ca2192b3974952f71cb270
|
File details
Details for the file sot_validator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sot_validator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ae8b015c363edc9d2a82498a01f88e0e75a0b0cb74a438a77e06d310e2eb1e
|
|
| MD5 |
e440673df9a0b5aa67dc8c09e25a3cc9
|
|
| BLAKE2b-256 |
9043cb56fc99bb3c08d5bea7d60bedacbdb5f57fcf9f10dc7d0ec5bb36be1e4a
|