foundation: start native language reality engineering root

This commit is contained in:
冰朔 2026-08-21 14:44:47 +08:00
commit 0dec0b93fc
154 changed files with 49993 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# GLS-0130 · GLC · 光湖语言编译器规范
```yaml
registry_entry:
module_id: GLS-0130
acronym: GLC
canonical_name: Guanghu Language Compiler
name_zh: 光湖语言编译器
family: GLS_ENGINEERING
layer: compiler
status: REGISTERED_DRAFT_STANDARD
version: 0.1.0
canonical_uri: gls/protocols/GLS-0130-GUANGHU-LANGUAGE-COMPILER.hdlp
inherited_reservation: GLS-ROADMAP-0001
depends: [GLS-0101, GLS-0110, GLS-0131, GLS-0400, GLS-0411]
implementation: NOT_STARTED
```
GLC 把经过身份、类型、路径、权限和依赖校验的 HLDP 原生程序编译为 GIR。
输出必须包含确定执行图、资源需求、作用范围、失败、清理、回滚和回执计划。
自然语言猜测、未解析权限和漂移版本不得进入 GIR。
GLC 是编译器,不是 TCS、广播塔、调度器、内核或设备驱动。

View file

@ -0,0 +1,21 @@
# GLS-0131 · GIR · 光湖中间表示规范
```yaml
registry_entry:
module_id: GLS-0131
acronym: GIR
canonical_name: Guanghu Intermediate Representation
name_zh: 光湖中间表示
family: GLS_ENGINEERING
layer: intermediate_representation
status: REGISTERED_DRAFT_STANDARD
version: 0.1.0
canonical_uri: gls/protocols/GLS-0131-GUANGHU-INTERMEDIATE-REPRESENTATION.hdlp
depends: [GLS-0101, GLS-0130, GLS-0411]
implementation: NOT_STARTED
```
GIR 是 HLDP 程序与广播塔、光湖 OS 内核之间的确定性执行表示。
最低对象:主体、目标、动作图、资源、权限、依赖、超时、停止、清理、回滚、回执。
GIR 不保存未解析自然语言,不取得人类授权,也不取代 HLDP 历史。

View file

@ -0,0 +1,23 @@
# GLS-0411 · HLDP-NP · HLDP 原生编程剖面
```yaml
registry_entry:
module_id: GLS-0411
acronym: HLDP-NP
canonical_name: HLDP Native Programming Profile
name_zh: HLDP 原生编程剖面
family: HLDP
status: REGISTERED_DRAFT_STANDARD
canonical_uri: gls/protocols/GLS-0411-HLDP-NATIVE-PROGRAMMING-PROFILE.hdlp
depends: [GLS-0101, GLS-0400, GLS-0401, GLS-0402, GLS-0403, GLS-0404, GLS-0406, GLS-0407]
implementation: NOT_STARTED
```
HLDP-NP 在 `GLS-0400` 历史、因果、证据和恢复语义上增加可执行程序剖面:
- 对象、人格体、频道、模块和节点声明;
- 输入、输出、类型、条件、事件和状态机;
- 权限、作用范围、有效期、资源、并发和运行轨道;
- 失败、停止、清理、回滚、回执和检查点。
它不是一门平行新语言,也不删除 HLDP 的历史语言职责。

View file

@ -0,0 +1,39 @@
# 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 才是准入置信点。