FrankenNumPy

Docs/Evidence

Artifact Durability (RaptorQ)

On this page 1 sections

Twelve artifacts carry erasure-coding sidecars (2026-10-08): the conformance bundle (artifacts/raptorq/conformance_bundle_v1.sidecar.json, covering the ufunc fixture cases, the workflow-scenario corpus and the ufunc oracle output and differential report), the benchmark bundle (artifacts/raptorq/benchmark_bundle_v1.sidecar.json, covering artifacts/baselines/ufunc_benchmark_baseline.json), the nine P2C packet parity reports (artifacts/phase2c/FNP-P2C-00{1..9}/parity_report.raptorq.json) and the 2026-04-10 cross-engine benchmark baseline (artifacts/baselines/cross_engine_benchmark_v1.raptorq.json). The other files among the 281 tracked under artifacts/ have none.

Encoding. Source data is hashed (SHA-256) and encoded into source + repair symbols using RaptorQ fountain codes. The sidecar records the codec parameters (symbol size, block count, repair overhead) alongside the encoded symbols in base64.

Scrubbing. A scrub report decodes all symbols, computes the SHA-256 of the decoded payload, and verifies it matches the source hash. It then drops one symbol and verifies recovery from the remaining symbols still produces the correct hash.

Decode proof. An explicit artifact records which symbol was dropped, how many repair symbols were needed to recover, and whether recovery succeeded. This is machine-checkable evidence that the artifact can survive single-symbol loss.

The G8 CI gate (scripts/e2e/run_raptorq_gate.sh) enforces that all required bundles have valid sidecars, scrub reports with status: "ok", and decode proofs with recovery_success: true. A stress variant (run_raptorq_stress_gate.sh) drives recovery under higher loss budgets.

Why RaptorQ?

A conformance archive is only useful if you can prove, at any point in the future, that the bytes you stored are the bytes you encoded. The usual alternatives have specific failure modes:

Approach Problem
SHA-256 of the bundle and call it a day Detects corruption but cannot recover from it. A single flipped bit silently invalidates the entire artifact.
Mirror to a second location Doubles storage cost; doesn't help when both copies share a failure mode (same FS bug, same backup tool, same rot).
par2 / Parchive Reed–Solomon based; recovery is fixed by the parity-set parameters at encode time. Adding redundancy after the fact requires re-encoding.
RAID-style striping Works at the block layer, not the artifact layer. Doesn't survive an artifact moving between hosts.
RaptorQ (RFC 6330) Fountain code: any sufficient subset of source-plus-repair symbols decodes back to the original payload. Repair overhead is configurable per-artifact; partial losses up to the configured tolerance recover transparently.

RaptorQ encodes the artifact once into k source symbols plus r repair symbols; any k + small_delta symbols suffice to decode. The scrub gate verifies this property in CI: it deletes a symbol, runs decode, and verifies the SHA-256 of the decoded payload matches the pre-encoding hash. The decode proof is the machine-checkable receipt that this recovery actually worked, not just that the encoder ran.

The asupersync RaptorQ primitives (fnp-conformance uses them for the sidecar pipeline) give us cancellation-safe encoding and structured telemetry; useful when a benchmark batch encodes a thousand workload outputs in parallel.


This section in the README on GitHub