feat(tcs): complete native translator acceptance chain

This commit is contained in:
冰朔 2026-08-21 22:26:46 +08:00
commit fd15428c46
52 changed files with 4024 additions and 38 deletions

View file

@ -15,6 +15,12 @@ const phase0 = new Set([
"HLP-PART-QA-0001",
]);
const phase2Prefixes = ["HLP-PART-AFF", "HLP-PART-MEM", "HLP-PART-REL", "HLP-PART-CX"];
const verifiedSlices = new Map([
["HLP-PART-TCS-LANG-0001", ["build/self-host/compiler-B.gir.json", "receipts/TCS-ZERO-CORE-EXECUTION-20260821.json"]],
["HLP-PART-TCS-SELFHOST-0001", ["build/self-host/compiler-A.gir.json", "build/self-host/compiler-B.gir.json"]],
["HLP-PART-TCS-TRANS-0001", ["receipts/TCS-DUAL-HOST-BINARY-ACCEPTANCE-20260821.json", "receipts/JD-TCS-AGENT-ACCEPTANCE-20260821.json"]],
["HLP-PART-TCS-HOST-0001", ["receipts/TCS-HOST-PERSONA-PROBE.json", "receipts/jd/TCS-HOST-PERSONA-PROBE.json"]],
]);
function phase(part) {
if (phase0.has(part.id)) return "P0_LANGUAGE_RUNTIME_AND_QUALITY";
@ -31,6 +37,7 @@ const entries = registry.parts.map((part, index) => {
"HLP-PART-TCS-SELFHOST-0001",
"HLP-PART-TCS-STAGE0-0001",
].includes(part.id);
const verifiedEvidence = verifiedSlices.get(part.id);
return {
order: index + 1,
part_id: part.id,
@ -44,7 +51,8 @@ const entries = registry.parts.map((part, index) => {
? "CONTINUE_NATIVE_TCS_IMPLEMENTATION"
: "REWRITE_SEMANTICS_STATE_MACHINE_AUTHORITY_FAILURE_AND_RECEIPTS_IN_TCS",
host_adapter_rule: "KEEP_ONLY_MINIMUM_OS_ABI_DRIVER_OUTSIDE_TCS_MODULE",
migration_state: alreadyTcs ? "ACTIVE" : "QUEUED",
migration_state: verifiedEvidence ? "ACTIVE_VERIFIED_100" : alreadyTcs ? "ACTIVE" : "QUEUED",
verified_evidence: verifiedEvidence || [],
acceptance_required: [
"TCS_SOURCE_COMPILES_WITH_COMPILER_B",
"GIR_HAS_NO_UNRESOLVED_NATURAL_LANGUAGE",