make TCS compiler GIR control validation and lowering

This commit is contained in:
冰朔 2026-08-21 17:25:09 +08:00
commit 6e89b82d88
5 changed files with 271 additions and 17 deletions

View file

@ -2,7 +2,7 @@
"compiled_from": {
"compiler_id": "TCS-STAGE0-IGNITION-0001",
"compiler_state": "FOREIGN_HOST_BOOTSTRAP_SEED_NOT_SELF_HOSTED",
"source_sha256": "d375adb7a715c93320c14f3e38a3fa10bc764493d62cfa671e5dfd2d4d3b049f"
"source_sha256": "49259d15c57f3a725a7507ae746c372cebf9b3fc58dba580f7c41456d2344f73"
},
"compiler_definition": {
"canonicalization": {
@ -116,6 +116,26 @@
"from": "all",
"to": "unresolved_natural_language",
"transform": "MUST_BE_FALSE"
},
"G013": {
"from": "inputs",
"to": "inputs",
"transform": "COPY_RESOLVED_VALUES"
},
"G014": {
"from": "outputs",
"to": "outputs",
"transform": "COPY_RESOLVED_VALUES"
},
"G015": {
"from": "conditions",
"to": "conditions",
"transform": "COPY_RESOLVED_CONDITIONS"
},
"G016": {
"from": "failure",
"to": "failure_plan",
"transform": "COPY_EXPLICIT_FAILURE_SEMANTICS"
}
},
"output_contract": {
@ -237,7 +257,27 @@
"V010": {
"error": "TCS-E4001",
"rule": "RELATION_AND_EMOTION_DO_NOT_GRANT_AUTHORITY"
}
},
"registered_operations": [
"CORE.ECHO"
],
"required_sections": [
"header",
"source",
"subject",
"target",
"inputs",
"outputs",
"conditions",
"actions",
"authority",
"resources",
"failure",
"stop",
"cleanup",
"rollback",
"receipt"
]
},
"self_host": {
"compiler_A_compiles_stage1_to": "compiler-B.gir",
@ -329,7 +369,7 @@
"execution_abi": "TCS-COMPILER-GIR-EXEC/1",
"identity": {
"compiler_id": "TCS-COMPILER-STAGE1-0001",
"definition_sha256": "c2bf0e4e93f9952daf661628aa7b17891718c53b9fbb5e77636f5f40812ff9f6",
"definition_sha256": "3e27046ef79f33c1f60705d6774773265df30e2299c390673ae9b8029c8235b2",
"language_version": "0.1"
},
"native_self_hosted": false,