define TCS language and prove stage0 execution slice

This commit is contained in:
冰朔 2026-08-21 16:57:25 +08:00
commit 3959ae4270
31 changed files with 2449 additions and 5 deletions

113
build/ECHO-MODULE.gir.json Normal file
View file

@ -0,0 +1,113 @@
{
"authority_proof": {
"issuer": "LOCAL_TEST_FIXTURE",
"lease_required": false,
"proof_ref": "TEST-ONLY",
"scope": "EXACT_BUILD_RECEIPT_PATH",
"single_use": true,
"valid_from": "PROGRAM_START",
"valid_until": "PROGRAM_END"
},
"cleanup_plan": {
"exact_boundary": "./build",
"targets": [
"UNCOMMITTED_TEST_RECEIPT"
]
},
"compiled_from": {
"compiler_id": "TCS-STAGE0-IGNITION-0001",
"compiler_state": "FOREIGN_HOST_BOOTSTRAP_SEED_NOT_SELF_HOSTED",
"source_sha256": "f1ecd630e50dfe5374ca26998d68a49efd35cf3d9de54ecabd3ca3aae68c61bf"
},
"conditions": {
"C1": {
"on_false": "FAIL_CLOSED",
"predicate": "TARGET_WITHIN_TEST_BUILD_ROOT"
}
},
"deterministic_action_graph": {
"A1": {
"input_refs": [
"MESSAGE"
],
"on_failure": "FAIL_CLOSED",
"on_success": "COMPLETE",
"operation": "CORE.ECHO",
"output_refs": [
"ECHOED"
]
}
},
"exact_target": {
"exact_path": "./build/echo-receipt.hldp",
"expected_fingerprint": "NONE",
"expected_state": "ABSENT",
"target_id": "HLP-TARGET-STAGE0-RECEIPT"
},
"failure_plan": {
"errors": [
"TCS-E6001",
"TCS-E8001"
],
"fail_closed": true
},
"identity": {
"gir_id": "GIR-HLP-PROGRAM-ECHO-0001",
"language_version": "0.1",
"program_id": "HLP-PROGRAM-ECHO-0001"
},
"inputs": {
"MESSAGE": {
"required": true,
"source": "PROGRAM_LITERAL",
"type": "Text",
"value": "光湖语言已经进入机器执行链"
}
},
"native_self_hosted": false,
"outputs": {
"ECHOED": {
"destination": "RECEIPT",
"integrity": "SHA256",
"type": "Text"
}
},
"receipt_plan": {
"human_projection": "REQUIRED",
"integrity": "SHA256",
"machine_path": "./build/echo-receipt.hldp",
"protocol": "TCS-DEV-VERIFY-v1.0",
"target_readback": "EXACT_CONTENT_AND_HASH"
},
"resource_plan": {
"concurrency": 1,
"memory_limit_bytes": 1048576,
"runway": "LOCAL_TEST",
"timeout_ms": 1000
},
"rollback_plan": {
"actions": [
"DROP_TEMP_RECEIPT"
],
"preconditions": [
"RECEIPT_NOT_COMMITTED"
],
"verification": [
"NO_FINAL_RECEIPT"
]
},
"schema": "guanghu.gir/v1",
"subject": {
"channel_id": "ICE-CH-ZC001",
"subject_id": "HLP-SYSTEM-STAGE0-TEST",
"subject_kind": "SYSTEM",
"verification": "LOCAL_TEST_FIXTURE"
},
"timeout_and_stop": {
"safe_checkpoint": "NONE",
"signals": [
"TIMEOUT"
]
},
"unresolved_natural_language": false
}

12
build/echo-receipt.hldp Normal file
View file

@ -0,0 +1,12 @@
{
"compiler_state": "FOREIGN_HOST_BOOTSTRAP_SEED_NOT_SELF_HOSTED",
"gir_sha256": "b9b56d35399e130b513417afd706e7a7ad73cc3dcb1784c678f9130c075317d5",
"native_self_hosted": false,
"operation": "CORE.ECHO",
"output": {
"ECHOED": "光湖语言已经进入机器执行链"
},
"program_id": "HLP-PROGRAM-ECHO-0001",
"schema": "tcs.execution-receipt/v1",
"state": "EXECUTED_TARGET_READBACK_VERIFIED"
}