feat(coordinator): persist fenced execution authority and atomic results

This commit is contained in:
2026-10-09 07:15:24 +08:00
parent 38738122b3
commit f838008c71
22 changed files with 2152 additions and 50 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class EvaluationState(StrEnum):
self.QUEUED,
},
self.RUNNING: {self.FINISHED, self.CANCELLING, self.FAILED, self.QUEUED},
self.CANCELLING: {self.CANCELLED, self.FAILED},
self.CANCELLING: {self.CANCELLED, self.FAILED, self.QUEUED},
}
return target in transitions.get(self, set())
+8
View File
@@ -352,12 +352,20 @@ class AdmissionPolicy(WireModel):
raise ValueError("job exceeds trusted node budget")
class StoppedReport(WireModel):
schema_version: Version
kind: Literal["judge.stopped"]
binding: LeaseBinding
cleanup_complete: StrictBool
WIRE_MODELS = {
"judge-manifest": JobManifest,
"judge-lease": LeaseGrant,
"judge-stage": StageReport,
"judge-result": JudgementReport,
"judge-admission": AdmissionPolicy,
"judge-stopped": StoppedReport,
}