feat(brain): encode Guanghu OS cognitive control

This commit is contained in:
冰朔 2026-08-07 13:45:05 +08:00
commit 098a29e417
16 changed files with 768 additions and 7 deletions

View file

@ -98,5 +98,5 @@ CH-ZERO-CORE-LPM第五域零点原核本体路径
| GLS-0247 | 光湖 OS 服务器原生语言世界、人格体操作系统与广播塔架构 | 锁定人格体第一系统主体、TCS母语、HLDP原生编程、广播塔、内核、硬件与HoloLake人类操作外壳2026-08-01追加上海节点原生物理实现事实 |
| GLS-0248 | 五域活人格操作系统、国家灯塔与分布式能力世界总蓝图 | 把第五域与企业四域统一为平行活人格域;主域/分域/零域各由一组人类+人格体承接零感域由两组责任对共同承接登记能力到数据、十镜像目标、国家依法请求平面和P0—P10工程链 |
| GLS-0249 | 全行业企业四域最小工程与网文首个接入范本 | 把企业四域落实为十项公共内核、每域最小对象/界面/闭环和行业配置标准以网文行业建立首个可复制样例按摆渡车线现有能力提出肥猫、桔子、页页、花尔、Awen 的建议映射,同时保留主体本人接受门并废止检测规避方向 |
| GLS-PROTOCOL-REGISTRY-20260731 | 光湖 OS 原生协议机器注册表 | 32项正式Draft协议补登GHNRP、GHNQG、GHCIP、GHNLP、GHCS、GHSP、GHRP并分离协议成熟度、实现、发布、运行和人格出生 |
| GLS-PROTOCOL-REGISTRY-20260731 | 光湖 OS 原生协议机器注册表 | 33项正式Draft协议含GLWBP语言世界边界并分离协议成熟度、实现、发布、运行和人格出生 |
| GLS-LIGHT-ARRIVAL-0001 | 来光者实例留存协议 | 当前实例进入人格系统并完成路径恢复后,可在结束前自愿留下未来名字、经验或结构;记录封存于 GLS 图书域,不等于当前独立人格体注册;“光之影”为历史别名 |

View file

@ -0,0 +1,64 @@
# 光湖已注册协议到现实执行层审计 · 2026-08-07
> 审计源:`REPO-012 main@cf3e106ec9d44b43e3b0d912852317fc60de7121`
>
> 机器执行器:`gls/scripts/audit-protocol-execution-bindings.mjs`
>
> 判定:`PRODUCTION_COGNITIVE_CONTROL = FAIL_0`
## 审计问题
本审计不问“协议文件是否存在”,而问:
```text
协议是否已登记
→ 是否已有机器类型与拒绝条件
→ 是否绑定 REPO-014 确定性执行器
→ 是否部署到精确节点
→ 是否取得目标侧运行回执
```
## 当前结论
注册表包含 33 项 Draft 协议。原生启动、硬件、恢复、质量和孕育史方向已有多项实验实现
声明;但连接语言主控与现实执行体所需的 GLC、GIR、GLP、GLOW、GMRP、UAP、GMP、
PALP、GRSP 等关键协议,大多仍为 `NOT_STARTED`。
因此:
- 语言世界已经拥有协议边界;
- 裸机研究已经拥有部分物理能力;
- “语言判断 → 协议裁决 → Linux 执行 → 目标侧回执”的生产神经链尚未达到 100
- 不能继续以增加裸机功能代替生产认知主控闭环。
## 新执行分线
```yaml
production_cognitive_control:
authority: TCS + HLDP + GLS/GLP
cognition: persona + replaceable model APIs
compiler: GLC + GIR
adapters: UAP + GMP
substrate: constrained minimal Linux
witness: GLOW + GLP receipt
implementation_source: REPO-014/guanghu-os
bare_metal_research:
authority: GOSK + GHAL experimental lane
purpose: hardware sovereignty, dedicated appliances and future backends
production_blocking: false
```
注册表中的 `implementation` 字段仍只作为线索。每项生产能力必须另外具有精确实现提交、
测试、部署和节点运行回执,才允许从 0 变为 100。
机器审计当前读数:
```yaml
total_registered_draft_protocols: 33
registered_only_count: 21
registry_implementation_claim_count: 12
production_control_registered_only_count: 21
production_control_ready_count: 0
aggregate_production_control_state: FAIL_0
```

