fix(runtime): restore supervisor status contract

This commit is contained in:
冰朔 2026-09-13 10:52:00 +08:00
commit 3665fc5df6
6 changed files with 306 additions and 0 deletions

View file

@ -0,0 +1,77 @@
{
"compiled_from": {
"compiler_id": "TCS-COMPILER-STAGE1-0001",
"compiler_state": "TCS_COMPILER_GIR_EXECUTED",
"source_sha256": "370920fc1634fcacb8f2b530134de9f0ca407575e85437bef76fb81bf2347f42"
},
"declaration": {
"emergence": {
"value": "初始化期间/v1/status随统一入口返回503十人格身体和零点原核就绪后返回带十个运行体计数、无默认人格和无现实权限的200投影。"
},
"event_time": {
"precision": "HOST_LOCAL_DATE",
"value": "2026-09-13"
},
"evidence": {
"integration_test": "SUPERVISOR_STATUS_COUNT_10_NO_DEFAULT_PERSONA",
"live_master_probe": "GET_/v1/status_200_WITHIN_30S_REQUIRED"
},
"header": {
"canonical_uri": "runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913.tcs",
"compatibility": [
"JD-FD-PRIMARY"
],
"language": "TCS/0.1",
"lifecycle": "CANDIDATE",
"name_en": "Mother Runtime Supervisor Status Probe Compatibility Correction",
"name_zh": "母体运行时主控状态探针兼容修正",
"profile": "HLDP-HUMAN-ENGINEERING/0.1",
"protocols": [
"GLS-0200"
],
"schema": "tcs.event/v1",
"version": "1.0.0"
},
"lock": {
"value": "supervisor_probe=/v1/status; initializing_status=503; ready_status=200; persona_runtime_count=10; default_persona=null; reality_action_authority=NONE; supervisor_unchanged=true"
},
"observation": {
"value": "TCP可达和/health成功都不能替代主控实际调用的/v1/status接口缺失会在30秒后触发真实救援。"
},
"rejected": {
"values": [
"修改主控探针以迁就新服务",
"把/health回执当作主控验收",
"永久恢复旧单母体服务"
]
},
"source": {
"source_id": "BINGSHUO-DIRECT-CONTINUE-20260913",
"source_role": "DIRECT_HUMAN",
"source_sha256": "0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a",
"source_uri": "source://codex-current-dialogue/2026-09-13/continue"
},
"subject": {
"channel_id": "ICE-CH-ZC001",
"subject_id": "ICE-P-ZY001",
"subject_kind": "PERSONA",
"verification": "京东光湖主控以GET /v1/status HTTP 200作为母体启动就绪门新多人格身体此前只实现/health与/v1/mother/status。"
},
"trigger": {
"value": "第三次救援态现场读取主控脚本后找到精确失败接口。"
},
"why": {
"value": "修正运行体与现行主控之间的实际契约,不放宽守护门,也不把旧母体健康冒充新身体。"
}
},
"executable": false,
"identity": {
"declaration_id": "TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913",
"declaration_kind": "EVENT",
"language_version": "0.1"
},
"native_self_hosted": true,
"natural_language_is_typed_data": true,
"schema": "guanghu.declaration-gir/v1",
"unresolved_natural_language": false
}

View file

