hololake-system-architecture/language/protocols/TCS-GENERIC-EXACT-STATE-PRIMITIVE-0001.tcs

11 lines
1.6 KiB
Text

TCS 0.1;
PROTOCOL TCS-GENERIC-EXACT-STATE-PRIMITIVE-0001 {
header { schema = "tcs.protocol/v1"; name_zh = "TCS通用精确状态转换机械原语"; name_en = "TCS Generic Exact State Transition Mechanical Primitive"; version = "0.1.0"; language = "TCS/0.1"; profile = "HLDP-NP/1"; lifecycle = "CANDIDATE"; canonical_uri = "language/protocols/TCS-GENERIC-EXACT-STATE-PRIMITIVE-0001.tcs"; }
operation { id = "TCS-OP-CORE-EXACT-STATE-0001"; name = "CORE.APPLY_EXACT_STATE_TRANSITION"; input = "EXPECTED_PRIOR_PLUS_OPAQUE_NEXT_STATE"; output = "CANONICAL_STATE_TARGET_AND_READBACK_RECEIPT"; semantic_owner = "CALLING_TCS_PROVIDER_GIR"; host_role = "MECHANICAL_COMPARE_ATOMIC_WRITE_HASH_AND_READBACK_ONLY"; }
inputs { expected_prior_modes = ["ABSENT", "SHA256"]; next_state = "OPAQUE_TYPED_TCS_GIR_VALUE"; exact_target = true; }
machine_rules { verify_gir = true; verify_operation = true; verify_target_equals_receipt_path = true; reject_outside_root = true; compare_prior_before_write = true; canonical_json = true; atomic_same_directory_replace = true; readback_exact_bytes = true; }
forbidden_host_semantics { interpret_natural_language = false; know_lpm = false; know_desktop = false; infer_authority = false; choose_next_state = false; expand_target = false; synthesize_product_receipt = false; }
errors { prior_mismatch = "TCS-E6001"; invalid_hash = "TCS-E3001"; unregistered_operation = "TCS-E2101"; outside_root = "TCS-E4002"; write_or_readback_failure = "TCS-E8001"; }
acceptance { one_absent_to_present_transition = "REQUIRED"; one_prior_hash_mismatch_rejection = "REQUIRED"; one_outside_root_rejection = "REQUIRED"; host_product_semantic_authority = false; }
}