From FRET to Range-Checked Zero-Knowledge Proofs

Verifiable Safety Envelopes for Autonomous Deep-Space Habitats (NFM 2027 Interactive Tool Companion)

Authors: Sai Sravan Cherukuri (Independent Researcher / Enterprise & DevSecOps Architect) & Sai Saketh Cherukuri (AI Performance Engineer, Red Hat)
View GitHub Repository Synthetic Telemetry & Static R1CS Only (No Simulated Prover Timings)

Four-Preset Verification

Check each synthetic scenario against its expected policy outcome. A detected hypoxia violation counts as a passed test, not a compliant habitat.

Not run yet. These checks evaluate policy logic; they do not generate or verify proofs.
ScenarioExpected outcomeActual outcomeTest result
nominal_life_supportCompliantNot runPending
boundary_life_supportCompliantNot runPending
hypoxia_violationNon-compliantNot runPending
standby_modeCompliant, guard inactiveNot runPending

Synthetic ECLSS Telemetry Controls

Policy & Finite-Field Range Inspector

Loading evaluation...
Req. ID Bound Value Slack 16-Bit LSB Bits Status

Audit Output JSON


      

FRET Requirement JSON Input

Generated Circom 2.1.6 Circuit & Static Metrics

3
Requirements
4
Private Inputs
2
IsEqual Guards
2
Num2Bits(16)

      

End-to-End Tool Pipeline

1. FRET Spec & JSONNASA FRETish export (templates/*.json)
2. Circuit Synthesizerfret_to_circuit.py (IsEqual + Num2Bits)
3. Circom Artifactscircuits/*.circom (R1CS Safety Envelope)
4. Synthetic TracesNominal, Boundary, Violation, Standby
5. Policy Evaluatorrun_prototype_check.py (JSON Audit)
6. GitHub Actions CIDeterministic diff -u + Policy Check

Finite-Field Wraparound & R1CS Soundness

Over a prime finite field F_p (such as BN254 scalar field where p is approximately 2^254), modular subtraction wraps negative differences to p + (v - tau). By binding mode guards via IsEqual and enforcing non-negative slack witnesses s_i through Num2Bits(b_i) where 2^b_i is much smaller than p, violating values cannot satisfy a b_i-bit decomposition. Per-requirement validity signals are aggregated quadratically into all_constraints_satisfied.

Data Provenance and Benchmarking Scope

  • Synthetic Telemetry Inputs: All telemetry values in this prototype and in the paper's evaluation are deterministic synthetic test vectors constructed to exercise nominal, boundary, violation, and inactive-mode cases without physical flight telemetry.
  • Deferred Hardware Proving Benchmarks: This web companion evaluates policy logic, finite-field range decomposition structure, and deterministic Circom template generation. Live circom witness generation and snarkjs Groth16 proving latency or memory measurements are deferred to dedicated hardware runs and are not reported here.

Local Repository Reproduction Commands

python fret-extension/fretish-to-zksnark/fret_to_circuit.py \
  --input fret-extension/templates/habitat_multi_requirements.json \
  --output /tmp/habitat_multi_compliance.circom
diff -u circuits/habitat_multi_compliance.circom /tmp/habitat_multi_compliance.circom
python scripts/run_prototype_check.py