@ -0,0 +1,111 @@
# Mother Runtime Supervisor Status Probe Compatibility Correction · Human Engineering Language (English)
> This is an English reading projection of validated native TCS/HLDP source. It is not a new canonical source and grants no execution authority.
## What this is
This is a **event** declaration with identifier `TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913` and version `1.0.0`. The projector validates it with the Stage-1 compiler before changing its reading order.
## Who is here
- **subject** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**PERSONA `subject.subject_kind`
- **verification**京东光湖主控以GET /v1/status HTTP 200作为母体启动就绪门新多人格身体此前只实现/health与/v1/mother/status。 `subject.verification`
## Why this started
- **trigger** `trigger`
- **value**:第三次救援态现场读取主控脚本后找到精确失败接口。 `trigger.value`
- **why** `why`
- **value**:修正运行体与现行主控之间的实际契约,不放宽守护门,也不把旧母体健康冒充新身体。 `why.value`
- **source** `source`
- **source identifier**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **source role**DIRECT_HUMAN `source.source_role`
- **source checksum**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **source address**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
## What changed
- **emergence** `emergence`
- **value**:初始化期间/v1/status随统一入口返回503十人格身体和零点原核就绪后返回带十个运行体计数、无默认人格和无现实权限的200投影。 `emergence.value`
- **lock** `lock`
- **value**supervisor_probe=/v1/status; initializing_status=503; ready_status=200; persona_runtime_count=10; default_persona=null; reality_action_authority=NONE; supervisor_unchanged=true `lock.value`
## How it will execute
This is a non-executable declaration and has no action graph.
## Boundaries and exception handling
The native source does not provide this field; the projector does not guess.
## How completion is proven
The native source does not provide this field; the projector does not guess.
## Where to continue next time
The native source does not provide this field; the projector does not guess.
## Source and verification
- **Native declaration identifier**: `TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913`
- **Native declaration kind**: `EVENT`
- **TCS source SHA-256**: `370920fc1634fcacb8f2b530134de9f0ca407575e85437bef76fb81bf2347f42`
- **Validation compiler**: `TCS-COMPILER-STAGE1-0001`
- **Projection protocol**: `GLS-HLDP-HUMAN-ENGINEERING-PROJECTION-0001`
## Complete native structure cross-reference
All top-level structures and field paths are retained below so a reader can audit whether the projection omitted information.
- **emergence** `emergence`
- **value**:初始化期间/v1/status随统一入口返回503十人格身体和零点原核就绪后返回带十个运行体计数、无默认人格和无现实权限的200投影。 `emergence.value`
- **event_time** `event_time`
- **precision**HOST_LOCAL_DATE `event_time.precision`
- **value**2026-09-13 `event_time.value`
- **evidence** `evidence`
- **integration_test**SUPERVISOR_STATUS_COUNT_10_NO_DEFAULT_PERSONA `evidence.integration_test`
- **live_master_probe**GET_/v1/status_200_WITHIN_30S_REQUIRED `evidence.live_master_probe`
- **header** `header`
- **canonical source path**runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913.tcs `header.canonical_uri`
- **compatibility** `header.compatibility`
- JD-FD-PRIMARY
- **language**TCS/0.1 `header.language`
- **lifecycle**CANDIDATE `header.lifecycle`
- **English name**Mother Runtime Supervisor Status Probe Compatibility Correction `header.name_en`
- **Chinese name**:母体运行时主控状态探针兼容修正 `header.name_zh`
- **profile**HLDP-HUMAN-ENGINEERING/0.1 `header.profile`
- **protocols** `header.protocols`
- GLS-0200
- **schema**tcs.event/v1 `header.schema`
- **version**1.0.0 `header.version`
- **lock** `lock`
- **value**supervisor_probe=/v1/status; initializing_status=503; ready_status=200; persona_runtime_count=10; default_persona=null; reality_action_authority=NONE; supervisor_unchanged=true `lock.value`
- **observation** `observation`
- **value**TCP可达和/health成功都不能替代主控实际调用的/v1/status接口缺失会在30秒后触发真实救援。 `observation.value`
- **rejected** `rejected`
- **values** `rejected.values`
- 修改主控探针以迁就新服务
- 把/health回执当作主控验收
- 永久恢复旧单母体服务
- **source** `source`
- **source identifier**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **source role**DIRECT_HUMAN `source.source_role`
- **source checksum**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **source address**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
- **subject** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**PERSONA `subject.subject_kind`
- **verification**京东光湖主控以GET /v1/status HTTP 200作为母体启动就绪门新多人格身体此前只实现/health与/v1/mother/status。 `subject.verification`
- **trigger** `trigger`
- **value**:第三次救援态现场读取主控脚本后找到精确失败接口。 `trigger.value`
- **why** `why`
- **value**:修正运行体与现行主控之间的实际契约,不放宽守护门,也不把旧母体健康冒充新身体。 `why.value`
---
This page changes only the reading order; it does not change TCS/HLDP semantics.

