From 402565517cf6bff2b376547a6ade4d06b1ecfa3c Mon Sep 17 00:00:00 2001 From: AIEN Date: Fri, 16 Oct 2026 11:30:31 -0500 Subject: [PATCH 1/2] facts: the receipt reads the Spark's commit status, not the hosted bridge check The hosted check run named "AIEN Verification" is the bridge job. It finishes in about a minute whatever the Spark later finds, and on bdd58a2b it reported success while the Spark had posted FAIL (PREFILL-E2E-2) as the commit status "AIEN Verification (Spark)". The page showed PASS for a commit the judge had failed. The gatherer now reads only that Spark commit status. Its description is cut before the bundle path, which lives on the Spark's own disk. When the status has no link, the receipt links to the commit page on GitHub, where the status is visible. With no Spark status at all the receipt says so. Co-Authored-By: Claude Fable 5.1 Co-authored-by: Drake Stapleton --- crates/site-builder/src/facts.rs | 56 +++++++++++++++++++++++--------- facts.json | 10 +++--- 2 files changed, 46 insertions(+), 20 deletions(-) diff --git a/crates/site-builder/src/facts.rs b/crates/site-builder/src/facts.rs index c937e9ce..711a7678 100644 --- a/crates/site-builder/src/facts.rs +++ b/crates/site-builder/src/facts.rs @@ -214,19 +214,25 @@ pub fn gather() -> Result { .unwrap_or("") .to_string(); let committed_at = commit.pointer("/commit/committer/date").and_then(|d| d.as_str()).unwrap_or("").to_string(); - // The judge's verdict is published as a check run named "AIEN Verification". - let runs = gh(&[&format!("repos/{repo}/commits/{sha}/check-runs?per_page=100")])?; - let verification = runs - .get("check_runs") + // The judge is the Spark. Its verdict is posted as the commit status whose context is + // "AIEN Verification (Spark)". The hosted check run that is also named "AIEN Verification" + // is only the bridge job and finishes in a minute whatever the Spark later finds, so it + // is never read here: it said success on a commit the Spark had marked FAIL. + let combined = gh(&[&format!("repos/{repo}/commits/{sha}/status")])?; + let verification = combined + .get("statuses") .and_then(|a| a.as_array()) - .and_then(|a| a.iter().filter(|r| s(r, "name") == "AIEN Verification").max_by(|a, b| s(a, "completed_at").cmp(&s(b, "completed_at")))); + .and_then(|a| a.iter().filter(|r| s(r, "context") == SPARK_STATUS_CONTEXT).max_by(|a, b| s(a, "updated_at").cmp(&s(b, "updated_at")))); let receipt = match verification { - Some(run) => { - let (state, description) = match (s(run, "status").as_str(), s(run, "conclusion").as_str()) { - ("completed", "success") => ("success", "Published Spark verification bundle matches this commit."), - ("completed", "failure") | ("completed", "timed_out") => ("failure", "Verification failed for this commit."), - ("completed", other) => ("pending", if other.is_empty() { "Verification finished without a verdict." } else { "Verification finished without a pass or fail verdict." }), - _ => ("pending", "Verification is still running for this commit."), + Some(status) => { + let state = match s(status, "state").as_str() { + "success" => "success", + "failure" | "error" => "failure", + _ => "pending", + }; + let target_url = { + let t = s(status, "target_url"); + if t.is_empty() { format!("https://github.com/{repo}/commit/{sha}") } else { t } }; Receipt { repo: repo.to_string(), @@ -234,9 +240,9 @@ pub fn gather() -> Result { commit_title, committed_at, state: state.to_string(), - description: description.to_string(), - target_url: s(run, "html_url"), - updated_at: s(run, "completed_at"), + description: public_description(&s(status, "description")), + target_url, + updated_at: s(status, "updated_at"), } } None => Receipt { @@ -245,7 +251,7 @@ pub fn gather() -> Result { commit_title, committed_at, state: "none".to_string(), - description: "No verification status published for this commit yet.".to_string(), + description: "The Spark has not published a verdict for this commit yet.".to_string(), target_url: String::new(), updated_at: String::new(), }, @@ -254,6 +260,16 @@ pub fn gather() -> Result { Ok(Facts { generated_at: now_utc(), components, decisions, receipt }) } +/// The commit status context the Spark judge posts its verdict under. +pub const SPARK_STATUS_CONTEXT: &str = "AIEN Verification (Spark)"; + +/// The Spark writes its verdict line followed by the bundle path on its own disk. The +/// verdict is public; the path is not useful to anyone else, so it is cut off here. +pub fn public_description(raw: &str) -> String { + let cut = raw.find(": bundle ").or_else(|| raw.find(" bundle /")).unwrap_or(raw.len()); + raw[..cut].trim().to_string() +} + /// Cut a long title at a word boundary so it reads as a title, not a sentence. pub fn clip(text: &str, max: usize) -> String { if text.chars().count() <= max { @@ -284,6 +300,16 @@ pub fn short_date(ts: &str) -> String { mod tests { use super::*; + #[test] + fn public_description_drops_the_bundle_path() { + assert_eq!( + public_description("BLOCKED FAIL PREFILL-E2E-2:rc_nonzero: bundle /home/x/.local/state/bundles/a/b"), + "BLOCKED FAIL PREFILL-E2E-2:rc_nonzero" + ); + assert_eq!(public_description("PASS 19 gates"), "PASS 19 gates"); + assert_eq!(public_description(""), ""); + } + #[test] fn short_date_reads_rfc3339() { assert_eq!(short_date("2026-10-16T15:48:43Z"), "16 Oct 2026"); diff --git a/facts.json b/facts.json index d05ad8d3..67a1726a 100644 --- a/facts.json +++ b/facts.json @@ -1,5 +1,5 @@ { - "generated_at": "2026-10-16T16:17:55Z", + "generated_at": "2026-10-16T16:29:47Z", "components": [ { "key": "aienos", @@ -124,9 +124,9 @@ "sha": "bdd58a2b8fc873deecc06871809817801ac8b1e2", "commit_title": "aien-kv-cache: document KV memory ownership and concurrency at the source (PERF-DOC P1) (#588)", "committed_at": "2026-10-16T11:23:08Z", - "state": "success", - "description": "Published Spark verification bundle matches this commit.", - "target_url": "https://github.com/aien-dev/aien-sovereign-core-mv/actions/runs/38893423544/job/116948128626", - "updated_at": "2026-10-16T11:24:18Z" + "state": "failure", + "description": "BLOCKED FAIL PREFILL-E2E-2:rc_nonzero", + "target_url": "https://github.com/aien-dev/aien-sovereign-core/commit/bdd58a2b8fc873deecc06871809817801ac8b1e2", + "updated_at": "2026-10-16T12:49:38Z" } } From 6576f085462d3ae8a445f34bdc5a6d8b164374b5 Mon Sep 17 00:00:00 2001 From: AIEN Date: Fri, 16 Oct 2026 11:30:31 -0500 Subject: [PATCH 2/2] crumb: compile after the receipt source fix Co-Authored-By: Claude Fable 5.1 Co-authored-by: Drake Stapleton --- .crumb | 18 +++++++++--------- crates/.crumb | 14 +++++++------- crates/site-builder/.crumb | 14 +++++++------- crates/site-builder/src/.crumb | 10 +++++----- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.crumb b/.crumb index 01710563..928bccdb 100644 --- a/.crumb +++ b/.crumb @@ -22,19 +22,19 @@ "children": [ { "digest": "1edee9310c52d0de083418290f39d513318c314225c551218a271b85eb057f3d", - "last_commit": "f90f086", + "last_commit": "bafcae8", "name": ".github", "purpose": "GitHub automation configuration" }, { - "digest": "20715fe1c40fe0476f015d9b1f4b61331a1c6aa32700e94459980902ad9aab0d", - "last_commit": "f90f086", + "digest": "b9d7368701d7b8e10ae7d852a92703cee73cd818718257d175ecd644d959ca92", + "last_commit": "4025655", "name": "crates", "purpose": "Native Rust website crates" }, { "digest": "05d3e7f8a8deacbfeb457d6ed281854c5b84ee5c781de1f6393d5b0c4d890deb", - "last_commit": "f90f086", + "last_commit": "bafcae8", "name": "public", "purpose": "Static public website assets" }, @@ -45,15 +45,15 @@ "purpose": "Dependency-free public GitHub measurement collection and validation" } ], - "children_root": "sha256:8c1e0d9dfffd94506980acfa466a76473d31d59f0fe0235017fa33f4f88485a4", - "compiled_at": "2026-10-16T16:25:19Z", + "children_root": "sha256:698464a7167f4e3426404f1960c99f99ae71a04201cefdd297d4cfccd633bed5", + "compiled_at": "2026-10-16T16:30:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:d3ec57a5e2e4e614922bb737052a5da720bd2b7f848cede5c2aa130508db1fbc", + "digest": "sha256:b29565621b1b22cb6239da3d5f0bc808b381cc4fcde4e4bcd75b79d132033efd", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 108, - "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", - "source_tree": "sha256:2f2b53dfc2215853c81fd2b1cfcf3cd960292431a9c6886f7de7b743e0438f05" + "generated_at_commit": "402565517cf6bff2b376547a6ade4d06b1ecfa3c", + "source_tree": "sha256:0b5a62a329ef9ff07579ac6820ab026896dc98b5e4ed60de1cbd27a1483fe36e" }, "progress": { "initial_edits": "Dashboard draft predates explicit Crumb reminder; subsequent integration is claimed and recorded.", diff --git a/crates/.crumb b/crates/.crumb index 6ff88add..b23de3ff 100644 --- a/crates/.crumb +++ b/crates/.crumb @@ -7,21 +7,21 @@ "generated": { "children": [ { - "digest": "00daa640fa3239cb6d801a6a4675397302508b9f62a083ccc73d4d5d62689323", - "last_commit": "f90f086", + "digest": "bd9a9beb9b87f91c89431919d49d4b0a5bd8ecdf1b08ec4c3a28a91d2bd3b10f", + "last_commit": "4025655", "name": "site-builder", "purpose": "Rust static site generator" } ], - "children_root": "sha256:66b5154f3307b3cba077da6f11acb527c4316a2abc63049f26740e98e41090d1", - "compiled_at": "2026-10-16T16:25:19Z", + "children_root": "sha256:d6aaad48a7035f82fbfc602fef92879e2525c238cae04bf3274027b45a33c2e7", + "compiled_at": "2026-10-16T16:30:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:20715fe1c40fe0476f015d9b1f4b61331a1c6aa32700e94459980902ad9aab0d", + "digest": "sha256:b9d7368701d7b8e10ae7d852a92703cee73cd818718257d175ecd644d959ca92", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 26, - "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", - "source_tree": "sha256:d86e168fd5eb2473ac34681b9c3b255ad74bbdb169c61fbb9962fbca18e9c041" + "generated_at_commit": "402565517cf6bff2b376547a6ade4d06b1ecfa3c", + "source_tree": "sha256:72b98b2f797e28392b0de8dbf6d2fd0e8ecf8c9e4f092be72166541497a5b0e5" } }, "invariants": [ diff --git a/crates/site-builder/.crumb b/crates/site-builder/.crumb index 48cb892c..5a6c6c54 100644 --- a/crates/site-builder/.crumb +++ b/crates/site-builder/.crumb @@ -7,8 +7,8 @@ "generated": { "children": [ { - "digest": "0f51bc2b8f45e86e866a1943c870091310809539bf04e60b32df546c940224d0", - "last_commit": "f90f086", + "digest": "3d2904f008a0f6b217aa157cf72605d8f9e0495a6e91b09ee3e8be6f44cd6e09", + "last_commit": "4025655", "name": "src", "purpose": "Page assembly and site build verification" }, @@ -19,15 +19,15 @@ "purpose": "Reviewed HTML templates for source-backed pages" } ], - "children_root": "sha256:a69250df0db4f4046732f074e7f513403a098d9f7e9f58f14f5bff62bf66fd71", - "compiled_at": "2026-10-16T16:25:19Z", + "children_root": "sha256:1d588cee6a59c3360f67318ecf52bd765bdeb4abcf799b42865440af4d5706f6", + "compiled_at": "2026-10-16T16:30:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:00daa640fa3239cb6d801a6a4675397302508b9f62a083ccc73d4d5d62689323", + "digest": "sha256:bd9a9beb9b87f91c89431919d49d4b0a5bd8ecdf1b08ec4c3a28a91d2bd3b10f", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 26, - "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", - "source_tree": "sha256:d86e168fd5eb2473ac34681b9c3b255ad74bbdb169c61fbb9962fbca18e9c041" + "generated_at_commit": "402565517cf6bff2b376547a6ade4d06b1ecfa3c", + "source_tree": "sha256:72b98b2f797e28392b0de8dbf6d2fd0e8ecf8c9e4f092be72166541497a5b0e5" } }, "invariants": [ diff --git a/crates/site-builder/src/.crumb b/crates/site-builder/src/.crumb index 494f6811..a0742832 100644 --- a/crates/site-builder/src/.crumb +++ b/crates/site-builder/src/.crumb @@ -8,20 +8,20 @@ "children": [ { "digest": "082bdf6b4ddf3fe1e7fd957e7db7e6117c4fa91a02147445ba402dc2c724b899", - "last_commit": "f90f086", + "last_commit": "bafcae8", "name": "components", "purpose": "Reusable page content and navigation" } ], "children_root": "sha256:68722655c9bfba6793e3a9353736e181c35dc12e166b501b303438e5124c9973", - "compiled_at": "2026-10-16T16:25:19Z", + "compiled_at": "2026-10-16T16:30:31Z", "compiler": "crumb-compile/1", - "digest": "sha256:0f51bc2b8f45e86e866a1943c870091310809539bf04e60b32df546c940224d0", + "digest": "sha256:3d2904f008a0f6b217aa157cf72605d8f9e0495a6e91b09ee3e8be6f44cd6e09", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 23, - "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", - "source_tree": "sha256:d411b70d4b182d0f5adf1cd8a511735228f30637e29c4bf36f05921e53e78d88" + "generated_at_commit": "402565517cf6bff2b376547a6ade4d06b1ecfa3c", + "source_tree": "sha256:ac16d2516421e49caa07aafd595d0e1e0090cf4e41f3dbebbccc7796666188bf" } }, "invariants": [