Skip to main content

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.

PyPI version License: CC BY 4.0

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 Truth header
  • **Last Updated:** field
  • **Owner:** field
  • **Status:** field
  • ## Verification Status section

Warnings

  • Unqualified "VERIFIED" status (should be "with noted exceptions")
  • Estimates in Verified Data section
  • Missing staleness markers ([STABLE], [VOLATILE], etc.)

Related

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


Download files

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

Source Distribution

sot_validator-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

sot_validator-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file sot_validator-0.1.1.tar.gz.

File metadata

  • Download URL: sot_validator-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for sot_validator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bff564629b8386827cdf11b4e52c7a746f0ab6e6d75e3f4a05b354d4782a2972
MD5 809a1813ffb4afdbb9cf0f11a5ef42f0
BLAKE2b-256 2a23ecb83599bbd1a73eff3ab59b498d20b08722a078e083f1e86ce7d5283bf6

See more details on using hashes here.

File details

Details for the file sot_validator-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sot_validator-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for sot_validator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 add6bf5e1ea6f71edffb73805d847de28eb20e750e7f83aa28fc6576a10928e2
MD5 18d59f6fd0093217c96d11c24ecdec58
BLAKE2b-256 461bd1886a27b83ce7718d5987c4863c7ec6fc851001cbf417354202eee03b78

See more details on using hashes here.

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