From 9e6c34993e9eca265a4529af5edfefdaeb4bdffb Mon Sep 17 00:00:00 2001 From: Aditya Mukhopadhyay Date: Thu, 3 Dec 2026 19:03:27 +0530 Subject: [PATCH] Clarify MiniGraf validation comments (main) --- .github/bench/bindings-report.cjs | 4 ++-- fuzz/fuzz_targets/corrupt_file.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/bench/bindings-report.cjs b/.github/bench/bindings-report.cjs index 113ab023e7..348b9b07dc 100644 --- a/.github/bench/bindings-report.cjs +++ b/.github/bench/bindings-report.cjs @@ -87,8 +87,8 @@ function verifyEvidence(binding, metrics, directory, identity) { throw new Error('wrong WASI lockfile hash'); } const rawPath = path.join(directory, 'benchmark/samples.jsonl'); - // Keep #839's validator authoritative for sample IDs/counts/iterations and - // the complete/check markers, including rejection of smoke streams. + // Use the #839 validator to check sample IDs, counts, iteration counts, + // and complete/check markers. It rejects smoke streams. const validation = spawnSync('python3', ['-I', path.join(measuredHarness, 'validate.py'), binding, rawPath], { encoding: 'utf8' }); if (validation.status !== 0) throw new Error(`invalid raw samples: ${validation.stderr || validation.error}`); const records = read('benchmark/samples.jsonl').trim().split('\n').map(parseMetrics); diff --git a/fuzz/fuzz_targets/corrupt_file.rs b/fuzz/fuzz_targets/corrupt_file.rs index 40db908f3c..2643d31c7a 100644 --- a/fuzz/fuzz_targets/corrupt_file.rs +++ b/fuzz/fuzz_targets/corrupt_file.rs @@ -11,7 +11,8 @@ //! - then up to 16 edits of 5 bytes: offset (u32 LE, modulo the file length) //! and a byte to xor in (0 becomes 1) //! -//! Checksums are **not** recomputed: the CRCs are the contract under test. +//! Leave the original checksums in place so the test checks whether the reader +//! detects corrupted bytes. //! Each query must fail or return exactly the answer of the last generation or //! of the one before it (the meta fallback when the active meta page is //! damaged), and every query that answers must agree on one generation. A