目录文档-技术白皮书50-参数注册卡 Template v1.0

第10章 质量门与校验规则(参数级)


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


II. 前置条件与输入(Prerequisites & Inputs)


III. 质量门(Gates G1–G8,参数级口径)


IV. 停止与回退(Stop & Fallback,S1–S5)


V. 机读校验规则(Machine-Readable Rules)
A. gate_rules.yaml

version: "1.0.0"

gates:

G1: { schema_required: ["param_id","symbol","domain","status","version","see"] }

G2: { anchor_coverage_min: 0.90, forbid_external_links: true }

G3: { path_required: true, min_samples: 2, delta_form: ["general","factored"] }

G4: { require_dim_check: true, p_dim: 1.0 }

G5: { tau_calib_s_max: 86400, clock_state: "locked" }

G6: { require_uncertainty: true, coverage_allowed: ["k","alpha","quantile"] }

G7: { cov_pd: true, kernel_allowed: ["exp","matern","ar1","const"] }

G8: { unique_param_id: true, unique_checksum: true, lineage_acyclic: true }

stops:

S1: "dim_check_fail or p_dim<1"

S2: "freshness_expired or clock_state!=locked"

S3: "path_block_missing"

S4: "covariance_not_pd or cov_model_mismatch"

S5: "anchor_coverage_below_min or external_link_found"

labels: { restricted: "[Restricted]" }

B. /validate 响应示例(JSON)

{

"param_id": "PHY-03-n_eff_profile",

"version": "1.0.0",

"gates": { "G1": true, "G2": 0.94, "G3": true, "G4": true, "G5": true, "G6": true, "G7": true, "G8": true },

"stops_triggered": [],

"notes": "All checks passed"

}


VI. 校验细则(Validation Details)


VII. 规范与反例(Normative / Anti-Patterns)

# 规范:路径块齐备、量纲闭合、覆盖与协方差一致

param_id: "PHY-03-n_eff_profile"

symbol: "n_eff(ell)"

domain: { type: "array", unit: "1", shape: ["N"], range: [0.8, 2.5], precision: "float64" }

path: { gamma: "gamma(ell)", measure: "d ell", delta_form: "general" }

uncertainty: { type: "A/B", estimate: 3.0e-3, distribution: "gaussian", coverage: { k: 2 } }

cov_group: "medium"

cov_model: { kernel: "exp", params: { sigma2: 9.0e-6, L_c_m: 25.0 } }

see: ["EFT.WP.Core.Equations v1.1:S20-1","EFT.WP.Core.Metrology v1.0:check_dim"]

# 反例:缺少 delta_form 与量纲未校核(应触发 S1/S3)

param_id: "PHY-XX-bad"

symbol: "n_eff(ell)"

domain: { type: "array", unit: "1" }

path: { gamma: "gamma(ell)", measure: "d ell" } # 缺 delta_form

constraints: { derived: "T_arr = ∫ n_eff / c_ref d ell" } # 缺括号且未 dim_check


VIII. 发布与限制模式(Release & Restricted)


IX. 交叉引用(Cross-References)


X. 执行勾选清单(Checklist)


版权与许可(CC BY 4.0)

版权声明:除另有说明外,《能量丝理论》(含文本、图表、插图、符号与公式)的著作权由作者(“屠广林”先生)享有。
许可方式:本作品采用 Creative Commons 署名 4.0 国际许可协议(CC BY 4.0)进行许可;在注明作者与来源的前提下,允许为商业或非商业目的进行复制、转载、节选、改编与再分发。
署名格式(建议):作者:“屠广林”;作品:《能量丝理论》;来源:energyfilament.org;许可证:CC BY 4.0。

首次发布: 2025-11-11|当前版本:v5.1
协议链接:https://creativecommons.org/licenses/by/4.0/