Skip to content

oddtitoreal/specula-skill

Repository files navigation

SPECULA Governance Framework

Version 0.1.2 Status Initial Release License MIT

Version: 0.1.2
Release Date: 2026-03-20
Status: Initial Release - Constitutional Governance Core

What This Is

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)

SPECULA Ecosystem

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.

Who This Is For

  • AI engineers implementing governance controls
  • Governance architects operationalizing constitutions into state logic
  • Teams validating constitution/state-machine alignment before runtime integration

What's In v0.1.x

  • 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)

What's Not In v0.1.x

  • 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+)

Understanding SPECULA: Three Layers

  1. SPECULA Manifesto - Philosophy and vision
  2. SPECULA Method - Design methodology and patterns
  3. Technical Skill (This Repository) - Implementable artifacts and validation

Use layers 1-2 for context, then layer 3 for implementation.

Coherence with Method/Framework

This repository is aligned to:

Formal mapping and scope boundary are documented in ALIGNMENT.md.

Repository Layout

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

Quick Start

  1. Install dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Validate sample artifacts:
python3 scripts/validate_specula.py \
  --constitution templates/example-constitution.json \
  --state-machine templates/example-state-machine.json
  1. Validate your own artifacts:
python3 scripts/validate_specula.py \
  --constitution your-constitution.json \
  --state-machine your-state-machine.json
  1. 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

Validator Behavior

/scripts/validate_specula.py performs:

  • JSON parsing checks
  • JSON Schema validation (when jsonschema is installed)
  • logical consistency checks for constitutions
  • logical consistency checks for state machines
  • constitution/state machine integration checks

Exit behavior:

  • 0: no validation errors
  • 1: one or more validation errors

Warnings are non-blocking but should be reviewed.

Roadmap

v0.1 (Current - 2026-03-20)

  • Constitution and state machine design + validation core

v0.2 (Q2 2026)

  • Workflow validation
  • Prompt playbook templates
  • Additional domain-specific example packs
  • Runtime wrapper bridge (meta/payload) for interoperability

v0.3 (Q3 2026)

  • Identity and memory frameworks
  • Runtime trace extensions
  • Governance performance metrics

v1.0 (2027)

  • Full platform integration
  • Community extensions
  • Production deployment guides

Notes

  • 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, see ALIGNMENT.md.

About

SPECULA v0.1 - Constitutional AI governance framework

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages