KB-215A

Manifest S160 — Đ39 Enacted + Governance Agencies + Relations

5 min read Revision 1
manifests160dieu39governancephase0import

Manifest S160 — Đ39 + Governance Data

Soạn: S159 (2026-04-03). Mục đích: Agent đọc manifest → ghi file VPS → DOT import. Format: JSON. Agent parse sections bên dưới.

MANIFEST JSON

{
  "manifests": [
    {
      "type": "normative_law",
      "target_table": "normative_registry",
      "data": {
        "doc_type": "law",
        "article_number": "39",
        "title": "Luật Knowledge Graph",
        "title_en": "Knowledge Graph Governance Law",
        "version": "2.3",
        "status": "enacted",
        "enacted_session": "S159",
        "enacted_date": "2026-04-03",
        "council_rounds": 3,
        "council_scores": "Gemini 9.5 + GPT 8.8",
        "description": "26 bài toán, 36 DOT (18 cặp), 10 quy trình. Scaffold Graph + Priority Graph HTN + Self-Learning RLKGF + Conversational Acquisition.",
        "kb_path": "knowledge/dev/architecture/dieu39-knowledge-graph-law-draft.md",
        "dependencies": [0, "0-B", "0-G", 26, 27, 28, 29, 31, 32, 34, 35, 36, 37, 38]
      },
      "sections": [
        {"section_id": "§0", "title": "Tầm nhìn và Vị trí Chiến lược"},
        {"section_id": "§1", "title": "26 Bài toán"},
        {"section_id": "§2", "title": "Định nghĩa"},
        {"section_id": "§3-4", "title": "Chi tiết Nhóm A+B"},
        {"section_id": "§5", "title": "Chi tiết Nhóm C"},
        {"section_id": "§6", "title": "10 Quy trình khép kín"},
        {"section_id": "§7", "title": "36 DOT-KG (18 cặp)"},
        {"section_id": "§7B", "title": "Biện pháp Quản lý + Thẩm quyền"},
        {"section_id": "§7C", "title": "Môi trường Thực thi"},
        {"section_id": "§8", "title": "Kiến trúc Kỹ thuật"},
        {"section_id": "§9", "title": "11 NT Đối chiếu"},
        {"section_id": "§10", "title": "Roadmap"},
        {"section_id": "§12", "title": "Quan hệ với các Điều khác"},
        {"section_id": "§13", "title": "Nợ Kỹ thuật (39 items)"}
      ]
    },
    {
      "type": "governance_agencies",
      "target_table": "governance_registry",
      "agencies": [
        {
          "name": "Architecture Council",
          "name_vi": "Hội đồng Kiến trúc",
          "type": "council",
          "authority_scope": "TBox: Schema, Scaffold, Species mới, Relation type mới, Luật mới",
          "source_law": "37",
          "dot_domains": ["governance", "normative"]
        },
        {
          "name": "Knowledge Graph System",
          "name_vi": "Hệ thống Knowledge Graph",
          "type": "system",
          "authority_scope": "ABox: link, weight, intent, feedback, self-learning (trong guardrail)",
          "source_law": "39",
          "dot_domains": ["kg"]
        },
        {
          "name": "DOT Governance",
          "name_vi": "Quản trị DOT",
          "type": "system",
          "authority_scope": "DOT registration, domain management, health monitoring",
          "source_law": "35",
          "dot_domains": ["dot"]
        },
        {
          "name": "Normative Document System",
          "name_vi": "Hệ thống Văn bản Quy phạm",
          "type": "system",
          "authority_scope": "Normative registry, sections, bindings, enactment",
          "source_law": "38",
          "dot_domains": ["normative"]
        },
        {
          "name": "System Integrity",
          "name_vi": "Toàn vẹn Hệ thống",
          "type": "system",
          "authority_scope": "Scanning, verification, regression protection",
          "source_law": "31",
          "dot_domains": ["siv"]
        }
      ]
    },
    {
      "type": "governance_relations",
      "target_table": "governance_relations",
      "relations": [
        {"agency": "Architecture Council", "law": "37", "role": "owner"},
        {"agency": "Architecture Council", "law": "39", "role": "approver_tbox"},
        {"agency": "Knowledge Graph System", "law": "39", "role": "owner"},
        {"agency": "Knowledge Graph System", "law": "39", "role": "executor_abox"},
        {"agency": "DOT Governance", "law": "35", "role": "owner"},
        {"agency": "DOT Governance", "law": "36", "role": "owner"},
        {"agency": "Normative Document System", "law": "38", "role": "owner"},
        {"agency": "System Integrity", "law": "31", "role": "owner"}
      ]
    }
  ]
}

GHI CHÚ CHO AGENT

  1. normative_law section: Dùng DOT-NRM-DRAFT (đã có, ID=876) để import. Trigger gate cần tạm disable (bootstrap exception). Sections lưu vào cột sections JSONB của normative_registry.
  2. governance_agencies section: Check schema governance_registry TRƯỚC khi INSERT. Map field names từ manifest → column names thực tế trong PG.
  3. governance_relations section: Check schema governance_relations TRƯỚC khi INSERT. Field agencylaw cần map sang FK đúng.
  4. Dependencies: Lưu vào binding_registry nếu bảng đó tồn tại và có schema phù hợp.
  5. Trigger gate pattern: Xem dieu38-pb-fix-report để biết cách disable/re-enable trigger gate.