pub struct G6RecordV1 {
pub schema: String,
pub process: String,
pub gate: String,
pub risk: TaskRisk,
pub artifact_commit: String,
pub result: GateResult,
pub missing: Vec<String>,
pub locked_paths: LockedPathsV1,
pub rerun: Option<RerunV1>,
pub rule: Option<String>,
pub reason: Option<String>,
}Expand description
The G6 part of a gate record as the Instance builds and sends it: the
judged commit, the locked-path check and the gate’s own rerun. Cloud adds
what only it knows (id, task, author, checker, ci) when it stores the
record.
The Instance does not read CI (§5.1: “a pass needs status: success
and every required_jobs entry green”), so this record is never a
pass: a clean check with a green rerun is blocked with missing: [ci_pipeline] (G6RecordV1::ready_for_cloud), and only Cloud’s record
with ci (CloudG6RecordV1) can pass.
Fields§
§schema: String§process: String§gate: String§risk: TaskRisk§artifact_commit: Stringartifact.ref: the judged commit (40 lowercase hex).
result: GateResult§missing: Vec<String>For blocked: the evidence kinds that were required and absent.
locked_paths: LockedPathsV1§rerun: Option<RerunV1>Absent only on a locked-path failure: the gate does not run tests against changed locked paths.
rule: Option<String>§reason: Option<String>Implementations§
Source§impl G6RecordV1
impl G6RecordV1
Sourcepub fn ready_for_cloud(&self) -> bool
pub fn ready_for_cloud(&self) -> bool
Whether everything the Instance checks holds, so the record goes to Cloud with the result: a valid record with a clean locked-path check and a green rerun of the judged commit, blocked only on the CI pipeline Cloud reads. Never a pass by itself.