Skip to main content

Constitutional governance for AI-assisted development — enforce engineering standards as a merge gate

Project description

Governova Scripts

The build tooling for the constitutional database. Three executables, all installed via the uv workspace.

Command Module Purpose
governova-compile governova_compile Parse every markdown constitution into compiled/constitution.json
governova-validate governova_validate Validate the compiled index — references, anti-patterns, hierarchy, links
governova-codegen governova_codegen Emit TypeScript types and Python re-export package from the schema

Quick start

# Bootstrap the workspace (from repo root)
uv sync

# Compile the constitutional database
uv run governova-compile

# Validate the compiled index
uv run governova-validate

# Validate strictly (fail on any warning)
uv run governova-validate --strict

# Regenerate TypeScript + Python types
uv run governova-codegen

Outputs

Path Description
compiled/constitution.json The compiled index (committed)
compiled/constitution.schema.json JSON Schema describing the index (committed)
compiled/checksum.txt SHA-256 of the index for tamper detection (committed)
platform/shared/types-ts/src/index.ts TypeScript type definitions (generated)
platform/shared/types-py/governova_types/models.py Python Pydantic re-exports (generated)

Exit codes

Code Meaning
0 Success
1 Compilation error (file not found, parse failure)
2 Validation error (strict mode triggered, integrity failure)
3 Codegen error (TS compilation, schema mismatch)

Tests

uv run pytest scripts/tests/

Development

uv run ruff format .
uv run ruff check . --fix
uv run mypy scripts/

All scripts are Layer 1 tooling — they read constitutions, never write them.

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

governova-0.1.0.tar.gz (288.4 kB view details)

Uploaded Source

Built Distribution

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

governova-0.1.0-py3-none-any.whl (281.9 kB view details)

Uploaded Python 3

File details

Details for the file governova-0.1.0.tar.gz.

File metadata

  • Download URL: governova-0.1.0.tar.gz
  • Upload date:
  • Size: 288.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for governova-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5dd75d95c1380be1111870fadd53707f68589b18b461771faca2ac9b848a366d
MD5 97e025ec478789f96eb5bd62993d3b73
BLAKE2b-256 bd1812ef9861337b1ac94a50d601089a6cdf0e707d6b5aa2dc9e6867fae2739b

See more details on using hashes here.

Provenance

The following attestation bundles were made for governova-0.1.0.tar.gz:

Publisher: release.yml on KSDRILL-SA/governova

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

File details

Details for the file governova-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: governova-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 281.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for governova-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eadc8e56523f44fffd05ba9e864720d8ae892aede5dc74866f6cbed1413a9834
MD5 b0de4123fa8bb761d18808cb20c3da2f
BLAKE2b-256 786ca9238b6d9989347c3cfd05912cd590b7519a32e95fd939115730e77032e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for governova-0.1.0-py3-none-any.whl:

Publisher: release.yml on KSDRILL-SA/governova

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