第8章 质量门与停止准则


I. 目的与范围(Purpose & Scope)


II. 质量门定义(Gates G1–G8,发布必过)


III. 停止准则(Stops)


IV. 回退与处置(Fallbacks & Actions)


V. 在线监测与告警(Online Monitoring & Alerts)


VI. 报告与发布门(Reporting & Release Gate)


VII. 机读规则(Machine-Readable,可直接落库)
A. gates.yaml

version: "1.0.0"

gates:

G1: { schema: true }

G2: { cite_anchor_min: 0.90, forbid_external_links: true }

G3: { path_min_len: 2, require_sync: true }

G4: { p_dim: 1.0, units: { T_arr: "s", Phi: "rad" } }

G5: { tau_calib_s_max: 86400 }

G6: { Q_res_band: [0.0, 0.2], robust_surrogate: true }

G7: { epsilon_flux_guard: "≈0@O(theta^2)" }

G8: { unique_record_id: true, unique_checksum: true }

stops:

- { code: "S1", when: "p_dim<1 or check_dim_fail" }

- { code: "S2", when: "sync_unlocked and over_grace or abs_t/skew_over" }

- { code: "S3", when: "fs<2*fmax or Delta_ell>Delta_ell_max or path_len<2" }

- { code: "S4", when: "theta>theta_max or grad_n_eff_Lcoh_not_small" }

- { code: "S5", when: "ver_presence<1 or anchor_coverage<0.90" }

fallbacks:

F1: "sync_fallback"

F2: "switch_fullwave"

F3: "recalibrate_recompute"

F4: "segment_adapt"

F5: "robust_substitute"


B. quality_report.json(字段示例)

JSON json
{
  "run_id": "01JXYZABCD...",
  "gates": {
    "G1": true,
    "G2": 0.94,
    "G3": true,
    "G4": true,
    "G5": true,
    "G6": true,
    "G7": true,
    "G8": true
  },
  "stops_triggered": [  ],
  "fallbacks": [ "F1" ],
  "metrics": {
    "p_dim": 1.0,
    "Q_res": 0.12,
    "epsilon_flux": 0.006,
    "delta_t_abs_ns": 18,
    "allan_1s": 1.1e-11
  }
}

VIII. 结果与合规页面最小必填(与第5/7章对齐)


IX. 执行勾选清单(Checklist)