{
  "report_id": "sample-residual-gradient-run-v1",
  "report_type": "synthetic software-model output",
  "physical_experiment_performed": false,
  "lanes_are_coupled": false,
  "residual_contract": {
    "repository": "sparkainlp-x/oes32-residual",
    "commit": "b77b61254f15778c6ae221843dceac7a8571158e",
    "formula": "r_i = abs(y_i - x_i); R = max_i(r_i)",
    "implementation_note": "JavaScript reimplementation of the pinned upstream Python contract; not byte-identical upstream behavior.",
    "initial_aggregate_R": 0.55,
    "initial_component_residuals": [
      0,
      0,
      0,
      0,
      0,
      0,
      0.55,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0.12,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "replay": {
      "cap": 0.25,
      "tolerance": 0.25,
      "offending_component_index_1_based": 7,
      "offending_component_residual_before": 0.55,
      "applied_delta_to_observed_component": -0.25,
      "aggregate_R_before": 0.55,
      "aggregate_R_after": 0.30000000000000004,
      "component_residuals_after": [
        0,
        0,
        0,
        0,
        0,
        0,
        0.30000000000000004,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0.12,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "classification": "simulation",
      "observer_latch": "HELD",
      "work_from_residual": 0,
      "note": "The 0.55 spike exceeds the 0.25 bounded step; after one step R=0.30 remains above tau=0.25. No energy is attributed to a residual change."
    }
  },
  "thermoelectric_lane": {
    "model": "classical linear Thevenin TEG model",
    "inputs": {
      "hotC": 80,
      "coldC": 25,
      "hotK": 353.15,
      "coldK": 298.15,
      "seebeckVPerK": 0.025,
      "internalResistanceOhm": 4,
      "loadResistanceOhm": 4,
      "durationSeconds": 60,
      "heatInputJ": null
    },
    "synthetic_parameters_not_hardware_measurements": true,
    "deltaT_K": 55,
    "open_circuit_voltage_V": 1.375,
    "current_A": 0.171875,
    "loaded_voltage_V": 0.6875,
    "electrical_power_W": 0.1181640625,
    "electrical_energy_J": 7.08984375,
    "matched_load_condition": "R_load = R_int",
    "load_matched": true,
    "matched_load_max_power_W": 0.1181640625,
    "carnot_fraction_ceiling_only": 0.15574118646467505,
    "measured_heat_input_J": null,
    "available_work_J": null,
    "heat_input_statement": "Heat input is unmeasured; available work in joules is unknown.",
    "note": "Predicted electrical output is attributed only to explicit external hot/cold reservoirs. The Carnot fraction is a maximum heat-to-work fraction, not actual device efficiency."
  },
  "thermodynamic_boundary": "No free energy from nothing: the TEG lane requires an external temperature gradient. Residual replay contributes no work."
}
