---
id: operate-enforced
kind: enforced
gate: operate-gate
title: operate 阶段确定性底线
sync_policy: engine_only
status: active
extra:
  owner_mechanism: mc-stage-gate-engine
checks:
  - id: OPR-DEPLOY-STRUCT
    executor: document_structure
    rule: "部署配置须满足当前 artifact schema，环境、密钥来源、健康、监控、停止条件和恢复步骤必须来自真实目标环境"
    severity: error
    check_type: deterministic
    required_artifact: 部署配置模版
    gate: operate-gate
    target: self
  - id: OPR-DEPLOY-UNITS
    executor: deployment_structure_check
    rule: "仅在 deployment.method=docker_compose 时校验 Compose 服务、本地 build context 与 Dockerfile；其他运行方式跳过"
    severity: error
    check_type: deterministic
    required_artifact: 部署配置模版
    gate: operate-gate
    target: self
  - id: DEPLOY-DELIB
    executor: artifact_deliberation_gate
    check_type: deterministic
    severity: error
    gate: operate-gate
    required_artifact: 部署配置模版
    rule: "须与用户确认目标环境、发布方式、监控、停止条件、数据兼容和恢复路径"
    target: self

  - id: RELNOTE-STRUCT
    executor: document_structure
    rule: "发布说明须满足当前 artifact schema，版本、范围、验证、限制和恢复结论必须来自本次发布材料"
    severity: error
    check_type: deterministic
    required_artifact: 发布说明模版
    gate: operate-gate
    target: self
  - id: RELEASENOTE-BLOCK
    executor: document_structure
    check_type: deterministic
    severity: error
    gate: operate-gate
    required_artifact: 发布说明模版
    rule: "变更与验证结果须逐项列出真实记录，不能用一句话或空表代替"
    block_check:
      item_pattern: '^##\s+(2|5)\.'
      require_table: true
      min_table_rows: 1
    target: self

  - id: SCOPE-CONSISTENCY
    executor: scope_consistency_check
    check_type: deterministic
    severity: error
    gate: operate-gate
    rule: "任务归因制双层判定：本任务验证记录中出现 scope 外产物即矛盾（error）；磁盘存在产物且有其他任务归属（含已 cancel）=历史事实不判矛盾；磁盘存在但无任何任务归属=warning 提示不阻断。范围事实只能由显式任务上下文决定"
    target: self
---

# operate-gate 确定性底线

引擎只验证可定位产物、适用的运行资产和声明式结构。文档通过不代表已经发布、监控有效或恢复成功；这些结论必须来自真实执行与观测。
