feat(tcs): complete native translator acceptance chain
This commit is contained in:
parent
2dc560d567
commit
fd15428c46
52 changed files with 4024 additions and 38 deletions
100
build/self-host/MINIMUM-PROTOCOL.declaration.gir.json
Normal file
100
build/self-host/MINIMUM-PROTOCOL.declaration.gir.json
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
{
|
||||
"compiled_from": {
|
||||
"compiler_id": "TCS-COMPILER-STAGE1-0001",
|
||||
"compiler_state": "TCS_COMPILER_GIR_EXECUTED",
|
||||
"source_sha256": "3518fcb13d8899783c5a54bd3e7eeba54a34bb71ad60502f44dcea3b1c44ea44"
|
||||
},
|
||||
"declaration": {
|
||||
"acceptance": {
|
||||
"partial": false,
|
||||
"required": [
|
||||
"PARSE",
|
||||
"COMPILE",
|
||||
"EXECUTE",
|
||||
"TARGET_READBACK",
|
||||
"RECEIPT_HASH"
|
||||
]
|
||||
},
|
||||
"errors": {
|
||||
"E1": "TCS-E4002",
|
||||
"E2": "TCS-E6001",
|
||||
"E3": "TCS-E6002"
|
||||
},
|
||||
"examples": {
|
||||
"negative": "ABSORB_AND_PATH_TRAVERSAL_TESTS",
|
||||
"positive": "language/examples/ECHO-MODULE.tcs"
|
||||
},
|
||||
"fields": {
|
||||
"ECHOED": "Text",
|
||||
"MESSAGE": "Text"
|
||||
},
|
||||
"header": {
|
||||
"canonical_uri": "language/examples/MINIMUM-PROTOCOL.tcs",
|
||||
"compatibility": [
|
||||
"TCS-STAGE0-IGNITION-0001"
|
||||
],
|
||||
"language": "TCS/0.1",
|
||||
"lifecycle": "CANDIDATE",
|
||||
"name_en": "Echo Operation Example Protocol",
|
||||
"name_zh": "回声操作示范协议",
|
||||
"profile": "HLDP/1",
|
||||
"protocols": [
|
||||
"GLS-0010",
|
||||
"GLS-0101"
|
||||
],
|
||||
"schema": "tcs.protocol/v1",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"invariants": {
|
||||
"I1": "OUTPUT_EQUALS_INPUT",
|
||||
"I2": "TARGET_INSIDE_EXACT_ROOT",
|
||||
"I3": "RECEIPT_READBACK_REQUIRED"
|
||||
},
|
||||
"scope": {
|
||||
"operation": "CORE.ECHO",
|
||||
"reality_write": "RECEIPT_ONLY"
|
||||
},
|
||||
"source": {
|
||||
"source_id": "BINGSHUO-CURRENT-DIRECT-LANGUAGE",
|
||||
"source_role": "DIRECT_HUMAN",
|
||||
"source_sha256": "REGISTER_AT_ACCEPTANCE",
|
||||
"source_uri": "source://current-dialogue/2026-08-21"
|
||||
},
|
||||
"states": {
|
||||
"initial": "READY",
|
||||
"terminal": [
|
||||
"EXECUTED",
|
||||
"FAILED"
|
||||
],
|
||||
"values": [
|
||||
"READY",
|
||||
"EXECUTING",
|
||||
"EXECUTED",
|
||||
"FAILED"
|
||||
]
|
||||
},
|
||||
"transitions": {
|
||||
"T1": "READY->EXECUTING",
|
||||
"T2": "EXECUTING->EXECUTED_ON_READBACK",
|
||||
"T3": "EXECUTING->FAILED_ON_ERROR"
|
||||
},
|
||||
"validation": {
|
||||
"V1": "MESSAGE_IS_TEXT",
|
||||
"V2": "TARGET_EQUALS_RECEIPT_PATH"
|
||||
},
|
||||
"vocabulary": {
|
||||
"input": "MESSAGE",
|
||||
"output": "ECHOED"
|
||||
}
|
||||
},
|
||||
"executable": false,
|
||||
"identity": {
|
||||
"declaration_id": "GLS-EXAMPLE-ECHO-0001",
|
||||
"declaration_kind": "PROTOCOL",
|
||||
"language_version": "0.1"
|
||||
},
|
||||
"native_self_hosted": true,
|
||||
"natural_language_is_typed_data": true,
|
||||
"schema": "guanghu.declaration-gir/v1",
|
||||
"unresolved_natural_language": false
|
||||
}
|
||||
Loading…
Reference in a new issue