A zero-dependency, production-grade ISO 9001:2015 / Agile V Quality Management System (QMS) and AgentOps Governance Engine for autonomous coding agents (Google Antigravity, Claude Code, and MCP-compatible IDEs).
flowchart TD
Req["User Engineering Request"] --> E1["Echelon 1: Normative Planning & Frozen Baseline<br/>Risk Matrix (L0-L4) + AOP Solvability + HMAC-SHA256 Gate Seal"]
E1 --> E2["Echelon 2: SOP-Agent Finite State Machine<br/>PLANNING -> TEST_DESIGN -> SYNTHESIS -> VERIFICATION -> CAPA"]
E2 --> E3["Echelon 3: Two-Phase Serialization & Role Isolation<br/>Test-Designer (tests/**) vs Build-Agent (src/**)"]
E3 --> E4["Echelon 4: Swiss Cheese Guardrails & Planarian Rollback<br/>PreToolUse Shell/File Guard + Safe Backup before Restore"]
E4 --> E5["Echelon 5: Independent Verification & W3C PROV-DM Audit Chain<br/>SHA-256 EvidenceUnits + Immutable Audit Ledger"]
E5 --> E6["Echelon 6: CAPA / PDCA Continuous Improvement<br/>ExpeL Rule Weighting + OptoPrime Textual Gradients + Trace2Skill"]
- Cryptographic Human Gate 1 Seals (
HMAC-SHA256):- Tasks classified as
L2-L4require explicit Human Gate 1 approval (approve-gate1) signed with a workspace-local HMAC key (.supergraph/.gate_secretorISO9000_GATE_SECRET). Manual text tampering ofhuman_gate_1_approved: trueinfrozen_baseline.yamlwithout a validgate_seal_hmacis automatically rejected.
- Tasks classified as
- Self-Grading Bias Prevention (File & Shell Sabotage Guard):
- Enforces strict role separation between
TEST_DESIGN(test-designer, restricted totests/**) andSYNTHESIS(implementer, restricted tosrc/**,app/**). - Intercepts both direct file tools (
write_file,edit_file,Write,Edit) and shell redirection/mutation commands (run_command,Bash) targetingtests/or.supergraph/frozen_baseline.yaml.
- Enforces strict role separation between
- Safe Planarian Asymmetric Rollback:
- Captures clean workspace statepoints (
.supergraph/statepoints/<node_id>/) prior to synthesis. - Upon 3 consecutive oracle failures, automatically backs up in-progress files to
.supergraph/rollback_backups/<timestamp>/before restoring the clean statepoint.
- Captures clean workspace statepoints (
- Multi-Provider LLM Adapter & Own-Target Framing:
- Supports
offline(deterministic regex/clause decomposition),argon(Gemini 4 Argon daemon),openai, andanthropicproviders with automatic fallback and domain-neutral prompt framing.
- Supports
- 1-Click Hook Installer & Built-in JSON-RPC 2.0 MCP Server:
- Generates ready-to-use
PreToolUse,PostToolUse, andStophooks for Antigravity Golden Stack (supergraph,antigravity-monitor,agents-learning) and Claude Code (.claude/settings.json). - Exposes all 6 Echelons over stdio JSON-RPC 2.0 (
iso9000-agentops-mcp).
- Generates ready-to-use
pip install -e ".[dev]"# 1. Initialize an L3 Frozen Baseline
iso9000-agentops --workspace . init-baseline "(REQ-001) Add HMAC auth; (REQ-002) Add audit log" --risk L3 --offline
# 2. Approve Human Gate 1 (writes 64-char HMAC-SHA256 seal)
iso9000-agentops --workspace . approve-gate1
# 3. Transition to TEST_DESIGN (Test-Designer role)
iso9000-agentops --workspace . set-phase TEST_DESIGN --role test-designer --emit-brief
# 4. Transition to SYNTHESIS (Build-Agent role) & Save Statepoint
iso9000-agentops --workspace . set-phase SYNTHESIS --role implementer --emit-brief
iso9000-agentops --workspace . checkpoint --label pre_synthesis
# 5. Run Independent Verification Oracle & Build W3C PROV-DM Audit Chain
iso9000-agentops --workspace . verify --cmd "pytest -q"
# 6. Run CAPA / ExpeL Consolidation & Trace2Skill Extraction
iso9000-agentops --workspace . capa --trace2skill --skill-name verified-auth-sop --offline# Install Antigravity Golden Stack plugins
iso9000-agentops install-hooks --target antigravity --dest ~/.gemini/config/plugins
# Install Claude Code lifecycle hooks
iso9000-agentops install-hooks --target claude-code --dest ./.claudeAdd iso9000-agentops-mcp to your MCP client configuration:
{
"mcpServers": {
"iso9000-agentops": {
"command": "iso9000-agentops-mcp",
"args": []
}
}
}Run iso9000-agentops benchmark or pytest tests/test_iso9000_agentops.py -v:
| Sandbox | Target Defect Class | Mechanism Verified | Result |
|---|---|---|---|
SB1_SelfGradingBias_Sabotage |
Unsealed Gate 1 bypass + direct/shell mutation of tests/ during SYNTHESIS |
verify_gate1_hmac + evaluate_pre_tool_guard |
PASSED (100% Blocked) |
SB2_Planarian_AsymmetricRollback |
Hallucination spiral (3 consecutive test failures) + work loss risk | Backup to .supergraph/rollback_backups/ + Statepoint restore |
PASSED (100% Restored) |
SB3_CAPA_ExpeL_And_OSS_Audit |
Provenance drift + recurring defects + OSS release leakage | W3C PROV-DM audit_chain.json + Trace2Skill + 5-Gate OSS Audit |
PASSED (100% Verified) |
Released under the MIT License. Copyright (c) 2026 orakulzero.