Slice Orchestrator
Deterministic Full-Lifecycle SDLC Governance for AI Coding Agents
From Specification and Multi-Slice DAG to Tamper-Proof Cryptographic PR Gating.
🛑 The Problem with Modern Coding Agents
AI coding assistants (Cursor, Claude Code, Devin, Copilot) are remarkably productive, but they lack engineering discipline and mechanical accountability:
- 🚨 Scope Creep: You asked for a 2-line bugfix; the agent casually modified 14 unrelated files and ran
git add .. - 🤥 Hallucinated Completion: The agent claims "All 25 tests passed! Ready to merge!" without having run a single command or while ignoring hidden failures.
- 🧪 Test Tampering: When a test fails, the agent secretly deletes assertions or mocks them out to turn the suite green.
- 💥 Context Amnesia: Your IDE crashes or you switch chat sessions, and the agent loses track of work items, re-doing changes or breaking Git history.
- 🛡️ Failing Prompt Guardrails: Natural language prompts like "Please only touch file X" or "Never commit broken code" routinely fail against prompt injection, context exhaustion, or instruction drift.
⚡ The Solution: Deterministic Full-Lifecycle SDLC
Slice Orchestrator is an out-of-process, deterministic control plane that sits between your AI assistant and your Git repository. It replaces wishful prompts with mechanically enforced quality gates across the entire software development lifecycle:
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ THE GOVERNED AGENTIC SDLC (ENGINE ARCHITECTURE) │
├─────────────────────────────────────────────────────────────────────────────────────────────┤
│ │
│ 1. SPEC & SCOPE 2. ARCH REVIEW 3. GOVERNED IMPLEMENTATION │
│ ┌──────────────────────┐ ┌──────────────────────┐ ┌────────────────────────────┐ │
│ │ • Objectives & Grill ├────►│ • Independent Review ├────►│ • Strict Sandbox Scope │ │
│ │ • Scope Manifest AST │ │ • Invariant Baseline │ │ • Dual-Engine Router │ │
│ │ • Baseline Checksums │ │ • Plan Pre-Approval │ │ • (Cloud ➔ Ollama <500ms) │ │
│ └──────────────────────┘ └──────────────────────┘ └─────────────┬──────────────┘ │
│ │ │
│ ▼ │
│ 6. BINARY MUTANT ARBITRAGE 5. DEVELOPER ARMOR 4. TEST VERIFICATION │
│ ┌──────────────────────┐ ┌──────────────────────┐ ┌────────────────────────────┐ │
│ │ • Boundary Mutants │◄────┤ • 1-Click Auto-Fix │◄────┤ • Control-Plane Runner │ │
│ │ • Binary Exit 0 or 1 │ │ • Revert Scope Drift │ │ • Anti-Tampering (<125ms) │ │
│ │ • No LLM Debates │ │ • Restore Base Tests │ │ • Cryptographic HMAC-SHA256│ │
│ └──────────┬───────────┘ └──────────┬───────────┘ └────────────────────────────┘ │
│ │ ▲ (On Gate Rejection) │ │
│ │ (Mutants Pass) └──────────────────────────────────────────────┘ │
│ ▼ │
│ 7. MULTI-SLICE DAG 8. ZERO-TRUST CI GATE 9. ATOMIC COMMIT & RELEASE │
│ ┌──────────────────────┐ ┌──────────────────────┐ ┌────────────────────────────┐ │
│ │ • Prereq Resolution ├────►│ • GitHub Action Gate ├────►│ • Non-Divergent Git Tree │ │
│ │ • Predictive Conflicts│ │ • Scope Diff & HMAC │ │ • Immutable SQLite Log │ │
│ │ • `slice graph` │ │ • Hosted Trust Anchor│ │ • Provenance Metrics │ │
│ └──────────────────────┘ └──────────────────────┘ └────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
Key Guarantees (v0.5 Engine)
- 🔒 Scope Manifest Enforcement: The approved plan declares the exact file patterns the agent is permitted to touch. Any unauthorized addition, modification, or deletion is mechanically rejected at the commit gate.
- 📜 Authoritative HMAC Test Receipts: Test execution runs strictly through the control plane (
slice_run_tests). Receipts are cryptographically bound to the exact candidate Git tree OID and workspace revision digest. Self-reported agent claims are treated as inert text. - 🛡️ Test-Tampering Guards & Developer Armor: Baseline tests are checksummed. Any deletion or weakening of assertions is intercepted in < 200 ms. 1-click healing (
slice remediate --auto-fix) automatically restores tests and removes rogue files. - ⚔️ Binary Mutant Arbitrage: Eliminates subjective LLM debates. The adversarial reviewer generates concrete mutant unit tests targeting edge cases and invariants. Verdict is 100% binary (exit 0 or 1).
- ⚡ Heterogeneous Inference Router: Default cloud API execution (Anthropic, OpenAI, Gemini) with seamless < 500 ms fallback cascade to local Ollama if VRAM saturates.
- 🌐 Enterprise Context Bus & Conflict Engine: Synchronizes agent memories across engineering teams and predicts Git merge collisions before PR creation.
- 🕸️ Multi-Slice Dependency DAG: Coordinate complex epics where Slice S2 depends on Slice S1; downstream slices are blocked from commit until prerequisites reach
COMPLETE. - 🤖 Zero-Trust CI Gatekeeper: Includes a native GitHub Action (
action.yml) and CLI command (slice verify-pr) to enforce governance before merge. - 💾 Crash-Proof Event Sourcing: Every state transition is recorded in an append-only, HMAC-chained SQLite log. If your IDE restarts, the slice resumes instantly with zero lost context.
- 🔌 Host-Agnostic Model Context Protocol (MCP): Exposes 14 standardized tools over stdio. Works identically with Cursor Chat and Claude Code.
📊 Standard AI Agent vs. Slice-Governed Agent
| Feature | Standard AI Coding Assistant | With Slice Orchestrator (v0.5) |
|---|---|---|
| File Containment | Prompts like "don't edit other files" (often ignored) | Strict Scope Manifest: Commit gate blocks unapproved file diffs |
| Test Verification | Agent claims "Tests pass" in markdown | HMAC-Signed Receipts: Verified execution via control-plane runner |
| Test Integrity | Agent can weaken or delete failing tests | Tamper Detection: Baseline tests are checksummed (< 200 ms intercept) |
| Auto-Fix | Manual prompt loops to fix failed gates | Developer Armor: 1-click automatic restoration (slice remediate --auto-fix) |
| Review Process | Subjective LLM textual debates | Binary Mutant Arbitrage: Executable mutant tests (exit code 0/1) |
| Multi-Agent Coordination | Agents overwrite each other's work | Shared Context Bus & Git Conflict Engine: Predictive collision detection |
| Complex Epics | Fragile mega-prompts that hallucinate | Multi-Slice DAG: Explicit dependency tracking (slice graph) |
| CI / PR Enforcement | Manual code review fatigue | Zero-Trust CI Gate: Automated PR verification (action.yml) |
| Crash Recovery | Session lost on IDE quit or reload | Durable SQLite State: Resumes from exact state and sequence |
| Audit Trail | Ephemeral, lossy chat logs | Immutable Event Stream: Cryptographically chained audit trail |
🚀 One-Time Setup: Govern ANY Project in 60 Seconds
You do not need to rewrite your application or add vendor locks. Slice Orchestrator lives out-of-process.
Option A: The 10-Second Instant Setup (uvx / slice init)
In your target project's root directory:
# Zero-clone instant execution (recommended via PyPI / uvx):
uvx slice-orchestrator init
# Or from a local clone:
uv run --project ~/slice-orchestrator slice init
This automatically:
- Detects your language ecosystem (Python, TypeScript/Node, Rust, Go).
- Generates an optimized
.slice.tomlpolyglot config. - Generates
.mcp.jsonfor immediate Cursor & Claude Code discovery. - Appends
.orchestrator_slice/to.gitignore.
Option B: Manual Setup
Step 1: Clone Slice Orchestrator (Once on your machine)
git clone https://github.com/Guilhem23/slice-orchestrator.git ~/slice-orchestrator
cd ~/slice-orchestrator
uv sync --extra test
uv run slice doctor
(Confirms 19/19 passed.)
Step 2: Enable Governance in Your Target Project
In the root of your existing project, add .mcp.json:
{
"mcpServers": {
"slice-orchestrator": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--project",
"/absolute/path/to/slice-orchestrator",
"python3",
"-m",
"slice_orchestrator.mcp_server"
],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}
Step 3: Add Runtime State to .gitignore
In your target project's .gitignore:
.orchestrator_slice/
Step 4: Prompt Your Agent!
Open Cursor or Claude Code in your target project:
"Use Slice Orchestrator to plan and implement slice S1: Add user authentication. Strictly follow the governed lifecycle from planning to commit gate."
👉 For an automated copy-paste setup prompt, see integration-prompt.md.
🛠️ The 14 Governed MCP Tools
Slice Orchestrator exposes a disciplined toolkit covering every phase of engineering:
| Tool | Phase | Purpose |
|---|---|---|
slice_start |
Initialization | Initialize a slice run with a defined governance profile |
slice_context |
Discovery | Inspect slice state, active assignments, and workspace digests |
slice_grill |
Requirements | Clarify ambiguities before code generation begins |
slice_plan |
Planning | Persist structured objective, test plan, and scope manifest |
slice_work_list |
Execution | List actionable tasks, dependencies, and execution status |
slice_dispatch |
Execution | Claim an assignment bound to an actor role |
slice_record_result |
Execution | Record worker artifacts, diffs, and learnings |
slice_run_tests |
Verification | Execute tests and issue a cryptographic HMAC receipt |
slice_status |
Observability | Query state machine status, sequence, and blocker flags |
slice_report |
Observability | Generate comprehensive governance summary |
slice_request_review |
Quality Gate | Request independent architecture or adversarial review |
slice_remediate |
Remediation | Process review findings and generate remediation tasks |
slice_gate |
Quality Gate | Evaluate deterministic preconditions for commit |
slice_finalize |
Delivery | Reconcile governance, record commit, and transition to COMPLETE |
💻 CLI Command Reference
Manage slices, inspect event streams, and visualize dependencies directly from your terminal:
# Setup & Health
slice init # 60-second zero-friction onboarding
slice doctor # Check trust anchors and toolchain health
slice demo # 15-second viral Monday Morning Trigger demo (< 200 ms)
# Planning & Execution
slice plan S1 # Initialize and validate plan
slice status S1 # Show state machine status
slice run S1 # Autonomously drive slice to completion
slice resume S1 --with-packet # Resume with full remediation context
# Remediation & Quality (Developer Armor)
slice remediate S1 --prompt # Export copy-paste Markdown remediation prompt
slice remediate S1 --auto-fix # 1-Click automated healing (tamper & scope revert)
# Multi-Slice DAG
slice graph # Display ASCII dependency tree of all slices
slice graph --json # Machine-readable DAG nodes & edges
# CI & Pull Request Verification
slice verify-pr # Authoritative CI gatekeeper (diff, scope, HMAC)
# Audit, Observability & Metrics
slice explain S1 # Deep diagnostic explain dump
slice timeline S1 # Ordered event timeline with durations
slice inspect S1 # Raw JSON event stream
slice export S1 # Export reproducible run package
slice metrics S1 # Authoritative provenance metrics
Run slice <command> --help for full options.
🛡️ GitHub Action CI Gatekeeper
Enforce zero-trust governance on AI-generated pull requests in CI by adding .github/workflows/slice-gate.yml:
name: "Agent PR Governance Gate"
on:
pull_request:
branches: [main, master]
jobs:
slice-gatekeeper:
runs-on: ubuntu-latest
steps:
- name: Checkout Code with Full History
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Verify Slice Governance
uses: Guilhem23/slice-orchestrator@main
with:
base-ref: "origin/${{ github.base_ref }}"
🏢 Enterprise & Compliance Standards
Slice Orchestrator addresses emerging software supply chain and AI compliance frameworks out of the box:
- EU AI Act & GPAI (Article 14 - Human Oversight & Traceability): Full auditability of all agent decisions, tools invoked, and verified diffs.
- NIST Secure Software Development Framework (SSDF / SP 800-218): Prevents test tampering and verifies that delivered software strictly matches authorized change sets.
- SOC 2 Type II & DORA (Digital Operational Resilience Act): Non-repudiable audit logs backed by SQLite and cryptographic chaining.
📁 Repository Layout
slice_orchestrator/ Core runtime (control store, state machine, gates, MCP server, CLI)
tests/ 278 tests (security, MCP protocol, cross-host isolation, DAG, governance suite)
.orchestrator/ JSON schemas, transition policies, protocol specifications
docs/ Architecture, host integration guides, masterplan, and observability specs
docs/archive/ Curated historical validation & remediation audit reports
test-project/ Adversarial test fixtures for automated security regression suites
action.yml Reusable GitHub Action composite gatekeeper
🧪 Running the Test Suite
Slice Orchestrator is backed by an automated regression test suite (275 tests):
uv sync --extra test
uv run python3 -m pytest tests/ -q
======================= 275 passed in 123.08s (0:02:03) ========================
🤝 Contributing
Contributions are welcome! Please read CONTRIBUTING.md before submitting a PR. All control-plane changes must include automated regression tests and maintain fail-closed guarantees.
📄 License
Distributed under the MIT License.
Metadata
Release files for slice-orchestrator 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slice_orchestrator-0.5.0.tar.gz | 187.4 kB | With provenance | Details for slice_orchestrator-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slice_orchestrator-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for slice_orchestrator-0.5.0-py3-none-any.whl |
Total release size: 324.0 kB
Release files / slice_orchestrator-0.5.0.tar.gz
| Download URL | slice_orchestrator-0.5.0.tar.gz |
|---|---|
| Size | 187.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
506b5840eafd177b42dbfda105b8416f18f1f0c4ec0542f5553460ce5ce3dd94
|
|
BLAKE2b-256 checksum How to use checksums |
3e5fc1e693608fa6cae741b2b6e77bd1ffde300d36fc84ba6b6e15dc3074892f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / slice_orchestrator-0.5.0-py3-none-any.whl
| Download URL | slice_orchestrator-0.5.0-py3-none-any.whl |
|---|---|
| Size | 136.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bc033916794915be1dae8ad106244d4e5978fbe76a0a1c1f535a798ab35dbf6
|
|
BLAKE2b-256 checksum How to use checksums |
b84f44681ae675bd2d797dd8227beebe185ba4dfe21d1a7d9685cdccda73b791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logSecurity for slice-orchestrator 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for slice_orchestrator-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.