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.0 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, 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;
  • 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 has a migration branch that consumes it from this repository. 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.1.tar.gz (48.8 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.1-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: govengine-0.1.1.tar.gz
  • Upload date:
  • Size: 48.8 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.1.tar.gz
Algorithm Hash digest
SHA256 4f463d128030ec9fc7673931885f95c150fd2130d0c6586f08fc6aade6ae6ff2
MD5 6f27824ad2928f7f198479698e7757cd
BLAKE2b-256 5130c7891815299cbcf0720398e802b34c08074904f45441b99a32964d8b8ec1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: govengine-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 53.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 846db3e21750b652a184e76d4325d393add10effc24f1a78f25d943df63c24ee
MD5 9016156a5a17bb07e251aaabe25e9f29
BLAKE2b-256 677edab37ab98410c098613a1f770317e080611c6d43a9fa2b7cfd1040cb7a5d

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