{
  "version": 1,
  "generated_at": "2026-12-03T03:45:07+00:00",
  "summary": {},
  "booking": {
    "id": "FEL-001",
    "period_minutes": 5,
    "feeder": "North A-18 → South C-18",
    "requested_kwh": 30,
    "admitted_kwh": 30,
    "delivered_kwh": 29.0,
    "shortfall_kwh": 1.0,
    "source": "Synthetic one-hour order, local network trace and virtual meter. Monetary terms are illustrative INR.",
    "steps": [
      {
        "stage": "Request",
        "detail": "FEL-001 asks for 30 kWh in one hour. Operator A can allocate 30 kW over twelve five-minute slots."
      },
      {
        "stage": "Hold the backup",
        "detail": "The fixed offer reserves 36 kW at C for ten slots after a ten-minute diversion. During the transfer both candidate allocations fit their declared budgets."
      },
      {
        "stage": "Confirm and release",
        "detail": "C runs the rights checker before confirming. A retry returns the same commitment. The original is released after C confirms. Check the fleet and partner event logs."
      },
      {
        "stage": "Reject the competing sale",
        "detail": "A 12 kW cut at C would restrict the event import to 24 kW while this award needs 36 kW. The ledger rejects that sale and retains the booking."
      },
      {
        "stage": "Check the electrical path",
        "detail": "The exact-station AC replay checks both candidate claims and the selected path. An intentionally oversized request is rejected in the negative control."
      },
      {
        "stage": "Read the simulated meter",
        "detail": "The virtual register advances from 118 to 147 kWh. The OCPI session credits 29 kWh. The final five-minute slot draws 24 kW against the promised 36 kW, leaving 1 kWh short."
      },
      {
        "stage": "Settle the difference",
        "detail": "Standby 36 INR + activation 348 INR − remedy 18 INR = 366 INR supplier net."
      }
    ]
  },
  "experiments": [
    {
      "name": "Independently check a promise",
      "method": "A time-expanded maximum flow allocates divisible charging. A saturated cut gives a verifiable lower bound on a refused offer.",
      "metrics": [
        {
          "label": "Simultaneous EVs",
          "value": 1000,
          "unit": ""
        },
        {
          "label": "Fleet energy scheduled",
          "value": 600,
          "unit": "kWh"
        },
        {
          "label": "Deficit witness",
          "value": 10.0,
          "unit": "kWh"
        }
      ],
      "limits": "Fixed-site, discrete-slot, no-storage allocation with declared limits. Robustness covers the listed envelope scenarios. Storage is checked by a separately specified inventory verifier.",
      "artifact": "artifacts/exact-admission.json"
    },
    {
      "name": "Can 1,000 commercial vans meet overnight deadlines?",
      "method": "Allocate whole-Wh requirements from 15 to 45 kWh per vehicle across 20 sites. Compare identical vans under an overnight substation derating and export a verifiable cut for the refused service.",
      "metrics": [
        {
          "label": "Vans",
          "value": 1000,
          "unit": ""
        },
        {
          "label": "Total energy requested",
          "value": 30.322,
          "unit": "MWh"
        },
        {
          "label": "Unavoidable stressed shortfall",
          "value": 1.387,
          "unit": "MWh"
        }
      ],
      "limits": "Synthetic vehicles and headroom, 11 kW ports and fixed vehicle sites. The detailed schedule and cut accompany the source archive.",
      "artifact": "artifacts/depot-scale.json"
    },
    {
      "name": "Power-flow and curtailment",
      "method": "Balanced AC calculations follow changing background demand, renewables and storage. A conservative controller limits EV draws.",
      "metrics": [
        {
          "label": "Modeled charging sites",
          "value": 128,
          "unit": ""
        },
        {
          "label": "Five-minute intervals",
          "value": 108,
          "unit": ""
        },
        {
          "label": "Before / after violations",
          "value": "90 / 0",
          "unit": ""
        },
        {
          "label": "EV energy curtailed",
          "value": 5695.75,
          "unit": "kWh"
        }
      ],
      "limits": "Three synthetic trajectories, two substations and an assumed thermal proxy. The released baseline is a benchmark model, independent of any utility.",
      "artifact": "artifacts/grid.json"
    },
    {
      "name": "Can two parties buy the same capacity?",
      "method": "The authoritative state machine tests every ordering in its bounded six-command fixture. A deliberately faulty implementation must produce a detectable conflict.",
      "metrics": [
        {
          "label": "Event orderings",
          "value": 720,
          "unit": ""
        },
        {
          "label": "Retry checks",
          "value": 4320,
          "unit": ""
        },
        {
          "label": "Invariant failures",
          "value": 0,
          "unit": ""
        },
        {
          "label": "Concurrent EV requests",
          "value": 1000,
          "unit": ""
        },
        {
          "label": "Local command p95",
          "value": 17.442,
          "unit": "ms"
        }
      ],
      "limits": "This in-memory benchmark serializes writes within one authority. The reported latency excludes HTTP and client-queue delay. The state-space check has explicit bounds.",
      "artifact": "artifacts/rights.json"
    },
    {
      "name": "Asynchronous Beckn contracts",
      "method": "Five participant processes communicate over HTTP, with distinct local databases and correlated callbacks. Open a message below to inspect its payload.",
      "metrics": [
        {
          "label": "Peers",
          "value": 5,
          "unit": ""
        },
        {
          "label": "Core-schema envelopes",
          "value": 30,
          "unit": ""
        },
        {
          "label": "ACK p95",
          "value": 1.699,
          "unit": "ms"
        }
      ],
      "limits": "Local profile subset with preconfigured counterparties, unsigned messages and a virtual utility buy offer. Transport acknowledgement and accepted business commitment are separate.",
      "artifact": "artifacts/protocol.json"
    },
    {
      "name": "EVSE to roaming session",
      "method": "A virtual charger reports an opening and closing energy register using OCPP 2.0.1 over WebSocket. The CSMS pushes the session to a separate mobility-provider receiver using OCPI 2.3.0.",
      "metrics": [
        {
          "label": "Opening register",
          "value": 118,
          "unit": "kWh"
        },
        {
          "label": "Closing register",
          "value": 147,
          "unit": "kWh"
        },
        {
          "label": "Delivered",
          "value": 29.0,
          "unit": "kWh"
        },
        {
          "label": "Extra writes on retry",
          "value": 0,
          "unit": ""
        }
      ],
      "limits": "One subset of OCPP transaction events and OCPI Sessions over loopback. A real deployment needs authenticated peers, real meters and interoperability testing.",
      "artifact": "artifacts/roaming.json"
    },
    {
      "name": "Six dispatch policies on matched regimes",
      "method": "Compare rules, deterministic MILP, minimax MILP, stochastic MPC, PPO and the validation-selected regime router. Fleet and grid outcomes share one physical allowance and one settlement.",
      "metrics": [
        {
          "label": "Matched episodes",
          "value": 32,
          "unit": ""
        },
        {
          "label": "Rules on time",
          "value": "46 / 64",
          "unit": ""
        },
        {
          "label": "Stochastic on time",
          "value": "35 / 64",
          "unit": ""
        },
        {
          "label": "Margin difference",
          "value": 6.22,
          "unit": "CU"
        }
      ],
      "limits": "Held-out synthetic demand conditional on a single checked feeder trajectory. Two requests are admitted by construction. Financial benefit and punctuality can move in opposite directions.",
      "artifact": "artifacts/market.json"
    },
    {
      "name": "Historical value of fresh and independent reserve",
      "method": "Resample paired whole-day outcomes in circular five-day blocks. Compare the same 12 kWh reserve across shared and separate feeders, 15- and 60-minute reports, and reactive fallback.",
      "metrics": [
        {
          "label": "Evaluation dates",
          "value": 25,
          "unit": ""
        },
        {
          "label": "Fixed minus reactive departures",
          "value": 0,
          "unit": ""
        },
        {
          "label": "Additional cost",
          "value": 377.87,
          "unit": "CU"
        },
        {
          "label": "Paired 95% interval",
          "value": "[-7.0, 7.0]",
          "unit": "trips"
        }
      ],
      "limits": "Secondary analysis on already inspected Pasadena dates. Real arrivals and weather drive modeled transactions. The block-length sensitivity is available in the download.",
      "artifact": "artifacts/ablation.json"
    },
    {
      "name": "A utility event and permission to read a meter",
      "method": "Inspect the local utility-message and meter-data test record, its schema references, allowed exchange and refusal cases.",
      "metrics": [
        {
          "label": "HTTP exchanges",
          "value": 13,
          "unit": ""
        },
        {
          "label": "Requested",
          "value": 4,
          "unit": "kW"
        },
        {
          "label": "Weakest reduction",
          "value": 3.0,
          "unit": "kW"
        },
        {
          "label": "Delivery shortfall",
          "value": 0.5,
          "unit": "kWh"
        }
      ],
      "limits": "The route and authorization model are documented in the record. No network membership, accreditation or access to KSEB records follows from a local exercise.",
      "artifact": "artifacts/utility.json"
    },
    {
      "name": "Does the arrival forecast transfer to JPL?",
      "method": "A protocol fixed before opening target outcomes applies the Caltech-trained two-hour arrival forecast to a separately operated workplace. The model gets completed local arrival counts as lag features.",
      "metrics": [
        {
          "label": "Paired hourly targets",
          "value": 1174,
          "unit": ""
        },
        {
          "label": "Caltech band coverage",
          "value": 89.35,
          "unit": "%"
        },
        {
          "label": "JPL band coverage",
          "value": 74.45,
          "unit": "%"
        },
        {
          "label": "JPL model / reference error",
          "value": "2.094 / 2.080",
          "unit": "arrivals/h"
        }
      ],
      "limits": "A behavior-transfer test using real recorded charger connections. It has no independent measurement of commercial commitments or grid constraints.",
      "artifact": "artifacts/transfer.json",
      "source": {
        "label": "JPL workplace source archive",
        "href": "https://raw.githubusercontent.com/chrisyeh96/sustaingym/eac2a4d5ce4ccf44b13c290edac72532c68e30f5/sustaingym/data/evcharging/acn_data/jpl/2019-09-01%202019-12-31.csv.gz"
      }
    },
    {
      "name": "Do settled policies pass the AC replay?",
      "method": "Place actual policy imports at buses A-18 and C-18 and solve the nonlinear power flow at every matched decision.",
      "metrics": [
        {
          "label": "Independent AC solves",
          "value": 1920,
          "unit": ""
        },
        {
          "label": "Reported failing intervals",
          "value": 0,
          "unit": ""
        }
      ],
      "limits": "Ex-post check on the fixed topology and loading assumption. A different allocation within the same feeder can produce a different voltage.",
      "artifact": "artifacts/dispatch-ac.json"
    },
    {
      "name": "Keep feeder kW fixed and move the load",
      "method": "Shift a quarter of feeder A’s EV demand from its original site distribution to the distal charging hub. All four feeders keep exactly the same total EV kW in each interval.",
      "metrics": [
        {
          "label": "Original spatial pattern",
          "value": "0 / 108",
          "unit": "limits crossed"
        },
        {
          "label": "25% shifted",
          "value": "25 / 108",
          "unit": "limits crossed"
        },
        {
          "label": "50% shifted",
          "value": "48 / 108",
          "unit": "limits crossed"
        }
      ],
      "limits": "A counterexample within a synthetic network. The receiving hub is assumed able to accept the relocated power. A portable energy right requires a location-valid allocation or a new feasibility check.",
      "artifact": "artifacts/spatial-ablation.json"
    },
    {
      "name": "What fraction of the requested relocation can be granted?",
      "method": "At each five-minute decision, check the proposed load at its actual bus, including current background loads and the transformer thermal state. Preserve charging at its original locations where possible.",
      "metrics": [
        {
          "label": "Requested load moved",
          "value": 85.9,
          "unit": "%"
        },
        {
          "label": "Violating intervals",
          "value": 0,
          "unit": ""
        },
        {
          "label": "Total feeder charging curtailed",
          "value": 14.7,
          "unit": "kWh"
        }
      ],
      "limits": "Location- and time-specific model check, with discrete trial sizes. Electricity that stays at its original sites is separate from actual energy curtailment. The operating state must be refreshed.",
      "artifact": "artifacts/locational-rights.json"
    },
    {
      "name": "Price six competing fleet and utility orders",
      "method": "Clear simultaneous whole-order bids against competing sellers, with battery recovery, a signed reduction baseline and a pre-existing fleet promise. Exhaustive enumeration checks both constrained optima.",
      "metrics": [
        {
          "label": "Feeder-wide awards",
          "value": 5,
          "unit": ""
        },
        {
          "label": "Recovery site overbooked",
          "value": 5,
          "unit": "kWh"
        },
        {
          "label": "Site-specific awards",
          "value": 4,
          "unit": ""
        },
        {
          "label": "Site-specific declared surplus",
          "value": 165.0,
          "unit": "CU"
        }
      ],
      "limits": "One two-interval synthetic auction. Bid values and the discriminatory settlement rule are illustrative. This measures feasible submitted surplus, independent of strategic bidding or real-market prices.",
      "artifact": "artifacts/auction.json"
    }
  ],
  "files": [
    {
      "label": "Independent case certificate and settlement",
      "href": "artifacts/chain.json"
    },
    {
      "label": "Beckn requests, ACKs and callbacks",
      "href": "artifacts/protocol.json"
    },
    {
      "label": "Three AC time series",
      "href": "artifacts/grid.json"
    },
    {
      "label": "Operating points at the exact connectors",
      "href": "artifacts/spotcheck.json"
    },
    {
      "label": "Matched six-policy trials",
      "href": "artifacts/market.json"
    },
    {
      "label": "OCPP frames and OCPI Session messages",
      "href": "artifacts/roaming.json"
    },
    {
      "label": "State invariants and concurrent throughput",
      "href": "artifacts/rights.json"
    },
    {
      "label": "Exact scheduling and cut checks",
      "href": "artifacts/exact-admission.json"
    },
    {
      "label": "Invalid over-allocation certificate",
      "href": "artifacts/negative-control.json"
    },
    {
      "label": "Small accepted certificate",
      "href": "artifacts/accepted-certificate.json"
    },
    {
      "label": "1,000-EV certificate",
      "href": "artifacts/batch-certificate.json"
    },
    {
      "label": "Refused offer and cut",
      "href": "artifacts/rejected-cut.json"
    },
    {
      "label": "Paired historical contrasts",
      "href": "artifacts/ablation.json"
    },
    {
      "label": "Utility interchange record",
      "href": "artifacts/utility.json"
    },
    {
      "label": "Operational-scale overnight fleet test",
      "href": "artifacts/depot-scale.json"
    },
    {
      "label": "JPL cross-site forecast transfer",
      "href": "artifacts/transfer.json"
    },
    {
      "label": "AC replay of settled policies",
      "href": "artifacts/dispatch-ac.json"
    },
    {
      "label": "Fixed feeder totals, shifted charging sites",
      "href": "artifacts/spatial-ablation.json"
    },
    {
      "label": "Location-specific allocations and 108 witnesses",
      "href": "artifacts/locational-rights.json"
    },
    {
      "label": "Competing fleet and grid bids with site-specific clearing",
      "href": "artifacts/auction.json"
    }
  ],
  "notes": [
    "The fixed-issue rights and ex-post AC solves have separate information boundaries. The isolated network actors use application-level handover sequencing.",
    "An independently checkable schedule and refusal witness describe the modeled constraints. First-hand field performance and network onboarding remain open."
  ]
}