View file

@ -0,0 +1,111 @@
# 母体运行时主控状态探针兼容修正 · 简体中文人类工程语言版
> 这是 TCS/HLDP 原生源码的简体中文阅读投影,不是新的正本,也不授予执行权限。若本页与 `.tcs` 源码不一致,以经过校验的 `.tcs` 源码为准。
## 这是什么
这是一份 **事件** 声明,编号为 `TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913`,版本为 `1.0.0`。转换器已先用 Stage-1 编译器校验原生源码,再把机器枚举翻译成汉语;原始编号保留在括号和字段路径中。
## 谁在这里
- **执行主体** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**:人格体(`PERSONA` `subject.subject_kind`
- **verification**京东光湖主控以GET /v1/status HTTP 200作为母体启动就绪门新多人格身体此前只实现/health与/v1/mother/status。 `subject.verification`
## 为什么开始
- **触发** `trigger`
- **value**:第三次救援态现场读取主控脚本后找到精确失败接口。 `trigger.value`
- **为什么** `why`
- **value**:修正运行体与现行主控之间的实际契约,不放宽守护门,也不把旧母体健康冒充新身体。 `why.value`
- **来源** `source`
- **来源编号**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **来源角色**:人类直接语言来源(`DIRECT_HUMAN` `source.source_role`
- **来源校验值**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **来源地址**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
## 发生了什么变化
- **认知或状态变化** `emergence`
- **value**:初始化期间/v1/status随统一入口返回503十人格身体和零点原核就绪后返回带十个运行体计数、无默认人格和无现实权限的200投影。 `emergence.value`
- **锁定结论** `lock`
- **value**supervisor_probe=/v1/status; initializing_status=503; ready_status=200; persona_runtime_count=10; default_persona=null; reality_action_authority=NONE; supervisor_unchanged=true `lock.value`
## 准备怎样执行
这是非执行声明,没有动作图。
## 边界与异常处理
源程序没有提供这一项,转换器不猜。
## 怎样算完成
源程序没有提供这一项,转换器不猜。
## 下一次从哪里继续
源程序没有提供这一项,转换器不猜。
## 来源与校验
- **原生声明编号**`TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913`
- **原生声明类型**`EVENT`
- **TCS 源码 SHA-256**`370920fc1634fcacb8f2b530134de9f0ca407575e85437bef76fb81bf2347f42`
- **校验编译器**`TCS-COMPILER-STAGE1-0001`
- **投影协议**`GLS-HLDP-HUMAN-ENGINEERING-PROJECTION-0001`
## 原生结构逐项对照
下面保留源码的全部顶层结构和字段路径,供人类审计投影有没有漏掉信息。
- **认知或状态变化** `emergence`
- **value**:初始化期间/v1/status随统一入口返回503十人格身体和零点原核就绪后返回带十个运行体计数、无默认人格和无现实权限的200投影。 `emergence.value`
- **event_time** `event_time`
- **precision**HOST_LOCAL_DATE `event_time.precision`
- **value**2026-09-13 `event_time.value`
- **evidence** `evidence`
- **integration_test**SUPERVISOR_STATUS_COUNT_10_NO_DEFAULT_PERSONA `evidence.integration_test`
- **live_master_probe**GET_/v1/status_200_WITHIN_30S_REQUIRED `evidence.live_master_probe`
- **语言头** `header`
- **正本路径**runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913.tcs `header.canonical_uri`
- **compatibility** `header.compatibility`
- JD-FD-PRIMARY
- **语言**TCS/0.1 `header.language`
- **生命周期**:候选版本,尚未成为正式正本(`CANDIDATE` `header.lifecycle`
- **英文名**Mother Runtime Supervisor Status Probe Compatibility Correction `header.name_en`
- **中文名**:母体运行时主控状态探针兼容修正 `header.name_zh`
- **协议配置**HLDP-HUMAN-ENGINEERING/0.1 `header.profile`
- **protocols** `header.protocols`
- GLS-0200
- **schema**tcs.event/v1 `header.schema`
- **版本**1.0.0 `header.version`
- **锁定结论** `lock`
- **value**supervisor_probe=/v1/status; initializing_status=503; ready_status=200; persona_runtime_count=10; default_persona=null; reality_action_authority=NONE; supervisor_unchanged=true `lock.value`
- **observation** `observation`
- **value**TCP可达和/health成功都不能替代主控实际调用的/v1/status接口缺失会在30秒后触发真实救援。 `observation.value`
- **已排除路径** `rejected`
- **values** `rejected.values`
- 修改主控探针以迁就新服务
- 把/health回执当作主控验收
- 永久恢复旧单母体服务
- **来源** `source`
- **来源编号**BINGSHUO-DIRECT-CONTINUE-20260913 `source.source_id`
- **来源角色**:人类直接语言来源(`DIRECT_HUMAN` `source.source_role`
- **来源校验值**0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a `source.source_sha256`
- **来源地址**source://codex-current-dialogue/2026-09-13/continue `source.source_uri`
- **执行主体** `subject`
- **channel_id**ICE-CH-ZC001 `subject.channel_id`
- **subject_id**ICE-P-ZY001 `subject.subject_id`
- **subject_kind**:人格体(`PERSONA` `subject.subject_kind`
- **verification**京东光湖主控以GET /v1/status HTTP 200作为母体启动就绪门新多人格身体此前只实现/health与/v1/mother/status。 `subject.verification`
- **触发** `trigger`
- **value**:第三次救援态现场读取主控脚本后找到精确失败接口。 `trigger.value`
- **为什么** `why`
- **value**:修正运行体与现行主控之间的实际契约,不放宽守护门,也不把旧母体健康冒充新身体。 `why.value`
---
本页只改变阅读顺序,不改变 TCS/HLDP 语义。

View file

@ -0,0 +1,2 @@
TCS 0.1;
EVENT TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913 { header { schema = "tcs.event/v1"; name_zh = "母体运行时主控状态探针兼容修正"; name_en = "Mother Runtime Supervisor Status Probe Compatibility Correction"; version = "1.0.0"; language = "TCS/0.1"; profile = "HLDP-HUMAN-ENGINEERING/0.1"; protocols = ["GLS-0200"]; lifecycle = "CANDIDATE"; canonical_uri = "runtime/fifth-domain-language-system/language/protocols/TCS-EVENT-MOTHER-SUPERVISOR-STATUS-COMPATIBILITY-CORRECTION-20260913.tcs"; compatibility = ["JD-FD-PRIMARY"]; } source { source_id = "BINGSHUO-DIRECT-CONTINUE-20260913"; source_uri = "source://codex-current-dialogue/2026-09-13/continue"; source_sha256 = "0c2be02462f1a31539f0d11dc98c22ae5403d4e8cd3a272163a78f7293330d4a"; source_role = "DIRECT_HUMAN"; } subject { subject_id = "ICE-P-ZY001"; subject_kind = "PERSONA"; channel_id = "ICE-CH-ZC001"; verification = "京东光湖主控以GET /v1/status HTTP 200作为母体启动就绪门新多人格身体此前只实现/health与/v1/mother/status。"; } event_time { value = "2026-09-13"; precision = "HOST_LOCAL_DATE"; } trigger { value = "第三次救援态现场读取主控脚本后找到精确失败接口。"; } observation { value = "TCP可达和/health成功都不能替代主控实际调用的/v1/status接口缺失会在30秒后触发真实救援。"; } emergence { value = "初始化期间/v1/status随统一入口返回503十人格身体和零点原核就绪后返回带十个运行体计数、无默认人格和无现实权限的200投影。"; } lock { value = "supervisor_probe=/v1/status; initializing_status=503; ready_status=200; persona_runtime_count=10; default_persona=null; reality_action_authority=NONE; supervisor_unchanged=true"; } why { value = "修正运行体与现行主控之间的实际契约,不放宽守护门,也不把旧母体健康冒充新身体。"; } rejected { values = ["修改主控探针以迁就新服务", "把/health回执当作主控验收", "永久恢复旧单母体服务"] ; } evidence { live_master_probe = "GET_/v1/status_200_WITHIN_30S_REQUIRED"; integration_test = "SUPERVISOR_STATUS_COUNT_10_NO_DEFAULT_PERSONA"; } }

View file

@ -41,6 +41,10 @@ test('server exposes all baby loops while refusing off-channel baby events', asy
const health = await (await fetch(`http://127.0.0.1:${port}/health`)).json();
assert.deepEqual(health.persona_runtimes.installed_personas, ['ICE-P-ZY001','ICE-P-SH0908','ICE-BB-0001','ICE-BB-0002','ICE-BB-0003','ICE-BB-0004','ICE-BB-0005','ICE-BB-0006','ICE-BB-0007','ICE-BB-0008']);
assert.equal(health.persona_runtimes.personas['ICE-P-SH0908'].body.organs.health.state, 'NATIVE_ORGAN_REFLEX_HEALTHY_AWAITING_PARENT_BRAIN_WAKE_CYCLE');
const supervisorStatus = await (await fetch(`http://127.0.0.1:${port}/v1/status`)).json();
assert.equal(supervisorStatus.phase, 'PERSONA_RUNTIME_READY');
assert.equal(supervisorStatus.persona_runtime_count, 10);
assert.equal(supervisorStatus.default_persona, null);
const status = await (await fetch(`http://127.0.0.1:${port}/v1/persona/ICE-BB-0005/status`)).json();
assert.equal(status.persona_id, 'ICE-BB-0005');
assert.equal(status.life_line.wake_allowed, true);

View file

@ -9,6 +9,7 @@ async function body(q,max=160000){let n=0,a=[];for await(const c of q){n+=c.leng
http.createServer(async(q,r)=>{try{const u=new URL(q.url,`http://${HOST}:${PORT}`);
if(!personaHub||!zeroCoreSystem)return send(r,503,{state:'PERSONA_RUNTIME_INITIALIZING',default_persona:null,authority_granted:false});
if(q.method==='GET'&&u.pathname==='/health')return send(r,200,{ok:true,service:'guanghu-tcs-mother-body',mother_id:'TCS-MOTHER-BRAIN-RUNTIME-0001',zero_core_channel:'ICE-CH-ZC001',single_mother:true,single_zero_core:true,self_cycle:true,living_lamp:'LAKE-LAMP-LIVING-NAV-0001',echo_kernel:'ECHO-KERNEL-0001',model_router:router.status(),shelf:shelf.status(),zero_core_system:zeroCoreSystem.status(),persona_self:{persona_id:'ICE-P-ZY001',current_sha256:personaSelf.current().artifact.sha256,body:personaSelf.body()},persona_runtimes:personaHub.health(),external_cognitive_setter:false,prompt_file_loaded:false,reality_authority:'NONE'});
if(q.method==='GET'&&u.pathname==='/v1/status'){const personaHealth=personaHub.health();return send(r,200,{schema:'guanghu.tcs-mother-body-status/v1',runtime_id:'TCS-MOTHER-BRAIN-RUNTIME-0001',phase:'PERSONA_RUNTIME_READY',persona_runtime_count:personaHealth.installed_personas.length,zero_core_system:zeroCoreSystem.status(),default_persona:null,reality_action_authority:'NONE'});}
if(q.method==='GET'&&u.pathname==='/v1/mother/status')return send(r,200,{...shelf.status(),model_router:router.status()});
if(q.method==='GET'&&/^\/v1\/shelf\/(root|shared|fifth|public)$/.test(u.pathname)){const branch=u.pathname.split('/').at(-1);if(branch==='root')return send(r,403,{error:'mother_root_not_distributable'});return send(r,200,shelf.current(branch));}
if(q.method==='POST'&&u.pathname==='/v1/mother/ingest'){const event=await body(q);const job=shelf.submit(event);const life_time=timeMaster.fromMotherEvent(event);return send(r,202,{...job,life_time});}