[ADR-0119] DGA 治理重构 Phase 1+2+4:本体论 schema/证据标准 v2/IR-0012~0014 - #537
[ADR-0119] DGA 治理重构 Phase 1+2+4:本体论 schema/证据标准 v2/IR-0012~0014#537randypanding wants to merge 4 commits into
Conversation
…paths(ADR-0119 Phase 2)
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟡 Changes recommended
引入 stronghold=private 与多处 runtime/bin 路径/占位 irRef 会导致 drift-check 与验收规格在当前仓状态下不可用或不可追溯。
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
本 PR 以 ADR-0119(DGA 治理重构 Phase 1+2+4) 为锚点,落地 DGA 本体论相关的两份治理 schema、更新证据标准文档以引入 v2 扩展 profile,并新增 IR-0012~0014 的 spec,同时退役 standards/agent/ 下的 5 份旧 schema 文件、补充组织地图与 provider 登记。
Changes:
- 新增
governance/dga/下两份 DGA schema(闭环六元组 + 校准域三快照)。 - 更新证据标准 README,引入 Evidence schema v2(DGA 六元组扩展 profile)说明;新增 IR-0012~0014 specs。
- 更新
REPOS.yaml/providers.yaml以登记github-mirror与stronghold(CNB 私有阵地)等信息,并删除standards/agent/旧 schema。
File summaries
| File | Description |
|---|---|
| standards/evidence/README.md | 为证据标准补充 v2(DGA 六元组扩展 profile)文档说明。 |
| standards/agent/tool.schema.yaml | 退役旧 tool 声明 schema(文件删除)。 |
| standards/agent/team.schema.yaml | 退役旧 team 声明 schema(文件删除)。 |
| standards/agent/skill.schema.yaml | 退役旧 skill 声明 schema(文件删除)。 |
| standards/agent/event.schema.yaml | 退役旧 event 声明 schema(文件删除)。 |
| standards/agent/agent.schema.yaml | 退役旧 agent 声明 schema(文件删除)。 |
| specs/IR-0012/spec.md | 新增 IR-0012:DGA 本体论 schema 定案的验收规格。 |
| specs/IR-0013/spec.md | 新增 IR-0013:退役清单执行波次的验收规格。 |
| specs/IR-0014/spec.md | 新增 IR-0014:新治理体系验收 spec。 |
| governance/REPOS.yaml | 更新组织地图:调整 key_paths、登记 github-mirror 与 stronghold。 |
| governance/providers.yaml | 更新 provider 登记:cnb-private 条目从 proposed 进展为 accepted,并补充 secrets 引用。 |
| governance/dga/closed-loop-schema.yaml | 新增 DGA 六元组闭环 schema。 |
| governance/dga/calibration-domain.yaml | 新增校准域三快照 schema。 |
Review details
- Files reviewed: 13/13 changed files
- Comments generated: 7
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| - name: stronghold | ||
| layer: L1 | ||
| visibility: private | ||
| status: active | ||
| role: CNB 私有阵地(真值区,ADR-0108/S-7)——holdout 答案层+evalsets 答案域+判分 rubric+私有 spec;写权=P11(INV-04);引用纪律 sealed_sha256 指针(id@sha8) | ||
| key_paths: [answers/, ledger/stronghold.jsonl] | ||
| entry_protocol: false # CNB 私有仓,无 GitHub 协议块(drift §17 不适用);visibility=private 属三阵地结构例外,不计入 ADR-0020 公开政策 |
| - id: AC-1 | ||
| given: verify_all.py 全绿 | ||
| when: py -3 -X utf8 runtime/bin/verify_all.py | ||
| then: rc=0 | ||
| - id: AC-2 | ||
| given: verify_receipt_dga.py 全绿 | ||
| when: py -3 -X utf8 runtime/bin/test_verify_receipt_dga.py | ||
| then: rc=0 | ||
| - id: AC-3 | ||
| given: drift_probe.py 全绿 | ||
| when: py -3 -X utf8 runtime/bin/test_drift_probe.py | ||
| then: rc=0 |
| title: DGA 本体论 schema 定案 | ||
| irRef: Cloudbird-Software/.github#? | ||
| adr: ADR-0119 |
| title: 退役清单执行波次 | ||
| irRef: Cloudbird-Software/.github#? | ||
| adr: ADR-0119 |
| specVersion: 1 | ||
| title: 新治理体系验收 spec | ||
| irRef: Cloudbird-Software/.github#? | ||
| adr: ADR-0119 |
| ## Evidence schema v2 — DGA 六元组扩展 profile | ||
|
|
||
| > DGA-human-v1.1 §2.1 / §2.2;`runtime/bin/verify_receipt_dga.py` 执法。 | ||
|
|
||
| v2 在 v1 判定层/轨迹层/丢弃层之上,新增**六元组扩展 profile**: | ||
| 回执(receipt)或契约卡(contract card)可附加 `dga` 映射块, | ||
| 将 DGA 六元组显式绑定到证据实体。机器门 `verify_receipt_dga.py` | ||
| 按本 profile 校验映射齐备性;无 `dga` 块时回退为 legacy PASS | ||
| (不阻断既有四字段回执)。 |
| 不校验语义内容(语义由人工/上层 spec 负责)。 | ||
| - **契约卡复用**:契约卡已有 `## 六事映射` 小节, | ||
| `verify_receipt_dga.py` 复用 `six_element_check.py` 的小节截取逻辑 | ||
| 校验六元齐备;小节缺失或缺元均 FAIL。 |
Wave C 重构落地:governance/dga 两 schema、standards/evidence README v2、specs/IR-0012~0014、standards/agent 五 schema 退役。执行侧 drift_probe + verify_receipt_dga 双侧绿(verify_all 20 腿 rc=0)。详见 CEO 报告 #16。