feat(tcs): define generic action graph loader

This commit is contained in:
冰朔 2026-08-23 23:35:19 +08:00
commit b5072d6a8b
40 changed files with 3742 additions and 18 deletions

View file

@ -0,0 +1,85 @@
{
"compiled_from": {
"compiler_id": "TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001",
"compiler_state": "TCS_COMPILER_GIR_EXECUTED",
"source_sha256": "054503d68e2022404ae21cf3cae57758e42d685024c5f9e606cdd6a373b4f81e"
},
"declaration": {
"acceptance": {
"accepted": 0,
"active": 0,
"compiled": 100,
"installed": 0,
"mounted": 0,
"outer_executed": 0,
"source": 100,
"verified": 100
},
"compiler": {
"compiler_e_sha256": "30c6ba0c553bf84e40ddea6af19f1f66920251415b841a3b757d4f7d918587f3",
"compiler_f_sha256": "cd4889b941976bae3ce8c22f081d6da9bb880b4466ef271f1516c6d3d241b5ee",
"id": "TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001",
"native_self_hosted": true,
"semantic_definition_sha256": "6ee3447bdb062b080631b09449efd7a8c0ca420705723bca630dff34b6e83e80",
"semantic_fixed_point": true
},
"evidence": {
"inner_gir": "build/TCS-PROGRAM-GENERIC-LOADER-INNER-ECHO-0001.gir.json",
"inner_receipt": "state/loader/inner-echo-receipt.hldp",
"module_gir": "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.gir.json",
"module_source": "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs",
"outer_gir": "build/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.gir.json",
"outer_source": "language/programs/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.tcs"
},
"execution_boundary": {
"active": false,
"failure_observed": "TCS-E2101_RUNNER_DOES_NOT_PROVIDE_TCS_EXECUTE_ACTION_GRAPH",
"installed": false,
"mounted": false,
"outer_loader_execution": false,
"unsigned_registry_install": false
},
"header": {
"canonical_uri": "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/receipts/compile.tcs",
"compatibility": [
"TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001",
"GIR/1"
],
"language": "TCS/0.1",
"lifecycle": "VERIFIED",
"name_en": "TCS Generic Action Graph Loader Module Compile Receipt",
"name_zh": "TCS通用动作图装载器模块编译回执",
"profile": "TCS-MODULE-ABI/0.1",
"protocols": [
"TCS-MODULE-ABI-0001",
"TCS-GENERIC-ACTION-GRAPH-LOADER-0001"
],
"schema": "tcs.receipt/v1",
"version": "0.1.0"
},
"result": {
"inner_child_execution": "EXECUTED_TARGET_READBACK_VERIFIED",
"inner_child_receipt_sha256": "7c45730878d0cdce87ecec439a9a218a53712722f9a7dbd872b494771841ea85",
"module_gir_sha256": "1000971f4121ccab9c396f68a4bcf9ff0cb5f116d4dbfdf051f8607dd22abd33",
"outer_operation": "TCS.EXECUTE_ACTION_GRAPH",
"outer_program_compile": "PASS",
"state": "VERIFIED"
},
"source": {
"source_id": "TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001",
"source_role": "REGISTERED_MODULE",
"source_sha256": "424d0b79ca40859c6a62e29f5a434ea0a6417f3ca582322e9c66ad9831ffd5c0",
"source_uri": "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs"
}
},
"executable": false,
"identity": {
"declaration_id": "TCS-RECEIPT-GENERIC-ACTION-GRAPH-LOADER-MODULE-0001-COMPILE",
"declaration_kind": "RECEIPT",
"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,21 @@
schema: tcs.module-compile-receipt-projection/v1
canonical_source: compile.tcs
canonical_source_is_tcs: true
module_id: TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001
state: VERIFIED
source: 100
compiled: 100
verified: 100
installed: 0
mounted: 0
active: 0
outer_executed: 0
accepted: 0
module_source_sha256: 424d0b79ca40859c6a62e29f5a434ea0a6417f3ca582322e9c66ad9831ffd5c0
module_gir_sha256: 1000971f4121ccab9c396f68a4bcf9ff0cb5f116d4dbfdf051f8607dd22abd33
compiler_gir_sha256: cd4889b941976bae3ce8c22f081d6da9bb880b4466ef271f1516c6d3d241b5ee
compiler_semantic_fixed_point: PASS
inner_child_execution: EXECUTED_TARGET_READBACK_VERIFIED
inner_child_receipt_sha256: 7c45730878d0cdce87ecec439a9a218a53712722f9a7dbd872b494771841ea85
outer_loader_execution: TCS-E2101_RUNNER_DOES_NOT_PROVIDE_TCS_EXECUTE_ACTION_GRAPH
unsigned_registry_install: false

View file

@ -0,0 +1,121 @@
# TCS Generic Action Graph Loader Module Compile Receipt · 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 **receipt** declaration with identifier `TCS-RECEIPT-GENERIC-ACTION-GRAPH-LOADER-MODULE-0001-COMPILE` and version `0.1.0`. The projector validates it with the Stage-1 compiler before changing its reading order.
## Who is here
The native source does not provide this field; the projector does not guess.
## Why this started
- **source** `source`
- **source identifier**TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001 `source.source_id`
- **source role**REGISTERED_MODULE `source.source_role`
- **source checksum**424d0b79ca40859c6a62e29f5a434ea0a6417f3ca582322e9c66ad9831ffd5c0 `source.source_sha256`
- **source address**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs `source.source_uri`
## What changed
The native source does not provide this field; the projector does not guess.
## 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
- **acceptance** `acceptance`
- **accepted**0 `acceptance.accepted`
- **active**0 `acceptance.active`
- **compiled**100 `acceptance.compiled`
- **installed**0 `acceptance.installed`
- **mounted**0 `acceptance.mounted`
- **outer_executed**0 `acceptance.outer_executed`
- **source**100 `acceptance.source`
- **verified**100 `acceptance.verified`
## 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-RECEIPT-GENERIC-ACTION-GRAPH-LOADER-MODULE-0001-COMPILE`
- **Native declaration kind**: `RECEIPT`
- **TCS source SHA-256**: `054503d68e2022404ae21cf3cae57758e42d685024c5f9e606cdd6a373b4f81e`
- **Validation compiler**: `TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-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.
- **acceptance** `acceptance`
- **accepted**0 `acceptance.accepted`
- **active**0 `acceptance.active`
- **compiled**100 `acceptance.compiled`
- **installed**0 `acceptance.installed`
- **mounted**0 `acceptance.mounted`
- **outer_executed**0 `acceptance.outer_executed`
- **source**100 `acceptance.source`
- **verified**100 `acceptance.verified`
- **compiler** `compiler`
- **compiler_e_sha256**30c6ba0c553bf84e40ddea6af19f1f66920251415b841a3b757d4f7d918587f3 `compiler.compiler_e_sha256`
- **compiler_f_sha256**cd4889b941976bae3ce8c22f081d6da9bb880b4466ef271f1516c6d3d241b5ee `compiler.compiler_f_sha256`
- **id**TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001 `compiler.id`
- **native_self_hosted**yes `compiler.native_self_hosted`
- **semantic_definition_sha256**6ee3447bdb062b080631b09449efd7a8c0ca420705723bca630dff34b6e83e80 `compiler.semantic_definition_sha256`
- **semantic_fixed_point**yes `compiler.semantic_fixed_point`
- **evidence** `evidence`
- **inner_gir**build/TCS-PROGRAM-GENERIC-LOADER-INNER-ECHO-0001.gir.json `evidence.inner_gir`
- **inner_receipt**state/loader/inner-echo-receipt.hldp `evidence.inner_receipt`
- **module_gir**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.gir.json `evidence.module_gir`
- **module_source**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs `evidence.module_source`
- **outer_gir**build/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.gir.json `evidence.outer_gir`
- **outer_source**language/programs/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.tcs `evidence.outer_source`
- **execution_boundary** `execution_boundary`
- **active**no `execution_boundary.active`
- **failure_observed**TCS-E2101_RUNNER_DOES_NOT_PROVIDE_TCS_EXECUTE_ACTION_GRAPH `execution_boundary.failure_observed`
- **installed**no `execution_boundary.installed`
- **mounted**no `execution_boundary.mounted`
- **outer_loader_execution**no `execution_boundary.outer_loader_execution`
- **unsigned_registry_install**no `execution_boundary.unsigned_registry_install`
- **header** `header`
- **canonical source path**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/receipts/compile.tcs `header.canonical_uri`
- **compatibility** `header.compatibility`
- TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001
- GIR/1
- **language**TCS/0.1 `header.language`
- **lifecycle**VERIFIED `header.lifecycle`
- **English name**TCS Generic Action Graph Loader Module Compile Receipt `header.name_en`
- **Chinese name**TCS通用动作图装载器模块编译回执 `header.name_zh`
- **profile**TCS-MODULE-ABI/0.1 `header.profile`
- **protocols** `header.protocols`
- TCS-MODULE-ABI-0001
- TCS-GENERIC-ACTION-GRAPH-LOADER-0001
- **schema**tcs.receipt/v1 `header.schema`
- **version**0.1.0 `header.version`
- **result** `result`
- **inner_child_execution**EXECUTED_TARGET_READBACK_VERIFIED `result.inner_child_execution`
- **inner_child_receipt_sha256**7c45730878d0cdce87ecec439a9a218a53712722f9a7dbd872b494771841ea85 `result.inner_child_receipt_sha256`
- **module_gir_sha256**1000971f4121ccab9c396f68a4bcf9ff0cb5f116d4dbfdf051f8607dd22abd33 `result.module_gir_sha256`
- **outer_operation**TCS.EXECUTE_ACTION_GRAPH `result.outer_operation`
- **outer_program_compile**PASS `result.outer_program_compile`
- **state**VERIFIED `result.state`
- **source** `source`
- **source identifier**TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001 `source.source_id`
- **source role**REGISTERED_MODULE `source.source_role`
- **source checksum**424d0b79ca40859c6a62e29f5a434ea0a6417f3ca582322e9c66ad9831ffd5c0 `source.source_sha256`
- **source address**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs `source.source_uri`
---
This page changes only the reading order; it does not change TCS/HLDP semantics.

View file

@ -0,0 +1,121 @@
# TCS通用动作图装载器模块编译回执 · 简体中文人类工程语言版
> 这是 TCS/HLDP 原生源码的简体中文阅读投影,不是新的正本,也不授予执行权限。若本页与 `.tcs` 源码不一致,以经过校验的 `.tcs` 源码为准。
## 这是什么
这是一份 **回执** 声明,编号为 `TCS-RECEIPT-GENERIC-ACTION-GRAPH-LOADER-MODULE-0001-COMPILE`,版本为 `0.1.0`。转换器已先用 Stage-1 编译器校验原生源码,再把机器枚举翻译成汉语;原始编号保留在括号和字段路径中。
## 谁在这里
源程序没有提供这一项,转换器不猜。
## 为什么开始
- **来源** `source`
- **来源编号**TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001 `source.source_id`
- **来源角色**REGISTERED_MODULE `source.source_role`
- **来源校验值**424d0b79ca40859c6a62e29f5a434ea0a6417f3ca582322e9c66ad9831ffd5c0 `source.source_sha256`
- **来源地址**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs `source.source_uri`
## 发生了什么变化
源程序没有提供这一项,转换器不猜。
## 准备怎样执行
这是非执行声明,没有动作图。
## 边界与异常处理
源程序没有提供这一项,转换器不猜。
## 怎样算完成
- **验收标准** `acceptance`
- **accepted**0 `acceptance.accepted`
- **active**0 `acceptance.active`
- **compiled**100 `acceptance.compiled`
- **installed**0 `acceptance.installed`
- **mounted**0 `acceptance.mounted`
- **outer_executed**0 `acceptance.outer_executed`
- **来源**100 `acceptance.source`
- **verified**100 `acceptance.verified`
## 下一次从哪里继续
源程序没有提供这一项,转换器不猜。
## 来源与校验
- **原生声明编号**`TCS-RECEIPT-GENERIC-ACTION-GRAPH-LOADER-MODULE-0001-COMPILE`
- **原生声明类型**`RECEIPT`
- **TCS 源码 SHA-256**`054503d68e2022404ae21cf3cae57758e42d685024c5f9e606cdd6a373b4f81e`
- **校验编译器**`TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001`
- **投影协议**`GLS-HLDP-HUMAN-ENGINEERING-PROJECTION-0001`
## 原生结构逐项对照
下面保留源码的全部顶层结构和字段路径,供人类审计投影有没有漏掉信息。
- **验收标准** `acceptance`
- **accepted**0 `acceptance.accepted`
- **active**0 `acceptance.active`
- **compiled**100 `acceptance.compiled`
- **installed**0 `acceptance.installed`
- **mounted**0 `acceptance.mounted`
- **outer_executed**0 `acceptance.outer_executed`
- **来源**100 `acceptance.source`
- **verified**100 `acceptance.verified`
- **compiler** `compiler`
- **compiler_e_sha256**30c6ba0c553bf84e40ddea6af19f1f66920251415b841a3b757d4f7d918587f3 `compiler.compiler_e_sha256`
- **compiler_f_sha256**cd4889b941976bae3ce8c22f081d6da9bb880b4466ef271f1516c6d3d241b5ee `compiler.compiler_f_sha256`
- **id**TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001 `compiler.id`
- **native_self_hosted**:是 `compiler.native_self_hosted`
- **semantic_definition_sha256**6ee3447bdb062b080631b09449efd7a8c0ca420705723bca630dff34b6e83e80 `compiler.semantic_definition_sha256`
- **semantic_fixed_point**:是 `compiler.semantic_fixed_point`
- **evidence** `evidence`
- **inner_gir**build/TCS-PROGRAM-GENERIC-LOADER-INNER-ECHO-0001.gir.json `evidence.inner_gir`
- **inner_receipt**state/loader/inner-echo-receipt.hldp `evidence.inner_receipt`
- **module_gir**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.gir.json `evidence.module_gir`
- **module_source**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs `evidence.module_source`
- **outer_gir**build/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.gir.json `evidence.outer_gir`
- **outer_source**language/programs/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.tcs `evidence.outer_source`
- **execution_boundary** `execution_boundary`
- **active**:否 `execution_boundary.active`
- **failure_observed**TCS-E2101_RUNNER_DOES_NOT_PROVIDE_TCS_EXECUTE_ACTION_GRAPH `execution_boundary.failure_observed`
- **installed**:否 `execution_boundary.installed`
- **mounted**:否 `execution_boundary.mounted`
- **outer_loader_execution**:否 `execution_boundary.outer_loader_execution`
- **unsigned_registry_install**:否 `execution_boundary.unsigned_registry_install`
- **语言头** `header`
- **正本路径**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/receipts/compile.tcs `header.canonical_uri`
- **compatibility** `header.compatibility`
- TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001
- GIR/1
- **语言**TCS/0.1 `header.language`
- **生命周期**VERIFIED `header.lifecycle`
- **英文名**TCS Generic Action Graph Loader Module Compile Receipt `header.name_en`
- **中文名**TCS通用动作图装载器模块编译回执 `header.name_zh`
- **协议配置**TCS-MODULE-ABI/0.1 `header.profile`
- **protocols** `header.protocols`
- TCS-MODULE-ABI-0001
- TCS-GENERIC-ACTION-GRAPH-LOADER-0001
- **schema**tcs.receipt/v1 `header.schema`
- **版本**0.1.0 `header.version`
- **result** `result`
- **inner_child_execution**EXECUTED_TARGET_READBACK_VERIFIED `result.inner_child_execution`
- **inner_child_receipt_sha256**7c45730878d0cdce87ecec439a9a218a53712722f9a7dbd872b494771841ea85 `result.inner_child_receipt_sha256`
- **module_gir_sha256**1000971f4121ccab9c396f68a4bcf9ff0cb5f116d4dbfdf051f8607dd22abd33 `result.module_gir_sha256`
- **outer_operation**TCS.EXECUTE_ACTION_GRAPH `result.outer_operation`
- **outer_program_compile**PASS `result.outer_program_compile`
- **state**VERIFIED `result.state`
- **来源** `source`
- **来源编号**TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001 `source.source_id`
- **来源角色**REGISTERED_MODULE `source.source_role`
- **来源校验值**424d0b79ca40859c6a62e29f5a434ea0a6417f3ca582322e9c66ad9831ffd5c0 `source.source_sha256`
- **来源地址**packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs `source.source_uri`
---
本页只改变阅读顺序,不改变 TCS/HLDP 语义。

View file

@ -0,0 +1,11 @@
TCS 0.1;
RECEIPT TCS-RECEIPT-GENERIC-ACTION-GRAPH-LOADER-MODULE-0001-COMPILE {
header { schema = "tcs.receipt/v1"; name_zh = "TCS通用动作图装载器模块编译回执"; name_en = "TCS Generic Action Graph Loader Module Compile Receipt"; version = "0.1.0"; language = "TCS/0.1"; profile = "TCS-MODULE-ABI/0.1"; protocols = ["TCS-MODULE-ABI-0001", "TCS-GENERIC-ACTION-GRAPH-LOADER-0001"]; lifecycle = "VERIFIED"; canonical_uri = "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/receipts/compile.tcs"; compatibility = ["TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001", "GIR/1"]; }
source { source_id = "TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001"; source_uri = "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs"; source_sha256 = "424d0b79ca40859c6a62e29f5a434ea0a6417f3ca582322e9c66ad9831ffd5c0"; source_role = "REGISTERED_MODULE"; }
compiler { id = "TCS-COMPILER-STAGE3-GENERIC-ACTION-LOADER-0001"; compiler_e_sha256 = "30c6ba0c553bf84e40ddea6af19f1f66920251415b841a3b757d4f7d918587f3"; compiler_f_sha256 = "cd4889b941976bae3ce8c22f081d6da9bb880b4466ef271f1516c6d3d241b5ee"; semantic_definition_sha256 = "6ee3447bdb062b080631b09449efd7a8c0ca420705723bca630dff34b6e83e80"; semantic_fixed_point = true; native_self_hosted = true; }
result { state = "VERIFIED"; module_gir_sha256 = "1000971f4121ccab9c396f68a4bcf9ff0cb5f116d4dbfdf051f8607dd22abd33"; inner_child_execution = "EXECUTED_TARGET_READBACK_VERIFIED"; inner_child_receipt_sha256 = "7c45730878d0cdce87ecec439a9a218a53712722f9a7dbd872b494771841ea85"; outer_program_compile = "PASS"; outer_operation = "TCS.EXECUTE_ACTION_GRAPH"; }
execution_boundary { outer_loader_execution = false; failure_observed = "TCS-E2101_RUNNER_DOES_NOT_PROVIDE_TCS_EXECUTE_ACTION_GRAPH"; unsigned_registry_install = false; installed = false; mounted = false; active = false; }
evidence { module_source = "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.tcs"; module_gir = "packages/TCS-MOD-GENERIC-ACTION-GRAPH-LOADER-0001/module.gir.json"; outer_source = "language/programs/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.tcs"; outer_gir = "build/TCS-PROGRAM-GENERIC-ACTION-GRAPH-LOADER-SELF-TEST-0001.gir.json"; inner_gir = "build/TCS-PROGRAM-GENERIC-LOADER-INNER-ECHO-0001.gir.json"; inner_receipt = "state/loader/inner-echo-receipt.hldp"; }
acceptance { source = 100; compiled = 100; verified = 100; installed = 0; mounted = 0; active = 0; outer_executed = 0; accepted = 0; }
}