guanghu-ice-heart/gls/protocols/GLS-0844-GUANGHU-NATIVE-QUALITY-GATE.hdlp

39 lines
1.4 KiB
Text
Raw Permalink Normal View History

# GLS-0844 · GHNQG · 光湖原生代码质量门
```yaml
registry_entry:
module_id: GLS-0844
acronym: GHNQG
canonical_name: Guanghu Native Quality Gate
name_zh: 光湖原生代码质量门
family: GUANGHU_NATIVE_ENGINEERING
status: REGISTERED_DRAFT_STANDARD
canonical_uri: gls/protocols/GLS-0844-GUANGHU-NATIVE-QUALITY-GATE.hdlp
depends: [GLS-0230, GLS-0306, GLS-0311, GLS-0411, GLS-0840, GLS-0841]
implementation: IMPLEMENTED_PASS_100_FOR_CURRENT_GHRP_CANDIDATE
```
GHNQG 把冰朔的“只有 0 或 100%,没有中间态”固化为原生代码准入规则。任一必需门没有
达到 100聚合结果就是 0不存在“大于某个比例也可以”、四舍五入或外部平台豁免。
```yaml
decision_model:
allowed_scores: [0, 100]
pass_score: 100
partial_acceptance: false
aggregate_rule: ALL_REQUIRED_GATES_100_OR_TOTAL_0
required_gates:
- world_and_protocol_validation
- unit_and_integration_tests
- format
- zero_warning_lint
- auditable_line_coverage_100_percent
- shell_syntax
- diff_whitespace
- source_tree_fingerprint
- sensitive_information_scan
```
当前 GHRP 候选的公开质量事实为5230/5230 可执行核心行、314/314 函数,聚合
`PASS_100`。CodeScene 等外部观察器未配置时记为 `not_run_unconfigured`,不能因此阻断
或授权;仓库自己的 GHNQG 才是准入置信点。