Repository navigation
FEAT-107 slice 1: refuse component input; falcon-flight analysed natively - #257
Merged
Merged
Conversation
…vely analyze() parsed a WebAssembly component as a core module with no functions and returned Ok, so `scry-viz check` on relay's released falcon-flight-v1.142.wasm (sha256 7c65bf91...) printed "OK - 0 functions" over nothing. analyze() now returns InvalidModule for component input (wasmparser Parser::is_component) and says to fuse first. Test: the component header is refused; the core header on the same 8 bytes still parses (control). FEAT-107's baseline records the first slice: `meld fuse --reproducible` (meld 0.69.0) gives a core module, sha256 7afdb27f..., byte-identical across runs and input directories; the native scry-viz built from main checks it as 29 functions, 237 program points, 5 call edges. Default `meld fuse` is not reproducible (attestation id, time, input path). Refs: FEAT-107 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KEjmjc82RFgNAWFHuv4XoU
📐 rivet artifact deltaPR: #257 Base SHA: Validationhead — `rivet validate` resultbase — `rivet validate` result (for comparison)Artifact stats
full stats — headDiff (base → head)AADL model — headPosted by the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is FEAT-107's first slice. It fixes a fail-open in scry found while doing the slice, and records the first measurement on a released chain component.
The fix: component input is refused
analyze()parsed a WebAssembly component as a core module with no functions and returnedOk. Soscry-viz checkon relay's releasedfalcon-flight-v1.142.wasmexited 0 with "OK — 0 functions, 0 program points, 0 call edges well-formed". A gate that reports success over nothing.analyze()returnsInvalidModule("input is a WebAssembly component, not a core module; ... fuse the component first (for example withmeld fuse)"), using wasmparser'sParser::is_component, already a dependency.scry-viz checkexits 3 on the component.component_input_is_refused_not_analysed_as_empty. The 8-byte component header is refused; the core-module header on the same 8 bytes still parses to an empty result, which is the control.analyze(). The witness floors are absolute counts (conditions proved ≥ 155, full ≥ 3), so they can't drop because of it.The measurement (FEAT-107
baseline)falcon-flight-v1.142.wasmfrom relay releasefalcon-v1.142.0, 49,402 B, sha2567c65bf91…, matching the published.sha256.meld fuse --reproducible(meld 0.69.0) gives a core module of 45,454 B, sha2567afdb27f…. It is byte-identical across two runs and across two input directories: the attestation uses the epoch time and a normalised input path.meld fuseis not reproducible. Its attestation carries a random id, the wall-clock time and the absolute input path; the code itself, with custom sections stripped, is identical.scry-viz3.3.0, built from main, checks the fused module as 29 functions, 237 program points and 5 call edges, well-formed, in about 15 ms.Not in this slice
FEAT-107's other criteria are not measured yet:
v3.4.0's native binaries aren't tagged; this used a build from main.
Checked
cargo test --locked -p scry-sai-core -p scry-sai-viz: 168 and 46 tests pass, 0 fail.-D warningsandcargo fmt --checkare clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01KEjmjc82RFgNAWFHuv4XoU