[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110752":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":13,"starSnapshotCount":13,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},110752,"O9-RD-MAO-Governance","Over9rowth\u002FO9-RD-MAO-Governance","Over9rowth","Deterministic Software Engineering Governance for Multi-Agent Coding Workflows (CLI, .cursorrules, 4-Artifact Templates & 14-Chapter Guide) | 融合软件工程治理的多智能体编排框架与完全指南","",null,"Python",36,0,75,1,4,3,42.9,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33],"agent-orchestration","ai-governance","black-box-testing","claude-code","cursorrules","design-by-contract","llm-workflow","multi-agent-systems","o9-rd","software-engineering","2026-11-03 11:07:11","2026-11-23 16:29:48","# 🛡️ O9-RD-MAO-Governance\n\n**Verifiable Minimal Control Plane & Software Engineering Governance for Multi-Agent Coding Workflows.**\n\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue.svg)](.\u002FLICENSE)\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FO9--RD-v1.6.4-brightgreen.svg)](.\u002Fdocs\u002Fen\u002F00-O9-RD-Spec-v1.0-en.md)\n[![Zero Dependencies](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FControl%20Plane-Python%20Stdlib-yellow.svg)](.\u002Fgate_runner.py)\n[![Control Matrix](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FControl%20Matrix-9%20Gates%20Mapped-orange.svg)](.\u002Fdocs\u002FCONTROL-MATRIX.md)\n[![Author](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAuthor-Over9rowth-purple.svg)](https:\u002F\u002Fgithub.com\u002FOver9rowth)\n\n🌐 **English** | [🇨🇳 简体中文](.\u002FREADME_ZH.md)\n\n---\n\n## Why O9-RD?\n\n\"Wild\" multi-agent coding setups (treating LLMs like a group chat) fail in production due to **requirement hallucination**, **mutual flattery (sycophancy)**, and **reward hacking** (agents deleting test assertions, writing `TODO` stubs, or secretly lowering acceptance criteria).\n\n> **📌 Control Plane Scope & Engineering Honesty**: `gate_runner.py` (v1.6.4) provides a **verifiable minimal control plane**: G1 non-empty spec with structured `AC-xxx` table rows + G3 baseline lock (composite `manifest_sha256` over `spec_and_contracts.md` and every file under `o9_workspace\u002Fcontracts\u002F`, hash-chained HMAC trust root, `~\u002F.o9-trust\u002F` external key-fingerprint pinning & monotonic sequence) + G4 anti-stub\u002Ffake-assert scan (including `tests\u002F` & `.ipynb`, UTF-8 & UTF-16 BOM) + cryptographic bug closure signatures (`close-bug`) + G5 repo-root-confined evidence, `recorded_at`-ordered QA run selection & independent QA closer label binding & HMAC BUG_CLOSE record + G6 structural RTM table verification + G7 3-decision sign-off check, plus the `.o9_project_id` \u002F `~\u002F.o9-trust\u002Findex.tsv` local registry and the `trust-reset` recovery path (G3-03). **A signing secret ($\\ge 16$ characters) must be supplied via `O9_APPROVAL_SECRET` (or `--key`); operations fail-closed when no secret is configured.** Full control mappings (tool-enforced vs tool-validated vs manual-verified vs infra-boundary) and same-UID threat model limitations are documented in [`docs\u002FCONTROL-MATRIX.md`](.\u002Fdocs\u002FCONTROL-MATRIX.md), and every `tool-enforced` row is covered by `tests\u002Ftest_v16_controls.py`. G2 semantic peer review, container-level E2 sandboxing, secret custody against a same-UID agent, and production release execution remain governed by the SOP protocols, IDE rules and CI custody.\n\n**O9-RD** tames non-deterministic coding agents using a **verifiable deterministic software engineering control plane**:\n- 🔒 **G0.5 Two-Way Confirmation & G3 SHA-256 Baseline Lock**: Freeze specs and schemas cryptographically before coding. Agents cannot alter the exam paper to pass tests.\n- 🚦 **Risk-First Routing (`S \u002F M \u002F L` Tracks)**: 2-touchpoint fast track for UI\u002Fcopy tweaks (`S`), full contract review for features (`M`), and strict sandbox + fuzzing for Auth\u002FBilling\u002FDB ops (`L`).\n- 🙈 **G5 Black-Box Testing First**: QA agents run in clean sessions **without read access to `src\u002F`**, testing purely against the frozen contract before white-box inspection.\n- 🚫 **Verifiable Minimal Control Plane CLI (`gate_runner.py` v1.6.4)**: Multi-file `manifest_sha256` baseline lock, monotonic sequence and key-fingerprint pinning, cryptographic `close-bug` signature binding, fail-closed anti-stubbing, `recorded_at`-ordered QA evidence confined to the repo root, `trust-reset` recovery, and the full control enforcement mapping in [CONTROL-MATRIX.md](.\u002Fdocs\u002FCONTROL-MATRIX.md).\n\n---\n\n## ⚡ Quick Start (30 Seconds)\n\n### Option A: Drop-in Rules for Cursor \u002F Claude Code \u002F Windsurf\nCopy [`.cursorrules`](.\u002F.cursorrules) or [`CLAUDE.md`](.\u002FCLAUDE.md) into your project root to immediately enforce G0.5 confirmation, anti-stubbing, and black-box verification.\n\n### Option B: Run the Deterministic Control Plane CLI\nZero third-party dependencies (pure Python 3 standard library):\n```bash\n# 1. Initialize workspace (copies full 4-artifact templates, pins .o9_project_id + local index.tsv registry)\npython gate_runner.py init\n\n# 2. Freeze G3 baseline (blocks an empty spec \u002F missing AC-xxx rows; signs spec_sha256 + composite manifest_sha256)\nO9_APPROVAL_SECRET=\"my-super-secret-key-16\" python gate_runner.py freeze\n\n# 3. Bind detached human approval (bound to BOTH spec and manifest hashes; refuses a baseline mutated after freeze)\nO9_APPROVAL_SECRET=\"my-super-secret-key-16\" python gate_runner.py approve station_master\n\n# 4. Cryptographically sign bug closure (defect must exist in YAML first; item keys may be in any order)\nO9_APPROVAL_SECRET=\"my-super-secret-key-16\" python gate_runner.py close-bug BUG-001 qa_lead\n\n# 5. Run fail-closed G5 verification (HMAC trust root + manifest + repo-confined evidence + recorded_at-latest run)\nO9_APPROVAL_SECRET=\"my-super-secret-key-16\" python gate_runner.py check .\u002Fsrc --gate=G5 --require-approval\n\n# 6. Recovery only: if the external trust anchor is lost\u002Fbricked, re-establish trust (archives the old anchor + ledger)\nO9_APPROVAL_SECRET=\"my-super-secret-key-16\" python gate_runner.py trust-reset PRJ-2026-001\n```\n\n> 💡 Interface contract files placed under `o9_workspace\u002Fcontracts\u002F` are folded into the G3 `manifest_sha256` automatically, so a post-freeze edit to any of them circuit-breaks at `approve` and `check`.\n\n### Option C: Interactive Workflow Customizer (Meta-Prompt)\nPaste [`prompts\u002FMAO-Workflow-Coach-en.md`](.\u002Fprompts\u002FMAO-Workflow-Coach-en.md) into Claude or ChatGPT. Answer 4 short questions about your tech stack, and it will generate a custom, right-sized multi-agent workflow for your repo.\n\n---\n\n## 🏗️ Architecture (G0–G7 State Machine)\n\n```mermaid\nflowchart LR\n    G0[\"\u003Cb>G0 Route\u003C\u002Fb>\u003Cbr\u002F>S \u002F M \u002F L Track\"] --> G05[\"\u003Cb>G0.5 Confirm\u003C\u002Fb>\u003Cbr\u002F>In\u002FOut Scope & AC\"]\n    G05 --> G1[\"\u003Cb>G1 Contracts\u003C\u002Fb>\u003Cbr\u002F>Schema & Harness\"]\n    G1 --> G2[\"\u003Cb>G2 Blind Review\u003C\u002Fb>\u003Cbr\u002F>A.Arch \u002F B.Sec \u002F C.Simple\"]\n    G2 --> G3[\"\u003Cb>G3 SHA-256 Lock\u003C\u002Fb>\u003Cbr\u002F>Detached Approval\"]\n    G3 --> G4[\"\u003Cb>G4 Scoped Code\u003C\u002Fb>\u003Cbr\u002F>No TODO \u002F Write Lock\"]\n    G4 --> G5[\"\u003Cb>G5 Black-Box QA\u003C\u002Fb>\u003Cbr\u002F>Source Hidden First\"]\n    G5 -->|\"Bug (Coder!=Close)\"| G4\n    G5 --> G6[\"\u003Cb>G6 RTM Audit\u003C\u002Fb>\u003Cbr\u002F>Traceability Matrix\"]\n    G6 --> G7[\"\u003Cb>G7 Sign-off\u003C\u002Fb>\u003Cbr\u002F>Decoupled Release\"]\n```\n\n---\n\n## 📂 Repository Structure\n\n```text\n├── gate_runner.py               # Deterministic control-plane CLI (init \u002F freeze \u002F approve \u002F close-bug \u002F check)\n├── .cursorrules \u002F CLAUDE.md     # Drop-in governance rules for AI IDEs\n├── templates\u002F                   # Full 4-artifact templates (JSON\u002FYAML\u002FMD)\n├── prompts\u002F                     # Interactive Agile MAO Coach Meta-Prompts (EN & ZH)\n└── docs\u002F\n    ├── CONTROL-MATRIX.md                        # Control Implementation Matrix & Threat Model\n    ├── en\u002F00-O9-RD-Spec-v1.0-en.md              # Full English SOP & Agent Prompts\n    └── zh\u002F                                      # Full Chinese SOP & 14-Chapter Textbook\n```\n\n## 📜 License\nMIT License © 2026 **曾威长 (Over9rowth)**\n\n---\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fdocs\u002Fsuiren-badge.svg\" alt=\"OVER9ROWTH · 燧人计划\" width=\"400\" \u002F>\n\u003C\u002Fp>\n","O9-RD-MAO-Governance 是一个面向多智能体编程工作流的确定性软件工程治理框架。它通过轻量级 CLI 工具（gate_runner.py）、基于哈希链与 HMAC 的基线锁定机制、9 重可验证门控（G1–G9）、结构化验收标准（AC-xxx 表）、防 Stub\u002F伪断言扫描及加密缺陷闭环签名等技术，实现对 LLM 驱动多智能体协作过程的可控性、可追溯性与工程诚实性保障。项目不依赖第三方库，仅使用 Python 标准库，提供 4 类模板和 14 章完整指南。适用于需在生产环境中部署多智能体代码生成系统、强调合规性、可审计性与风险分级管控的研发团队或 AI 工程化实践场景。",2,"2026-11-24 04:39:31","CREATED_QUERY"]