Physical measurement interval intake — square and 4:1 rectangle
Requires Python 3 standard library. All calculations are offline. The program reads a completed card and prints JSON. It never writes to the card or instruments.

GET STARTED
1. Copy blank_measurement_card.json. It intentionally contains no physical readings and will be rejected until completed.
2. Run the isolated checks with python3 interval_intake.py --self-test
3. Score the completed record with python3 interval_intake.py my_completed_card.json

INPUT CONTRACT
Use this only after the measurement team has reduced the moving-head flux maps and qualified the two specimens under the same characterized incident field. Supply corrected area-weighted M(recess), its own matched M(mask), and η, the actual reference mask throughput relative to the ideal open mouth. The M values must share units and normalization within each specimen. Write [lower, upper] for each. This intake requires strictly positive lower bounds for all three measured quantities. Very weak or uncertain signals, unknown intervals and open-mask bounds that reach zero are outside its domain. Investigate such conditions separately. The program never clips T to [0,1].

Identify scans, specimen/mask pair, light-on shutter background, monitor corrections, detector linearity, collection area/angular/position response and reseats. State the sources for η, leakage, unmeasured flux and nonuniform illumination. Document how calibration, shared uncertainties and correlations are covered jointly across conditions and predictions. Set bounds_basis to deterministic or simultaneous and give the assumptions or familywise confidence level, scope and method. All quantities must bound the same physical observable and conditions. Independent pointwise error bars are insufficient. Freeze the as-built full-model and chosen compact-model prediction intervals from independent metrology before exposure to the comparison results. Preserve model revision, source/configuration and calibration evidence. Supply the calibrated field ID in both conditions and document the test for common illumination before setting common_illumination_qualified to true. Evidence fields are attestations; the software cannot inspect the external records or certify their adequacy.

For the pair claim describe the shared deterministic reduced consumer, source/calibration/state and serialized input schema. Set reduced_records to identical or distinct, include the SHA-256 digest of each actual supplied reduced input, and identify the byte-equality/provenance check. Matching nominal dimensions do not establish this equality. These records describe the consumer addressed by the pair bound. A separately tested compact shape predictor can legitimately carry different geometry. Distinguish the two contracts explicitly in prediction_provenance and reduced_consumer_contract.

For distinct records lacking a valid bound, leave near_equal_bounds null. The program still returns the intervals and individual tests. To test a restricted consumer with distinct records, provide this object, replacing every blank:
{"rho":"","lambda":"","rho_provenance":"","lambda_provenance":"","input_metric_and_scales":""}
ρ must independently upper-bound the distance between the actual uncertain records in the stated dimensionless metric; Λ must upper-bound the consumer's sensitivity over the relevant domain. An observed training-set slope is insufficient.

HOW TO READ THE OUTPUT
T = η M(recess)/M(mask). The program uses monotonically conservative endpoints [η_lo R_lo/M_hi, η_hi R_hi/M_lo]. It uses exact rational arithmetic for decimal inputs and returns fractions as JSON strings (e.g. "1/100"). Joint correlations may permit tighter intervals outside this utility. For each declared full/compact prediction interval I and measurement interval J, "supported" means every pair of values differs by at most 0.01, "incompatible" means every pair differs by more than 0.01, and "inconclusive" covers the remaining cases. Simple overlap is insufficient for support. Conclusions are conditional on coverage and declared assumptions.

S = lower(J_rectangle) − upper(J_square), the lower bound on the preregistered directed difference. Identical records and common illumination exclude a common prediction within ±0.01 of both only for S > 0.02. With justified distinct-record bounds use S > 0.02 + Λρ. Equality does not exclude. A false exclusion flag means the evidence did not establish this directional claim. A negative S is retained and is never silently reversed. The printed lower bound max(0,S−Λρ)/2 pertains to worst error across the pair.

SCOPE
This utility computes no scanner quadrature, spot-to-flux conversion, source calibration, uncertainty propagation from raw counts, as-built optical law, fitted consumer or physical hardware speed. Four stationary electrical checkout bursts cannot populate this card. Resolve missing controls, clipping, unresolved collection or calibration before entry. Preserve rejected, excluded and missing opportunities separately in the campaign audit. See the section “Physical comparison on the F1 bench” in the integrated working revision 9 for the observable, prospective procedure and decision rules.
