Skip to main content

Carrier-agnostic governed execution services that consume SCLite contract lifecycle artifacts for policy-gated security automation.

Project description

GovEngine

pytest License: MIT Python 3.11+ Package: govengine 0.1.2 SCLite

GovEngine is a carrier-agnostic governed-execution core for policy-gated security automation.

It consumes SCLite as its contract lifecycle layer and provides reusable services around action validation, policy decisions, execution-contract shaping, signal/analysis/evidence policy contracts, execution-ticket checks, scope handling, command-shape normalization, and dry-run result assembly.

Project owner: Krzysztof Probola.

Why it exists

AI-assisted security workflows need a hard boundary between:

  1. what an agent or caller wants;
  2. what policy allows;
  3. what execution shape was prepared;
  4. what was approved;
  5. what was dry-run or executed;
  6. what evidence can be reviewed.

SCLite defines the auditable contract artifacts for that lifecycle. GovEngine is the reusable Python service layer that consumes those contracts and helps a host runtime enforce them without relying on prompt text alone.

Dependency direction

Ravenclaw -> GovEngine -> SCLite
  • SCLite owns schema-backed lifecycle artifacts and validation.
  • GovEngine owns reusable governed-execution helpers that consume SCLite artifacts.
  • Ravenclaw remains the reference runtime/control plane and concrete integration host.

GovEngine is not Ravenclaw, Logdash, an LLM agent loop, a scanner, or a protocol adapter.

What GovEngine includes now

  • action schema, validation, and compiler helpers;
  • capability recipe and tool-registry helpers;
  • semantic-loss classification helpers;
  • policy core and policy-gateway helpers;
  • execution-contract shaping/redaction helpers;
  • signal, analysis, and evidence-confirmation policy contracts;
  • approved-spec and execution-ticket validation helpers;
  • command-shape and scope helpers;
  • dry-run result assembly helpers;
  • explicit SCLite integration seams;
  • focused standalone pytest coverage and GitHub Actions CI.

What it intentionally does not include yet

  • live subprocess execution backend;
  • raw artifact storage/writes;
  • Logdash UI/API routes;
  • OpenClaw, MCP, A2A, or other protocol adapters;
  • LLM provider integrations;
  • Ravenclaw-specific personas, workspace state, or campaign UX;
  • production-readiness claims.

Current status

GovEngine is pre-alpha extraction work. The package is importable and tested, and Ravenclaw consumes the published package line while migration waves continue in this repository before release. The current public surface is intended for review and boundary hardening before any live execution backend is moved.

Installation

Once published to PyPI:

python -m pip install govengine

GovEngine depends on the PyPI distribution sclite-core while preserving the Python import package sclite.

For local development:

python -m venv .venv
. .venv/bin/activate
python -m pip install -e '.[dev]'
python -m pytest -q

Minimal smoke example

from govengine.action_compiler import compile_action_spec
from govengine.execution.runner import legacy_action_spec_dry_run_result

compiled = compile_action_spec({
    "action_type": "single_probe",
    "capability": "http_probe",
    "tool": "curl",
    "args": ["https://example.com"],
})

receipt = legacy_action_spec_dry_run_result(
    compiled_action=compiled,
    planned_commands=[["curl", "https://example.com"]],
)
assert receipt["status"] == "dry-run"

Documentation

Safety boundary

GovEngine should preserve deterministic governance over prompt-only behavior. Any future execution backend must be introduced behind explicit interfaces and tests, with Ravenclaw retaining the concrete runtime adapter until reviewed.

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

govengine-0.1.2.tar.gz (54.2 kB view details)

Uploaded Source

Built Distribution

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

govengine-0.1.2-py3-none-any.whl (57.6 kB view details)

Uploaded Python 3

File details

Details for the file govengine-0.1.2.tar.gz.

File metadata

  • Download URL: govengine-0.1.2.tar.gz
  • Upload date:
  • Size: 54.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for govengine-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0fd1d4d4d68d24768c3654bd26ccc8b6e8531b159d81b4ef962e8778b5f65a6e
MD5 5e855e1e62ca2748704d081eee7c1f81
BLAKE2b-256 e9006317f584ca90444f7a5375998ae739bf9132ff0b397fdce8bf5a34e6f786

See more details on using hashes here.

File details

Details for the file govengine-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: govengine-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 57.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for govengine-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0688b2511543f76202c05c8efc67210b75bf203272236e2919a5cfdb2f521e0
MD5 f8fdd0c94f6a6a489818fc3e33ad6787
BLAKE2b-256 cb5afe422c3a349c113eeea7138d5a821b360aba2dfd63e85018da8b2edc2ff0

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