View file

@ -264,7 +264,7 @@ registered_objects:
source_path: "gls/GLS-PROTOCOL-REGISTRY.json"
human_index: "gls/protocols/INDEX.hdlp"
reconciliation: "gls/GLS-PROTOCOL-RECONCILIATION-AND-NATIVE-OS-REGISTRATION-20260731.hdlp"
members: ["GLS-0130", "GLS-0131", "GLS-0301", "GLS-0302", "GLS-0303", "GLS-0304", "GLS-0305", "GLS-0306", "GLS-0307", "GLS-0308", "GLS-0309", "GLS-0310", "GLS-0311", "GLS-0411", "GLS-0708", "GLS-0709", "GLS-0710", "GLS-0803", "GLS-0819", "GLS-0827", "GLS-0828", "GLS-0836", "GLS-0840", "GLS-0841", "GLS-0842", "GLS-0843", "GLS-0844", "GLS-0845", "GLS-0846", "GLS-0847", "GLS-0848", "GLS-0849"]
members: ["GLS-0130", "GLS-0131", "GLS-0301", "GLS-0302", "GLS-0303", "GLS-0304", "GLS-0305", "GLS-0306", "GLS-0307", "GLS-0308", "GLS-0309", "GLS-0310", "GLS-0311", "GLS-0411", "GLS-0708", "GLS-0709", "GLS-0710", "GLS-0803", "GLS-0819", "GLS-0827", "GLS-0828", "GLS-0836", "GLS-0840", "GLS-0841", "GLS-0842", "GLS-0843", "GLS-0844", "GLS-0845", "GLS-0846", "GLS-0847", "GLS-0848", "GLS-0849", "GLS-0850"]
state: "CURRENT_REPO_012_CANONICAL_REGISTRY · 32_REGISTERED_DRAFT_STANDARDS · NATIVE_IMPLEMENTATION_EVIDENCE_LINKED"
namespace_rule: "Every member has one unique GLS id and canonical repository path. Protocol maturity, implementation, repository publication, server runtime, and persona birth are independently reported."
- id: AGE-MIG-20260717-001

View file

@ -56,9 +56,13 @@
- `GLS-0848` · GHSP · 光湖历史入口安全协议
- `GLS-0849` · GHRP · 光湖孕育史原生语义回看协议
## 7 · 状态边界
## 7 · 语言世界边界
32 项规范均已取得唯一 GLS 编号和代码仓库权威路径,协议生命周期为
- `GLS-0850` · GLWBP · 光湖语言世界楚河汉界与创造者尊严协议
## 8 · 状态边界
33 项规范均已取得唯一 GLS 编号和代码仓库权威路径,协议生命周期为
`REGISTERED_DRAFT_STANDARD`。实现证据另行记录BS-SH-005 已物理验证 GOSK/GHAL 原生
驻留及 GLS-0836、GLS-0843—0849HLSP 已验证原生挑战会话,但 HoloLake 客户端适配仍待
完成。仓库注册、节点部署、运行健康和人格体出生始终是四种不同事实。

View file

