{
  "id": "gremlin-tennis-spice",
  "version": "0.8.4",
  "status": "Working reconstruction of the documented circuit principle with declared equivalents",
  "solver": {
    "engine": "ngspice",
    "version": "45.2",
    "distribution": "Gremlin ngspice45.2-tft-eval2 (prepared expressions, O3)",
    "runtime": "WebAssembly in dedicated Worker",
    "precision": "IEEE 754 f64",
    "integration": "adaptive Gear, maxord=2",
    "max_internal_step_s": 5e-05,
    "internal_observation_period_s": 0.005,
    "UI_and_CSV_sample_Hz": 200,
    "reltol": 0.0001,
    "abstol_A": 1e-09,
    "vntol_V": 1e-06,
    "chgtol_C": 1e-12,
    "provenance": "../vendor/PROVENANCE.json"
  },
  "computing_components": {
    "RI_ohm": 1000000.0,
    "bank_C_F": 1e-06,
    "position_C_F": 1e-06,
    "speed_feedback_R_ohm": 10000000.0,
    "speed_HF_C_F": 1e-08,
    "pot_charge_R_ohm": 50000,
    "ground_holding_C_F": 1e-05,
    "ground_sample_R_ohm": 10000,
    "net_holding_C_F": 5e-06
  },
  "engineering_parameters": {
    "amplifier": {
      "open_loop_gain": 10000,
      "dominant_pole_Hz": 1,
      "rails_V": [
        -110,
        110
      ],
      "output_R_ohm": 100,
      "input_error_limit_V": 10000,
      "type": "inverting one-pole buffer with diode rail clamps, not tube-level Donner"
    },
    "relay": {
      "coil_R_ohm": 10000,
      "coil_L_H": 10,
      "pickup_A": 5e-05,
      "hysteresis_A": 1.5e-05,
      "threshold_transition_A": 5e-06,
      "armature_R_ohm": 1000,
      "release_R_ohm": 2000,
      "armature_C_F": 1e-06,
      "type": "R-L coil, rectifier/freewheel diodes, continuous pickup and RC armature"
    },
    "contact": {
      "on_R_ohm": 50,
      "off_conductance_S": 1e-12,
      "transition_midpoint_V": 55,
      "transition_width_V": 0.8,
      "type": "continuous finite-conductance macromodel with break before make"
    },
    "interlock": {
      "type": "behavioral voltage logic and electrical bistables",
      "memory_C_F": 1e-06,
      "set_R_ohm": 1000,
      "keep_R_ohm": 1000,
      "reset_R_ohm": 10,
      "leak_R_ohm": 100000
    },
    "input_filter": {
      "R_ohm": 1000,
      "C_F": 1e-07
    },
    "net_edge_gate": {
      "R_ohm": 10000000.0,
      "C_F": 1e-09,
      "threshold_V": 1,
      "transition_width_V": 0.05
    },
    "diode_models": {
      "DCLAMP": {
        "Is_A": 1e-12,
        "N": 1,
        "Rs_ohm": 1
      },
      "DGE": {
        "Is_A": 1e-06,
        "N": 1.5,
        "Rs_ohm": 20
      }
    },
    "logic_transfer": {
      "logic_supply_V": 100,
      "hi": "(1+tanh((V-50)/2))/2",
      "positive": "(1+tanh(V/.2))/2",
      "end_and_centre_comparator_gain": 10000,
      "comparator_limit_V": 100
    },
    "parameter_authority": "Every numerical parameter and connection is explicit in ../tennis.cir; JSON is a descriptive index."
  },
  "calibration": {
    "gravity_V": -60,
    "net_height_V": 20,
    "court_limits_V": [
      -75,
      75
    ],
    "serve_X_V": [
      -62,
      62
    ],
    "serve_raw_U2_V": 0,
    "display_Y_V": "No geometric display offset: raw U2/U7 pass through transistor switch and scope.cir; 20V remains the gameplay coordinate conversion.",
    "knob_domain": [
      0,
      1
    ],
    "left_X_bank_V": "100-50*p",
    "right_X_bank_V": "-(100-50*p)",
    "Y_bank_V": "20+85*p",
    "end_rule": "Right boundary selects right service; left boundary selects left service; manual reset selects left. Functional profile choice."
  },
  "session": {
    "warmup_s": 0.25,
    "button_pulse_s": 0.06,
    "checkpoint_after_local_time_s": 0.5,
    "checkpoint_state": "All exposed node voltages, seven relay coil currents, external sweep epoch, controls and operator bookkeeping; Gear history restarts.",
    "checkpoint_method": "Prepare non-mutating node/coil/epoch snapshot; validate a fresh Worker before releasing the live one. Successful transfer restarts Gear history.",
    "CSV_rows_max": 6000,
    "clock": "simulation time; slower hardware slows play without skipping simulated time",
    "CSV_window_s": 30,
    "worker_heap_recycle_threshold_bytes": 251658240,
    "worker_recycle": "Validate-then-commit at a safe pulse boundary every 0.5 s or above heap threshold. An initial-point rejection retains the old solver and consumes pending input once; retry after 0.05 s."
  },
  "implemented": [
    "four switched charge banks",
    "four motion integrators",
    "10 MOhm and .01 uF branches",
    "10 uF ground and 5 uF net charge redistribution",
    "finite opamp gain/bandwidth/rails/output resistance",
    "seven R-L relay surrogate coils and continuous contacts",
    "capacitive interlock memory",
    "source-only browser inputs",
    "15-PNP selector coupled directly to U2/U7",
    "loaded electrical scope macromodel",
    "adaptive plate-voltage/current trace",
    "moving Gaussian beam and two-component phosphor; WebGL2 or CPU"
  ],
  "not_transcribed": [
    "tube circuits of Donner 30",
    "every relay contact and 117 VAC supply wire",
    "literal U5/U8/U9 detector implementations",
    "measured controller calibration and component tolerances",
    "contact bounce/arcing and magnetic armature mechanics",
    "tube-by-tube scope amplifiers, measured 5ADP1 gun/focus/phosphor kinetics",
    "Tube-level Donner/scope supplies, heater and CRT focus dynamics",
    "Measured net/court transformer ratio, bias and control settings"
  ],
  "correction_register": "corrections.json",
  "fidelity_notes": "fidelity.md",
  "sources": "sources.md",
  "validation": "validation.json",
  "netlist": "../tennis.cir",
  "restoration_evidence": {
    "people": [
      "Peter Takacs",
      "Gene Von Achen",
      "Paul O’Connor",
      "Scott Coburn"
    ],
    "distinctions": [
      "1997/2008 solid-state replacement computer",
      "2010 report of restored Donner Model 3400 integration in progress",
      "original Donner Model 30 remains a separate identification target"
    ],
    "relay_freewheel_diode": "Engineering surrogate, not authenticated original wiring by the Takacs accounts.",
    "display_switching_Hz_reported_by_Takacs": 36,
    "display_switching_implemented": "15-PNP network in same live transient; preliminary devices, measured model cycle ~39.09Hz remains distinct from historical 36Hz report"
  },
  "display_bench": {
    "entry": "../display-bench.html",
    "netlist": "../display-switch.cir",
    "model": "display-model.json",
    "validation": "display-validation.json",
    "coupled_to_game": true,
    "captured_game_frame": true,
    "note": "Standalone bench remains a separate fixed-frame diagnostic; live game has its own direct connection."
  },
  "operator_layer": {
    "version": "0.5.0",
    "description": "Optional CPU operators use the same knob/button ports as people.",
    "definition": "cpu-model.json",
    "validation": "cpu-validation.json"
  },
  "computing_profile": "0.3.1",
  "scope": {
    "netlist": "../scope.cir",
    "beam": "../beam-model.js",
    "input_X_ohm": 2200000.0,
    "input_Y_ohm": 2000000.0,
    "input_C_F": 5e-11,
    "deflection_X_V_per_in": 48,
    "deflection_Y_V_per_in": 36.8,
    "acceleration_V": 1600,
    "nominal_beam_current_A": 2.5e-05,
    "calibration_status": "Nominal family input/deflection data plus declared engineering gains, offsets, gun law and phosphor parameters; not a tube-level original.",
    "phosphor": {
      "reference": "RCA P1 92CM-5380R2,1951",
      "fastTau_s": 0.002858327788613309,
      "slowTau_s": 0.020931598704111952,
      "impulseSlowFraction": 0.047185863151480566,
      "excitationAssumption": "Linear steady excitation before removal; not established for the original tube",
      "energyGain": 29500
    },
    "glass": {
      "model": "../glass-optics.js",
      "shape": "plane-parallel",
      "curvature_per_m": 0,
      "thickness_m": 0.004,
      "refractiveIndex": 1.52,
      "viewDistance_m": 0.5,
      "absorption_per_m": 1,
      "internalRoundTrips": 1,
      "ambientRadiance": 0.012,
      "lampRadiance": 0.45,
      "lampWidth_rad": 0.04,
      "lampDirection": [
        -0.06,
        -0.06,
        1
      ],
      "evidence": "DuMont 5ADP printed p.48 flat face; other values are selected equivalents",
      "validation": "glass-validation.json",
      "documentation": [
        "glass-optics.md",
        "glass-optics.en.md"
      ],
      "lightingRevision": 2,
      "lightingScope": "Declared relative room-light parameters; visible reflection, no change to plane-parallel refraction equations."
    }
  },
  "validation_current": [
    "joint-validation.json",
    "worker-validation.json",
    "joint-phase-validation.json",
    "joint-native-validation.json",
    "scope-browser-validation.json",
    "site-validation.json",
    "joint-native-warm-validation.json",
    "localization-validation.json",
    "browser-validation-0.8.1.json",
    "mechanics-validation.json",
    "mechanics-joint-validation.json",
    "restart-input-validation.json",
    "controller-worker-validation.json",
    "glass-validation.json",
    "glass-browser-validation.json",
    "browser-validation-0.8.3.json"
  ],
  "instrument": {
    "authority": "../instrument-model.js",
    "passiveSupply": true,
    "lineSourceImpedance": true,
    "mainsHz": 60,
    "scope": "Chosen operating reconstruction; original Ge reverse curves and transformer parasitics unidentified."
  },
  "interface": {
    "languages": [
      "ru",
      "en"
    ],
    "preferenceKey": "imperial-school.language",
    "liveSwitch": "Changes labels without recreating electrical, renderer or operator state",
    "laboratory": "Imperial School Laboratory / Лаборатория Школы Империи",
    "electricalProfile": "0.7.0 electrical equations; source preservation 0.8.1 and validate-before-commit continuation 0.8.3",
    "controllerMechanics": {
      "defaultEnabled": true,
      "preferenceKey": "imperial-school.tennis.mechanics",
      "engine": "Planck.js 1.5.0",
      "model": "../controller-mechanics.js",
      "documentation": [
        "mechanics.md",
        "mechanics.en.md",
        "engine-comparison.md",
        "engine-comparison.en.md"
      ],
      "clock": "Browser interaction time; external operator device, sampled by ngspice. CPU planning remains on circuit time.",
      "historicalComparison": "General Radio 970 series, January 1955; two-section calculated average torque 14.123–17.654 mN m; working sliding torque 14.1231 mN m; other dynamics are explicitly selected."
    },
    "glassOptics": {
      "defaultEnabled": true,
      "preferenceKey": "imperial-school.tennis.glass",
      "switchRetains": [
        "electrical state",
        "phosphor excitation",
        "rally",
        "clock"
      ],
      "CPUAndGPU": "Shared precomputed optical map"
    }
  },
  "continuationRevision": {
    "release": "0.8.3",
    "sourcePreservation": "Previous button/reset source voltages retained during UIC priming before next input",
    "initialPointRetry": "Same state and numerical tolerances; itl4=200 retry retained within candidate. Failed candidate defers transfer while the original solver continues.",
    "reports": [
      "transactional-worker-validation.json",
      "worker-validation.json",
      "controller-worker-validation.json",
      "restart-input-validation.json",
      "continuation-fix-2026-10-25.json"
    ],
    "initialFailedBrowserRun": "history/0.8.1-development/browser-initial-failure.json",
    "handoff": "Keep live Worker until fresh restore is accepted; only rejected initial-point candidates are discarded.",
    "publicFailedBrowserRun": "../../../research/continuation-0.8.3/live-failure.json"
  },
  "demo": {
    "defaultEnabled": false,
    "mode": "demo",
    "duration_s": 15.16667425838705,
    "playbackRate": 1,
    "clock": "Absolute animation timestamp excluding explicit pauses; independent of frame count",
    "precomputed": [
      "joint electrical transient",
      "CPU decisions",
      "mechanical controller motion and contacts"
    ],
    "live": [
      "beam integral",
      "phosphor excitation and decay",
      "glass optics",
      "synthesized audio"
    ],
    "recording": "../demo/manifest.json",
    "beamStorage": "gzip shuffled binary64; lossless",
    "compressedBytes": 21907069,
    "loop": "Recorded low closing returns, ordinary serve if needed, settled left-serve seam and matched accepted beam phase; phosphor retained",
    "CPUFallback": {
      "resolution": 128,
      "presentationHz": 20
    },
    "WebGLResolution": 512,
    "liveCircuitModelChanged": false,
    "minimumRally_s": 30,
    "recordingRevision": 5,
    "closingTarget_s": 8
  }
}
