Deterministic Full-Lifecycle SDLC Governance for AI Coding Agents
From Specification and Multi-Slice DAG to Tamper-Proof Cryptographic PR Gating.
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.
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 β β
β ββββββββββββββββββββββββ ββββββββββββββββββββββββ ββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- π 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.
| 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 |
You do not need to rewrite your application or add vendor locks. Slice Orchestrator lives out-of-process.
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 initThis 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.
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.)
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"
}
}
}
}In your target project's .gitignore:
.orchestrator_slice/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.
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 |
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 metricsRun slice <command> --help for full options.
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 }}"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.
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
Slice Orchestrator is backed by an automated regression test suite (275 tests):
uv sync --extra test
uv run python3 -m pytest tests/ -q======================= 278 passed in 120.73s (0:02:00) ========================
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.
Distributed under the MIT License.