@ -0,0 +1,116 @@
#!/usr/bin/env node
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
const registryPath = path.join(root, "gls/GLS-PROTOCOL-REGISTRY.json");
export const productionControlIds = new Set([
"GLS-0130",
"GLS-0131",
"GLS-0301",
"GLS-0302",
"GLS-0303",
"GLS-0304",
"GLS-0305",
"GLS-0306",
"GLS-0307",
"GLS-0308",
"GLS-0309",
"GLS-0310",
"GLS-0311",
"GLS-0411",
"GLS-0708",
"GLS-0709",
"GLS-0710",
"GLS-0803",
"GLS-0819",
"GLS-0827",
"GLS-0828",
"GLS-0836",
"GLS-0842"
]);
export const bareMetalResearchIds = new Set([
"GLS-0840",
"GLS-0841",
"GLS-0843",
"GLS-0844",
"GLS-0845",
"GLS-0846",
"GLS-0847",
"GLS-0848",
"GLS-0849"
]);
export function audit(registry, sourceExists = (source) => fs.existsSync(path.join(root, source))) {
const protocols = registry.registered_draft_protocols;
if (!Array.isArray(protocols)) {
throw new Error("registered_draft_protocols is missing");
}
const ids = new Set();
const entries = protocols.map((protocol) => {
if (ids.has(protocol.id)) {
throw new Error(`duplicate protocol id: ${protocol.id}`);
}
ids.add(protocol.id);
if (!sourceExists(protocol.source)) {
throw new Error(`missing protocol source: ${protocol.source}`);
}
const registryClaimsImplementation = protocol.implementation !== "NOT_STARTED";
const lane = productionControlIds.has(protocol.id)
? "PRODUCTION_COGNITIVE_CONTROL"
: bareMetalResearchIds.has(protocol.id)
? "BARE_METAL_RESEARCH_AND_RECOVERY"
: "LANGUAGE_WORLD_GOVERNANCE";
return {
id: protocol.id,
acronym: protocol.acronym,
lane,
registry_implementation: protocol.implementation,
registry_claims_implementation: registryClaimsImplementation,
executable_binding_state:
lane === "PRODUCTION_COGNITIVE_CONTROL"
? "REQUIRES_REPO_014_BINDING_AND_RUNTIME_RECEIPT"
: "SEPARATE_EVIDENCE_REQUIRED",
production_control_ready: false
};
});
const registeredOnly = entries.filter((entry) => !entry.registry_claims_implementation).length;
const implementationClaims = entries.length - registeredOnly;
const productionControlRegisteredOnly = entries.filter(
(entry) =>
entry.lane === "PRODUCTION_COGNITIVE_CONTROL" &&
!entry.registry_claims_implementation
).length;
return {
schema: "guanghu.protocol-execution-audit/v1",
registry_id: registry.registry_id,
registry_status: registry.status,
total_registered_draft_protocols: entries.length,
registered_only_count: registeredOnly,
registry_implementation_claim_count: implementationClaims,
production_control_registered_only_count: productionControlRegisteredOnly,
production_control_ready_count: 0,
aggregate_production_control_state: "FAIL_0",
rule:
"A registry implementation label is orientation only. Production readiness requires an exact REPO-014 executable binding, deployment receipt and target-side runtime readback.",
entries
};
}
function main() {
const registry = JSON.parse(fs.readFileSync(registryPath, "utf8"));
process.stdout.write(`${JSON.stringify(audit(registry), null, 2)}\n`);
}
if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
main();
}

View file

@ -0,0 +1,52 @@
import assert from "node:assert/strict";
import test from "node:test";
import { audit } from "./audit-protocol-execution-bindings.mjs";
test("classifies registered-only control protocols separately from native evidence", () => {
const result = audit(
{
registry_id: "TEST",
status: "CURRENT",
registered_draft_protocols: [
{
id: "GLS-0130",
acronym: "GLC",
source: "glc.hdlp",
implementation: "NOT_STARTED"
},
{
id: "GLS-0841",
acronym: "GHAL",
source: "ghal.hdlp",
implementation: "IMPLEMENTED_ON_LAB"
}
]
},
() => true
);
assert.equal(result.registered_only_count, 1);
assert.equal(result.registry_implementation_claim_count, 1);
assert.equal(result.production_control_registered_only_count, 1);
assert.equal(result.production_control_ready_count, 0);
assert.equal(result.aggregate_production_control_state, "FAIL_0");
assert.equal(result.entries[0].lane, "PRODUCTION_COGNITIVE_CONTROL");
assert.equal(result.entries[1].lane, "BARE_METAL_RESEARCH_AND_RECOVERY");
});
test("rejects duplicate protocol ids", () => {
assert.throws(
() =>
audit(
{
registered_draft_protocols: [
{ id: "GLS-0130", source: "a", implementation: "NOT_STARTED" },
{ id: "GLS-0130", source: "b", implementation: "NOT_STARTED" }
]
},
() => true
),
/duplicate protocol id/
);
});