Skip to content

FEAT-107 slice 1: refuse component input; falcon-flight analysed natively - #257

Merged
avrabe merged 1 commit into
mainfrom
feat/107-slice1
Nov 22, 2026
Merged

avrabe merged 1 commit into
mainfrom
feat/107-slice1

Conversation

@avrabe

@avrabe avrabe commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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

  • Before: 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 exited 0 with "OK — 0 functions, 0 program points, 0 call edges well-formed". A gate that reports success over nothing.
  • Now: analyze() returns InvalidModule("input is a WebAssembly component, not a core module; ... fuse the component first (for example with meld fuse)"), using wasmparser's Parser::is_component, already a dependency. scry-viz check exits 3 on the component.
  • Test: 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.
  • MC/DC: this adds one decision to 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)

  • Input: falcon-flight-v1.142.wasm from relay release falcon-v1.142.0, 49,402 B, sha256 7c65bf91…, matching the published .sha256.
  • meld fuse --reproducible (meld 0.69.0) gives a core module of 45,454 B, sha256 7afdb27f…. It is byte-identical across two runs and across two input directories: the attestation uses the epoch time and a normalised input path.
  • Default meld fuse is 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.
  • Result: native scry-viz 3.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:

  • the deterministic budget and its gap kind;
  • the 50% floor;
  • the four numbers per input;
  • their re-derivation in CI as release assets.

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.
  • clippy with -D warnings and cargo fmt --check are clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KEjmjc82RFgNAWFHuv4XoU

…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
@github-actions

Copy link
Copy Markdown

📐 rivet artifact delta

PR: #257 Base SHA: 8be06245

Validation

head — `rivet validate` result
  SR-11 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-12 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-13 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-2 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-3 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-4 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-5 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-6 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-7 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-8 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-9 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SYS-1 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-2 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-3 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-4 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-5 (system-req, status: accepted) — missing: sys-integration-verification
  → run `rivet validate --explain SR-1` to see which link type and source types satisfy a gap

Result: PASS (204 warnings)
Schemas: [email protected] (embedded), [email protected] (embedded), [email protected] (embedded), [email protected] (on-disk), [email protected] (on-disk), [email protected] (embedded), [email protected] (embedded)
base — `rivet validate` result (for comparison)
  SR-11 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-12 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-13 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-2 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-3 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-4 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-5 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-6 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-7 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-8 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SR-9 (sw-req, status: accepted) — missing: sw-integration-verification, unit-verification
  SYS-1 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-2 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-3 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-4 (system-req, status: accepted) — missing: sys-integration-verification
  SYS-5 (system-req, status: accepted) — missing: sys-integration-verification
  → run `rivet validate --explain SR-1` to see which link type and source types satisfy a gap

Result: PASS (204 warnings)
Schemas: [email protected] (embedded), [email protected] (embedded), [email protected] (embedded), [email protected] (on-disk), [email protected] (on-disk), [email protected] (embedded), [email protected] (embedded)

Artifact stats

base head
Total artifacts 281 281
full stats — head
Artifact summary:
  academic-reference               24
  competitive-analysis             11
  design-decision                  23
  feature                         110
  market-finding                    7
  requirement                      21
  safety-context                    3
  safety-goal                       5
  safety-justification              4
  safety-solution                   6
  safety-strategy                   1
  stakeholder-req                   3
  sw-req                           13
  sw-verification                  13
  sys-verification                  5
  system-req                        5
  technology-evaluation            12
  verification                     15
  TOTAL                           281

Orphan artifacts (no links): 12
  CA-001
  CA-002
  CA-003
  CA-004
  CA-005
  CA-006
  CA-007
  CA-008
  CA-009
  CA-010
  CA-011
  FEAT-078

Diagnostics: 0 error(s), 204 warning(s), 11 info(s)

Diff (base → head)

~ FEAT-107
  field changed: baseline

0 added, 0 removed, 1 modified, 280 unchanged

AADL model — head

spar/scry.aadl: OK

Posted by the rivet-delta workflow. Informational only — does not gate the PR.

@avrabe
avrabe merged commit a20a245 into main Nov 22, 2026
14 checks passed
@avrabe
avrabe deleted the feat/107-slice1 branch November 22, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant