Version: 0.1.2
Release Date: 2026-03-20
Status: Initial Release - Constitutional Governance Core
Your AI agent has no explicit governance. Here's how to give it one — with validation.
Technical framework for designing and validating AI governance using constitutional principles, operational state-machine control logic, explicit guard conditions, and schema/consistency validation.
This repository is the technical core of SPECULA v0.1.
New here? Start from the Quick Start guide · Avvio rapido (IT)
This repository is one of three related SPECULA repositories:
| Repository | Primary purpose | Primary audience |
|---|---|---|
specula-framework |
Canonical docs/specs/schemas/runtime profile | Governance architects, contributors, technical leads |
specula-method |
Strategic foresight branding method and facilitation profile | Strategists, designers, innovation teams |
specula-skill (this repo) |
Constitution/state-machine implementation skill | AI engineers, governance implementers |
Choose your entry point:
- If you need practical constitution/state-machine implementation examples: start here.
- If you need canonical governance specs and runtime contracts: go to
specula-framework. - If you need facilitation and method process: go to
specula-method.
- AI engineers implementing governance controls
- Governance architects operationalizing constitutions into state logic
- Teams validating constitution/state-machine alignment before runtime integration
- Constitutional design patterns (principles, values, constraints)
- State machine operationalization (states, transitions, guards)
- Guard condition specification and mapping
- JSON schema validation (constitution + state machine)
- Constitution/state machine integration checks
- Working templates and validator tool
- Manifesto and method layers (
SPECULA-MANIFESTO.md,METHOD.md) - Domain examples: luxury-fashion-brand (fictional) and community-space-brand (real, derived from Specula Method)
- Workflow orchestration validation (planned v0.2)
- Prompt playbook/template generation (planned v0.2)
- Runtime execution trace validation (planned v0.2+)
- Identity/memory frameworks (planned v0.3+)
- SPECULA Manifesto - Philosophy and vision
- SPECULA Method - Design methodology and patterns
- Technical Skill (This Repository) - Implementable artifacts and validation
Use layers 1-2 for context, then layer 3 for implementation.
This repository is aligned to:
- specula-framework for canonical runtime terminology and governance direction
- specula-method for open method and phase semantics
Formal mapping and scope boundary are documented in ALIGNMENT.md.
specula-skill/
├── ALIGNMENT.md
├── SPECULA-MANIFESTO.md
├── METHOD.md
├── SKILL.md
├── README.md
├── CHANGELOG.md
├── LICENSE
├── requirements.txt
├── scripts/
│ └── validate_specula.py
├── references/
│ ├── schemas-constitution.json
│ ├── schemas-statemachine.json
│ └── versioning.md
├── templates/
│ ├── example-constitution.json
│ └── example-state-machine.json
├── examples/
│ ├── README.md
│ └── luxury-fashion-brand/
│ ├── README.md
│ ├── brand-values.md
│ ├── constitution.json
│ ├── state-machine.json
│ └── validation-results.txt
└── docs/
└── specula-documentazione.html
- Install dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- Validate sample artifacts:
python3 scripts/validate_specula.py \
--constitution templates/example-constitution.json \
--state-machine templates/example-state-machine.json- Validate your own artifacts:
python3 scripts/validate_specula.py \
--constitution your-constitution.json \
--state-machine your-state-machine.json- Validate the identity-as-law example:
python3 scripts/validate_specula.py \
--constitution examples/luxury-fashion-brand/constitution.json \
--state-machine examples/luxury-fashion-brand/state-machine.json/scripts/validate_specula.py performs:
- JSON parsing checks
- JSON Schema validation (when
jsonschemais installed) - logical consistency checks for constitutions
- logical consistency checks for state machines
- constitution/state machine integration checks
Exit behavior:
0: no validation errors1: one or more validation errors
Warnings are non-blocking but should be reviewed.
- Constitution and state machine design + validation core
- Workflow validation
- Prompt playbook templates
- Additional domain-specific example packs
- Runtime wrapper bridge (
meta/payload) for interoperability
- Identity and memory frameworks
- Runtime trace extensions
- Governance performance metrics
- Full platform integration
- Community extensions
- Production deployment guides
- Governance artifact versioning rules:
references/versioning.md - Canonical technical reference for the skill:
SKILL.md - Templates are starting points and should be adapted per domain.
- For attribution/licensing boundary against
specula-method, seeALIGNMENT.md.