{
  "openapi": "3.1.0",
  "info": {
    "title": "Time to Power engine",
    "version": "0.9.0",
    "description": "Capacity and density screening for existing AI data halls. Generated from the engine's own tool list. Screening-mode output: not an issued engineering opinion. The deployed engine serves 23 endpoints; this document describes 22 of them plus /mcp. /v1/revoke is operator-only and deliberately undocumented. It does not quote equipment, state megawatts available from a utility, or act as an EPC, utility or trader. gridforge_qualify and gridforge_estimate are free and need no key. Everything else meters. Every figure is modelled from the inputs supplied and carries an evidence class; where the calibration block (GET /v1/calibration, and on the responses that carry it) says uncalibrated, it means uncalibrated. This document states no price: it gives each operation's weight in units, and the unit price, free allowance, minimum invoice and cap behaviour are the engine's own `payg` object at GET /v1/version. Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request. The paths under /api/orgs, /api/sites and /api/halls are the website's signed-in site and hall registry: they are served by the website (see each path's server), require a confirmed signed-in person's session token instead of an API key, and are never engine-metered. A 503 signals a server-side configuration, dependency or required-schema failure; it is not the normal state of these routes."
  },
  "servers": [
    {
      "url": "https://gridforge-engine.fly.dev",
      "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
    }
  ],
  "paths": {
    "/v1/qualify": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_qualify",
        "summary": "Free.",
        "description": "Free. Up to seven numbers about an existing air-cooled hall in (at least three; each one you leave out is an assumption named in the answer), one answer out: which physical constraint binds first when you try to deploy AI racks in it, how many racks fit as found, and which item sets the time to power (labelled 'assumed lead time, not a date' when that item's lead time is an assumption). Use this to triage a portfolio before paying for anything.\n\nReturns: binding constraint, racks as found and after relief (each with racks_evidence, the evidence class of that rack count as a short code such as E0: the weakest class among the constraints that cap it), the item that sets the date (null, with sets_the_date_reason, when no date can be given: nothing is deployable, or a lead time on the path is missing because transformers or UPS were not declared), and the inputs nobody has measured (when you send assumed_fields, also inputs_declared_assumed, which lists only what you declared; when you send contracted_MW and no firm_capacity_MVA, the firm capacity the qualifier derived is a required grid.firm_capacity_MVA row in intake.gaps, as an assumption). No capital cost or dated lead times in this free read: the metered /v1/compare (it needs an API key) returns indicative capital and weeks with evidence classes, and the paid documents add the full costed ladder.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "x-gridforge-tier": "public",
        "x-gridforge-mcp-tool": "gridforge_qualify",
        "security": [],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Seven figures about one air-cooled hall, and some options. Send at least three of these seven figures; each one you omit is an assumption named in the answer (library default, listed under intake.gaps and, with the way you left it out, under figures_not_supplied). Fewer than three is refused with 422, and no one figure is required: any three are enough. A figure sent as null is not sent: it counts as omitted, and the answer says so. Each figure you do send is checked by its own name against the same plausibility bounds the engine's intake uses (a refusal names the figure you sent, with the limit). The engine does not validate a request against this schema before running it: a key that is not listed here is not read as a figure and is ignored, except cost_evidence, which this route does not take and refuses with 422.",
                "properties": {
                  "contracted_MW": {
                    "type": "number",
                    "description": "Contracted grid capacity, MW."
                  },
                  "current_site_peak_MW": {
                    "type": "number",
                    "description": "Current site peak demand, MW."
                  },
                  "current_it_load_MW": {
                    "type": "number",
                    "description": "Current IT load, MW."
                  },
                  "busway_ampacity_A": {
                    "type": "number",
                    "description": "Installed busway ampacity, A."
                  },
                  "tapoff_max_A": {
                    "type": "number",
                    "description": "Largest installed tap-off rating, A."
                  },
                  "plant_supply_C": {
                    "type": "number",
                    "description": "Chilled-water design supply temperature, °C."
                  },
                  "positions_available": {
                    "type": "integer",
                    "description": "Rack positions that can be released."
                  },
                  "firm_capacity_MVA": {
                    "type": "number",
                    "description": "Optional. Firm capacity of the grid connection, MVA, sent as a plain number. It is a real input: a value below the connection the engine would otherwise derive lowers the firm-supply headroom. Omit it (and send contracted_MW) and the engine derives one from contracted_MW, records it as an assumption (E0) that is not supplied, and adds a required grid.firm_capacity_MVA row to intake.gaps. It is not listed in inputs_declared_assumed, which holds only what you declared. firm_capacity_MVA cannot be named in assumed_fields."
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "gb200_nvl72",
                      "gb300_nvl72",
                      "generic_dlc_50"
                    ],
                    "default": "gb300_nvl72",
                    "description": "Optional. The rack platform the hall is tested against (GET /v1/platforms lists them). It sets the per-rack electrical and thermal load, so it changes the result. An id the library does not carry is refused with 422."
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "assumed_fields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "contracted_MW",
                        "current_site_peak_MW",
                        "current_it_load_MW",
                        "busway_ampacity_A",
                        "tapoff_max_A",
                        "plant_supply_C",
                        "positions_available"
                      ]
                    },
                    "uniqueItems": true,
                    "maxItems": 7,
                    "description": "Optional. Declares which of the figures above you are sending as ASSUMPTIONS rather than as this hall's own data, for example values copied from a reference template. Each entry must be one of the seven figures (contracted_MW, current_site_peak_MW, current_it_load_MW, busway_ampacity_A, tapoff_max_A, plant_supply_C, positions_available), named at most once, and the same request must also send that figure (a figure you did not send cannot be declared assumed). Effect: a named figure is classed E0 (assumption) instead of E5 (supplied by the client) in the result's basis and evidence, and is listed in the result's inputs_declared_assumed (path, input, unit, value, evidence \"E0\", note); intake.assumed_count says how many, while intake.completeness and required_inputs_missing still count a declared figure as supplied. It changes the label and not the arithmetic: the racks and the binding constraint are the same with or without it, and nothing you send can raise a class above E0. Omitted, null or an empty list, the request is answered as if the field did not exist. A name that is not one of the seven, a repeat, a value that is not a list, or a figure you did not send is refused with 422, naming the entry and listing the allowed names. An engine that serves this field reports capabilities.qualify_assumed_fields: true at GET /v1/version."
                  },
                  "client": {
                    "type": "string",
                    "description": "Optional. Your organisation's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                  },
                  "reference": {
                    "type": "string",
                    "description": "Optional. Your own reference for this hall or request. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                  },
                  "site_name": {
                    "type": "string",
                    "description": "Optional. The site's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                  },
                  "metro": {
                    "type": "string",
                    "description": "Optional. The metro area. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                  },
                  "country": {
                    "type": "string",
                    "description": "Optional. The country. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                  },
                  "hall_id": {
                    "type": "string",
                    "description": "Optional. The hall's identifier. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "contracted_MW": 12,
                "firm_capacity_MVA": 14,
                "current_site_peak_MW": 7.4,
                "current_it_load_MW": 4.9,
                "busway_ampacity_A": 400,
                "tapoff_max_A": 63,
                "plant_supply_C": 6,
                "positions_available": 180,
                "platform": "gb300_nvl72",
                "objective": "max_compute",
                "client": "Reference Project (synthetic)",
                "reference": "REF-EU-01/DH-02",
                "site_name": "Reference Colocation Campus",
                "metro": "Frankfurt",
                "country": "DE",
                "hall_id": "DH-02"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "as_found": {},
                    "after_relief": {
                      "type": "object",
                      "properties": {
                        "date_basis": {
                          "type": "string",
                          "description": "What the date rests on; \"assumed\" means the item that sets it carries an assumed lead time, so it is not a date."
                        },
                        "date_evidence_class": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The evidence class (E0 to E7) of the date; null when there is no date."
                        },
                        "date_label": {
                          "type": "string",
                          "description": "The date, or the reason there is none, in words."
                        }
                      },
                      "additionalProperties": true
                    },
                    "intake": {
                      "type": "object",
                      "properties": {
                        "completeness": {
                          "type": "number"
                        },
                        "required_inputs_missing": {
                          "type": "integer",
                          "description": "How many required inputs the request left out."
                        },
                        "can_issue_a_study": {
                          "type": "boolean"
                        },
                        "gaps": {
                          "type": "array",
                          "description": "The assumption disclosure: every input the request did not supply, what the engine assumed in its place (`assumed`) and why it matters (`why_it_binds`).",
                          "items": {
                            "$ref": "#/components/schemas/AssumptionGap"
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "recommended_engagement": {
                          "type": "string",
                          "description": "What the engine recommends buying given how complete the intake is."
                        }
                      },
                      "additionalProperties": true
                    },
                    "calibration": {
                      "$ref": "#/components/schemas/CalibrationBlock"
                    },
                    "notice": {
                      "type": "string",
                      "description": "The engine's standing notice: directional, modelled output, not an issued engineering opinion."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "platform": {
                    "id": "gb300_nvl72",
                    "name": "NVIDIA GB300 NVL72",
                    "rack_kW": {
                      "value": 135,
                      "low": 132,
                      "high": 142,
                      "unit": "kW",
                      "evidence": "E0_ASSUMPTION",
                      "label": "GB300 NVL72 rack TDP",
                      "model": "input@0.1",
                      "digest": "e6476e7cd728"
                    },
                    "gpus_per_rack": 72
                  },
                  "as_found": {
                    "racks": 0,
                    "racks_evidence": "E0",
                    "it_load_kW": {
                      "value": 0,
                      "low": 0,
                      "high": 0,
                      "unit": "kW",
                      "evidence": "E0_ASSUMPTION",
                      "label": "deployable IT load",
                      "model": "envelope.it_load@0.1",
                      "digest": "7878bb4e6931"
                    },
                    "binding_constraint": "Rack feed / tap-off rating",
                    "domain": "electrical",
                    "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                  },
                  "after_relief": {
                    "racks": 28,
                    "racks_evidence": "E0",
                    "architecture": "Full DLC, grid only",
                    "then_binds_on": "Firm supply (grid import + behind-the-meter)",
                    "sets_the_date": null,
                    "sets_the_date_reason": "No defensible date: not declared: transformers, UPS (reliefs they would need are neither priced nor timed).",
                    "date_basis": "none",
                    "date_evidence_class": null,
                    "date_binding_item": null,
                    "date_label": "no date: a lead time on the path is missing"
                  },
                  "first_three_constraints": [
                    {
                      "name": "Rack feed / tap-off rating",
                      "domain": "electrical",
                      "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)"
                    },
                    {
                      "name": "Residual air load removal per rack",
                      "domain": "thermal",
                      "relief": "Add in-row cooling or rear-door heat exchangers for the residual air load"
                    },
                    {
                      "name": "Achievable facility water temperature",
                      "domain": "thermal",
                      "relief": "Adiabatic assist plus trim chiller on the high-temperature loop"
                    }
                  ],
                  "intake": {
                    "completeness": 0.29,
                    "required_inputs_missing": 4,
                    "can_issue_a_study": false,
                    "gaps": [
                      {
                        "path": "hall.net_white_space_m2",
                        "input": "Net white space",
                        "unit": "m2",
                        "required": false,
                        "assumed": "2,000 [1,400–2,600] m2 (E0)",
                        "why_it_binds": "Caps rack count where positions are not yet counted.",
                        "how_to_get_it": "Floor plan."
                      },
                      {
                        "path": "hall.floor_loading_kPa",
                        "input": "Hall design floor loading",
                        "unit": "kPa",
                        "required": true,
                        "assumed": "12 [8–15] kPa (E0)",
                        "why_it_binds": "A 1.4 t rack against a 12 kPa design is a gate, not a margin.",
                        "how_to_get_it": "Structural record drawings; a survey if the building changed hands."
                      }
                    ],
                    "warnings": [
                      "Busway: neither hall.occupied_positions nor hall.rack_positions was supplied, so the occupied positions are an assumption (E0) from the library default total of 400 positions, not a count of anything in your hall. Reading that total less your 180 free positions as occupied (220 positions), at their 8 kW design density, would draw 1,760 kW, more than the 1,29...",
                      "project.reference names 'REF-EU-01'/'DH-02', but the document's site.id and hall.id are 'SITE-1'/'DH-02'. The deliverable carries both, so check which hall this intake describes."
                    ],
                    "recommended_engagement": "4 required inputs are missing. That is too thin for a full Capacity & Density Envelope Study yet. The next step is the Density Screen: it names the binding constraint and lists every input still needed, and its fee credits against the Capacity & Density Envelope Study when the data arrives."
                  },
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  },
                  "notice": "Directional screening read. Modelled from the inputs supplied, against library defaults for everything not supplied. It is not a bankable number, not a design, and not a measurement of this asset. Capital cost, programme duration, the full constraint ladder and the scenario comparison are part of the paid engagement.",
                  "figures_not_supplied": []
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/estimate": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_estimate",
        "summary": "Free, no API key, never metered.",
        "description": "Free, no API key, never metered. What would a call cost? Name an endpoint (and, for the portfolio, how many halls) and get the units, the unit price and the cost in euro cents BEFORE spending anything. With an API key it also says whether the call fits what is left of the key's allowance or cap. Use it before any paid tool, especially in a loop.\n\nReturns: endpoint, units, unit_price_cents, estimated_cents, billable, free, the rule that produced the units, and (with a key) the remaining allowance and whether the call fits.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "x-gridforge-tier": "public",
        "x-gridforge-mcp-tool": "gridforge_estimate",
        "security": [],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "endpoint"
                ],
                "properties": {
                  "endpoint": {
                    "type": "string",
                    "description": "The engine route to price, e.g. /v1/study."
                  },
                  "hall_count": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Halls in a /v1/portfolio request (one unit each). A portfolio request ranks at most 50 halls: a larger hall_count is refused with 422, as the request would be."
                  },
                  "body": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Optional: the request body you intend to send; the units are read from it exactly as the meter would."
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "endpoint": "/v1/study"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "endpoint": "/v1/study",
                  "units": 5,
                  "unit_price_cents": 200,
                  "currency": "<currency:see-/v1/version>",
                  "estimated_cents": 1000,
                  "billable": true,
                  "free": false,
                  "basis": "fixed 5 units per call, whatever the size of the intake. Units are reserved when the call starts and refunded if it produces no answer.",
                  "note": "estimated_cents is what pay-as-you-go would charge. A subscription's units come out of its monthly allowance; the free allowance is never invoiced."
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "estimateGet",
        "summary": "What a call would cost, before it is made (query form).",
        "description": "Name an engine route in `endpoint` and, for /v1/portfolio, the number of halls in `hall_count`: the answer is the units, the unit price and the cost in cents BEFORE anything is spent. The units are read by the same function the meter uses, so an estimate cannot drift from a bill. Free, never metered, no key needed; with a valid key it also says where that key stands (scope, cap, used, remaining, whether the call fits). The POST form with a `body` is the gridforge_estimate tool; this GET form takes no body, so it prices a call by its endpoint (and hall count) only.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "parameters": [
          {
            "name": "endpoint",
            "in": "query",
            "required": true,
            "description": "The engine route to price, e.g. /v1/study. Any route that has a unit rate.",
            "schema": {
              "type": "string"
            },
            "example": "/v1/study"
          },
          {
            "name": "hall_count",
            "in": "query",
            "required": false,
            "description": "Halls in a /v1/portfolio request (one unit each). A whole number from 1 to 100000.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          }
        ],
        "security": [
          {},
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "endpoint": {
                      "type": "string"
                    },
                    "units": {
                      "type": "integer"
                    },
                    "unit_price_cents": {
                      "type": "integer"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "estimated_cents": {
                      "type": "integer"
                    },
                    "billable": {
                      "type": "boolean"
                    },
                    "free": {
                      "type": "boolean"
                    },
                    "basis": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "scope": {
                      "type": "string",
                      "description": "Only with a valid key."
                    },
                    "cap_units": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "used_units": {
                      "type": "integer"
                    },
                    "remaining_units": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "fits": {
                      "type": "boolean"
                    },
                    "would_cost_after_allowance": {
                      "type": "integer",
                      "description": "Cents this call would add that the key's own allowance does not cover. Only with a valid key."
                    },
                    "key_error": {
                      "type": "string",
                      "description": "Present when a key was sent and not recognised."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "endpoint": "/v1/study",
                  "units": 5,
                  "unit_price_cents": 200,
                  "currency": "<currency:see-/v1/version>",
                  "estimated_cents": 1000,
                  "billable": true,
                  "free": false,
                  "basis": "fixed 5 units per call, whatever the size of the intake. Units are reserved when the call starts and refunded if it produces no answer.",
                  "note": "estimated_cents is what pay-as-you-go would charge. A subscription's units come out of its monthly allowance; the free allowance is never invoiced."
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "`endpoint` is not a route with a unit rate (the answer lists the available ones), or `hall_count` is not a whole number in range.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/screen": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_screen",
        "summary": "Density Screen.",
        "description": "Density Screen. A full intake in, a screening read out: every constraint evaluated, and the headroom ladder: each relief in binding order, with its cost, lead time and the racks it unlocks.\n\nReturns: screen payload (with grid_queue_context: the measured US queue statistic beside the assumed grid wait), or the rendered screening document.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 1,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_screen",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intake"
                ],
                "properties": {
                  "intake": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "md",
                      "html"
                    ],
                    "default": "json"
                  },
                  "grid_queue_region": {
                    "type": "string",
                    "enum": [
                      "CAISO",
                      "ERCOT",
                      "MISO",
                      "NYISO",
                      "PJM",
                      "SPP",
                      "Southeast",
                      "West"
                    ],
                    "description": "Optional. Which of LBNL's US regions the measured queue statistic in grid_queue_context is drawn from; omit for the pooled US figure. Context only: it changes no number and no date."
                  },
                  "electricity_price_state": {
                    "type": "string",
                    "enum": [
                      "Alabama",
                      "Alaska",
                      "Arizona",
                      "Arkansas",
                      "California",
                      "Colorado",
                      "Connecticut",
                      "Delaware",
                      "District of Columbia",
                      "Florida",
                      "Georgia",
                      "Hawaii",
                      "Idaho",
                      "Illinois",
                      "Indiana",
                      "Iowa",
                      "Kansas",
                      "Kentucky",
                      "Louisiana",
                      "Maine",
                      "Maryland",
                      "Massachusetts",
                      "Michigan",
                      "Minnesota",
                      "Mississippi",
                      "Missouri",
                      "Montana",
                      "Nebraska",
                      "Nevada",
                      "New Hampshire",
                      "New Jersey",
                      "New Mexico",
                      "New York",
                      "North Carolina",
                      "North Dakota",
                      "Ohio",
                      "Oklahoma",
                      "Oregon",
                      "Pennsylvania",
                      "Rhode Island",
                      "South Carolina",
                      "South Dakota",
                      "Tennessee",
                      "Texas",
                      "Utah",
                      "Vermont",
                      "Virginia",
                      "Washington",
                      "West Virginia",
                      "Wisconsin",
                      "Wyoming"
                    ],
                    "description": "Optional. Which US state's published average electricity price retail_price_context is drawn from; omit for the US average. Context only: it changes no price and no cost."
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "objective": "max_compute",
                "format": "json"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scenarios": {},
                    "intake": {
                      "type": "object",
                      "properties": {
                        "completeness": {
                          "type": "number"
                        },
                        "can_issue_a_study": {
                          "type": "boolean"
                        },
                        "gaps": {
                          "type": "array",
                          "description": "The assumption disclosure: every input the request did not supply, what the engine assumed in its place (`assumed`) and why it matters (`why_it_binds`).",
                          "items": {
                            "$ref": "#/components/schemas/AssumptionGap"
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "recommended_engagement": {
                          "type": "string",
                          "description": "What the engine recommends buying given how complete the intake is."
                        }
                      },
                      "additionalProperties": true
                    },
                    "calibration": {
                      "$ref": "#/components/schemas/CalibrationBlock"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "objective": "max_compute",
                  "recommended": "full_dlc_btm",
                  "scenarios": [
                    {
                      "id": "retained_air",
                      "name": "Retained air, grid only",
                      "architecture": "retained_air",
                      "rationale": "Counterfactual: change nothing about the cooling architecture.",
                      "as_found": {
                        "racks": 0,
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating",
                        "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                      },
                      "unassessed_banks": [],
                      "after_ladder": {
                        "racks": 0,
                        "binding": "architecture_capability",
                        "it_load_kW": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        },
                        "gpus": 0
                      },
                      "ladder": [
                        {
                          "step": 1,
                          "constraint": "rack_feed_tapoff",
                          "name": "Rack feed / tap-off rating",
                          "domain": "electrical",
                          "racks_before": 0,
                          "racks_after": 0,
                          "taken": false,
                          "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                          "capex_eur": {
                            "value": 6000,
                            "low": 3000,
                            "high": 12000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 1 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "18c611b5ae25"
                          },
                          "lead_time_weeks": {
                            "value": 24,
                            "low": 12,
                            "high": 40,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "tap-off lead time",
                            "model": "input@0.1",
                            "digest": "7a5fc57ce1e4"
                          },
                          "risk": "",
                          "cost_key": "tapoff.unit",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": "adds no deployable capacity, here or in any later step; not part of the plan and not costed"
                        }
                      ],
                      "time_to_power": {
                        "weeks_to_first_rack": null,
                        "weeks_to_full": null,
                        "schedule_complete": true,
                        "sets_the_date": "—",
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "date_record": {
                          "status": "no_deployable_racks",
                          "controlling_component": null,
                          "tied_components": null,
                          "lead_time_source": null,
                          "lead_time_source_label": null,
                          "evidence_class": null,
                          "date_interval_weeks": null,
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        },
                        "curve": []
                      },
                      "economics": {
                        "capex_total_eur": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "total capex",
                          "model": "economics.total_capex@0.1",
                          "digest": "f7495c34f50b"
                        },
                        "nothing_deployable": true,
                        "capex_na_reason": "n/a: nothing deployable",
                        "capex_per_kW_it": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>/kW",
                          "evidence": "E1_MODEL",
                          "label": "capex per kW (no deployable load)",
                          "model": "input@0.1",
                          "digest": "fa43210b5cde"
                        },
                        "capex_components": {
                          "relief_works_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E1_MODEL",
                            "label": "capex of relief measures taken along the headroom ladder",
                            "model": "input@0.1",
                            "digest": "0bbdb0027436"
                          },
                          "in_hall_conversion_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-hall conversion capex",
                            "model": "economics.conversion_capex@0.1",
                            "digest": "31aac42971b6"
                          },
                          "initial_cdu_kit_eur": null,
                          "initial_cdu_kit_scope": null
                        },
                        "capex_complete": false,
                        "unpriced_components": [],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 1,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "annual_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual energy cost",
                          "model": "economics.energy_cost@0.1",
                          "digest": "7fbf738609fa"
                        },
                        "annual_grid_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual grid energy cost",
                          "model": "economics.grid_energy_cost@0.1",
                          "digest": "d62a201b98e1"
                        },
                        "energy_cost_per_gpu_hour_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>/gpu*h",
                          "evidence": "E1_MODEL",
                          "label": "energy cost per GPU-hour (no GPUs deployable)",
                          "model": "input@0.1",
                          "digest": "fe231166c354"
                        },
                        "grid_tariff": {
                          "eur_per_MWh": {
                            "value": 140,
                            "low": 90,
                            "high": 220,
                            "unit": "<currency:see-/v1/version>/MWh",
                            "evidence": "E0_ASSUMPTION",
                            "label": "all-in electricity price",
                            "model": "input@0.1",
                            "digest": "ee5beeda32eb"
                          },
                          "declared_by_client": false
                        },
                        "btm_operating_cost": null,
                        "opex_complete": true,
                        "lifecycle": null,
                        "critical_path_weeks": 0,
                        "critical_path_complete": true,
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "basis": "n/a: nothing deployable (no capex to classify)",
                        "decision_grade": false,
                        "limitations": [
                          "nothing is deployable, so there is no capex to state: capex is n/a (nothing deployable), not zero",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "constraints": [
                        {
                          "id": "rack_feed_tapoff",
                          "domain": "electrical",
                          "name": "Rack feed / tap-off rating",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                          "relief": {
                            "description": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                            "capex_eur": {
                              "value": 6000,
                              "low": 3000,
                              "high": 12000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off unit and rack feed",
                              "model": "input@0.1",
                              "digest": "a4d0a1c316ef"
                            },
                            "lead_time_weeks": {
                              "value": 24,
                              "low": 12,
                              "high": 40,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off lead time",
                              "model": "input@0.1",
                              "digest": "7a5fc57ce1e4"
                            },
                            "risk": ""
                          }
                        },
                        {
                          "id": "architecture_capability",
                          "domain": "thermal",
                          "name": "Cooling architecture per-rack capability",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "retained_air is practically capable of 22 [15–25] kW (E0) per rack; the target platform draws 135 [132–142] kW (E0). Modelling limit: the platform's peak rack power (155 kW) is used by no constraint; every limit is sized on the rack power (TDP) figure",
                          "relief": null
                        }
                      ]
                    },
                    {
                      "id": "rdhx",
                      "name": "Rear-door heat exchangers, grid only",
                      "architecture": "rdhx",
                      "rationale": "Lowest-disruption path; keeps the legacy plant, lifts per-rack capability.",
                      "as_found": {
                        "racks": 0,
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating",
                        "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                      },
                      "unassessed_banks": [],
                      "after_ladder": {
                        "racks": 0,
                        "binding": "architecture_capability",
                        "it_load_kW": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        },
                        "gpus": 0
                      },
                      "ladder": [
                        {
                          "step": 1,
                          "constraint": "rack_feed_tapoff",
                          "name": "Rack feed / tap-off rating",
                          "domain": "electrical",
                          "racks_before": 0,
                          "racks_after": 0,
                          "taken": false,
                          "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                          "capex_eur": {
                            "value": 6000,
                            "low": 3000,
                            "high": 12000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 1 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "18c611b5ae25"
                          },
                          "lead_time_weeks": {
                            "value": 24,
                            "low": 12,
                            "high": 40,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "tap-off lead time",
                            "model": "input@0.1",
                            "digest": "7a5fc57ce1e4"
                          },
                          "risk": "",
                          "cost_key": "tapoff.unit",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": "adds no deployable capacity, here or in any later step; not part of the plan and not costed"
                        }
                      ],
                      "time_to_power": {
                        "weeks_to_first_rack": null,
                        "weeks_to_full": null,
                        "schedule_complete": true,
                        "sets_the_date": "—",
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "date_record": {
                          "status": "no_deployable_racks",
                          "controlling_component": null,
                          "tied_components": null,
                          "lead_time_source": null,
                          "lead_time_source_label": null,
                          "evidence_class": null,
                          "date_interval_weeks": null,
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        },
                        "curve": []
                      },
                      "economics": {
                        "capex_total_eur": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "total capex",
                          "model": "economics.total_capex@0.1",
                          "digest": "f7495c34f50b"
                        },
                        "nothing_deployable": true,
                        "capex_na_reason": "n/a: nothing deployable",
                        "capex_per_kW_it": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>/kW",
                          "evidence": "E1_MODEL",
                          "label": "capex per kW (no deployable load)",
                          "model": "input@0.1",
                          "digest": "fa43210b5cde"
                        },
                        "capex_components": {
                          "relief_works_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E1_MODEL",
                            "label": "capex of relief measures taken along the headroom ladder",
                            "model": "input@0.1",
                            "digest": "0bbdb0027436"
                          },
                          "in_hall_conversion_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-hall conversion capex",
                            "model": "economics.conversion_capex@0.1",
                            "digest": "31aac42971b6"
                          },
                          "initial_cdu_kit_eur": null,
                          "initial_cdu_kit_scope": null
                        },
                        "capex_complete": false,
                        "unpriced_components": [],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 1,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "annual_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual energy cost",
                          "model": "economics.energy_cost@0.1",
                          "digest": "bc93400e02b4"
                        },
                        "annual_grid_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual grid energy cost",
                          "model": "economics.grid_energy_cost@0.1",
                          "digest": "0cc9ec61028c"
                        },
                        "energy_cost_per_gpu_hour_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>/gpu*h",
                          "evidence": "E1_MODEL",
                          "label": "energy cost per GPU-hour (no GPUs deployable)",
                          "model": "input@0.1",
                          "digest": "fe231166c354"
                        },
                        "grid_tariff": {
                          "eur_per_MWh": {
                            "value": 140,
                            "low": 90,
                            "high": 220,
                            "unit": "<currency:see-/v1/version>/MWh",
                            "evidence": "E0_ASSUMPTION",
                            "label": "all-in electricity price",
                            "model": "input@0.1",
                            "digest": "ee5beeda32eb"
                          },
                          "declared_by_client": false
                        },
                        "btm_operating_cost": null,
                        "opex_complete": true,
                        "lifecycle": null,
                        "critical_path_weeks": 0,
                        "critical_path_complete": true,
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "basis": "n/a: nothing deployable (no capex to classify)",
                        "decision_grade": false,
                        "limitations": [
                          "nothing is deployable, so there is no capex to state: capex is n/a (nothing deployable), not zero",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "constraints": [
                        {
                          "id": "rack_feed_tapoff",
                          "domain": "electrical",
                          "name": "Rack feed / tap-off rating",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                          "relief": {
                            "description": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                            "capex_eur": {
                              "value": 6000,
                              "low": 3000,
                              "high": 12000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off unit and rack feed",
                              "model": "input@0.1",
                              "digest": "a4d0a1c316ef"
                            },
                            "lead_time_weeks": {
                              "value": 24,
                              "low": 12,
                              "high": 40,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off lead time",
                              "model": "input@0.1",
                              "digest": "7a5fc57ce1e4"
                            },
                            "risk": ""
                          }
                        },
                        {
                          "id": "architecture_capability",
                          "domain": "thermal",
                          "name": "Cooling architecture per-rack capability",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "rdhx is practically capable of 60 [20–80] kW (E0) per rack (a library default for the architecture, not a manufacturer's rating or a site measurement); the target platform draws 135 [132–142] kW (E0). Modelling limit: the platform's peak rack power (155 kW) is used by no constraint; every limit is sized on the rack power (TDP) figure",
                          "relief": null
                        }
                      ]
                    },
                    {
                      "id": "hybrid_dlc",
                      "name": "Hybrid DLC on retained plant, grid only",
                      "architecture": "hybrid_dlc",
                      "rationale": "Direct-to-chip with the existing plant carrying both liquid and residual air load. Cheapest route to density, worst energy outcome.",
                      "as_found": {
                        "racks": 0,
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating",
                        "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                      },
                      "unassessed_banks": [],
                      "after_ladder": {
                        "racks": 26,
                        "binding": "grid_firm_capacity",
                        "it_load_kW": {
                          "value": 3510,
                          "low": 3432,
                          "high": 3692,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        },
                        "gpus": 1872
                      },
                      "ladder": [
                        {
                          "step": 1,
                          "constraint": "rack_feed_tapoff",
                          "name": "Rack feed / tap-off rating",
                          "domain": "electrical",
                          "racks_before": 0,
                          "racks_after": 0,
                          "taken": true,
                          "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                          "capex_eur": {
                            "value": 156000,
                            "low": 78000,
                            "high": 312000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 26 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "54813d853468"
                          },
                          "lead_time_weeks": {
                            "value": 24,
                            "low": 12,
                            "high": 40,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "tap-off lead time",
                            "model": "input@0.1",
                            "digest": "7a5fc57ce1e4"
                          },
                          "risk": "",
                          "cost_key": "tapoff.unit",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": null
                        },
                        {
                          "step": 2,
                          "constraint": "residual_air_removal",
                          "name": "Residual air load removal per rack",
                          "domain": "thermal",
                          "racks_before": 0,
                          "racks_after": 7,
                          "taken": true,
                          "relief": "Add in-row cooling or rear-door heat exchangers for the residual air load",
                          "capex_eur": {
                            "value": 234000,
                            "low": 117000,
                            "high": 468000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Add in-row cooling or rear-door heat exchangers for the residual air load for 26 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "6e4cca9df4fa"
                          },
                          "lead_time_weeks": {
                            "value": 20,
                            "low": 12,
                            "high": 32,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-row / RDHx lead time",
                            "model": "input@0.1",
                            "digest": "fe48412ff79a"
                          },
                          "risk": "",
                          "cost_key": "inrow_rdhx.per_rack",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": null
                        }
                      ],
                      "time_to_power": {
                        "weeks_to_first_rack": 26,
                        "weeks_to_full": 160,
                        "schedule_complete": true,
                        "sets_the_date": "Transformer capacity",
                        "date_basis": "assumed",
                        "date_evidence_class": "E0",
                        "date_binding_item": "Transformer capacity",
                        "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                        "date_record": {
                          "status": "dated",
                          "controlling_component": "Transformer capacity",
                          "tied_components": [],
                          "lead_time_source": "customer_supplied_unverified",
                          "lead_time_source_label": "customer-supplied (unverified)",
                          "evidence_class": "E0",
                          "date_interval_weeks": {
                            "low": 104,
                            "high": 216
                          },
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        },
                        "curve": [
                          {
                            "weeks": 26,
                            "racks": 7,
                            "unlocked_by": "after CDU kit delivery (library lead time, assumed)"
                          },
                          {
                            "weeks": 160,
                            "racks": 8,
                            "unlocked_by": "Transformer capacity"
                          }
                        ]
                      },
                      "economics": {
                        "capex_total_eur": {
                          "value": 6630000,
                          "low": 3313000,
                          "high": 13252000,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "total capex",
                          "model": "economics.total_capex@0.1",
                          "digest": "2942aa2c020c"
                        },
                        "nothing_deployable": false,
                        "capex_na_reason": null,
                        "capex_per_kW_it": {
                          "value": 1890,
                          "low": 897.3456121343445,
                          "high": 3861.305361305361,
                          "unit": "<currency:see-/v1/version>/kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "capex per kW of IT load deployed",
                          "model": "economics.capex_per_kW@0.1",
                          "digest": "9821d28f0d09"
                        },
                        "capex_components": {
                          "relief_works_eur": {
                            "value": 4660000,
                            "low": 2328000,
                            "high": 9312000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "capex of relief measures taken along the headroom ladder",
                            "model": "economics.relief_capex@0.1",
                            "digest": "e5ee3b75efd6"
                          },
                          "in_hall_conversion_eur": {
                            "value": 1430000,
                            "low": 715000,
                            "high": 2860000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-hall conversion capex",
                            "model": "economics.conversion_capex@0.1",
                            "digest": "31aac42971b6"
                          },
                          "initial_cdu_kit_eur": {
                            "value": 540000,
                            "low": 270000,
                            "high": 1080000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "initial CDU kit (assumed, not installed): supplied and mechanically installed",
                            "model": "costs.scaled_relief@0.1",
                            "digest": "457085eb7b50"
                          },
                          "initial_cdu_kit_scope": "3 CDU unit(s) added"
                        },
                        "capex_complete": false,
                        "unpriced_components": [
                          {
                            "where": "step 7: Add CDU capacity (one further usable unit, in one bank)",
                            "component": "CDU hydraulic integration and controls",
                            "key": "cdu.integration",
                            "unit": "<currency:see-/v1/version>/unit",
                            "quantity": 1,
                            "scope": "1 CDU unit(s) added"
                          },
                          {
                            "where": "step 7: Add CDU capacity (one further usable unit, in one bank)",
                            "component": "CDU commissioning and flushing",
                            "key": "cdu.commissioning",
                            "unit": "<currency:see-/v1/version>/unit",
                            "quantity": 1,
                            "scope": "1 CDU unit(s) added"
                          }
                        ],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 8,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "annual_energy_cost_eur": {
                          "value": 4200000,
                          "low": 2475796.752,
                          "high": 7470983.52,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual energy cost",
                          "model": "economics.energy_cost@0.1",
                          "digest": "83ceb2eba697"
                        },
                        "annual_grid_energy_cost_eur": {
                          "value": 4200000,
                          "low": 2475796.752,
                          "high": 7470983.52,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual grid energy cost",
                          "model": "economics.grid_energy_cost@0.1",
                          "digest": "591ceee11ad1"
                        },
                        "energy_cost_per_gpu_hour_eur": {
                          "value": 0.256,
                          "low": 0.150975,
                          "high": 0.4555833333333333,
                          "unit": "<currency:see-/v1/version>/gpu*h",
                          "evidence": "E0_ASSUMPTION",
                          "label": "energy cost per GPU-hour",
                          "model": "economics.energy_per_gpu_hour@0.1",
                          "digest": "55da6a68d11a"
                        },
                        "grid_tariff": {
                          "eur_per_MWh": {
                            "value": 140,
                            "low": 90,
                            "high": 220,
                            "unit": "<currency:see-/v1/version>/MWh",
                            "evidence": "E0_ASSUMPTION",
                            "label": "all-in electricity price",
                            "model": "input@0.1",
                            "digest": "ee5beeda32eb"
                          },
                          "declared_by_client": false
                        },
                        "btm_operating_cost": null,
                        "opex_complete": true,
                        "lifecycle": {
                          "horizon_years": 10,
                          "discount_rate": null,
                          "cost_eur": {
                            "value": 48600000,
                            "low": 28070967.52,
                            "high": 87961835.19999999,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "lifecycle cost over 10 years",
                            "model": "economics.lifecycle_cost@0.1",
                            "digest": "0590aba4b7e0"
                          },
                          "complete": false,
                          "basis": "capex at year 0 plus the annual energy cost for 10 years, undiscounted, flat prices, no escalation; excludes IT hardware, migration, lost tenancy revenue, non-energy operating cost of the cooling plant, and decommissioning"
                        },
                        "critical_path_weeks": 160,
                        "critical_path_complete": true,
                        "date_basis": "assumed",
                        "date_evidence_class": "E0",
                        "date_binding_item": "Transformer capacity",
                        "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                        "basis": "Class 5 (order of magnitude): -50% / +100%",
                        "decision_grade": false,
                        "limitations": [
                          "the capex total is a LOWER BOUND: no price exists for CDU commissioning and flushing (4 x unit, needed in 2 places); CDU hydraulic integration and controls (4 x unit, needed in 2 places)",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "constraints": [
                        {
                          "id": "rack_feed_tapoff",
                          "domain": "electrical",
                          "name": "Rack feed / tap-off rating",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                          "relief": {
                            "description": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                            "capex_eur": {
                              "value": 6000,
                              "low": 3000,
                              "high": 12000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off unit and rack feed",
                              "model": "input@0.1",
                              "digest": "a4d0a1c316ef"
                            },
                            "lead_time_weeks": {
                              "value": 24,
                              "low": 12,
                              "high": 40,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off lead time",
                              "model": "input@0.1",
                              "digest": "7a5fc57ce1e4"
                            },
                            "risk": ""
                          }
                        },
                        {
                          "id": "residual_air_removal",
                          "domain": "thermal",
                          "name": "Residual air load removal per rack",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "13.5 [10.6–21.3] kW (E0) of air-side load per rack against 9 kW (E3) the hall can remove per position",
                          "relief": {
                            "description": "Add in-row cooling or rear-door heat exchangers for the residual air load",
                            "capex_eur": {
                              "value": 9000,
                              "low": 4500,
                              "high": 18000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "in-row cooling or rear-door heat exchanger, installed",
                              "model": "input@0.1",
                              "digest": "0a4be3458324"
                            },
                            "lead_time_weeks": {
                              "value": 20,
                              "low": 12,
                              "high": 32,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "in-row / RDHx lead time",
                              "model": "input@0.1",
                              "digest": "fe48412ff79a"
                            },
                            "risk": ""
                          }
                        }
                      ]
                    }
                  ],
                  "intake": {
                    "completeness": 0.839,
                    "can_issue_a_study": true,
                    "gaps": [
                      {
                        "path": "btm_options[BESS-2MW-8MWh].energy_MWh",
                        "input": "BESS-2MW-8MWh battery energy rating",
                        "unit": "MWh",
                        "required": false,
                        "assumed": "your firm factor 0.5 accepted as declared, unchecked against the battery's energy",
                        "why_it_binds": "a battery is firm only for what its stored energy can sustain: with no energy rating its firm credit is the same whatever its size, so the capacity it adds to the envelope is unchecked",
                        "how_to_get_it": "the battery datasheet or supplier quotation: usable energy in MWh at the discharge rate the duty needs"
                      },
                      {
                        "path": "btm_options[GEN-5MW].units",
                        "input": "GEN-5MW unit count and redundancy",
                        "unit": "units",
                        "required": false,
                        "assumed": "credited at nameplate x firm factor, as if no unit could be out of service",
                        "why_it_binds": "firm capacity under N+1 is what is left after the largest unit is lost: the same capacity is none of it as one unit, half as two, three quarters as four. Nameplate alone cannot say which it is",
                        "how_to_get_it": "the generator schedule: how many units make up the option's capacity_MW, and the redundancy scheme your resilience design requires (N, N+1, N+2 or 2N)"
                      }
                    ],
                    "warnings": [
                      "BTM option BESS-2MW-8MWh: it is credited as firm capacity with NO declared energy rating. A battery is firm only for what its stored energy can sustain, and recharge is not modelled, so the racks this adds are unverified.",
                      "BTM option GEN-5MW: no unit count was declared, so it is credited at nameplate x firm factor as if no unit could be out of service. A single unit under N+1 would count as zero firm capacity; the racks this adds are unverified."
                    ],
                    "recommended_engagement": "No required inputs are missing, so this supports a full Capacity & Density Envelope Study, but the intake is not complete: 13 optional inputs are still assumptions (listed in the data request), and the study names each one."
                  },
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  },
                  "grid_queue_context": {
                    "schema": "gridforge/grid-queue-context/1",
                    "kind": "context_only",
                    "source": {
                      "name": "Lawrence Berkeley National Laboratory, Queued Up (2026 edition, data through 2025)",
                      "licence": "CC BY 4.0",
                      "workbook_sha256": "794582d3281c6a305e9615fcfec3fae9dc85be2165216d33760b677e976a08b6",
                      "measured_on": "2026-11-27",
                      "computed_by": "gridforge-stress harness (independent of this engine); see provenance in data/queue_context.json"
                    },
                    "observed": {
                      "name": "US, requests that reached operation 2018-2025",
                      "n": 1439,
                      "p25_weeks": 161,
                      "median_weeks": 229.3,
                      "p75_weeks": 304.9,
                      "p25_years": 3.086,
                      "median_years": 4.394,
                      "p75_years": 5.844,
                      "population": "operational",
                      "geography": "US",
                      "definition": "Years from interconnection-request (queue) date to in-service date for OPERATIONAL generation/storage requests that have both dates; 48 requests with impossible date order excluded; conditioned on reaching commercial operation (survivorship). NOT a time-to-power for a load and NOT a data-centre connection time."
                    },
                    "survivorship": {
                      "entry_years": [
                        2010,
                        2015
                      ],
                      "entered": 5633,
                      "operational": 1299,
                      "withdrawn": 4153,
                      "unresolved": 181,
                      "share_operational_of_entered": 0.231,
                      "statement": "Of 5633 requests that entered these queues in 2010-2015, 1299 (23.1%) are operational and 4153 withdrawn (181 unresolved); the durations describe only the operational ones."
                    },
                    "applicability": {
                      "site_country": "DE",
                      "context_geography": "US",
                      "level": "scale_reference_only"
                    },
                    "limits": [
                      "US interconnection queues for generation/storage, not load interconnections",
                      "Survivorship: only requests that reached commercial operation are included; most requests in the dataset did not (the dataset records 24,221 withdrawn and 4,789 operational requests across all years); see the survivorship block for cohort outcomes"
                    ],
                    "must_not_claim": [
                      "that the observed queue duration is a connection time for a load or a data centre",
                      "that the assumed grid lead time is validated, confirmed or raised in evidence class by this comparison"
                    ],
                    "comparison": {
                      "assumed_weeks": 30,
                      "assumed_band_weeks": [
                        19.5,
                        40.5
                      ],
                      "assumed_evidence_class": "E0_ASSUMPTION",
                      "position_of_assumption": "below_p25",
                      "assumed_over_observed_median": 0.131,
                      "assumed_band_covers_observed_median": false
                    },
                    "statements": [
                      "In LBNL's US generation-queue data (US, requests that reached operation 2018-2025; n=1439), requests that reached commercial operation took a median 4.394 years from request to in-service (p25 3.086, p75 5.844).",
                      "Of 5633 requests that entered these queues in 2010-2015, 1299 (23.1%) are operational and 4153 withdrawn (181 unresolved); the durations describe only the operational ones."
                    ]
                  },
                  "retail_price_context": {
                    "schema": "gridforge/retail-price-context/1",
                    "kind": "context_only",
                    "source": {
                      "name": "U.S. Energy Information Administration, Electric Power Monthly, Table 5.6.A (Form EIA-861M)",
                      "release_date": "October 23, 2026",
                      "measured_on": "2026-11-27",
                      "page_sha256": "042269100ad9e52865ce21692337baa25ef0385e653189f51001ba348d7e3603",
                      "computed_by": "gridforge-stress harness (independent of this engine); see provenance in data/retail_price_context.json"
                    },
                    "observed": {
                      "area": "U.S. Total",
                      "period": "2026-08",
                      "unit": "US dollars per MWh (published as US cents per kWh)",
                      "sectors": {
                        "commercial": {
                          "usd_per_MWh": 144.7,
                          "cents_per_kWh": 14.47,
                          "same_month_prior_year_cents_per_kWh": 13.87
                        },
                        "industrial": {
                          "usd_per_MWh": 96.4,
                          "cents_per_kWh": 9.64,
                          "same_month_prior_year_cents_per_kWh": 8.98
                        }
                      },
                      "definition": "Average price to ultimate customers in the sector for one month (EIA-861M): revenue divided by sales, so it includes delivery and every customer in the sector. NOT the tariff of any load, NOT a data-centre price, NOT a forecast.",
                      "status": "EIA: values for the prior year are final; values for the current month are preliminary estimates"
                    },
                    "applicability": {
                      "site_country": "DE",
                      "level": "scale_reference_only",
                      "note": "The site is not stated to be in the United States. A US average says nothing about its tariff; it is a scale reference at most."
                    },
                    "limits": [
                      "that the published average is the price this load would be offered or would pay",
                      "that the assumed or declared electricity price is validated, confirmed or changed in evidence class by this comparison"
                    ],
                    "statements": [
                      "This is the average price paid by every customer in the sector in one month, delivery included. A load's price is set by its contracted tariff, which this does not replace.",
                      "EIA reports US cents per kWh; the engine's price is in <currency:see-/v1/version>/MWh. They are shown in their own currencies and are not converted."
                    ],
                    "assumed": {
                      "eur_per_MWh": 140,
                      "source": "library placeholder (evidence class E0); no contracted tariff supplied",
                      "evidence_class_unchanged": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compare": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_compare",
        "summary": "Time-to-Power scenario comparison.",
        "description": "Time-to-Power scenario comparison. A full intake in; the scenarios it defines out, side by side: racks as found and after relief, the constraint that binds, the time to full capacity with its low/high band and evidence class (and, in date_basis / date_label, whether an assumed lead time sits behind it: 'assumed lead time, not a date'), capital and what is unpriced, and how each differs from the baseline. A scenario with an unknown lead time gets no date and a reason, never a small number; nothing is ranked on a figure it does not have. Same solve as gridforge_screen, same inputs, same numbers.\n\nReturns: gridforge/ttp-compare/1: scenarios[] (each with as_found.racks and after_ladder.racks, and racks_evidence beside each: the evidence class of that rack count as a short code such as E0), ranking, grade, caveats, grid_queue_context (measured US queue statistic, context only), request_digest, provenance.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 1,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_compare",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intake"
                ],
                "properties": {
                  "intake": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "scenarios": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 2,
                    "description": "Scenario ids to compare, from the intake's own set (retained_air, rdhx, hybrid_dlc, full_dlc, full_dlc_btm). Default: all the intake defines."
                  },
                  "baseline": {
                    "type": "string",
                    "description": "Scenario id the others are compared with. Default: the first."
                  },
                  "grid_queue_region": {
                    "type": "string",
                    "enum": [
                      "CAISO",
                      "ERCOT",
                      "MISO",
                      "NYISO",
                      "PJM",
                      "SPP",
                      "Southeast",
                      "West"
                    ],
                    "description": "Optional. Which of LBNL's US regions the measured queue statistic in grid_queue_context is drawn from; omit for the pooled US figure. Context only: it changes no number and no date."
                  },
                  "electricity_price_state": {
                    "type": "string",
                    "enum": [
                      "Alabama",
                      "Alaska",
                      "Arizona",
                      "Arkansas",
                      "California",
                      "Colorado",
                      "Connecticut",
                      "Delaware",
                      "District of Columbia",
                      "Florida",
                      "Georgia",
                      "Hawaii",
                      "Idaho",
                      "Illinois",
                      "Indiana",
                      "Iowa",
                      "Kansas",
                      "Kentucky",
                      "Louisiana",
                      "Maine",
                      "Maryland",
                      "Massachusetts",
                      "Michigan",
                      "Minnesota",
                      "Mississippi",
                      "Missouri",
                      "Montana",
                      "Nebraska",
                      "Nevada",
                      "New Hampshire",
                      "New Jersey",
                      "New Mexico",
                      "New York",
                      "North Carolina",
                      "North Dakota",
                      "Ohio",
                      "Oklahoma",
                      "Oregon",
                      "Pennsylvania",
                      "Rhode Island",
                      "South Carolina",
                      "South Dakota",
                      "Tennessee",
                      "Texas",
                      "Utah",
                      "Vermont",
                      "Virginia",
                      "Washington",
                      "West Virginia",
                      "Wisconsin",
                      "Wyoming"
                    ],
                    "description": "Optional. Which US state's published average electricity price retail_price_context is drawn from; omit for the US average. Context only: it changes no price and no cost."
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "objective": "max_compute"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema": {
                      "type": "string",
                      "description": "The response schema id, e.g. gridforge/ttp-compare/1."
                    },
                    "scenarios": {},
                    "ranking": {},
                    "grade": {
                      "type": "string",
                      "description": "How far the comparison can be relied on: screening or indicative. Never stronger than its weakest input."
                    },
                    "caveats": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Plain-language limits on the answer, including what the context blocks are and are not."
                    },
                    "request_digest": {
                      "type": "string",
                      "description": "A digest of the request, so the same inputs can be recognised later."
                    },
                    "provenance": {
                      "type": "object",
                      "description": "What produced this answer: engine version and the digests of the code, the cost library and the calibration record."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "schema": "gridforge/ttp-compare/1",
                  "objective": "max_compute",
                  "baseline": "retained_air",
                  "scenarios": [
                    {
                      "id": "retained_air",
                      "name": "Retained air, grid only",
                      "architecture": "retained_air",
                      "rationale": "Counterfactual: change nothing about the cooling architecture.",
                      "as_found": {
                        "racks": 0,
                        "racks_evidence": "E0",
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating"
                      },
                      "after_ladder": {
                        "racks": 0,
                        "racks_evidence": "E0",
                        "binding": "architecture_capability",
                        "binding_name": "Cooling architecture per-rack capability",
                        "it_load_kW": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        }
                      },
                      "time_to_power": {
                        "status": "no_deployable_racks",
                        "weeks": null,
                        "low": null,
                        "high": null,
                        "evidence": null,
                        "first_rack_weeks": null,
                        "sets_the_date": null,
                        "reason": "No rack is deployable in this scenario, so there is nothing to date.",
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "lead_times": [],
                        "date_record": {
                          "status": "no_deployable_racks",
                          "controlling_component": null,
                          "tied_components": null,
                          "lead_time_source": null,
                          "lead_time_source_label": null,
                          "evidence_class": null,
                          "date_interval_weeks": null,
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        }
                      },
                      "economics": {
                        "capex_total_eur": null,
                        "capex_na_reason": "n/a: nothing deployable",
                        "capex_complete": false,
                        "unpriced_components": [],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 1,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "decision_grade": false,
                        "basis": "n/a: nothing deployable (no capex to classify)",
                        "limitations": [
                          "nothing is deployable, so there is no capex to state: capex is n/a (nothing deployable), not zero",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "weakest_lead_time_evidence": null,
                      "grade": "undated",
                      "missing_inputs": [],
                      "vs_baseline": null
                    },
                    {
                      "id": "rdhx",
                      "name": "Rear-door heat exchangers, grid only",
                      "architecture": "rdhx",
                      "rationale": "Lowest-disruption path; keeps the legacy plant, lifts per-rack capability.",
                      "as_found": {
                        "racks": 0,
                        "racks_evidence": "E0",
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating"
                      },
                      "after_ladder": {
                        "racks": 0,
                        "racks_evidence": "E0",
                        "binding": "architecture_capability",
                        "binding_name": "Cooling architecture per-rack capability",
                        "it_load_kW": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        }
                      },
                      "time_to_power": {
                        "status": "no_deployable_racks",
                        "weeks": null,
                        "low": null,
                        "high": null,
                        "evidence": null,
                        "first_rack_weeks": null,
                        "sets_the_date": null,
                        "reason": "No rack is deployable in this scenario, so there is nothing to date.",
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "lead_times": [],
                        "date_record": {
                          "status": "no_deployable_racks",
                          "controlling_component": null,
                          "tied_components": null,
                          "lead_time_source": null,
                          "lead_time_source_label": null,
                          "evidence_class": null,
                          "date_interval_weeks": null,
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        }
                      },
                      "economics": {
                        "capex_total_eur": null,
                        "capex_na_reason": "n/a: nothing deployable",
                        "capex_complete": false,
                        "unpriced_components": [],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 1,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "decision_grade": false,
                        "basis": "n/a: nothing deployable (no capex to classify)",
                        "limitations": [
                          "nothing is deployable, so there is no capex to state: capex is n/a (nothing deployable), not zero",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "weakest_lead_time_evidence": null,
                      "grade": "undated",
                      "missing_inputs": [],
                      "vs_baseline": {
                        "racks_delta": 0,
                        "weeks_delta": null,
                        "weeks_delta_unknown_reason": "No rack is deployable in this scenario, so there is nothing to date.",
                        "capex_delta_eur": null,
                        "capex_delta_unknown_reason": "the baseline deploys no racks, so there is nothing to price a difference against",
                        "why": [
                          "no difference in the limit, the date or the racks"
                        ]
                      }
                    },
                    {
                      "id": "hybrid_dlc",
                      "name": "Hybrid DLC on retained plant, grid only",
                      "architecture": "hybrid_dlc",
                      "rationale": "Direct-to-chip with the existing plant carrying both liquid and residual air load. Cheapest route to density, worst energy outcome.",
                      "as_found": {
                        "racks": 0,
                        "racks_evidence": "E0",
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating"
                      },
                      "after_ladder": {
                        "racks": 26,
                        "racks_evidence": "E0",
                        "binding": "grid_firm_capacity",
                        "binding_name": "Firm supply (grid import + behind-the-meter)",
                        "it_load_kW": {
                          "value": 3510,
                          "low": 3432,
                          "high": 3692,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        }
                      },
                      "time_to_power": {
                        "status": "dated",
                        "weeks": 160,
                        "low": 104,
                        "high": 216,
                        "evidence": "E0",
                        "first_rack_weeks": 26,
                        "sets_the_date": "Transformer capacity",
                        "reason": null,
                        "date_basis": "assumed",
                        "date_evidence_class": "E0",
                        "date_binding_item": "Transformer capacity",
                        "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                        "lead_times": [
                          {
                            "constraint": "rack_feed_tapoff",
                            "name": "Rack feed / tap-off rating",
                            "domain": "electrical",
                            "lead_time_weeks": {
                              "value": 24,
                              "low": 12,
                              "high": 40,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off lead time",
                              "model": "input@0.1",
                              "digest": "7a5fc57ce1e4"
                            },
                            "missing": false,
                            "capex_eur": {
                              "value": 156000,
                              "low": 78000,
                              "high": 312000,
                              "unit": "<currency:see-/v1/version>",
                              "evidence": "E0_ASSUMPTION",
                              "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 26 racks",
                              "model": "envelope.relief_capex@0.1",
                              "digest": "54813d853468"
                            },
                            "cost_basis": "library_default"
                          },
                          {
                            "constraint": "residual_air_removal",
                            "name": "Residual air load removal per rack",
                            "domain": "thermal",
                            "lead_time_weeks": {
                              "value": 20,
                              "low": 12,
                              "high": 32,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "in-row / RDHx lead time",
                              "model": "input@0.1",
                              "digest": "fe48412ff79a"
                            },
                            "missing": false,
                            "capex_eur": {
                              "value": 234000,
                              "low": 117000,
                              "high": 468000,
                              "unit": "<currency:see-/v1/version>",
                              "evidence": "E0_ASSUMPTION",
                              "label": "Add in-row cooling or rear-door heat exchangers for the residual air load for 26 racks",
                              "model": "envelope.relief_capex@0.1",
                              "digest": "6e4cca9df4fa"
                            },
                            "cost_basis": "library_default"
                          }
                        ],
                        "date_record": {
                          "status": "dated",
                          "controlling_component": "Transformer capacity",
                          "tied_components": [],
                          "lead_time_source": "customer_supplied_unverified",
                          "lead_time_source_label": "customer-supplied (unverified)",
                          "evidence_class": "E0",
                          "date_interval_weeks": {
                            "low": 104,
                            "high": 216
                          },
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        }
                      },
                      "economics": {
                        "capex_total_eur": {
                          "value": 6630000,
                          "low": 3313000,
                          "high": 13252000,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "total capex",
                          "model": "economics.total_capex@0.1",
                          "digest": "2942aa2c020c"
                        },
                        "capex_na_reason": null,
                        "capex_complete": false,
                        "unpriced_components": [
                          {
                            "where": "step 7: Add CDU capacity (one further usable unit, in one bank)",
                            "component": "CDU hydraulic integration and controls",
                            "key": "cdu.integration",
                            "unit": "<currency:see-/v1/version>/unit",
                            "quantity": 1,
                            "scope": "1 CDU unit(s) added"
                          },
                          {
                            "where": "step 7: Add CDU capacity (one further usable unit, in one bank)",
                            "component": "CDU commissioning and flushing",
                            "key": "cdu.commissioning",
                            "unit": "<currency:see-/v1/version>/unit",
                            "quantity": 1,
                            "scope": "1 CDU unit(s) added"
                          }
                        ],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 8,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "decision_grade": false,
                        "basis": "Class 5 (order of magnitude): -50% / +100%",
                        "limitations": [
                          "the capex total is a LOWER BOUND: no price exists for CDU commissioning and flushing (4 x unit, needed in 2 places); CDU hydraulic integration and controls (4 x unit, needed in 2 places)",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "weakest_lead_time_evidence": "E0",
                      "grade": "indicative",
                      "missing_inputs": [
                        "price: CDU hydraulic integration and controls",
                        "price: CDU commissioning and flushing"
                      ],
                      "vs_baseline": {
                        "racks_delta": 26,
                        "weeks_delta": null,
                        "weeks_delta_unknown_reason": "the baseline (retained_air) deploys no racks, so it has no date to take this scenario's date away from.",
                        "capex_delta_eur": null,
                        "capex_delta_unknown_reason": "the baseline deploys no racks, so there is nothing to price a difference against",
                        "why": [
                          "the limit moves from Cooling architecture per-rack capability to Firm supply (grid import + behind-the-meter)",
                          "26 more racks deployable"
                        ]
                      }
                    }
                  ],
                  "ranking": {
                    "objective": "max_compute",
                    "metric": "deployable racks",
                    "order": [
                      "full_dlc_btm",
                      "full_dlc"
                    ],
                    "values": {
                      "full_dlc_btm": 62,
                      "full_dlc": 28,
                      "hybrid_dlc": 26
                    },
                    "racks": {
                      "hybrid_dlc": 26,
                      "full_dlc": 28,
                      "full_dlc_btm": 62
                    },
                    "excluded": [
                      {
                        "id": "retained_air",
                        "reason": "no deployable racks"
                      },
                      {
                        "id": "rdhx",
                        "reason": "no deployable racks"
                      }
                    ],
                    "leader": "full_dlc_btm",
                    "tie": false,
                    "note": null
                  },
                  "grade": "indicative",
                  "caveats": [
                    "BTM option BESS-2MW-8MWh: it is credited as firm capacity with NO declared energy rating. A battery is firm only for what its stored energy can sustain, and recharge is not modelled, so the racks this adds are unverified.",
                    "BTM option GEN-5MW: no unit count was declared, so it is credited at nameplate x firm factor as if no unit could be out of service. A single unit under N+1 would count as zero firm capacity; the racks this adds are unverified.",
                    "Busway: hall.occupied_positions was not supplied, so the occupied positions are an assumption (E0), not a count. Reading every position that is not free as occupied (560 in total less 180 free = 380 positions), at their 8 kW design density, would draw 3,040 kW, more than the 1,720 kW the declared busway can carry. busway_ampacity_A is read as the installed t..."
                  ],
                  "request_digest": "71fc14109cb52f73f76c4b457ddbe21e6e620870b3b8611ea55510e6246437c0",
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "intake_completeness": 0.839,
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  },
                  "grid_queue_context": {
                    "schema": "gridforge/grid-queue-context/1",
                    "kind": "context_only",
                    "source": {
                      "name": "Lawrence Berkeley National Laboratory, Queued Up (2026 edition, data through 2025)",
                      "licence": "CC BY 4.0",
                      "workbook_sha256": "794582d3281c6a305e9615fcfec3fae9dc85be2165216d33760b677e976a08b6",
                      "measured_on": "2026-11-27",
                      "computed_by": "gridforge-stress harness (independent of this engine); see provenance in data/queue_context.json"
                    },
                    "observed": {
                      "name": "US, requests that reached operation 2018-2025",
                      "n": 1439,
                      "p25_weeks": 161,
                      "median_weeks": 229.3,
                      "p75_weeks": 304.9,
                      "p25_years": 3.086,
                      "median_years": 4.394,
                      "p75_years": 5.844,
                      "population": "operational",
                      "geography": "US",
                      "definition": "Years from interconnection-request (queue) date to in-service date for OPERATIONAL generation/storage requests that have both dates; 48 requests with impossible date order excluded; conditioned on reaching commercial operation (survivorship). NOT a time-to-power for a load and NOT a data-centre connection time."
                    },
                    "survivorship": {
                      "entry_years": [
                        2010,
                        2015
                      ],
                      "entered": 5633,
                      "operational": 1299,
                      "withdrawn": 4153,
                      "unresolved": 181,
                      "share_operational_of_entered": 0.231,
                      "statement": "Of 5633 requests that entered these queues in 2010-2015, 1299 (23.1%) are operational and 4153 withdrawn (181 unresolved); the durations describe only the operational ones."
                    },
                    "applicability": {
                      "site_country": "DE",
                      "context_geography": "US",
                      "level": "scale_reference_only"
                    },
                    "limits": [
                      "US interconnection queues for generation/storage, not load interconnections",
                      "Survivorship: only requests that reached commercial operation are included; most requests in the dataset did not (the dataset records 24,221 withdrawn and 4,789 operational requests across all years); see the survivorship block for cohort outcomes"
                    ],
                    "must_not_claim": [
                      "that the observed queue duration is a connection time for a load or a data centre",
                      "that the assumed grid lead time is validated, confirmed or raised in evidence class by this comparison"
                    ],
                    "statements": [
                      "In LBNL's US generation-queue data (US, requests that reached operation 2018-2025; n=1439), requests that reached commercial operation took a median 4.394 years from request to in-service (p25 3.086, p75 5.844).",
                      "Of 5633 requests that entered these queues in 2010-2015, 1299 (23.1%) are operational and 4153 withdrawn (181 unresolved); the durations describe only the operational ones."
                    ]
                  },
                  "retail_price_context": {
                    "schema": "gridforge/retail-price-context/1",
                    "kind": "context_only",
                    "source": {
                      "name": "U.S. Energy Information Administration, Electric Power Monthly, Table 5.6.A (Form EIA-861M)",
                      "release_date": "October 23, 2026",
                      "measured_on": "2026-11-27",
                      "page_sha256": "042269100ad9e52865ce21692337baa25ef0385e653189f51001ba348d7e3603",
                      "computed_by": "gridforge-stress harness (independent of this engine); see provenance in data/retail_price_context.json"
                    },
                    "observed": {
                      "area": "U.S. Total",
                      "period": "2026-08",
                      "unit": "US dollars per MWh (published as US cents per kWh)",
                      "sectors": {
                        "commercial": {
                          "usd_per_MWh": 144.7,
                          "cents_per_kWh": 14.47,
                          "same_month_prior_year_cents_per_kWh": 13.87
                        },
                        "industrial": {
                          "usd_per_MWh": 96.4,
                          "cents_per_kWh": 9.64,
                          "same_month_prior_year_cents_per_kWh": 8.98
                        }
                      },
                      "definition": "Average price to ultimate customers in the sector for one month (EIA-861M): revenue divided by sales, so it includes delivery and every customer in the sector. NOT the tariff of any load, NOT a data-centre price, NOT a forecast.",
                      "status": "EIA: values for the prior year are final; values for the current month are preliminary estimates"
                    },
                    "applicability": {
                      "site_country": "DE",
                      "level": "scale_reference_only",
                      "note": "The site is not stated to be in the United States. A US average says nothing about its tariff; it is a scale reference at most."
                    },
                    "limits": [
                      "that the published average is the price this load would be offered or would pay",
                      "that the assumed or declared electricity price is validated, confirmed or changed in evidence class by this comparison"
                    ],
                    "statements": [
                      "This is the average price paid by every customer in the sector in one month, delivery included. A load's price is set by its contracted tariff, which this does not replace.",
                      "EIA reports US cents per kWh; the engine's price is in <currency:see-/v1/version>/MWh. They are shown in their own currencies and are not converted."
                    ],
                    "assumed": {
                      "eur_per_MWh": 140,
                      "source": "library placeholder (evidence class E0); no contracted tariff supplied",
                      "evidence_class_unchanged": true
                    }
                  },
                  "provenance": {
                    "schema": "gridforge/provenance/1",
                    "engine_version": "0.9.0",
                    "code_sha256": "513ef0ec9c09e9075f84882f57c09db627f377a5eb563cdbd530eb591723b05d",
                    "cost_library_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
                    "calibration_sha256": "225e762caa8cb172d84527d9dafc91d35fa66926b5536689e683325e81945c89",
                    "digest": "7469d0c89429794a8a8eab67792aa3044ee8c2536f8e69bdd645df912c5f98a9",
                    "report_date": "2026-11-27"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/study": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_study",
        "summary": "Capacity & Density Envelope Study.",
        "description": "Capacity & Density Envelope Study. Five architectures compared, the full headroom ladder with costs and lead times, time-to-power, sensitivity, economics, and the provenance of every number. format='csv' returns the working files a client's own engineer can rebuild the answer from.\n\nReturns: the model pack, a rendered document, or the CSV working files.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 5,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_study",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intake"
                ],
                "properties": {
                  "intake": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "md",
                      "html",
                      "csv"
                    ],
                    "default": "json"
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "objective": "max_compute",
                "format": "json"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "schema": "gridforge/model-pack/2",
                  "generated": "2026-11-27T00:00:00+00:00",
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "intake": {
                    "document": {
                      "project": {
                        "client": "Reference Project (synthetic)",
                        "reference": "REF-EU-01/DH-02",
                        "objective": "max_compute",
                        "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                      },
                      "site": {
                        "id": "REF-EU-01",
                        "name": "Reference Colocation Campus",
                        "country": "DE",
                        "metro": "Frankfurt",
                        "design_drybulb_C": 34,
                        "design_wetbulb_C": 21
                      },
                      "hall": {
                        "id": "DH-02",
                        "build_year": 2015,
                        "floor_type": "raised_floor",
                        "net_white_space_m2": 2400,
                        "floor_loading_kPa": {
                          "value": 12,
                          "note": "Design value from the building record, not a survey"
                        },
                        "clear_height_m": 3.2,
                        "aisle_pitch_m": 2.4,
                        "rack_positions": 560,
                        "positions_available": 180,
                        "design_density_kW_per_rack": 8,
                        "containment": "cold_aisle"
                      },
                      "grid": {
                        "dso": "Reference DSO",
                        "firm_capacity_MVA": 14,
                        "power_factor": 0.97,
                        "contracted_MW": 12,
                        "current_site_peak_MW": {
                          "value": 7.4,
                          "note": "12 months of half-hourly metered data"
                        },
                        "current_it_load_MW": 4.9,
                        "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                      },
                      "transformers": [
                        {
                          "id": "TX-A/B",
                          "unit_rating_MVA": 5,
                          "units": 3,
                          "redundancy": "N+1",
                          "derating_factor": 0.9,
                          "replacement_lead_time_weeks": 160
                        }
                      ],
                      "ups": [
                        {
                          "id": "UPS-1",
                          "unit_rating_kW": 1200,
                          "units": 6,
                          "redundancy": "N+1",
                          "step_load_capability": 0.5
                        }
                      ],
                      "lv": {
                        "voltage_V": 400,
                        "phases": 3,
                        "busway_ampacity_A": {
                          "value": 400,
                          "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                        },
                        "busway_runs": 8,
                        "busway_utilisation_limit": 0.8,
                        "tapoff_max_A": 63
                      },
                      "thermal": {
                        "plant": {
                          "id": "CH-PLANT",
                          "chilled_water_capacity_kW": 6800,
                          "design_supply_C": {
                            "value": 6,
                            "note": "Legacy low-temperature plant"
                          },
                          "design_return_C": 12,
                          "pump_flow_capacity_l_per_min": 9000,
                          "available_head_kPa": 250,
                          "free_cooling_hours_per_year": 2600
                        },
                        "residual_air_capacity_kW_per_rack": {
                          "value": 9,
                          "evidence": "E3",
                          "note": "Derived from hall design density and containment; confirm by measurement"
                        },
                        "cdus": []
                      },
                      "compute": {
                        "platform": "gb300_nvl72",
                        "utilisation": 0.75,
                        "default_architecture": "hybrid_dlc"
                      },
                      "btm_options": [
                        {
                          "id": "BESS-2MW-8MWh",
                          "kind": "bess",
                          "capacity_MW": 2,
                          "capex_eur_per_kW": 900,
                          "lead_time_weeks": 30,
                          "firm": true,
                          "firm_capacity_factor": 0.5,
                          "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                        },
                        {
                          "id": "GEN-5MW",
                          "kind": "gas_engine",
                          "capacity_MW": 5,
                          "capex_eur_per_kW": 800,
                          "lead_time_weeks": 44,
                          "firm": true,
                          "opex_eur_per_MWh": 95,
                          "annual_run_hours": 5000,
                          "fixed_om_eur_per_kW_year": 18,
                          "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                        }
                      ],
                      "economics": {
                        "horizon_years": 10
                      },
                      "scenarios": [
                        "retained_air",
                        "rdhx"
                      ]
                    },
                    "completeness": 0.839,
                    "can_issue": true,
                    "supplied": [
                      "compute.platform",
                      "compute.utilisation"
                    ],
                    "gaps": [
                      {
                        "path": "btm_options[BESS-2MW-8MWh].energy_MWh",
                        "label": "BESS-2MW-8MWh battery energy rating",
                        "unit": "MWh",
                        "required": false,
                        "assumed": "your firm factor 0.5 accepted as declared, unchecked against the battery's energy",
                        "why_it_binds": "a battery is firm only for what its stored energy can sustain: with no energy rating its firm credit is the same whatever its size, so the capacity it adds to the envelope is unchecked",
                        "how_to_get_it": "the battery datasheet or supplier quotation: usable energy in MWh at the discharge rate the duty needs"
                      },
                      {
                        "path": "btm_options[GEN-5MW].units",
                        "label": "GEN-5MW unit count and redundancy",
                        "unit": "units",
                        "required": false,
                        "assumed": "credited at nameplate x firm factor, as if no unit could be out of service",
                        "why_it_binds": "firm capacity under N+1 is what is left after the largest unit is lost: the same capacity is none of it as one unit, half as two, three quarters as four. Nameplate alone cannot say which it is",
                        "how_to_get_it": "the generator schedule: how many units make up the option's capacity_MW, and the redundancy scheme your resilience design requires (N, N+1, N+2 or 2N)"
                      }
                    ],
                    "warnings": [
                      "BTM option BESS-2MW-8MWh: it is credited as firm capacity with NO declared energy rating. A battery is firm only for what its stored energy can sustain, and recharge is not modelled, so the racks this adds are unverified.",
                      "BTM option GEN-5MW: no unit count was declared, so it is credited at nameplate x firm factor as if no unit could be out of service. A single unit under N+1 would count as zero firm capacity; the racks this adds are unverified."
                    ],
                    "engagement_recommendation": "No required inputs are missing, so this supports a full Capacity & Density Envelope Study, but the intake is not complete: 13 optional inputs are still assumptions (listed in the data request), and the study names each one."
                  },
                  "scenarios": [
                    {
                      "id": "retained_air",
                      "name": "Retained air, grid only",
                      "architecture": "retained_air",
                      "rationale": "Counterfactual: change nothing about the cooling architecture.",
                      "as_found": {
                        "racks": 0,
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating",
                        "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                      },
                      "unassessed_banks": [],
                      "after_ladder": {
                        "racks": 0,
                        "binding": "architecture_capability",
                        "it_load_kW": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        },
                        "gpus": 0
                      },
                      "ladder": [
                        {
                          "step": 1,
                          "constraint": "rack_feed_tapoff",
                          "name": "Rack feed / tap-off rating",
                          "domain": "electrical",
                          "racks_before": 0,
                          "racks_after": 0,
                          "taken": false,
                          "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                          "capex_eur": {
                            "value": 6000,
                            "low": 3000,
                            "high": 12000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 1 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "18c611b5ae25"
                          },
                          "lead_time_weeks": {
                            "value": 24,
                            "low": 12,
                            "high": 40,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "tap-off lead time",
                            "model": "input@0.1",
                            "digest": "7a5fc57ce1e4"
                          },
                          "risk": "",
                          "cost_key": "tapoff.unit",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": "adds no deployable capacity, here or in any later step; not part of the plan and not costed"
                        }
                      ],
                      "time_to_power": {
                        "weeks_to_first_rack": null,
                        "weeks_to_full": null,
                        "schedule_complete": true,
                        "sets_the_date": "—",
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "date_record": {
                          "status": "no_deployable_racks",
                          "controlling_component": null,
                          "tied_components": null,
                          "lead_time_source": null,
                          "lead_time_source_label": null,
                          "evidence_class": null,
                          "date_interval_weeks": null,
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        },
                        "curve": []
                      },
                      "economics": {
                        "capex_total_eur": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "total capex",
                          "model": "economics.total_capex@0.1",
                          "digest": "f7495c34f50b"
                        },
                        "nothing_deployable": true,
                        "capex_na_reason": "n/a: nothing deployable",
                        "capex_per_kW_it": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>/kW",
                          "evidence": "E1_MODEL",
                          "label": "capex per kW (no deployable load)",
                          "model": "input@0.1",
                          "digest": "fa43210b5cde"
                        },
                        "capex_components": {
                          "relief_works_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E1_MODEL",
                            "label": "capex of relief measures taken along the headroom ladder",
                            "model": "input@0.1",
                            "digest": "0bbdb0027436"
                          },
                          "in_hall_conversion_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-hall conversion capex",
                            "model": "economics.conversion_capex@0.1",
                            "digest": "31aac42971b6"
                          },
                          "initial_cdu_kit_eur": null,
                          "initial_cdu_kit_scope": null
                        },
                        "capex_complete": false,
                        "unpriced_components": [],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 1,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "annual_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual energy cost",
                          "model": "economics.energy_cost@0.1",
                          "digest": "7fbf738609fa"
                        },
                        "annual_grid_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual grid energy cost",
                          "model": "economics.grid_energy_cost@0.1",
                          "digest": "d62a201b98e1"
                        },
                        "energy_cost_per_gpu_hour_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>/gpu*h",
                          "evidence": "E1_MODEL",
                          "label": "energy cost per GPU-hour (no GPUs deployable)",
                          "model": "input@0.1",
                          "digest": "fe231166c354"
                        },
                        "grid_tariff": {
                          "eur_per_MWh": {
                            "value": 140,
                            "low": 90,
                            "high": 220,
                            "unit": "<currency:see-/v1/version>/MWh",
                            "evidence": "E0_ASSUMPTION",
                            "label": "all-in electricity price",
                            "model": "input@0.1",
                            "digest": "ee5beeda32eb"
                          },
                          "declared_by_client": false
                        },
                        "btm_operating_cost": null,
                        "opex_complete": true,
                        "lifecycle": null,
                        "critical_path_weeks": 0,
                        "critical_path_complete": true,
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "basis": "n/a: nothing deployable (no capex to classify)",
                        "decision_grade": false,
                        "limitations": [
                          "nothing is deployable, so there is no capex to state: capex is n/a (nothing deployable), not zero",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "constraints": [
                        {
                          "id": "rack_feed_tapoff",
                          "domain": "electrical",
                          "name": "Rack feed / tap-off rating",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                          "relief": {
                            "description": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                            "capex_eur": {
                              "value": 6000,
                              "low": 3000,
                              "high": 12000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off unit and rack feed",
                              "model": "input@0.1",
                              "digest": "a4d0a1c316ef"
                            },
                            "lead_time_weeks": {
                              "value": 24,
                              "low": 12,
                              "high": 40,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off lead time",
                              "model": "input@0.1",
                              "digest": "7a5fc57ce1e4"
                            },
                            "risk": ""
                          }
                        },
                        {
                          "id": "architecture_capability",
                          "domain": "thermal",
                          "name": "Cooling architecture per-rack capability",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "retained_air is practically capable of 22 [15–25] kW (E0) per rack; the target platform draws 135 [132–142] kW (E0). Modelling limit: the platform's peak rack power (155 kW) is used by no constraint; every limit is sized on the rack power (TDP) figure",
                          "relief": null
                        }
                      ]
                    },
                    {
                      "id": "rdhx",
                      "name": "Rear-door heat exchangers, grid only",
                      "architecture": "rdhx",
                      "rationale": "Lowest-disruption path; keeps the legacy plant, lifts per-rack capability.",
                      "as_found": {
                        "racks": 0,
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating",
                        "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                      },
                      "unassessed_banks": [],
                      "after_ladder": {
                        "racks": 0,
                        "binding": "architecture_capability",
                        "it_load_kW": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        },
                        "gpus": 0
                      },
                      "ladder": [
                        {
                          "step": 1,
                          "constraint": "rack_feed_tapoff",
                          "name": "Rack feed / tap-off rating",
                          "domain": "electrical",
                          "racks_before": 0,
                          "racks_after": 0,
                          "taken": false,
                          "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                          "capex_eur": {
                            "value": 6000,
                            "low": 3000,
                            "high": 12000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 1 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "18c611b5ae25"
                          },
                          "lead_time_weeks": {
                            "value": 24,
                            "low": 12,
                            "high": 40,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "tap-off lead time",
                            "model": "input@0.1",
                            "digest": "7a5fc57ce1e4"
                          },
                          "risk": "",
                          "cost_key": "tapoff.unit",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": "adds no deployable capacity, here or in any later step; not part of the plan and not costed"
                        }
                      ],
                      "time_to_power": {
                        "weeks_to_first_rack": null,
                        "weeks_to_full": null,
                        "schedule_complete": true,
                        "sets_the_date": "—",
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "date_record": {
                          "status": "no_deployable_racks",
                          "controlling_component": null,
                          "tied_components": null,
                          "lead_time_source": null,
                          "lead_time_source_label": null,
                          "evidence_class": null,
                          "date_interval_weeks": null,
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        },
                        "curve": []
                      },
                      "economics": {
                        "capex_total_eur": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "total capex",
                          "model": "economics.total_capex@0.1",
                          "digest": "f7495c34f50b"
                        },
                        "nothing_deployable": true,
                        "capex_na_reason": "n/a: nothing deployable",
                        "capex_per_kW_it": {
                          "value": null,
                          "low": null,
                          "high": null,
                          "unit": "<currency:see-/v1/version>/kW",
                          "evidence": "E1_MODEL",
                          "label": "capex per kW (no deployable load)",
                          "model": "input@0.1",
                          "digest": "fa43210b5cde"
                        },
                        "capex_components": {
                          "relief_works_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E1_MODEL",
                            "label": "capex of relief measures taken along the headroom ladder",
                            "model": "input@0.1",
                            "digest": "0bbdb0027436"
                          },
                          "in_hall_conversion_eur": {
                            "value": 0,
                            "low": 0,
                            "high": 0,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-hall conversion capex",
                            "model": "economics.conversion_capex@0.1",
                            "digest": "31aac42971b6"
                          },
                          "initial_cdu_kit_eur": null,
                          "initial_cdu_kit_scope": null
                        },
                        "capex_complete": false,
                        "unpriced_components": [],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 1,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "annual_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual energy cost",
                          "model": "economics.energy_cost@0.1",
                          "digest": "bc93400e02b4"
                        },
                        "annual_grid_energy_cost_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual grid energy cost",
                          "model": "economics.grid_energy_cost@0.1",
                          "digest": "0cc9ec61028c"
                        },
                        "energy_cost_per_gpu_hour_eur": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "<currency:see-/v1/version>/gpu*h",
                          "evidence": "E1_MODEL",
                          "label": "energy cost per GPU-hour (no GPUs deployable)",
                          "model": "input@0.1",
                          "digest": "fe231166c354"
                        },
                        "grid_tariff": {
                          "eur_per_MWh": {
                            "value": 140,
                            "low": 90,
                            "high": 220,
                            "unit": "<currency:see-/v1/version>/MWh",
                            "evidence": "E0_ASSUMPTION",
                            "label": "all-in electricity price",
                            "model": "input@0.1",
                            "digest": "ee5beeda32eb"
                          },
                          "declared_by_client": false
                        },
                        "btm_operating_cost": null,
                        "opex_complete": true,
                        "lifecycle": null,
                        "critical_path_weeks": 0,
                        "critical_path_complete": true,
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: nothing is deployable in this scenario",
                        "basis": "n/a: nothing deployable (no capex to classify)",
                        "decision_grade": false,
                        "limitations": [
                          "nothing is deployable, so there is no capex to state: capex is n/a (nothing deployable), not zero",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "constraints": [
                        {
                          "id": "rack_feed_tapoff",
                          "domain": "electrical",
                          "name": "Rack feed / tap-off rating",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                          "relief": {
                            "description": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                            "capex_eur": {
                              "value": 6000,
                              "low": 3000,
                              "high": 12000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off unit and rack feed",
                              "model": "input@0.1",
                              "digest": "a4d0a1c316ef"
                            },
                            "lead_time_weeks": {
                              "value": 24,
                              "low": 12,
                              "high": 40,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off lead time",
                              "model": "input@0.1",
                              "digest": "7a5fc57ce1e4"
                            },
                            "risk": ""
                          }
                        },
                        {
                          "id": "architecture_capability",
                          "domain": "thermal",
                          "name": "Cooling architecture per-rack capability",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "rdhx is practically capable of 60 [20–80] kW (E0) per rack (a library default for the architecture, not a manufacturer's rating or a site measurement); the target platform draws 135 [132–142] kW (E0). Modelling limit: the platform's peak rack power (155 kW) is used by no constraint; every limit is sized on the rack power (TDP) figure",
                          "relief": null
                        }
                      ]
                    },
                    {
                      "id": "hybrid_dlc",
                      "name": "Hybrid DLC on retained plant, grid only",
                      "architecture": "hybrid_dlc",
                      "rationale": "Direct-to-chip with the existing plant carrying both liquid and residual air load. Cheapest route to density, worst energy outcome.",
                      "as_found": {
                        "racks": 0,
                        "binding": "rack_feed_tapoff",
                        "binding_name": "Rack feed / tap-off rating",
                        "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                      },
                      "unassessed_banks": [],
                      "after_ladder": {
                        "racks": 26,
                        "binding": "grid_firm_capacity",
                        "it_load_kW": {
                          "value": 3510,
                          "low": 3432,
                          "high": 3692,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        },
                        "gpus": 1872
                      },
                      "ladder": [
                        {
                          "step": 1,
                          "constraint": "rack_feed_tapoff",
                          "name": "Rack feed / tap-off rating",
                          "domain": "electrical",
                          "racks_before": 0,
                          "racks_after": 0,
                          "taken": true,
                          "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                          "capex_eur": {
                            "value": 156000,
                            "low": 78000,
                            "high": 312000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 26 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "54813d853468"
                          },
                          "lead_time_weeks": {
                            "value": 24,
                            "low": 12,
                            "high": 40,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "tap-off lead time",
                            "model": "input@0.1",
                            "digest": "7a5fc57ce1e4"
                          },
                          "risk": "",
                          "cost_key": "tapoff.unit",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": null
                        },
                        {
                          "step": 2,
                          "constraint": "residual_air_removal",
                          "name": "Residual air load removal per rack",
                          "domain": "thermal",
                          "racks_before": 0,
                          "racks_after": 7,
                          "taken": true,
                          "relief": "Add in-row cooling or rear-door heat exchangers for the residual air load",
                          "capex_eur": {
                            "value": 234000,
                            "low": 117000,
                            "high": 468000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "Add in-row cooling or rear-door heat exchangers for the residual air load for 26 racks",
                            "model": "envelope.relief_capex@0.1",
                            "digest": "6e4cca9df4fa"
                          },
                          "lead_time_weeks": {
                            "value": 20,
                            "low": 12,
                            "high": 32,
                            "unit": "weeks",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-row / RDHx lead time",
                            "model": "input@0.1",
                            "digest": "fe48412ff79a"
                          },
                          "risk": "",
                          "cost_key": "inrow_rdhx.per_rack",
                          "cost_kind": "per_rack",
                          "scope": null,
                          "cost_basis": "library_default",
                          "unpriced_components": [],
                          "basis_note": null,
                          "not_taken_reason": null
                        }
                      ],
                      "time_to_power": {
                        "weeks_to_first_rack": 26,
                        "weeks_to_full": 160,
                        "schedule_complete": true,
                        "sets_the_date": "Transformer capacity",
                        "date_basis": "assumed",
                        "date_evidence_class": "E0",
                        "date_binding_item": "Transformer capacity",
                        "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                        "date_record": {
                          "status": "dated",
                          "controlling_component": "Transformer capacity",
                          "tied_components": [],
                          "lead_time_source": "customer_supplied_unverified",
                          "lead_time_source_label": "customer-supplied (unverified)",
                          "evidence_class": "E0",
                          "date_interval_weeks": {
                            "low": 104,
                            "high": 216
                          },
                          "missing_inputs": [],
                          "dependency_model": "all_parallel",
                          "limitation": "Reliefs are assumed to start together and run in parallel, so the date is the longest single lead time. No dependency between reliefs is modelled (the intake carries none), so a chain of works that must run one after another would take longer than this. Every lead time here is an assumption (E0), whether a library placeholder or a figure the customer supplie...",
                          "calculation_version": "gridforge.time_to_power/1"
                        },
                        "curve": [
                          {
                            "weeks": 26,
                            "racks": 7,
                            "unlocked_by": "after CDU kit delivery (library lead time, assumed)"
                          },
                          {
                            "weeks": 160,
                            "racks": 8,
                            "unlocked_by": "Transformer capacity"
                          }
                        ]
                      },
                      "economics": {
                        "capex_total_eur": {
                          "value": 6630000,
                          "low": 3313000,
                          "high": 13252000,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "total capex",
                          "model": "economics.total_capex@0.1",
                          "digest": "2942aa2c020c"
                        },
                        "nothing_deployable": false,
                        "capex_na_reason": null,
                        "capex_per_kW_it": {
                          "value": 1890,
                          "low": 897.3456121343445,
                          "high": 3861.305361305361,
                          "unit": "<currency:see-/v1/version>/kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "capex per kW of IT load deployed",
                          "model": "economics.capex_per_kW@0.1",
                          "digest": "9821d28f0d09"
                        },
                        "capex_components": {
                          "relief_works_eur": {
                            "value": 4660000,
                            "low": 2328000,
                            "high": 9312000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "capex of relief measures taken along the headroom ladder",
                            "model": "economics.relief_capex@0.1",
                            "digest": "e5ee3b75efd6"
                          },
                          "in_hall_conversion_eur": {
                            "value": 1430000,
                            "low": 715000,
                            "high": 2860000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "in-hall conversion capex",
                            "model": "economics.conversion_capex@0.1",
                            "digest": "31aac42971b6"
                          },
                          "initial_cdu_kit_eur": {
                            "value": 540000,
                            "low": 270000,
                            "high": 1080000,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "initial CDU kit (assumed, not installed): supplied and mechanically installed",
                            "model": "costs.scaled_relief@0.1",
                            "digest": "457085eb7b50"
                          },
                          "initial_cdu_kit_scope": "3 CDU unit(s) added"
                        },
                        "capex_complete": false,
                        "unpriced_components": [
                          {
                            "where": "step 7: Add CDU capacity (one further usable unit, in one bank)",
                            "component": "CDU hydraulic integration and controls",
                            "key": "cdu.integration",
                            "unit": "<currency:see-/v1/version>/unit",
                            "quantity": 1,
                            "scope": "1 CDU unit(s) added"
                          },
                          {
                            "where": "step 7: Add CDU capacity (one further usable unit, in one bank)",
                            "component": "CDU commissioning and flushing",
                            "key": "cdu.commissioning",
                            "unit": "<currency:see-/v1/version>/unit",
                            "quantity": 1,
                            "scope": "1 CDU unit(s) added"
                          }
                        ],
                        "cost_basis_mix": {
                          "library_default": {
                            "lines": 8,
                            "label": "library placeholder (not a price)"
                          }
                        },
                        "annual_energy_cost_eur": {
                          "value": 4200000,
                          "low": 2475796.752,
                          "high": 7470983.52,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual energy cost",
                          "model": "economics.energy_cost@0.1",
                          "digest": "83ceb2eba697"
                        },
                        "annual_grid_energy_cost_eur": {
                          "value": 4200000,
                          "low": 2475796.752,
                          "high": 7470983.52,
                          "unit": "<currency:see-/v1/version>",
                          "evidence": "E0_ASSUMPTION",
                          "label": "annual grid energy cost",
                          "model": "economics.grid_energy_cost@0.1",
                          "digest": "591ceee11ad1"
                        },
                        "energy_cost_per_gpu_hour_eur": {
                          "value": 0.256,
                          "low": 0.150975,
                          "high": 0.4555833333333333,
                          "unit": "<currency:see-/v1/version>/gpu*h",
                          "evidence": "E0_ASSUMPTION",
                          "label": "energy cost per GPU-hour",
                          "model": "economics.energy_per_gpu_hour@0.1",
                          "digest": "55da6a68d11a"
                        },
                        "grid_tariff": {
                          "eur_per_MWh": {
                            "value": 140,
                            "low": 90,
                            "high": 220,
                            "unit": "<currency:see-/v1/version>/MWh",
                            "evidence": "E0_ASSUMPTION",
                            "label": "all-in electricity price",
                            "model": "input@0.1",
                            "digest": "ee5beeda32eb"
                          },
                          "declared_by_client": false
                        },
                        "btm_operating_cost": null,
                        "opex_complete": true,
                        "lifecycle": {
                          "horizon_years": 10,
                          "discount_rate": null,
                          "cost_eur": {
                            "value": 48600000,
                            "low": 28070967.52,
                            "high": 87961835.19999999,
                            "unit": "<currency:see-/v1/version>",
                            "evidence": "E0_ASSUMPTION",
                            "label": "lifecycle cost over 10 years",
                            "model": "economics.lifecycle_cost@0.1",
                            "digest": "0590aba4b7e0"
                          },
                          "complete": false,
                          "basis": "capex at year 0 plus the annual energy cost for 10 years, undiscounted, flat prices, no escalation; excludes IT hardware, migration, lost tenancy revenue, non-energy operating cost of the cooling plant, and decommissioning"
                        },
                        "critical_path_weeks": 160,
                        "critical_path_complete": true,
                        "date_basis": "assumed",
                        "date_evidence_class": "E0",
                        "date_binding_item": "Transformer capacity",
                        "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                        "basis": "Class 5 (order of magnitude): -50% / +100%",
                        "decision_grade": false,
                        "limitations": [
                          "the capex total is a LOWER BOUND: no price exists for CDU commissioning and flushing (4 x unit, needed in 2 places); CDU hydraulic integration and controls (4 x unit, needed in 2 places)",
                          "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                        ]
                      },
                      "constraints": [
                        {
                          "id": "rack_feed_tapoff",
                          "domain": "electrical",
                          "name": "Rack feed / tap-off rating",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                          "relief": {
                            "description": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                            "capex_eur": {
                              "value": 6000,
                              "low": 3000,
                              "high": 12000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off unit and rack feed",
                              "model": "input@0.1",
                              "digest": "a4d0a1c316ef"
                            },
                            "lead_time_weeks": {
                              "value": 24,
                              "low": 12,
                              "high": 40,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "tap-off lead time",
                              "model": "input@0.1",
                              "digest": "7a5fc57ce1e4"
                            },
                            "risk": ""
                          }
                        },
                        {
                          "id": "residual_air_removal",
                          "domain": "thermal",
                          "name": "Residual air load removal per rack",
                          "gate": true,
                          "racks_permitted": 0,
                          "basis": "13.5 [10.6–21.3] kW (E0) of air-side load per rack against 9 kW (E3) the hall can remove per position",
                          "relief": {
                            "description": "Add in-row cooling or rear-door heat exchangers for the residual air load",
                            "capex_eur": {
                              "value": 9000,
                              "low": 4500,
                              "high": 18000,
                              "unit": "<currency:see-/v1/version>/rack",
                              "evidence": "E0_ASSUMPTION",
                              "label": "in-row cooling or rear-door heat exchanger, installed",
                              "model": "input@0.1",
                              "digest": "0a4be3458324"
                            },
                            "lead_time_weeks": {
                              "value": 20,
                              "low": 12,
                              "high": 32,
                              "unit": "weeks",
                              "evidence": "E0_ASSUMPTION",
                              "label": "in-row / RDHx lead time",
                              "model": "input@0.1",
                              "digest": "fe48412ff79a"
                            },
                            "risk": ""
                          }
                        }
                      ]
                    }
                  ],
                  "cost_evidence": {
                    "used": [],
                    "ignored": [],
                    "effect": null
                  },
                  "sensitivity": [],
                  "disclaimer": "Every quantity carries an evidence class. Nothing in this pack is a measurement of a physical asset unless labelled E5 or above. Modelled values are what the stated inputs imply, not what the site has been observed to do.",
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portfolio": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_portfolio",
        "summary": "Rank halls.",
        "description": "Rank halls. Many intakes in (at most 50 halls in one request; a larger estate is several requests), an ordered list out: racks, weeks to power, capex per rack and what binds first for each. A hall that is not ranked on a figure (no deployable rack, a required input missing or an equipment bank undeclared) is listed after the ranked ones with rank null. Bills one unit per hall.\n\nReturns: halls ranked against the objective, each marked rankable or not (a hall with a required input missing or an equipment bank undeclared is ranked on assumptions and kept out of the comparable total), with the comparable total of deployable racks, an upper-bound total that counts halls on one connection once each, the halls left out and a constraint roll-up; with format md or html, also the rendered document and a model pack per hall.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 1,
        "x-gridforge-units-per": "hall",
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_portfolio",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intakes"
                ],
                "properties": {
                  "intakes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                      "additionalProperties": true
                    },
                    "minItems": 1,
                    "maxItems": 50,
                    "description": "The halls to rank, one intake each: at most 50 per request (more is refused with 422 and nothing is charged; send the rest as further requests)."
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "md",
                      "html"
                    ],
                    "default": "json",
                    "description": "json: the ranking rows. md or html: also the rendered Portfolio Screen document and one model pack per hall, from the same solve."
                  },
                  "client": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "the name printed on the rendered document (format md or html)"
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intakes": [
                  {
                    "project": {
                      "client": "Reference Project (synthetic)",
                      "reference": "REF-EU-01/DH-02",
                      "objective": "max_compute",
                      "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                    },
                    "site": {
                      "id": "REF-EU-01",
                      "name": "Reference Colocation Campus",
                      "country": "DE",
                      "metro": "Frankfurt",
                      "design_drybulb_C": 34,
                      "design_wetbulb_C": 21
                    },
                    "hall": {
                      "id": "DH-02",
                      "build_year": 2015,
                      "floor_type": "raised_floor",
                      "net_white_space_m2": 2400,
                      "floor_loading_kPa": {
                        "value": 12,
                        "note": "Design value from the building record, not a survey"
                      },
                      "clear_height_m": 3.2,
                      "aisle_pitch_m": 2.4,
                      "rack_positions": 560,
                      "positions_available": 180,
                      "design_density_kW_per_rack": 8,
                      "containment": "cold_aisle"
                    },
                    "grid": {
                      "dso": "Reference DSO",
                      "firm_capacity_MVA": 14,
                      "power_factor": 0.97,
                      "contracted_MW": 12,
                      "current_site_peak_MW": {
                        "value": 7.4,
                        "note": "12 months of half-hourly metered data"
                      },
                      "current_it_load_MW": 4.9,
                      "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                    },
                    "transformers": [
                      {
                        "id": "TX-A/B",
                        "unit_rating_MVA": 5,
                        "units": 3,
                        "redundancy": "N+1",
                        "derating_factor": 0.9,
                        "replacement_lead_time_weeks": 160
                      }
                    ],
                    "ups": [
                      {
                        "id": "UPS-1",
                        "unit_rating_kW": 1200,
                        "units": 6,
                        "redundancy": "N+1",
                        "step_load_capability": 0.5
                      }
                    ],
                    "lv": {
                      "voltage_V": 400,
                      "phases": 3,
                      "busway_ampacity_A": {
                        "value": 400,
                        "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                      },
                      "busway_runs": 8,
                      "busway_utilisation_limit": 0.8,
                      "tapoff_max_A": 63
                    },
                    "thermal": {
                      "plant": {
                        "id": "CH-PLANT",
                        "chilled_water_capacity_kW": 6800,
                        "design_supply_C": {
                          "value": 6,
                          "note": "Legacy low-temperature plant"
                        },
                        "design_return_C": 12,
                        "pump_flow_capacity_l_per_min": 9000,
                        "available_head_kPa": 250,
                        "free_cooling_hours_per_year": 2600
                      },
                      "residual_air_capacity_kW_per_rack": {
                        "value": 9,
                        "evidence": "E3",
                        "note": "Derived from hall design density and containment; confirm by measurement"
                      },
                      "cdus": []
                    },
                    "compute": {
                      "platform": "gb300_nvl72",
                      "utilisation": 0.75,
                      "default_architecture": "hybrid_dlc"
                    },
                    "btm_options": [
                      {
                        "id": "BESS-2MW-8MWh",
                        "kind": "bess",
                        "capacity_MW": 2,
                        "capex_eur_per_kW": 900,
                        "lead_time_weeks": 30,
                        "firm": true,
                        "firm_capacity_factor": 0.5,
                        "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                      },
                      {
                        "id": "GEN-5MW",
                        "kind": "gas_engine",
                        "capacity_MW": 5,
                        "capex_eur_per_kW": 800,
                        "lead_time_weeks": 44,
                        "firm": true,
                        "opex_eur_per_MWh": 95,
                        "annual_run_hours": 5000,
                        "fixed_om_eur_per_kW_year": 18,
                        "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                      }
                    ],
                    "economics": {
                      "horizon_years": 10
                    },
                    "scenarios": [
                      "retained_air",
                      "rdhx"
                    ]
                  }
                ],
                "objective": "max_compute",
                "format": "json"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "objective": "max_compute",
                  "halls": [
                    {
                      "rank": 1,
                      "site": "Reference Colocation Campus",
                      "hall": "DH-02",
                      "metro": "Frankfurt",
                      "racks": 62,
                      "racks_evidence": "E0_ASSUMPTION",
                      "weeks_to_full": 160,
                      "weeks_band": [
                        104,
                        216
                      ],
                      "weeks_evidence": "E0_ASSUMPTION",
                      "schedule_complete": true,
                      "date_basis": "assumed",
                      "date_evidence_class": "E0",
                      "date_binding_item": "Transformer capacity",
                      "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                      "capex_eur": 18842000,
                      "capex_band_eur": [
                        9421000,
                        37684000
                      ],
                      "capex_evidence": "E0_ASSUMPTION",
                      "capex_complete": false,
                      "decision_grade": false,
                      "economics_limitations": [
                        "the capex total is a LOWER BOUND: no price exists for CDU commissioning and flushing (7 x unit, needed in 5 places); CDU hydraulic integration and controls (7 x unit, needed in 5 places); dedicated heat-rejection loop (dry coolers, pumps, pipework) (1 x loop, needed in 1 place)",
                        "the weakest priced line is class E0, below E3: a decision needs every priced line at an engineering estimate or better"
                      ],
                      "capex_per_rack_eur": 303903.22580645164,
                      "capex_per_rack_band_eur": [
                        151951.61290322582,
                        607806.4516129033
                      ],
                      "binds_first": "Rack feed / tap-off rating",
                      "intake_completeness": 0.839,
                      "rank_note": "capex is a lower bound; unpriced: CDU commissioning and flushing; CDU hydraulic integration and controls; dedicated heat-rejection loop (dry coolers, pumps, pipework)",
                      "required_gaps": [],
                      "unassessed_banks": [],
                      "rankable": true,
                      "rankable_reason": "all required inputs supplied, every equipment bank declared and no supplied inputs contradicting each other",
                      "evidence_floor": "E0_ASSUMPTION",
                      "shares_site_connection": [],
                      "likely_shares_connection_with": [],
                      "position": 1
                    }
                  ],
                  "total_racks": 62,
                  "total_racks_evidence": "E0_ASSUMPTION",
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  },
                  "total_racks_upper_bound": 62,
                  "total_racks_by_site_max": 62,
                  "comparable_total_racks": 62,
                  "comparable_total_racks_by_site_max": 62,
                  "comparable_total_racks_evidence": "E0_ASSUMPTION",
                  "incomparable_halls": [],
                  "constraint_rollup": {
                    "as_found": [
                      {
                        "constraint": "Rack feed / tap-off rating",
                        "halls": 1,
                        "incomparable_halls": 0,
                        "members": [
                          "Reference Colocation Campus / DH-02"
                        ]
                      }
                    ],
                    "after_relief": [
                      {
                        "constraint": "Firm supply (grid import + behind-the-meter)",
                        "halls": 1,
                        "incomparable_halls": 0,
                        "members": [
                          "Reference Colocation Campus / DH-02"
                        ]
                      }
                    ]
                  },
                  "totals_note": "Every total sums, for each hall, the figure of the architecture the objective 'max_compute' selects for it; another objective selects other architectures and gives other totals. total_racks and total_racks_upper_bound add every hall's own figure, an upper bound while a grid connection is shared between halls or a hall has constraints that were not evaluated...."
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/diff": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_diff",
        "summary": "What moved, and which input moved it.",
        "description": "What moved, and which input moved it. Two intakes (or a recorded envelope state and a new intake) in, an attributed change note out, including the part the single-input probes do not explain, reported as a residual rather than distributed.\n\nReturns: headline, racks/weeks/capex deltas, ranked drivers, explained and residual; changed_inputs_known and drivers_note say when the inputs moved but cannot be named (a diff against previous_state), evidence_changed_inputs names the inputs whose declared evidence class moved.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 2,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_diff",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "after"
                ],
                "properties": {
                  "before": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "previous_state": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "A recorded envelope state from an earlier run. It keeps fingerprints of that run's inputs, not the inputs: a change is detected (inputs: changed) but no driver can be named, and drivers_note says so. Send before to get the drivers."
                  },
                  "after": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "attribute": {
                    "type": "boolean",
                    "default": true
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "md",
                      "html"
                    ],
                    "default": "json"
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "before": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "after": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 800,
                      "note": "Upgraded 800 A busway (synthetic comparison)"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 250
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "objective": "max_compute",
                "format": "json"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "headline": "What binds first moved from rack feed / tap-off rating to residual air load removal per rack.",
                  "material": true,
                  "material_reasons": [
                    "binding"
                  ],
                  "not_compared": [],
                  "before": {
                    "racks_as_found": 0,
                    "racks_after_ladder": 62,
                    "binding_id": "rack_feed_tapoff",
                    "binding_name": "Rack feed / tap-off rating",
                    "binding_basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                    "weeks_to_full": 160,
                    "sets_the_date": "Transformer capacity",
                    "capex_eur": 18842000,
                    "it_load_kW": 8370,
                    "scenario_id": "full_dlc_btm",
                    "scenario_name": "Full DLC plus behind-the-meter supply",
                    "racks_class": "E0_ASSUMPTION",
                    "weeks_lo": 104,
                    "weeks_hi": 216,
                    "weeks_class": "E0_ASSUMPTION",
                    "schedule_complete": true,
                    "capex_lo": 9421000,
                    "capex_hi": 37684000,
                    "capex_class": "E0_ASSUMPTION",
                    "capex_complete": false,
                    "intake_digest": "b24490f33a0e4b6e",
                    "evidence_digest": "9de24a86de72108c",
                    "price_basis_digest": "4f53cda18c2baa0c",
                    "relief_path_digest": "1b2b8157783de949"
                  },
                  "after": {
                    "racks_as_found": 0,
                    "racks_after_ladder": 62,
                    "binding_id": "residual_air_removal",
                    "binding_name": "Residual air load removal per rack",
                    "binding_basis": "13.5 [10.6–21.3] kW (E0) of air-side load per rack against 9 kW (E3) the hall can remove per position",
                    "weeks_to_full": 160,
                    "sets_the_date": "Transformer capacity",
                    "capex_eur": 18470000,
                    "it_load_kW": 8370,
                    "scenario_id": "full_dlc_btm",
                    "scenario_name": "Full DLC plus behind-the-meter supply",
                    "racks_class": "E0_ASSUMPTION",
                    "weeks_lo": 104,
                    "weeks_hi": 216,
                    "weeks_class": "E0_ASSUMPTION",
                    "schedule_complete": true,
                    "capex_lo": 9235000,
                    "capex_hi": 36940000,
                    "capex_class": "E0_ASSUMPTION",
                    "capex_complete": false,
                    "intake_digest": "fb08de19c0b8efc7",
                    "evidence_digest": "9de24a86de72108c",
                    "price_basis_digest": "4f53cda18c2baa0c",
                    "relief_path_digest": "01f2d0474d41fea0"
                  },
                  "racks_delta": 0,
                  "weeks_delta": 0,
                  "date_basis": "assumed",
                  "date_evidence_class": "E0",
                  "date_binding_item": "Transformer capacity",
                  "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                  "capex_delta_eur": -372000,
                  "binding_moved": true,
                  "changed_inputs": [
                    "lv.busway_ampacity_A",
                    "lv.tapoff_max_A"
                  ],
                  "changed_inputs_known": true,
                  "evidence_changed_inputs": [],
                  "drivers_note": null,
                  "drivers": [
                    {
                      "path": "lv.busway_ampacity_A",
                      "before": 400,
                      "after": 800,
                      "racks_delta": 0,
                      "flips_binding_to": null,
                      "racks_class": "E0_ASSUMPTION"
                    },
                    {
                      "path": "lv.tapoff_max_A",
                      "before": 63,
                      "after": 250,
                      "racks_delta": 0,
                      "flips_binding_to": "Residual air load removal per rack",
                      "racks_class": "E0_ASSUMPTION"
                    }
                  ],
                  "explained_racks": 0,
                  "unexplained_racks": 0,
                  "inputs": "changed",
                  "model_drift": [],
                  "model_drift_known": true,
                  "unprobed_inputs": [],
                  "unprobeable_inputs": [],
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 4 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 4,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "constraint.residual_air_removal.racks"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/spec": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_spec",
        "summary": "Turn a binding constraint into a tender-ready technical specification: every numeric requirement derived from the capacity model and naming the constraint it came from, quoted at the site's own conditions rather than a manufacturer's reference condition, plus a machine-readable response schedule.",
        "description": "Turn a binding constraint into a tender-ready technical specification: every numeric requirement derived from the capacity model and naming the constraint it came from, quoted at the site's own conditions rather than a manufacturer's reference condition, plus a machine-readable response schedule. Pass list=true to see which reliefs on the ladder can be tendered.\n\nReturns: the specification document, what it is sized for, and the response template a supplier fills in.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 3,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_spec",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intake"
                ],
                "properties": {
                  "intake": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "constraint": {
                    "type": "string",
                    "description": "constraint id to tender for"
                  },
                  "scenario": {
                    "type": "string"
                  },
                  "list": {
                    "type": "boolean",
                    "default": false
                  },
                  "reference": {
                    "type": "string"
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "html",
                      "md"
                    ],
                    "default": "html"
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "objective": "max_compute",
                "format": "md"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "format": "md",
                  "title": "Technical Specification — Replace busway with 800-1000 A and new tap-off units",
                  "document": "# Technical Specification — Replace busway with 800-1000 A and new tap-off units\n\n*Reference Project (synthetic) · hall DH-02 · issued 2026-11-27*\n\n> **Duties in this document are derived from a capacity model of this hall. They are modelled values, not measurements of installed plant, and each one names the constraint it came from.**\n\n## 1. Purpose\n\nThis pa...",
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  },
                  "specification": {
                    "constraint_id": "busway_ampacity",
                    "constraint": "Busway ampacity",
                    "relief": "Replace busway with 800-1000 A and new tap-off units",
                    "sized_for_racks": 62,
                    "requirements": 6,
                    "mandatory": 6,
                    "site_conditions": [
                      {
                        "id": "SC-01",
                        "label": "Design ambient dry bulb (summer)",
                        "path": "site.design_drybulb_C",
                        "status": "supplied",
                        "value": 34,
                        "text": null,
                        "unit": "degC",
                        "evidence": "E3",
                        "statement": "supplied by the client (not measured or surveyed by us)"
                      },
                      {
                        "id": "SC-02",
                        "label": "Design ambient wet bulb (summer)",
                        "path": "site.design_wetbulb_C",
                        "status": "supplied",
                        "value": 21,
                        "text": null,
                        "unit": "degC",
                        "evidence": "E5",
                        "statement": "supplied by the client (not measured or surveyed by us)"
                      }
                    ],
                    "assumed_inputs": [
                      {
                        "path": "btm_options[BESS-2MW-8MWh].energy_MWh",
                        "label": "BESS-2MW-8MWh battery energy rating",
                        "unit": "MWh",
                        "assumed": "your firm factor 0.5 accepted as declared, unchecked against the battery's energy (E0)"
                      },
                      {
                        "path": "btm_options[GEN-5MW].units",
                        "label": "GEN-5MW unit count and redundancy",
                        "unit": "units",
                        "assumed": "credited at nameplate x firm factor, as if no unit could be out of service (E0)"
                      }
                    ]
                  },
                  "response_template": {
                    "specification": {
                      "project": "Reference Project (synthetic)",
                      "hall": "DH-02",
                      "constraint": "busway_ampacity",
                      "sized_for_racks": 62
                    },
                    "template_version": 2,
                    "supplier": "",
                    "received_on": "",
                    "valid_until": "",
                    "currency": "",
                    "values": {
                      "capex_eur": null,
                      "lead_time_weeks": null,
                      "install_weeks": null,
                      "outage_hours_per_unit": null,
                      "duty_at_site_conditions": null,
                      "validity_days": null
                    },
                    "compliance": {
                      "E-10": "",
                      "E-11": "",
                      "E-12": "",
                      "C-01": "",
                      "C-02": "",
                      "C-03": ""
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/bids": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_bids",
        "summary": "Compare supplier responses against the capacity model: what each bid does to the energisation date and to deployable rack count, not only what it costs.",
        "description": "Compare supplier responses against the capacity model: what each bid does to the energisation date and to deployable rack count, not only what it costs. A non-compliant bid is never ranked above a compliant one.\n\nReturns: ranked bids with scores, schedule impact, and optional cost-library lines.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 2,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_bids",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intake",
                  "responses"
                ],
                "properties": {
                  "intake": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "responses": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "constraint": {
                    "type": "string"
                  },
                  "scenario": {
                    "type": "string"
                  },
                  "ingest": {
                    "type": "boolean",
                    "default": false,
                    "description": "also return the cost-library lines the winning response implies"
                  },
                  "evidence_only": {
                    "type": "boolean",
                    "default": false,
                    "description": "return the validated or invalid quote lines instead of a ranking; nothing is accepted until a person reviews it"
                  },
                  "basis": {
                    "type": "string",
                    "enum": [
                      "budgetary_quote",
                      "firm_quote",
                      "contracted"
                    ],
                    "default": "budgetary_quote"
                  },
                  "region": {
                    "type": "string"
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "objective": "max_compute",
                "responses": [
                  {
                    "specification": {
                      "project": "Reference Project (synthetic)",
                      "hall": "DH-02",
                      "constraint": "busway_ampacity",
                      "sized_for_racks": 62
                    },
                    "template_version": 2,
                    "supplier": "Synthetic Switchgear Vendor A",
                    "received_on": "2026-11-27",
                    "valid_until": "2026-11-27",
                    "currency": "<currency:see-/v1/version>",
                    "values": {
                      "capex_eur": 185000,
                      "lead_time_weeks": 18,
                      "install_weeks": 4,
                      "outage_hours_per_unit": 6,
                      "duty_at_site_conditions": 800,
                      "validity_days": 90
                    },
                    "compliance": {
                      "E-10": "C",
                      "E-11": "C",
                      "E-12": "C",
                      "C-01": "C",
                      "C-02": "C",
                      "C-03": "C"
                    },
                    "reference": "SYNTH-QUOTE-01"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "relief": "Replace busway with 800-1000 A and new tap-off units",
                  "constraint_id": "busway_ampacity",
                  "sized_for_racks": 62,
                  "ranked": [
                    {
                      "rank": 1,
                      "supplier": "Synthetic Switchgear Vendor A",
                      "headline": "Synthetic Switchgear Vendor A: <currency:see-/v1/version> 185,000, 22 weeks to energised, score 85/100 (relative to the bids compared)",
                      "capex_eur": 185000,
                      "weeks_to_energised": 22,
                      "eur_per_rack": 2983.8709677419356,
                      "compliant": true,
                      "quoted_currency": "<currency:see-/v1/version>",
                      "quoted_price": null,
                      "currency_issue": null,
                      "disqualified": false,
                      "score": 85,
                      "scores": {
                        "C1": 35,
                        "C2": 30,
                        "C3": 20,
                        "C4": 0,
                        "C5": 0
                      },
                      "score_basis": "Scored against the only bid evaluated. Scores are relative, not absolute: price and programme are scaled linearly from the best bid in this comparison (full marks) to the worst (none), and a lone bid gets full marks on both. The same bid scores differently against different competitors, so compare scores only within one comparison, never across comparisons.",
                      "mandatory_failed": [],
                      "notes": [
                        "E-10 (Busway continuous ampacity) is a 'shall' not less than 1,990 A, but responses[0].values.duty_at_site_conditions offers 800 A. The bid declared C, but its own figure does not meet the clause as written. This comparison does not override the declaration: before award the supplier must confirm the figure (its unit, and that it is at the site conditions ra...",
                        "Installation method and evidence quality are scored by the engineer, not by this tool — 15 points are unallocated until they are."
                      ],
                      "figure_checks": [
                        {
                          "requirement": "E-10",
                          "clause": "Busway continuous ampacity",
                          "field": "responses[0].values.duty_at_site_conditions",
                          "must_be": "at_least",
                          "asked": 1990,
                          "offered": 800,
                          "unit": "A",
                          "declared": "C"
                        }
                      ],
                      "schedule_impact": "14 weeks earlier than the modelled 36. Re-run the study with this figure before committing: if this relief sets the date, the whole envelope moves with it.",
                      "install_weeks_missing": false,
                      "programme_basis": "complete",
                      "needs_engineering_review": true
                    }
                  ],
                  "leading": "Synthetic Switchgear Vendor A",
                  "note": "Installation method and evidence quality carry 15 of the 100 points and are scored by an engineer, not by this endpoint. A ranking that claimed to have judged them would be inventing the part that needs judgement. A bid's own figures are held to the numeric 'shall' clauses they answer (a duty below the specified minimum, a price validity under 60 days): a bi...",
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/power/assess": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_power_assess",
        "summary": "The Power Readiness Case: what is stopping this site reaching the target capacity, what fixes it, what that costs, what it does to the schedule, and what to do next.",
        "description": "The Power Readiness Case: what is stopping this site reaching the target capacity, what fixes it, what that costs, what it does to the schedule, and what to do next. Composes the same solved scenario as gridforge_screen/gridforge_study into one decision object: current deployable racks vs. the target, the binding constraint, every priced and dated rung on the headroom ladder, the critical-path dependencies that set the earliest time to power (each marked when its lead time is only assumed), the calibration state behind every number, and one deterministic next action. Never invents a price, a lead time or a date — every figure traces to the engine or an explicit input, with its evidence class attached.\n\nReturns: capacity (current/target/gap; target_reachable and gap_racks_after_ladder say whether the full headroom ladder reaches the target, and what is still missing when it does not), binding_constraint, headroom_ladder (every relief priced and dated), time_to_power (critical item and dependencies), evidence (calibration state, evidence classes used), and next_action (which leads with the fact when the target is not reachable).\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 5,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_power_assess",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intake"
                ],
                "properties": {
                  "intake": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "target_racks": {
                    "type": "integer",
                    "description": "the rack count the customer actually needs; omit to size the gap against what the full headroom ladder itself can reach"
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "target_racks": 64,
                "objective": "max_compute"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "objective": "max_compute",
                  "platform": {
                    "id": "gb300_nvl72",
                    "name": "NVIDIA GB300 NVL72",
                    "rack_kW": {
                      "value": 135,
                      "low": 132,
                      "high": 142,
                      "unit": "kW",
                      "evidence": "E0_ASSUMPTION",
                      "label": "GB300 NVL72 rack TDP",
                      "model": "input@0.1",
                      "digest": "e6476e7cd728"
                    }
                  },
                  "capacity": {
                    "target_racks": 64,
                    "current_deployable_racks": 0,
                    "racks_after_full_headroom_ladder": 62,
                    "gap_racks": 64,
                    "target_reachable": false,
                    "gap_racks_after_ladder": 2,
                    "current_deployable_MW": 0,
                    "requested_target_given": true
                  },
                  "binding_constraint": {
                    "id": "rack_feed_tapoff",
                    "name": "Rack feed / tap-off rating",
                    "domain": "electrical",
                    "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                  },
                  "headroom_ladder": [
                    {
                      "id": "R1",
                      "binding_constraint": "rack_feed_tapoff",
                      "binding_name": "Rack feed / tap-off rating",
                      "domain": "electrical",
                      "description": "Higher-rated tap-off units (and busway if ampacity does not allow)",
                      "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)",
                      "racks_before": 0,
                      "racks_after": 0,
                      "racks_gained": 0,
                      "capex_eur": {
                        "value": 372000,
                        "low": 186000,
                        "high": 744000,
                        "unit": "<currency:see-/v1/version>",
                        "evidence": "E0_ASSUMPTION",
                        "label": "Higher-rated tap-off units (and busway if ampacity does not allow) for 62 racks",
                        "model": "envelope.relief_capex@0.1",
                        "digest": "147ba26046e4"
                      },
                      "lead_time_weeks": {
                        "value": 24,
                        "low": 12,
                        "high": 40,
                        "unit": "weeks",
                        "evidence": "E0_ASSUMPTION",
                        "label": "tap-off lead time",
                        "model": "input@0.1",
                        "digest": "7a5fc57ce1e4"
                      },
                      "risk": "",
                      "purchasable": true,
                      "cost_key": "tapoff.unit"
                    },
                    {
                      "id": "R2",
                      "binding_constraint": "residual_air_removal",
                      "binding_name": "Residual air load removal per rack",
                      "domain": "thermal",
                      "description": "Add in-row cooling or rear-door heat exchangers for the residual air load",
                      "basis": "13.5 [10.6–21.3] kW (E0) of air-side load per rack against 9 kW (E3) the hall can remove per position",
                      "racks_before": 0,
                      "racks_after": 0,
                      "racks_gained": 0,
                      "capex_eur": {
                        "value": 558000,
                        "low": 279000,
                        "high": 1116000,
                        "unit": "<currency:see-/v1/version>",
                        "evidence": "E0_ASSUMPTION",
                        "label": "Add in-row cooling or rear-door heat exchangers for the residual air load for 62 racks",
                        "model": "envelope.relief_capex@0.1",
                        "digest": "edd4d4501790"
                      },
                      "lead_time_weeks": {
                        "value": 20,
                        "low": 12,
                        "high": 32,
                        "unit": "weeks",
                        "evidence": "E0_ASSUMPTION",
                        "label": "in-row / RDHx lead time",
                        "model": "input@0.1",
                        "digest": "fe48412ff79a"
                      },
                      "risk": "",
                      "purchasable": true,
                      "cost_key": "inrow_rdhx.per_rack"
                    },
                    {
                      "id": "R3",
                      "binding_constraint": "tcs_supply_achievable",
                      "binding_name": "Achievable facility water temperature",
                      "domain": "thermal",
                      "description": "Adiabatic assist plus trim chiller on the high-temperature loop",
                      "basis": "TCS target 30 [27–32] degC (E0) needs facility water at or below 25 [21–28] degC (E0); dry coolers at design dry-bulb (34 degC) plus an approach of 10 K (E0) is estimated to supply 44 [42–46] degC (E0)",
                      "racks_before": 0,
                      "racks_after": 8,
                      "racks_gained": 8,
                      "capex_eur": {
                        "value": 350000,
                        "low": 175000,
                        "high": 700000,
                        "unit": "<currency:see-/v1/version>",
                        "evidence": "E0_ASSUMPTION",
                        "label": "adiabatic assist and trim chiller",
                        "model": "input@0.1",
                        "digest": "af0380aad4fa"
                      },
                      "lead_time_weeks": {
                        "value": 32,
                        "low": 20,
                        "high": 48,
                        "unit": "weeks",
                        "evidence": "E0_ASSUMPTION",
                        "label": "lead time",
                        "model": "input@0.1",
                        "digest": "3141b684dcc2"
                      },
                      "risk": "Adiabatic assist reintroduces water consumption; check permits and WUE targets.",
                      "purchasable": true,
                      "cost_key": "trim_chiller.adiabatic"
                    }
                  ],
                  "time_to_power": {
                    "weeks_to_first_rack": 32,
                    "weeks_to_full": 160,
                    "critical_item": "Transformer capacity",
                    "critical_path_weeks": 160,
                    "schedule_complete": true,
                    "date_basis": "assumed",
                    "date_evidence_class": "E0",
                    "date_binding_item": "Transformer capacity",
                    "date_label": "assumed lead time, not a date (E0; set by transformer capacity)",
                    "dependencies": [
                      {
                        "step": "Transformer capacity",
                        "lead_time_weeks": {
                          "value": 160,
                          "low": 104,
                          "high": 216,
                          "unit": "weeks",
                          "evidence": "E0_ASSUMPTION",
                          "label": "power transformer lead time",
                          "model": "input@0.1",
                          "digest": "010015f8a59e"
                        }
                      },
                      {
                        "step": "Firm supply (grid import + behind-the-meter)",
                        "lead_time_weeks": {
                          "value": 44,
                          "low": 28.6,
                          "high": 59.400000000000006,
                          "unit": "weeks",
                          "evidence": "E0_ASSUMPTION",
                          "label": "GEN-5MW lead time",
                          "model": "input@0.1",
                          "digest": "481a422b0494"
                        }
                      }
                    ]
                  },
                  "evidence": {
                    "calibration": {
                      "state": "uncalibrated",
                      "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                      "observations": 0,
                      "observations_total": 0,
                      "observations_without_source_ref": 0,
                      "sites": 0,
                      "halls": 0,
                      "keys_asserted": 3,
                      "keys_with_site_observations": 0,
                      "keys_calibrated": 0,
                      "coverage": 0,
                      "keys": [],
                      "uncalibrated_keys": [
                        "constraint.rack_feed_tapoff.racks",
                        "envelope.racks"
                      ]
                    },
                    "evidence_classes_in_headroom_ladder": [
                      "E0_ASSUMPTION"
                    ],
                    "disclosure": "Every figure above is modelled or a library default unless its own evidence class says otherwise. E0/E1 relief costs and lead times are not prices or commitments. See 'calibration' for how far this engine has been reconciled against measured outcomes — today, on most constraints, not at all, and this case says so rather than implying otherwise."
                  },
                  "next_action": {
                    "action": "The target of 64 racks is not reachable at this hall on the inputs given: the full headroom ladder reaches 62 racks, 2 short. To reach 62: obtain a budgetary or firm quote for: Higher-rated tap-off units (and busway if ampacity does not allow)",
                    "why": "This is the leading relief option, and its cost and/or lead time are still a library default, not a price. A quote is what moves it from modelled to actionable, and upgrades the cost library for every future case that touches this constraint.",
                    "how": "Run a Procurement Specification against this constraint (rack_feed_tapoff).",
                    "target_reachable": false,
                    "gap_racks_after_ladder": 2,
                    "ladder_action": "Obtain a budgetary or firm quote for: Higher-rated tap-off units (and busway if ampacity does not allow)"
                  },
                  "intake": {
                    "completeness": 0.839,
                    "can_issue_a_study": true,
                    "required_gaps": 0
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/power/deploy/assess": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_power_deploy_assess",
        "summary": "The BTM Power Deployment Assessment: given a real load profile and the generation/BESS units actually on the table, compares GRID ONLY, GRID + GENERATION, GRID + BESS and GRID + BESS + GENERATION under one deterministic N/N+1/N+2/2N contingency test each, with CAPEX and lead time read from whatever the request declared (never priced at zero when a unit is uncosted — that architecture is marked not-yet-comparable instead).",
        "description": "The BTM Power Deployment Assessment: given a real load profile and the generation/BESS units actually on the table, compares GRID ONLY, GRID + GENERATION, GRID + BESS and GRID + BESS + GENERATION under one deterministic N/N+1/N+2/2N contingency test each, with CAPEX and lead time read from whatever the request declared (never priced at zero when a unit is uncosted — that architecture is marked not-yet-comparable instead). Answers 'what combination of grid, generation and storage gets this load to firm power by this date, and what does each option cost.' Never invents a price, a lead time, or a PASS — a generator with no declared availability escalates a would-be PASS to REQUIRES_ENGINEERING_STUDY rather than assuming perfect reliability.\n\nReturns: load_profile summary (peak/mean/load-factor/ramp/step-events, with its own evidence class), capacity (grid-only vs. target, the gap), architectures (each with contingency status, CAPEX, lead time, whether fully costed, readiness_gates — interconnection/protection/fuel/permitting/electrical/reliability, each PASS/FAIL/MISSING_DATA/REQUIRES_ENGINEERING_STUDY/REQUIRES_LICENSED_REVIEW/NOT_APPLICABLE with its reason and what's missing — plus rfq_ready [enough data to prepare an RFQ], external_clearances_required [who still has to sign off — protection, utility, permitting], and execution_ready [cleared to build, which on-site generation/storage architectures will almost never show as true from screening alone]), and next_action, which names a missing readiness field before it ever says 'proceed to RFQ', always separates RFQ-readiness from build clearance, and states which objective was used, why, and the trade-off against the runner-up architecture — never a silent 'cheapest wins'.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 5,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_power_deploy_assess",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "load_profile",
                  "grid_firm_MW",
                  "target_MW"
                ],
                "properties": {
                  "load_profile": {
                    "type": "object",
                    "description": "either {csv: 'timestamp,kW\\n...'} from a real interval export, or {flat_kW: n} for a screening-level single-figure assumption (explicitly weaker evidence).",
                    "properties": {
                      "csv": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "flat_kW": {
                        "type": "number"
                      },
                      "flat_hours": {
                        "type": "number"
                      }
                    }
                  },
                  "grid_firm_MW": {
                    "type": "number",
                    "description": "firm import available from the grid connection today"
                  },
                  "target_MW": {
                    "type": "number",
                    "description": "the firm power required"
                  },
                  "ride_through_hours": {
                    "type": "number",
                    "description": "the outage duration a battery must be sized against; defaults to 2h if omitted"
                  },
                  "redundancy": {
                    "type": "string",
                    "enum": [
                      "N",
                      "N+1",
                      "N+2",
                      "2N"
                    ],
                    "default": "N"
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the architecture ranking optimises for: max_compute (most firm capacity), min_cost (lowest CAPEX among architectures that pass their own contingency test), or fastest (shortest critical-path lead time). The winner is never chosen by lowest cost silently — next_action always states which objective was used and the trade-off against the runner-up."
                  },
                  "generation": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "nameplate_MW"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string"
                        },
                        "nameplate_MW": {
                          "type": "number"
                        },
                        "capex_eur": {
                          "type": "number"
                        },
                        "lead_time_weeks": {
                          "type": "number"
                        },
                        "operating_mode": {
                          "type": "string",
                          "enum": [
                            "continuous",
                            "standby"
                          ],
                          "description": "how you run this unit. 'continuous': it is already running, so its start-up is never on the critical path. 'standby': it is offline until needed, so declared storage must carry the load it is relied on for until it is up, or the result is flagged for engineering study. Omit it and nothing about start-up is assumed or checked (the result says so)."
                        },
                        "startup_time_min": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1440,
                          "description": "start-up time from offline to carrying load, minutes; replaces the library default for the technology"
                        },
                        "fuel_type": {
                          "type": "string",
                          "description": "e.g. 'natural gas' — feeds the fuel readiness gate; omitting it leaves that gate MISSING_DATA"
                        }
                      }
                    }
                  },
                  "bess": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "power_MW",
                        "energy_MWh"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "power_MW": {
                          "type": "number"
                        },
                        "energy_MWh": {
                          "type": "number"
                        },
                        "capex_eur": {
                          "type": "number"
                        },
                        "lead_time_weeks": {
                          "type": "number"
                        },
                        "grid_forming": {
                          "type": "boolean",
                          "description": "feeds the electrical readiness gate — more than one grid-forming source across the architecture requires a controls arbitration study"
                        }
                      }
                    }
                  },
                  "interconnection": {
                    "type": "object",
                    "description": "utility, pcc_voltage_kV, import_capacity_MW — feeds the interconnection readiness gate. Omitting it leaves that gate MISSING_DATA, never a guessed PASS.",
                    "properties": {
                      "utility": {
                        "type": "string"
                      },
                      "pcc_voltage_kV": {
                        "type": "number"
                      },
                      "import_capacity_MW": {
                        "type": "number"
                      }
                    }
                  },
                  "permitting": {
                    "type": "object",
                    "description": "e.g. {emissions_status, noise_status} — feeds the permitting readiness gate.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "load_profile": {
                  "flat_kW": 11500,
                  "flat_hours": 24,
                  "source": "Synthetic reference flat AI hall load"
                },
                "grid_firm_MW": 9.5,
                "target_MW": 12,
                "ride_through_hours": 2,
                "redundancy": "N+1",
                "objective": "max_compute",
                "generation": [
                  {
                    "id": "GEN-5MW",
                    "kind": "gas_engine",
                    "nameplate_MW": 5,
                    "capex_eur": 4000000,
                    "lead_time_weeks": 44,
                    "operating_mode": "continuous",
                    "availability": 0.96
                  }
                ],
                "bess": [
                  {
                    "id": "BESS-2MW-8MWh",
                    "power_MW": 2,
                    "energy_MWh": 8,
                    "capex_eur": 1800000,
                    "lead_time_weeks": 30,
                    "round_trip_efficiency": 0.88
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "load_profile": {
                    "source": "flat assumption",
                    "evidence": "E0_ASSUMPTION",
                    "peak_MW": 11.5,
                    "mean_kW": 11500,
                    "load_factor": 1,
                    "ramp_rate_kW_per_min": 0,
                    "step_events": 0,
                    "warnings": [
                      "this profile is not customer-measured data — every figure derived from it is an assumption about shape, not a measurement of this load."
                    ],
                    "usable": true,
                    "peak_plausible": true,
                    "directional": false
                  },
                  "capacity": {
                    "target_MW": 12,
                    "grid_firm_MW": 9.5,
                    "gap_MW": 2.5,
                    "critical_load_MW": 11.5,
                    "ride_through_hours": 2,
                    "ride_through_declared": true,
                    "redundancy": "N+1",
                    "objective": "max_compute"
                  },
                  "architectures": [
                    {
                      "label": "GRID ONLY",
                      "status": "fail",
                      "scenario": "N+1 requested, but no generation or storage is declared to lose — this policy is only meaningful once at least one unit exists",
                      "available_MW": 9.5,
                      "margin_MW": -2,
                      "basis": "N+1 against 11.5 MW (E0) critical load, ride-through 2 h (E0): 9.5 MW (E0) available under 'N+1 requested, but no generation or storage is declared to lose — this policy is only meaningful once at least one unit exists'.",
                      "blocking": [],
                      "capex_eur": null,
                      "capex_uncosted_units": [],
                      "lead_time_weeks": null,
                      "lead_time_undated_units": [],
                      "date_basis": "none",
                      "date_evidence_class": null,
                      "date_binding_item": null,
                      "date_label": "no date: nothing is deployable or a lead time on the path is missing",
                      "buildable": false,
                      "rfq_ready": false,
                      "execution_ready": false,
                      "external_clearances_required": [
                        {
                          "gate": "reliability",
                          "review_requirement": "Engineering review of the contingency margin",
                          "reason": "N+1 against 11.5 MW (E0) critical load, ride-through 2 h (E0): 9.5 MW (E0) available under 'N+1 requested, but no generation or storage is declared to lose — this policy is only meaningful once at least one unit exists'."
                        }
                      ],
                      "readiness_gates": [
                        {
                          "gate": "interconnection",
                          "status": "missing_data",
                          "reason": "No interconnection data declared — point of common coupling, voltage, and import/export capacity are unknown.",
                          "evidence": [],
                          "missing": [
                            "interconnection.pcc_voltage_kV",
                            "interconnection.import_capacity_MW"
                          ],
                          "review_requirement": "Utility interconnection study",
                          "blocking": true
                        },
                        {
                          "gate": "protection",
                          "status": "not_applicable",
                          "reason": "No on-site generation or storage — grid-only architecture has no new protection scheme to coordinate.",
                          "evidence": [],
                          "missing": [],
                          "review_requirement": "",
                          "blocking": false
                        }
                      ]
                    },
                    {
                      "label": "GRID + GENERATION",
                      "status": "fail",
                      "scenario": "loss of GEN-5MW (largest 1 contributor(s), per N+1)",
                      "available_MW": 9.5,
                      "margin_MW": -2,
                      "basis": "N+1 against 11.5 MW (E0) critical load, ride-through 2 h (E0): 9.5 MW (E0) available under 'loss of GEN-5MW (largest 1 contributor(s), per N+1)'.",
                      "blocking": [],
                      "capex_eur": 4000000,
                      "capex_uncosted_units": [],
                      "lead_time_weeks": 44,
                      "lead_time_undated_units": [],
                      "date_basis": "assumed",
                      "date_evidence_class": "E0",
                      "date_binding_item": "GEN-5MW",
                      "date_label": "assumed lead time, not a date (E0; set by gen-5mw)",
                      "buildable": false,
                      "rfq_ready": false,
                      "execution_ready": false,
                      "external_clearances_required": [
                        {
                          "gate": "protection",
                          "review_requirement": "Licensed protection engineer",
                          "reason": "1 on-site source(s) declared — protection coordination, short-circuit and relay settings require a licensed protection engineer using specialist software (e.g. ETAP, PowerFactory). This tool does not perform that calculation and never will claim to."
                        },
                        {
                          "gate": "reliability",
                          "review_requirement": "Engineering review of the contingency margin",
                          "reason": "N+1 against 11.5 MW (E0) critical load, ride-through 2 h (E0): 9.5 MW (E0) available under 'loss of GEN-5MW (largest 1 contributor(s), per N+1)'."
                        }
                      ],
                      "readiness_gates": [
                        {
                          "gate": "interconnection",
                          "status": "missing_data",
                          "reason": "No interconnection data declared — point of common coupling, voltage, and import/export capacity are unknown.",
                          "evidence": [],
                          "missing": [
                            "interconnection.pcc_voltage_kV",
                            "interconnection.import_capacity_MW"
                          ],
                          "review_requirement": "Utility interconnection study",
                          "blocking": true
                        },
                        {
                          "gate": "protection",
                          "status": "requires_licensed_review",
                          "reason": "1 on-site source(s) declared — protection coordination, short-circuit and relay settings require a licensed protection engineer using specialist software (e.g. ETAP, PowerFactory). This tool does not perform that calculation and never will claim to.",
                          "evidence": [
                            "GEN-5MW"
                          ],
                          "missing": [],
                          "review_requirement": "Licensed protection engineer",
                          "blocking": true
                        }
                      ]
                    },
                    {
                      "label": "GRID + BESS",
                      "status": "fail",
                      "scenario": "loss of BESS-2MW-8MWh (largest 1 contributor(s), per N+1)",
                      "available_MW": 9.5,
                      "margin_MW": -2,
                      "basis": "N+1 against 11.5 MW (E0) critical load, ride-through 2 h (E0): 9.5 MW (E0) available under 'loss of BESS-2MW-8MWh (largest 1 contributor(s), per N+1)'.",
                      "blocking": [],
                      "capex_eur": 1800000,
                      "capex_uncosted_units": [],
                      "lead_time_weeks": 30,
                      "lead_time_undated_units": [],
                      "date_basis": "assumed",
                      "date_evidence_class": "E0",
                      "date_binding_item": "BESS-2MW-8MWh",
                      "date_label": "assumed lead time, not a date (E0; set by bess-2mw-8mwh)",
                      "buildable": false,
                      "rfq_ready": false,
                      "execution_ready": false,
                      "external_clearances_required": [
                        {
                          "gate": "protection",
                          "review_requirement": "Licensed protection engineer",
                          "reason": "1 on-site source(s) declared — protection coordination, short-circuit and relay settings require a licensed protection engineer using specialist software (e.g. ETAP, PowerFactory). This tool does not perform that calculation and never will claim to."
                        },
                        {
                          "gate": "reliability",
                          "review_requirement": "Engineering review of the contingency margin",
                          "reason": "N+1 against 11.5 MW (E0) critical load, ride-through 2 h (E0): 9.5 MW (E0) available under 'loss of BESS-2MW-8MWh (largest 1 contributor(s), per N+1)'."
                        }
                      ],
                      "readiness_gates": [
                        {
                          "gate": "interconnection",
                          "status": "missing_data",
                          "reason": "No interconnection data declared — point of common coupling, voltage, and import/export capacity are unknown.",
                          "evidence": [],
                          "missing": [
                            "interconnection.pcc_voltage_kV",
                            "interconnection.import_capacity_MW"
                          ],
                          "review_requirement": "Utility interconnection study",
                          "blocking": true
                        },
                        {
                          "gate": "protection",
                          "status": "requires_licensed_review",
                          "reason": "1 on-site source(s) declared — protection coordination, short-circuit and relay settings require a licensed protection engineer using specialist software (e.g. ETAP, PowerFactory). This tool does not perform that calculation and never will claim to.",
                          "evidence": [
                            "BESS-2MW-8MWh"
                          ],
                          "missing": [],
                          "review_requirement": "Licensed protection engineer",
                          "blocking": true
                        }
                      ]
                    }
                  ],
                  "next_action": {
                    "action": "Supply the missing readiness data for 'GRID + BESS + GENERATION': GEN-5MW.fuel_type, interconnection.import_capacity_MW, interconnection.pcc_voltage_kV, interconnection.utility, permitting.emissions_status, permitting.noise_status",
                    "why": "'GRID + BESS + GENERATION' is the best architecture under the max_compute objective, fully costed — but it is technically feasible, not yet schedule-credible: No interconnection data declared — point of common coupling, voltage, and import/export capacity are unknown.; Fuel type not declared for: GEN-5MW.; Combustion generation is declared but no emissions/n..."
                  },
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 1 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 1,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "btm.firm_MW"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/power/deploy/spec": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_power_deploy_spec",
        "summary": "A tender-ready technical specification for a BTM architecture's generation and storage units: every numeric requirement (nameplate rating, availability/forced-outage rate, start-up time, ramp rate, fuel, BESS power/energy/SOC window) derived from the declared unit and traceable to it, plus a weighted evaluation matrix and a machine-readable response schedule.",
        "description": "A tender-ready technical specification for a BTM architecture's generation and storage units: every numeric requirement (nameplate rating, availability/forced-outage rate, start-up time, ramp rate, fuel, BESS power/energy/SOC window) derived from the declared unit and traceable to it, plus a weighted evaluation matrix and a machine-readable response schedule. Same request shape as gridforge_power_deploy_assess — this is what 'proceed to procurement' in that tool's next_action actually produces.\n\nReturns: the specification document, or its summary and response template as JSON.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 3,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_power_deploy_spec",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "load_profile",
                  "grid_firm_MW",
                  "target_MW"
                ],
                "properties": {
                  "architecture": {
                    "type": "string",
                    "description": "one of the compared architecture labels, e.g. 'GRID + BESS + GENERATION'; selects the units tendered"
                  },
                  "require_rfq_ready": {
                    "type": "boolean",
                    "description": "refuse unless the engine itself finds this architecture RFQ-ready"
                  },
                  "project": {
                    "type": "string"
                  },
                  "load_profile": {
                    "type": "object",
                    "description": "unused by this tool but part of the shared request shape; pass {flat_kW: 0} if omitting a real profile"
                  },
                  "grid_firm_MW": {
                    "type": "number"
                  },
                  "target_MW": {
                    "type": "number"
                  },
                  "ride_through_hours": {
                    "type": "number",
                    "description": "the outage duration a battery must be sized against; defaults to 2h if omitted"
                  },
                  "redundancy": {
                    "type": "string",
                    "enum": [
                      "N",
                      "N+1",
                      "N+2",
                      "2N"
                    ],
                    "default": "N"
                  },
                  "interconnection": {
                    "type": "object",
                    "description": "utility, pcc_voltage_kV, import_capacity_MW — feeds the interconnection readiness gate. Omitting it leaves that gate MISSING_DATA, never a guessed PASS.",
                    "properties": {
                      "utility": {
                        "type": "string"
                      },
                      "pcc_voltage_kV": {
                        "type": "number"
                      },
                      "import_capacity_MW": {
                        "type": "number"
                      }
                    }
                  },
                  "permitting": {
                    "type": "object",
                    "description": "e.g. {emissions_status, noise_status} — feeds the permitting readiness gate.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "generation": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "bess": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "html",
                      "md"
                    ],
                    "default": "html"
                  },
                  "reference": {
                    "type": "string"
                  },
                  "return_by": {
                    "type": "string"
                  },
                  "contact": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "load_profile": {
                  "flat_kW": 11500,
                  "flat_hours": 24,
                  "source": "Synthetic reference flat AI hall load"
                },
                "grid_firm_MW": 9.5,
                "target_MW": 12,
                "ride_through_hours": 2,
                "redundancy": "N+1",
                "objective": "max_compute",
                "generation": [
                  {
                    "id": "GEN-5MW",
                    "kind": "gas_engine",
                    "nameplate_MW": 5,
                    "capex_eur": 4000000,
                    "lead_time_weeks": 44,
                    "operating_mode": "continuous",
                    "availability": 0.96
                  }
                ],
                "bess": [
                  {
                    "id": "BESS-2MW-8MWh",
                    "power_MW": 2,
                    "energy_MWh": 8,
                    "capex_eur": 1800000,
                    "lead_time_weeks": 30,
                    "round_trip_efficiency": 0.88
                  }
                ],
                "architecture": "GRID + BESS + GENERATION",
                "project": "Reference Project (synthetic)",
                "format": "md"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "format": "md",
                  "title": "Technical Specification — GRID + BESS + GENERATION",
                  "document": "# Technical Specification — GRID + BESS + GENERATION\n\n*Reference Project (synthetic) · issued 2026-11-27*\n\n> **Duties in this document are derived from a BTM Power Deployment Assessment. They are modelled and declared values, not measurements of installed plant, and each one names the unit it came from.**\n\n## 1. Purpose\n\nThis package procures the generation ...",
                  "specification": {
                    "architecture": "GRID + BESS + GENERATION",
                    "units": [
                      "GEN-5MW",
                      "BESS-2MW-8MWh"
                    ],
                    "requirements": 11,
                    "mandatory": 9
                  },
                  "response_template": {
                    "template_version": 2,
                    "supplier": "",
                    "received_on": "",
                    "valid_until": "",
                    "currency": "",
                    "values": {
                      "capex_eur": null,
                      "lead_time_weeks": null,
                      "install_weeks": null,
                      "warranted_availability": null,
                      "validity_days": null
                    },
                    "compliance": {
                      "G1-01": "",
                      "G1-02": "",
                      "G1-03": "",
                      "G1-05": "",
                      "B1-01": "",
                      "B1-02": "",
                      "B1-03": "",
                      "C-01": "",
                      "C-02": ""
                    }
                  },
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 1 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 1,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "btm.firm_MW"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/power/deploy/bids": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_power_deploy_bids",
        "summary": "Rank supplier responses to a BTM tender package (gridforge_power_deploy_spec) with the same comparison rules as gridforge_bids: mandatory non-compliance is never outranked by price, incomplete responses are disqualified not guessed at, and installation method and evidence quality are left to an engineer.",
        "description": "Rank supplier responses to a BTM tender package (gridforge_power_deploy_spec) with the same comparison rules as gridforge_bids: mandatory non-compliance is never outranked by price, incomplete responses are disqualified not guessed at, and installation method and evidence quality are left to an engineer. Send the same deployment request and architecture the package was built from, plus the completed response schedules.\n\nReturns: the ranked comparison, the leading compliant supplier (or null) and the note.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 2,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_power_deploy_bids",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "load_profile",
                  "grid_firm_MW",
                  "target_MW",
                  "responses"
                ],
                "properties": {
                  "architecture": {
                    "type": "string"
                  },
                  "project": {
                    "type": "string"
                  },
                  "load_profile": {
                    "type": "object"
                  },
                  "grid_firm_MW": {
                    "type": "number"
                  },
                  "target_MW": {
                    "type": "number"
                  },
                  "ride_through_hours": {
                    "type": "number",
                    "description": "the outage duration a battery must be sized against; defaults to 2h if omitted"
                  },
                  "redundancy": {
                    "type": "string",
                    "enum": [
                      "N",
                      "N+1",
                      "N+2",
                      "2N"
                    ],
                    "default": "N"
                  },
                  "interconnection": {
                    "type": "object",
                    "description": "utility, pcc_voltage_kV, import_capacity_MW — feeds the interconnection readiness gate. Omitting it leaves that gate MISSING_DATA, never a guessed PASS.",
                    "properties": {
                      "utility": {
                        "type": "string"
                      },
                      "pcc_voltage_kV": {
                        "type": "number"
                      },
                      "import_capacity_MW": {
                        "type": "number"
                      }
                    }
                  },
                  "permitting": {
                    "type": "object",
                    "description": "e.g. {emissions_status, noise_status} — feeds the permitting readiness gate.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "generation": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "bess": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "responses": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "load_profile": {
                  "flat_kW": 11500,
                  "flat_hours": 24,
                  "source": "Synthetic reference flat AI hall load"
                },
                "grid_firm_MW": 9.5,
                "target_MW": 12,
                "ride_through_hours": 2,
                "redundancy": "N+1",
                "objective": "max_compute",
                "generation": [
                  {
                    "id": "GEN-5MW",
                    "kind": "gas_engine",
                    "nameplate_MW": 5,
                    "capex_eur": 4000000,
                    "lead_time_weeks": 44,
                    "operating_mode": "continuous",
                    "availability": 0.96
                  }
                ],
                "bess": [
                  {
                    "id": "BESS-2MW-8MWh",
                    "power_MW": 2,
                    "energy_MWh": 8,
                    "capex_eur": 1800000,
                    "lead_time_weeks": 30,
                    "round_trip_efficiency": 0.88
                  }
                ],
                "architecture": "GRID + BESS + GENERATION",
                "project": "Reference Project (synthetic)",
                "format": "md",
                "responses": [
                  {
                    "template_version": 2,
                    "supplier": "Synthetic BTM Vendor A",
                    "received_on": "2026-11-27",
                    "valid_until": "2026-11-27",
                    "currency": "<currency:see-/v1/version>",
                    "values": {
                      "capex_eur": 5600000,
                      "lead_time_weeks": 40,
                      "install_weeks": 4,
                      "warranted_availability": 100,
                      "validity_days": 90
                    },
                    "compliance": {
                      "G1-01": "C",
                      "G1-02": "C",
                      "G1-03": "C",
                      "G1-05": "C",
                      "B1-01": "C",
                      "B1-02": "C",
                      "B1-03": "C",
                      "C-01": "C",
                      "C-02": "C"
                    },
                    "reference": "SYNTH-QUOTE-01"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "architecture": "GRID + BESS + GENERATION",
                  "units": [
                    "GEN-5MW",
                    "BESS-2MW-8MWh"
                  ],
                  "ranked": [
                    {
                      "rank": 1,
                      "supplier": "Synthetic BTM Vendor A",
                      "headline": "Synthetic BTM Vendor A: <currency:see-/v1/version> 5,600,000, 44 weeks to energised, score 85/100 (relative to the bids compared)",
                      "capex_eur": 5600000,
                      "weeks_to_energised": 44,
                      "eur_per_rack": null,
                      "compliant": true,
                      "quoted_currency": "<currency:see-/v1/version>",
                      "quoted_price": null,
                      "currency_issue": null,
                      "disqualified": false,
                      "score": 85,
                      "scores": {
                        "C1": 30,
                        "C2": 30,
                        "C3": 25,
                        "C4": 0,
                        "C5": 0
                      },
                      "score_basis": "Scored against the only bid evaluated. Scores are relative, not absolute: price and programme are scaled linearly from the best bid in this comparison (full marks) to the worst (none), and a lone bid gets full marks on both. The same bid scores differently against different competitors, so compare scores only within one comparison, never across comparisons.",
                      "mandatory_failed": [],
                      "notes": [
                        "response is not tied to a specification (no 'specification' block); it cannot be checked against the current revision.",
                        "Installation method and evidence quality are scored by the engineer, not by this tool — 15 points are unallocated until they are."
                      ],
                      "figure_checks": [],
                      "schedule_impact": "In line with the modelled 44 weeks.",
                      "install_weeks_missing": false,
                      "programme_basis": "complete",
                      "needs_engineering_review": false
                    }
                  ],
                  "leading": "Synthetic BTM Vendor A",
                  "note": "Installation method and evidence quality carry 15 of the 100 points and are scored by an engineer, not by this endpoint. A ranking that claimed to have judged them would be inventing the part that needs judgement. A bid's own figures are held to the numeric 'shall' clauses they answer (a duty below the specified minimum, a price validity under 60 days): a bi...",
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 1 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 1,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "btm.firm_MW"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/proposal": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "gridforge_proposal",
        "summary": "A priced proposal for a named engagement, built from what the engine already found.",
        "description": "A priced proposal for a named engagement, built from what the engine already found.\n\nReturns: the proposal document and the engagement's catalogue price.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 2,
        "x-gridforge-tier": "client",
        "x-gridforge-mcp-tool": "gridforge_proposal",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project. Anything else is ignored, never rejected.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intake"
                ],
                "properties": {
                  "intake": {
                    "type": "object",
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack positions already occupied. Omitted, the engine does not know it: it is listed as an optional gap, and the busway check against the load already in the hall reads every position that is not free as occupied and says so as an assumption (E0). Declare 0 to confirm that nothing is occupied. It changes no rack count, cost or date.",
                    "additionalProperties": true
                  },
                  "engagement": {
                    "type": "string",
                    "default": "density_screen"
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  },
                  "valid_days": {
                    "type": "integer",
                    "default": 30
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "html",
                      "md"
                    ],
                    "default": "html"
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "engagement": "density_screen",
                "objective": "max_compute",
                "format": "md"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result. Every numeric field carries an evidence class and provenance.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "format": "md",
                  "title": "Proposal — Density Screen, Reference Colocation Campus hall DH-02",
                  "document": "# Proposal — Density Screen, Reference Colocation Campus hall DH-02\n\n*Reference Project (synthetic) · prepared 2026-11-27 · valid to 2026-11-27 · target platform NVIDIA GB300 NVL72*\n\n> **The findings below are a screening read produced before this engagement begins. They are modelled from the inputs supplied, not measured at the site.**\n\n## 1. What we alread...",
                  "engagement": {
                    "id": "density_screen",
                    "name": "Density Screen",
                    "price_eur": 4500,
                    "turnaround_days": 5
                  },
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably. A rejected or failed request is not charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/deck": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "deck",
        "summary": "Walkthrough deck for a hall.",
        "description": "An intake in, the client-session walkthrough deck out as HTML (`format`, `title`, `slides`, `document`, `document_full`). Needs a key and is weighted in units. It is a REST route only: there is no MCP tool for it, because it is a document for a human session, not an agent step. Screening-mode output, not an issued engineering opinion.\n\nEvery numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "format": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "slides": {
                      "type": "integer"
                    },
                    "document": {
                      "type": "string"
                    },
                    "document_full": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "format": "html",
                  "title": "Reference Colocation Campus · hall DH-02",
                  "slides": 10,
                  "document": "<title>Reference Colocation Campus · hall DH-02</title><style>\n*{box-sizing:border-box}\nbody{margin:0;background:#070B14;color:#F5F7FA;\n  font:16px/1.55 ui-sans-serif,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Helvetica,Arial,sans-serif}\n.deck{max-width:1180px;margin:0 auto;padding:24px 20px 96px}\n.slide{background:#0E1524;border:1px solid #1E2942;border-ra...",
                  "document_full": "<!doctype html><html lang='en'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1'><title>Reference Colocation Campus · hall DH-02</title><style>\n*{box-sizing:border-box}\nbody{margin:0;background:#070B14;color:#F5F7FA;\n  font:16px/1.55 ui-sans-serif,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Helvetica,Arial,sans-se...",
                  "calibration": {
                    "state": "uncalibrated",
                    "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                    "observations": 0,
                    "observations_total": 0,
                    "observations_without_source_ref": 0,
                    "sites": 0,
                    "halls": 0,
                    "keys_asserted": 3,
                    "keys_with_site_observations": 0,
                    "keys_calibrated": 0,
                    "coverage": 0,
                    "keys": [],
                    "uncalibrated_keys": [
                      "constraint.rack_feed_tapoff.racks",
                      "envelope.racks"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "X-GridForge-Project",
            "in": "header",
            "required": false,
            "description": "A label you choose (at most 64 characters of letters, digits and . _ : -) so your own usage can be split by project.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "intake": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "A GridForge intake document. GET /v1/intake/template for the blank form; a sparse one is completed from library defaults and reported as assumptions. The intake fields may instead be sent at the top level."
                  },
                  "objective": {
                    "type": "string",
                    "enum": [
                      "max_compute",
                      "min_cost",
                      "fastest"
                    ],
                    "default": "max_compute",
                    "description": "What the recommendation optimises for."
                  }
                },
                "additionalProperties": true
              },
              "example": {
                "intake": {
                  "project": {
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "objective": "max_compute",
                    "note": "SYNTHETIC REFERENCE DATA — not a customer asset. Used to demonstrate the deliverable."
                  },
                  "site": {
                    "id": "REF-EU-01",
                    "name": "Reference Colocation Campus",
                    "country": "DE",
                    "metro": "Frankfurt",
                    "design_drybulb_C": 34,
                    "design_wetbulb_C": 21
                  },
                  "hall": {
                    "id": "DH-02",
                    "build_year": 2015,
                    "floor_type": "raised_floor",
                    "net_white_space_m2": 2400,
                    "floor_loading_kPa": {
                      "value": 12,
                      "note": "Design value from the building record, not a survey"
                    },
                    "clear_height_m": 3.2,
                    "aisle_pitch_m": 2.4,
                    "rack_positions": 560,
                    "positions_available": 180,
                    "design_density_kW_per_rack": 8,
                    "containment": "cold_aisle"
                  },
                  "grid": {
                    "dso": "Reference DSO",
                    "firm_capacity_MVA": 14,
                    "power_factor": 0.97,
                    "contracted_MW": 12,
                    "current_site_peak_MW": {
                      "value": 7.4,
                      "note": "12 months of half-hourly metered data"
                    },
                    "current_it_load_MW": 4.9,
                    "queue_note": "Assumed for this synthetic hall: no increase in connection capacity is available inside the study horizon. The existing firm capacity is therefore the asset, and the whole question is how much compute can be produced from it."
                  },
                  "transformers": [
                    {
                      "id": "TX-A/B",
                      "unit_rating_MVA": 5,
                      "units": 3,
                      "redundancy": "N+1",
                      "derating_factor": 0.9,
                      "replacement_lead_time_weeks": 160
                    }
                  ],
                  "ups": [
                    {
                      "id": "UPS-1",
                      "unit_rating_kW": 1200,
                      "units": 6,
                      "redundancy": "N+1",
                      "step_load_capability": 0.5
                    }
                  ],
                  "lv": {
                    "voltage_V": 400,
                    "phases": 3,
                    "busway_ampacity_A": {
                      "value": 400,
                      "note": "Legacy 400 A busway; modern AI halls use 800-1000 A"
                    },
                    "busway_runs": 8,
                    "busway_utilisation_limit": 0.8,
                    "tapoff_max_A": 63
                  },
                  "thermal": {
                    "plant": {
                      "id": "CH-PLANT",
                      "chilled_water_capacity_kW": 6800,
                      "design_supply_C": {
                        "value": 6,
                        "note": "Legacy low-temperature plant"
                      },
                      "design_return_C": 12,
                      "pump_flow_capacity_l_per_min": 9000,
                      "available_head_kPa": 250,
                      "free_cooling_hours_per_year": 2600
                    },
                    "residual_air_capacity_kW_per_rack": {
                      "value": 9,
                      "evidence": "E3",
                      "note": "Derived from hall design density and containment; confirm by measurement"
                    },
                    "cdus": []
                  },
                  "compute": {
                    "platform": "gb300_nvl72",
                    "utilisation": 0.75,
                    "default_architecture": "hybrid_dlc"
                  },
                  "btm_options": [
                    {
                      "id": "BESS-2MW-8MWh",
                      "kind": "bess",
                      "capacity_MW": 2,
                      "capex_eur_per_kW": 900,
                      "lead_time_weeks": 30,
                      "firm": true,
                      "firm_capacity_factor": 0.5,
                      "permitting_note": "No combustion consent required; grid-code compliance and fire separation govern the programme."
                    },
                    {
                      "id": "GEN-5MW",
                      "kind": "gas_engine",
                      "capacity_MW": 5,
                      "capex_eur_per_kW": 800,
                      "lead_time_weeks": 44,
                      "firm": true,
                      "opex_eur_per_MWh": 95,
                      "annual_run_hours": 5000,
                      "fixed_om_eur_per_kW_year": 18,
                      "permitting_note": "Emissions consent and fuel supply are the schedule risk, not the equipment."
                    }
                  ],
                  "economics": {
                    "horizon_years": 10
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx"
                  ]
                },
                "objective": "max_compute"
              }
            }
          }
        }
      }
    },
    "/health": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "health",
        "summary": "Liveness check.",
        "description": "Returns {ok, service, version}. Free, no key, and bounded by a generous separate rate limit.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "security": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "service",
                    "version",
                    "schema_version"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The engine's API schema id, added to every JSON object response."
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "service": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "ok": true,
                  "service": "gridforge",
                  "version": "0.9.0"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/version": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "version",
        "summary": "What this engine serves, how it meters, and its provenance.",
        "description": "The engine's own statement of itself: version and provenance, the routes it serves (`endpoints`), the unit weight of every route (`unit_rates`), the pay-as-you-go terms (`payg`: unit_price_cents, currency, min_invoice_cents, free_allowance_units, billing_rule), the Idempotency-Key rule, the rate limit, and where the machine interfaces and the calibration record are. This is the authoritative source of every price and limit; this document states none. Free, no key.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "security": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "version",
                    "provenance",
                    "auth_configured",
                    "signed_keys",
                    "rate_limit_per_minute",
                    "schema",
                    "idempotency",
                    "idempotency_key_max_chars",
                    "tier",
                    "endpoints",
                    "unit_rates",
                    "payg",
                    "metering",
                    "machine_interface",
                    "calibration",
                    "schema_version"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The engine's API schema id, added to every JSON object response."
                    },
                    "version": {
                      "type": "string"
                    },
                    "provenance": {
                      "type": "object",
                      "properties": {
                        "schema": {
                          "type": "string"
                        },
                        "engine_version": {
                          "type": "string"
                        },
                        "code_sha256": {
                          "type": "string"
                        },
                        "cost_library_sha256": {
                          "type": "string"
                        },
                        "calibration_sha256": {
                          "type": "string"
                        },
                        "digest": {
                          "type": "string"
                        },
                        "report_date": {
                          "type": "string"
                        }
                      }
                    },
                    "auth_configured": {
                      "type": "boolean"
                    },
                    "signed_keys": {
                      "type": "boolean"
                    },
                    "rate_limit_per_minute": {
                      "type": "integer"
                    },
                    "schema": {
                      "type": "string"
                    },
                    "idempotency": {
                      "type": "string"
                    },
                    "idempotency_key_max_chars": {
                      "type": "integer"
                    },
                    "tier": {
                      "type": "string"
                    },
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "capabilities": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "boolean"
                      },
                      "description": "Behaviour a route has that its path does not show, as named flags. A flag is present and true only when the engine does it; an engine that does not list a flag does not do it. qualify_assumed_fields: POST /v1/qualify accepts an optional assumed_fields, a list of the seven field names it takes (contracted_MW, current_site_peak_MW, current_it_load_MW, busway_ampacity_A, tapoff_max_A, plant_supply_C, positions_available), each at most once and each one the request gives; a named figure is classed E0 (assumed), never E5, in the result's basis; the class cannot be chosen by the caller and a request without the field is answered exactly as before. The response then adds inputs_declared_assumed (what the engine recorded for each figure) and intake.assumed_count; completeness and required_inputs_missing still count a declared figure as supplied."
                    },
                    "unit_rates": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      },
                      "description": "Units per call by route; a route with weight 0 is free."
                    },
                    "payg": {
                      "type": "object",
                      "properties": {
                        "unit_price_cents": {
                          "type": "integer"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "min_invoice_cents": {
                          "type": "integer"
                        },
                        "free_allowance_units": {
                          "type": "integer"
                        },
                        "billing_rule": {
                          "type": "string"
                        }
                      },
                      "description": "The pay-as-you-go terms: the engine's own statement, the only place this contract's prices live."
                    },
                    "metering": {
                      "type": "object",
                      "properties": {
                        "durable": {
                          "type": "boolean"
                        },
                        "ledger_durable": {
                          "type": "boolean",
                          "description": "True when a charge is recorded in a durable ledger; an Idempotency-Key survives eviction and restarts only then."
                        },
                        "over_quota_status": {
                          "type": "integer"
                        },
                        "note": {
                          "type": "string"
                        }
                      }
                    },
                    "machine_interface": {
                      "type": "object",
                      "properties": {
                        "tools": {
                          "type": "string"
                        },
                        "mcp": {
                          "type": "string"
                        },
                        "protocolVersion": {
                          "type": "string"
                        }
                      }
                    },
                    "calibration": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "version": "0.9.0",
                  "provenance": {
                    "schema": "gridforge/provenance/1",
                    "engine_version": "0.9.0",
                    "code_sha256": "513ef0ec9c09e9075f84882f57c09db627f377a5eb563cdbd530eb591723b05d",
                    "cost_library_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
                    "calibration_sha256": "225e762caa8cb172d84527d9dafc91d35fa66926b5536689e683325e81945c89",
                    "digest": "7469d0c89429794a8a8eab67792aa3044ee8c2536f8e69bdd645df912c5f98a9",
                    "report_date": "2026-11-27"
                  },
                  "auth_configured": true,
                  "signed_keys": false,
                  "rate_limit_per_minute": 30,
                  "schema": "gridforge/api/1",
                  "idempotency": "send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call, to make a retry free and identical",
                  "idempotency_key_max_chars": 150,
                  "tier": "public",
                  "endpoints": [
                    "/v1/bids",
                    "/v1/compare",
                    "/v1/deck"
                  ],
                  "capabilities": {
                    "qualify_assumed_fields": true
                  },
                  "unit_rates": {
                    "/mcp": 0,
                    "/v1/bids": 2,
                    "/v1/calibration": 0,
                    "/v1/calibration/residuals": 0,
                    "/v1/compare": 1,
                    "/v1/deck": 3,
                    "/v1/diff": 2,
                    "/v1/estimate": 0,
                    "/v1/portfolio": 1,
                    "/v1/power/assess": 5,
                    "/v1/power/deploy/assess": 5,
                    "/v1/power/deploy/bids": 2,
                    "/v1/power/deploy/spec": 3,
                    "/v1/proposal": 2,
                    "/v1/qualify": 0,
                    "/v1/screen": 1,
                    "/v1/spec": 3,
                    "/v1/study": 5,
                    "/v1/tools": 0,
                    "/v1/usage": 0
                  },
                  "payg": {
                    "note": "Live unit rate, currency and billing rule are served dynamically at GET /v1/version."
                  },
                  "metering": {
                    "durable": false,
                    "ledger_durable": false,
                    "over_quota_status": 402,
                    "note": "Units are published so a caller can predict a bill before making the call. A meter whose rate is secret is a meter nobody integrates against."
                  },
                  "machine_interface": {
                    "tools": "/v1/tools",
                    "mcp": "/mcp",
                    "protocolVersion": "2026-11-27"
                  },
                  "calibration": "/v1/calibration"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tools": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "tools",
        "summary": "The tool catalogue: OpenAI function-calling shape and MCP shape, the rate card and the auth rule.",
        "description": "Returns `tools` (name, description, endpoint, method, tier, units, returns, inputSchema), `openai`, `mcp` (endpoint, protocol, protocolVersion, tools), `auth`, `payg`, `rate_card` (every weighted route, including /v1/deck which is not a tool) and `evidence_note`. This document and the site's /reference/tools.json are generated from the same catalogue. Free, no key.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "security": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "tools",
                    "openai",
                    "mcp",
                    "auth",
                    "payg",
                    "rate_card",
                    "evidence_note",
                    "schema_version"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The engine's API schema id, added to every JSON object response."
                    },
                    "tools": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "openai": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "mcp": {
                      "type": "object",
                      "properties": {
                        "endpoint": {
                          "type": "string"
                        },
                        "protocol": {
                          "type": "string"
                        },
                        "protocolVersion": {
                          "type": "string"
                        },
                        "tools": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "auth": {
                      "type": "object",
                      "properties": {
                        "header": {
                          "type": "string"
                        },
                        "note": {
                          "type": "string"
                        }
                      }
                    },
                    "payg": {
                      "type": "object",
                      "properties": {
                        "unit_price_cents": {
                          "type": "integer"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "min_invoice_cents": {
                          "type": "integer"
                        },
                        "free_allowance_units": {
                          "type": "integer"
                        },
                        "billing_rule": {
                          "type": "string"
                        }
                      },
                      "description": "The pay-as-you-go terms: the engine's own statement, the only place this contract's prices live."
                    },
                    "rate_card": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "endpoint": {
                            "type": "string"
                          },
                          "units": {
                            "type": "integer"
                          },
                          "tool": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "evidence_note": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "tools": [
                    {
                      "name": "gridforge_qualify",
                      "description": "Free. Up to seven numbers about an existing air-cooled hall in (at least three; each one you leave out is an assumption named in the answer), one answer out: which physical constraint binds first when you try to deploy AI racks in it, how many racks fit as found, and which item sets the time to power (labelled 'assumed lead time, not a date' when that item's...",
                      "endpoint": "/v1/qualify",
                      "method": "POST",
                      "tier": "public",
                      "units": 0,
                      "returns": "binding constraint, racks as found and after relief (each with racks_evidence, the evidence class of that rack count as a short code such as E0: the weakest class among the constraints that cap it), the item that sets the date (null, with sets_the_date_reason, when no date can be given: nothing is deployable, or a lead time on the path is missing because tra...",
                      "evidence_boundary": "Directional only: a figure you send is treated as yours (E5) unless you name it in assumed_fields (E0), what you leave out is assumed and disclosed in intake.gaps, and this free answer carries no capital cost and no dated lead time.",
                      "inputSchema": {
                        "type": "object",
                        "description": "Seven figures about one air-cooled hall, and some options. Send at least three of these seven figures; each one you omit is an assumption named in the answer (library default, listed under intake.gaps and, with the way you left it out, under figures_not_supplied). Fewer than three is refused with 422, and no one figure is required: any three are enough. A fi...",
                        "properties": {
                          "contracted_MW": {
                            "type": "number",
                            "description": "Contracted grid capacity, MW."
                          },
                          "current_site_peak_MW": {
                            "type": "number",
                            "description": "Current site peak demand, MW."
                          },
                          "current_it_load_MW": {
                            "type": "number",
                            "description": "Current IT load, MW."
                          },
                          "busway_ampacity_A": {
                            "type": "number",
                            "description": "Installed busway ampacity, A."
                          },
                          "tapoff_max_A": {
                            "type": "number",
                            "description": "Largest installed tap-off rating, A."
                          },
                          "plant_supply_C": {
                            "type": "number",
                            "description": "Chilled-water design supply temperature, °C."
                          },
                          "positions_available": {
                            "type": "integer",
                            "description": "Rack positions that can be released."
                          },
                          "firm_capacity_MVA": {
                            "type": "number",
                            "description": "Optional. Firm capacity of the grid connection, MVA, sent as a plain number. It is a real input: a value below the connection the engine would otherwise derive lowers the firm-supply headroom. Omit it (and send contracted_MW) and the engine derives one from contracted_MW, records it as an assumption (E0) that is not supplied, and adds a required grid.firm_ca..."
                          },
                          "platform": {
                            "type": "string",
                            "enum": [
                              "gb200_nvl72",
                              "gb300_nvl72"
                            ],
                            "default": "gb300_nvl72",
                            "description": "Optional. The rack platform the hall is tested against (GET /v1/platforms lists them). It sets the per-rack electrical and thermal load, so it changes the result. An id the library does not carry is refused with 422."
                          },
                          "objective": {
                            "type": "string",
                            "enum": [
                              "max_compute",
                              "min_cost"
                            ],
                            "default": "max_compute",
                            "description": "What the recommendation optimises for."
                          },
                          "assumed_fields": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "contracted_MW",
                                "current_site_peak_MW"
                              ]
                            },
                            "uniqueItems": true,
                            "maxItems": 7,
                            "description": "Optional. Declares which of the figures above you are sending as ASSUMPTIONS rather than as this hall's own data, for example values copied from a reference template. Each entry must be one of the seven figures (contracted_MW, current_site_peak_MW, current_it_load_MW, busway_ampacity_A, tapoff_max_A, plant_supply_C, positions_available), named at most once, ..."
                          },
                          "client": {
                            "type": "string",
                            "description": "Optional. Your organisation's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                          },
                          "reference": {
                            "type": "string",
                            "description": "Optional. Your own reference for this hall or request. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                          },
                          "site_name": {
                            "type": "string",
                            "description": "Optional. The site's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                          },
                          "metro": {
                            "type": "string",
                            "description": "Optional. The metro area. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                          },
                          "country": {
                            "type": "string",
                            "description": "Optional. The country. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                          },
                          "hall_id": {
                            "type": "string",
                            "description": "Optional. The hall's identifier. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    {
                      "name": "gridforge_estimate",
                      "description": "Free, no API key, never metered. What would a call cost? Name an endpoint (and, for the portfolio, how many halls) and get the units, the unit price and the cost in euro cents BEFORE spending anything. With an API key it also says whether the call fits what is left of the key's allowance or cap. Use it before any paid tool, especially in a loop.",
                      "endpoint": "/v1/estimate",
                      "method": "POST",
                      "tier": "public",
                      "units": 0,
                      "returns": "endpoint, units, unit_price_cents, estimated_cents, billable, free, the rule that produced the units, and (with a key) the remaining allowance and whether the call fits.",
                      "evidence_boundary": "Arithmetic on the published rate card, not an engineering result: it prices a call and says whether it fits an allowance, and it runs no model.",
                      "inputSchema": {
                        "type": "object",
                        "required": [
                          "endpoint"
                        ],
                        "properties": {
                          "endpoint": {
                            "type": "string",
                            "description": "The engine route to price, e.g. /v1/study."
                          },
                          "hall_count": {
                            "type": "integer",
                            "minimum": 1,
                            "description": "Halls in a /v1/portfolio request (one unit each). A portfolio request ranks at most 50 halls: a larger hall_count is refused with 422, as the request would be."
                          },
                          "body": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "Optional: the request body you intend to send; the units are read from it exactly as the meter would."
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    {
                      "name": "gridforge_screen",
                      "description": "Density Screen. A full intake in, a screening read out: every constraint evaluated, and the headroom ladder: each relief in binding order, with its cost, lead time and the racks it unlocks.",
                      "endpoint": "/v1/screen",
                      "method": "POST",
                      "tier": "client",
                      "units": 1,
                      "returns": "screen payload (with grid_queue_context: the measured US queue statistic beside the assumed grid wait), or the rendered screening document.",
                      "evidence_boundary": "Screening mode: the constraints are solved from the intake you send, anything you leave out is filled from library defaults and disclosed as an assumption, and each figure carries its evidence class (E0 to E7).",
                      "inputSchema": {
                        "type": "object",
                        "required": [
                          "intake"
                        ],
                        "properties": {
                          "intake": {
                            "type": "object",
                            "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack position...",
                            "additionalProperties": true
                          },
                          "objective": {
                            "type": "string",
                            "enum": [
                              "max_compute",
                              "min_cost"
                            ],
                            "default": "max_compute",
                            "description": "What the recommendation optimises for."
                          },
                          "format": {
                            "type": "string",
                            "enum": [
                              "json",
                              "md"
                            ],
                            "default": "json"
                          },
                          "grid_queue_region": {
                            "type": "string",
                            "enum": [
                              "CAISO",
                              "ERCOT"
                            ],
                            "description": "Optional. Which of LBNL's US regions the measured queue statistic in grid_queue_context is drawn from; omit for the pooled US figure. Context only: it changes no number and no date."
                          },
                          "electricity_price_state": {
                            "type": "string",
                            "enum": [
                              "Alabama",
                              "Alaska"
                            ],
                            "description": "Optional. Which US state's published average electricity price retail_price_context is drawn from; omit for the US average. Context only: it changes no price and no cost."
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  ],
                  "openai": [
                    {
                      "type": "function",
                      "function": {
                        "name": "gridforge_qualify",
                        "description": "Free. Up to seven numbers about an existing air-cooled hall in (at least three; each one you leave out is an assumption named in the answer), one answer out: which physical constraint binds first when you try to deploy AI racks in it, how many racks fit as found, and which item sets the time to power (labelled 'assumed lead time, not a date' when that item's...",
                        "parameters": {
                          "type": "object",
                          "description": "Seven figures about one air-cooled hall, and some options. Send at least three of these seven figures; each one you omit is an assumption named in the answer (library default, listed under intake.gaps and, with the way you left it out, under figures_not_supplied). Fewer than three is refused with 422, and no one figure is required: any three are enough. A fi...",
                          "properties": {
                            "contracted_MW": {
                              "type": "number",
                              "description": "Contracted grid capacity, MW."
                            },
                            "current_site_peak_MW": {
                              "type": "number",
                              "description": "Current site peak demand, MW."
                            },
                            "current_it_load_MW": {
                              "type": "number",
                              "description": "Current IT load, MW."
                            },
                            "busway_ampacity_A": {
                              "type": "number",
                              "description": "Installed busway ampacity, A."
                            },
                            "tapoff_max_A": {
                              "type": "number",
                              "description": "Largest installed tap-off rating, A."
                            },
                            "plant_supply_C": {
                              "type": "number",
                              "description": "Chilled-water design supply temperature, °C."
                            },
                            "positions_available": {
                              "type": "integer",
                              "description": "Rack positions that can be released."
                            },
                            "firm_capacity_MVA": {
                              "type": "number",
                              "description": "Optional. Firm capacity of the grid connection, MVA, sent as a plain number. It is a real input: a value below the connection the engine would otherwise derive lowers the firm-supply headroom. Omit it (and send contracted_MW) and the engine derives one from contracted_MW, records it as an assumption (E0) that is not supplied, and adds a required grid.firm_ca..."
                            },
                            "platform": {
                              "type": "string",
                              "enum": [
                                "gb200_nvl72",
                                "gb300_nvl72"
                              ],
                              "default": "gb300_nvl72",
                              "description": "Optional. The rack platform the hall is tested against (GET /v1/platforms lists them). It sets the per-rack electrical and thermal load, so it changes the result. An id the library does not carry is refused with 422."
                            },
                            "objective": {
                              "type": "string",
                              "enum": [
                                "max_compute",
                                "min_cost"
                              ],
                              "default": "max_compute",
                              "description": "What the recommendation optimises for."
                            },
                            "assumed_fields": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "contracted_MW",
                                  "current_site_peak_MW"
                                ]
                              },
                              "uniqueItems": true,
                              "maxItems": 7,
                              "description": "Optional. Declares which of the figures above you are sending as ASSUMPTIONS rather than as this hall's own data, for example values copied from a reference template. Each entry must be one of the seven figures (contracted_MW, current_site_peak_MW, current_it_load_MW, busway_ampacity_A, tapoff_max_A, plant_supply_C, positions_available), named at most once, ..."
                            },
                            "client": {
                              "type": "string",
                              "description": "Optional. Your organisation's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "reference": {
                              "type": "string",
                              "description": "Optional. Your own reference for this hall or request. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "site_name": {
                              "type": "string",
                              "description": "Optional. The site's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "metro": {
                              "type": "string",
                              "description": "Optional. The metro area. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "country": {
                              "type": "string",
                              "description": "Optional. The country. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "hall_id": {
                              "type": "string",
                              "description": "Optional. The hall's identifier. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    },
                    {
                      "type": "function",
                      "function": {
                        "name": "gridforge_estimate",
                        "description": "Free, no API key, never metered. What would a call cost? Name an endpoint (and, for the portfolio, how many halls) and get the units, the unit price and the cost in euro cents BEFORE spending anything. With an API key it also says whether the call fits what is left of the key's allowance or cap. Use it before any paid tool, especially in a loop.",
                        "parameters": {
                          "type": "object",
                          "required": [
                            "endpoint"
                          ],
                          "properties": {
                            "endpoint": {
                              "type": "string",
                              "description": "The engine route to price, e.g. /v1/study."
                            },
                            "hall_count": {
                              "type": "integer",
                              "minimum": 1,
                              "description": "Halls in a /v1/portfolio request (one unit each). A portfolio request ranks at most 50 halls: a larger hall_count is refused with 422, as the request would be."
                            },
                            "body": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Optional: the request body you intend to send; the units are read from it exactly as the meter would."
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    },
                    {
                      "type": "function",
                      "function": {
                        "name": "gridforge_screen",
                        "description": "Density Screen. A full intake in, a screening read out: every constraint evaluated, and the headroom ladder: each relief in binding order, with its cost, lead time and the racks it unlocks.",
                        "parameters": {
                          "type": "object",
                          "required": [
                            "intake"
                          ],
                          "properties": {
                            "intake": {
                              "type": "object",
                              "description": "A GridForge intake document. GET /v1/intake/template for the blank form with every field, or supply a sparse one — anything absent is filled from library defaults and reported as an assumption. Optional hall.occupied_positions (a non-negative whole number, or {value, evidence, note, source}; E5 when you supply it, never higher) is the number of rack position...",
                              "additionalProperties": true
                            },
                            "objective": {
                              "type": "string",
                              "enum": [
                                "max_compute",
                                "min_cost"
                              ],
                              "default": "max_compute",
                              "description": "What the recommendation optimises for."
                            },
                            "format": {
                              "type": "string",
                              "enum": [
                                "json",
                                "md"
                              ],
                              "default": "json"
                            },
                            "grid_queue_region": {
                              "type": "string",
                              "enum": [
                                "CAISO",
                                "ERCOT"
                              ],
                              "description": "Optional. Which of LBNL's US regions the measured queue statistic in grid_queue_context is drawn from; omit for the pooled US figure. Context only: it changes no number and no date."
                            },
                            "electricity_price_state": {
                              "type": "string",
                              "enum": [
                                "Alabama",
                                "Alaska"
                              ],
                              "description": "Optional. Which US state's published average electricity price retail_price_context is drawn from; omit for the US average. Context only: it changes no price and no cost."
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    }
                  ],
                  "mcp": {
                    "endpoint": "/mcp",
                    "protocol": "jsonrpc-2.0",
                    "protocolVersion": "2026-11-27",
                    "tools": [
                      {
                        "name": "gridforge_qualify",
                        "description": "Free. Up to seven numbers about an existing air-cooled hall in (at least three; each one you leave out is an assumption named in the answer), one answer out: which physical constraint binds first when you try to deploy AI racks in it, how many racks fit as found, and which item sets the time to power (labelled 'assumed lead time, not a date' when that item's...",
                        "inputSchema": {
                          "type": "object",
                          "description": "Seven figures about one air-cooled hall, and some options. Send at least three of these seven figures; each one you omit is an assumption named in the answer (library default, listed under intake.gaps and, with the way you left it out, under figures_not_supplied). Fewer than three is refused with 422, and no one figure is required: any three are enough. A fi...",
                          "properties": {
                            "contracted_MW": {
                              "type": "number",
                              "description": "Contracted grid capacity, MW."
                            },
                            "current_site_peak_MW": {
                              "type": "number",
                              "description": "Current site peak demand, MW."
                            },
                            "current_it_load_MW": {
                              "type": "number",
                              "description": "Current IT load, MW."
                            },
                            "busway_ampacity_A": {
                              "type": "number",
                              "description": "Installed busway ampacity, A."
                            },
                            "tapoff_max_A": {
                              "type": "number",
                              "description": "Largest installed tap-off rating, A."
                            },
                            "plant_supply_C": {
                              "type": "number",
                              "description": "Chilled-water design supply temperature, °C."
                            },
                            "positions_available": {
                              "type": "integer",
                              "description": "Rack positions that can be released."
                            },
                            "firm_capacity_MVA": {
                              "type": "number",
                              "description": "Optional. Firm capacity of the grid connection, MVA, sent as a plain number. It is a real input: a value below the connection the engine would otherwise derive lowers the firm-supply headroom. Omit it (and send contracted_MW) and the engine derives one from contracted_MW, records it as an assumption (E0) that is not supplied, and adds a required grid.firm_ca..."
                            },
                            "platform": {
                              "type": "string",
                              "enum": [
                                "gb200_nvl72",
                                "gb300_nvl72"
                              ],
                              "default": "gb300_nvl72",
                              "description": "Optional. The rack platform the hall is tested against (GET /v1/platforms lists them). It sets the per-rack electrical and thermal load, so it changes the result. An id the library does not carry is refused with 422."
                            },
                            "objective": {
                              "type": "string",
                              "enum": [
                                "max_compute",
                                "min_cost"
                              ],
                              "default": "max_compute",
                              "description": "What the recommendation optimises for."
                            },
                            "assumed_fields": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "contracted_MW",
                                  "current_site_peak_MW"
                                ]
                              },
                              "uniqueItems": true,
                              "maxItems": 7,
                              "description": "Optional. Declares which of the figures above you are sending as ASSUMPTIONS rather than as this hall's own data, for example values copied from a reference template. Each entry must be one of the seven figures (contracted_MW, current_site_peak_MW, current_it_load_MW, busway_ampacity_A, tapoff_max_A, plant_supply_C, positions_available), named at most once, ..."
                            },
                            "client": {
                              "type": "string",
                              "description": "Optional. Your organisation's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "reference": {
                              "type": "string",
                              "description": "Optional. Your own reference for this hall or request. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "site_name": {
                              "type": "string",
                              "description": "Optional. The site's name. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "metro": {
                              "type": "string",
                              "description": "Optional. The metro area. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "country": {
                              "type": "string",
                              "description": "Optional. The country. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            },
                            "hall_id": {
                              "type": "string",
                              "description": "Optional. The hall's identifier. A label for your own records: the qualifier writes it into the intake it builds and it changes no figure in the result."
                            }
                          },
                          "additionalProperties": false
                        },
                        "_meta": {
                          "gridforge/units": 0,
                          "gridforge/tier": "public",
                          "gridforge/endpoint": "/v1/qualify"
                        }
                      },
                      {
                        "name": "gridforge_estimate",
                        "description": "Free, no API key, never metered. What would a call cost? Name an endpoint (and, for the portfolio, how many halls) and get the units, the unit price and the cost in euro cents BEFORE spending anything. With an API key it also says whether the call fits what is left of the key's allowance or cap. Use it before any paid tool, especially in a loop.",
                        "inputSchema": {
                          "type": "object",
                          "required": [
                            "endpoint"
                          ],
                          "properties": {
                            "endpoint": {
                              "type": "string",
                              "description": "The engine route to price, e.g. /v1/study."
                            },
                            "hall_count": {
                              "type": "integer",
                              "minimum": 1,
                              "description": "Halls in a /v1/portfolio request (one unit each). A portfolio request ranks at most 50 halls: a larger hall_count is refused with 422, as the request would be."
                            },
                            "body": {
                              "type": "object",
                              "additionalProperties": true,
                              "description": "Optional: the request body you intend to send; the units are read from it exactly as the meter would."
                            }
                          },
                          "additionalProperties": false
                        },
                        "_meta": {
                          "gridforge/units": 0,
                          "gridforge/tier": "public",
                          "gridforge/endpoint": "/v1/estimate"
                        }
                      }
                    ]
                  },
                  "auth": {
                    "header": "X-API-Key",
                    "note": "gridforge_qualify and gridforge_estimate are free and need no key. Everything else meters."
                  },
                  "payg": {
                    "note": "Live unit rate, currency and billing rule are served dynamically at GET /v1/version."
                  },
                  "rate_card": [
                    {
                      "endpoint": "/mcp",
                      "units": 0,
                      "tool": null
                    },
                    {
                      "endpoint": "/v1/bids",
                      "units": 2,
                      "tool": "gridforge_bids"
                    },
                    {
                      "endpoint": "/v1/calibration",
                      "units": 0,
                      "tool": null
                    }
                  ],
                  "evidence_note": "Every numeric field in a response carries an evidence class (E0 assumed … E7 observed in operation) and a provenance digest. An agent consuming these must not present an E0 or E1 figure as a property of the physical asset. The calibration block states how far this engine has been reconciled against site data; where it says uncalibrated, it means uncalibrated..."
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/platforms": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "rackLibrary",
        "summary": "The rack library (the engine's platform library), short form.",
        "description": "The platforms in the library: id, name, status, rack_kW, gpus_per_rack. The figures are taken from the cited sources and held in the library as assumptions with bands (one entry is a generic archetype with no manufacturer); none is a measurement. Platforms whose manufacturer has not published a rack power are absent by design and listed under `deliberately_absent` with the reason; no rack power is estimated for them. The full set of figures with sources is the site's /reference/platforms.json. Free, no key.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "security": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "platforms",
                    "deliberately_absent",
                    "note",
                    "schema_version"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The engine's API schema id, added to every JSON object response."
                    },
                    "platforms": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "rack_kW": {
                            "type": "number"
                          },
                          "gpus_per_rack": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "deliberately_absent": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "platforms": [
                    {
                      "id": "gb200_nvl72",
                      "name": "NVIDIA GB200 NVL72",
                      "status": "shipping",
                      "rack_kW": 132,
                      "gpus_per_rack": 72
                    },
                    {
                      "id": "gb300_nvl72",
                      "name": "NVIDIA GB300 NVL72",
                      "status": "shipping",
                      "rack_kW": 135,
                      "gpus_per_rack": 72
                    },
                    {
                      "id": "generic_dlc_50",
                      "name": "Generic DLC server rack, 50 kW",
                      "status": "shipping",
                      "rack_kW": 50,
                      "gpus_per_rack": 32
                    }
                  ],
                  "deliberately_absent": {
                    "vr200_nvl144": "NVIDIA has not published rack power. Third-party estimates 190-230 kW are unverified.",
                    "rubin_ultra_nvl576": "~600 kW is a stated target from GTC reporting, not a specification.",
                    "amd_helios_mi450": "AMD has not published rack-level power for MI450/MI455X."
                  },
                  "note": "Platforms whose rack power the manufacturer has not published are absent by design. An invented number in a capacity study is how an engineering reputation ends."
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/intake/template": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "intakeTemplate",
        "summary": "The blank intake document with every field.",
        "description": "The form a sparse intake is completed from: any field left out of a request is filled from library defaults and reported as an assumption in the response. Free, no key.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "security": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "project",
                    "scenarios",
                    "grid",
                    "lv",
                    "hall",
                    "thermal",
                    "transformers",
                    "ups",
                    "site",
                    "compute",
                    "economics",
                    "schema_version"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The engine's API schema id, added to every JSON object response."
                    },
                    "project": {},
                    "scenarios": {},
                    "grid": {},
                    "lv": {},
                    "hall": {},
                    "thermal": {},
                    "transformers": {},
                    "ups": {},
                    "site": {},
                    "compute": {},
                    "economics": {}
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "project": {
                    "client": "",
                    "reference": "",
                    "objective": "max_compute"
                  },
                  "scenarios": [
                    "retained_air",
                    "rdhx",
                    "hybrid_dlc"
                  ],
                  "grid": {
                    "firm_capacity_MVA": null,
                    "contracted_MW": null,
                    "current_site_peak_MW": null,
                    "current_it_load_MW": null,
                    "power_factor": null
                  },
                  "lv": {
                    "busway_ampacity_A": null,
                    "tapoff_max_A": null,
                    "existing_busway_load_kW": null,
                    "voltage_V": null,
                    "phases": null,
                    "busway_runs": null,
                    "busway_utilisation_limit": null
                  },
                  "hall": {
                    "floor_loading_kPa": null,
                    "positions_available": null,
                    "occupied_positions": null,
                    "net_white_space_m2": null,
                    "aisle_pitch_m": null,
                    "containment": null,
                    "floor_type": null,
                    "build_year": null
                  },
                  "thermal": {
                    "plant": {
                      "chilled_water_capacity_kW": null,
                      "existing_non_it_heat_kW": null,
                      "design_supply_C": null,
                      "pump_flow_capacity_l_per_min": null,
                      "existing_flow_l_per_min": null,
                      "design_return_C": null,
                      "available_head_kPa": null,
                      "free_cooling_hours_per_year": null,
                      "dry_cooler_capacity_kW": null,
                      "dry_cooler_approach_K": null
                    },
                    "residual_air_capacity_kW_per_rack": null,
                    "tcs_target_supply_C": null,
                    "cdus": null,
                    "rdhx": {
                      "capacity_kW_per_rack": null
                    },
                    "cdu_approach_K": null
                  },
                  "transformers": [],
                  "ups": [],
                  "site": {
                    "design_drybulb_C": null
                  },
                  "compute": {
                    "utilisation": null,
                    "platform": null
                  },
                  "economics": {
                    "electricity_eur_per_MWh": null,
                    "horizon_years": null,
                    "discount_rate": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/calibration": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "calibration",
        "summary": "How far the model has been reconciled against instrumented sites.",
        "description": "The accuracy record, public precisely because the answer can be \"none\": `state` is uncalibrated, indicative or calibrated, with the counts behind it (observations, sites, halls, outputs asserted and outputs with site observations) and a `policy`. Only the published ledger is read; an observation a client supplied never reaches it. If the ledger fails its integrity check the route answers 503 with state \"unavailable\" rather than an empty or partial record. Free, no key.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "security": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CalibrationBlock"
                    },
                    {
                      "type": "object",
                      "required": [
                        "ledger_sources",
                        "policy",
                        "schema_version"
                      ],
                      "properties": {
                        "schema_version": {
                          "type": "string",
                          "description": "The engine's API schema id, added to every JSON object response."
                        },
                        "ledger_sources": {
                          "type": "integer"
                        },
                        "policy": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  ]
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "state": "uncalibrated",
                  "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 20 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differen...",
                  "observations": 0,
                  "observations_total": 0,
                  "observations_without_source_ref": 0,
                  "sites": 0,
                  "halls": 0,
                  "keys_asserted": 20,
                  "keys_with_site_observations": 0,
                  "keys_calibrated": 0,
                  "coverage": 0,
                  "keys": [],
                  "uncalibrated_keys": [
                    "btm.firm_MW",
                    "constraint.architecture_capability.racks",
                    "constraint.busway_ampacity.racks"
                  ],
                  "ledger_sources": 1,
                  "policy": "An observation must be E5 or above — site data, not another run of our own model — and client site data never enters the published ledger."
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "503": {
            "description": "The calibration ledger failed its integrity check and is not being served.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/calibration/residuals": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "calibrationResiduals",
        "summary": "Aggregate residual statistics over approved observation records only.",
        "description": "Per subsystem and per variable: how many approved observations and distinct sites there are, the state, and how many more are still needed. A draft or rejected record changes nothing here, not even a count; no site, hall, record id, free text or measurement is in the payload. With nothing approved it says `uncalibrated` with `n_records` 0. A store whose hash chain is broken answers 503, never an empty or partial answer. Free, no key.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "free"
        ],
        "x-gridforge-units": 0,
        "security": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema",
                    "state",
                    "n_records",
                    "n_sites",
                    "headline",
                    "requirements",
                    "subsystem_states",
                    "subsystems",
                    "withheld_variables",
                    "note",
                    "schema_version"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The engine's API schema id, added to every JSON object response."
                    },
                    "schema": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    },
                    "n_records": {
                      "type": "integer"
                    },
                    "n_sites": {
                      "type": "integer"
                    },
                    "headline": {
                      "type": "string"
                    },
                    "requirements": {
                      "type": "object"
                    },
                    "subsystem_states": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "subsystems": {
                      "type": "object"
                    },
                    "withheld_variables": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Variables kept out of the public report."
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "schema": "gridforge.calibration.residuals.public/1",
                  "state": "uncalibrated",
                  "n_records": 0,
                  "n_sites": 0,
                  "headline": "Calibration is reported per subsystem; no single accuracy figure is produced. envelope: UNCALIBRATED (n=0). grid: UNCALIBRATED (n=0). power: UNCALIBRATED (n=0). thermal: UNCALIBRATED (n=0).",
                  "requirements": {
                    "min_approved_observations_per_variable": 10,
                    "min_distinct_sites_per_variable": 3,
                    "low_quality_counts_toward_calibration": false
                  },
                  "subsystem_states": {
                    "envelope": "UNCALIBRATED",
                    "grid": "UNCALIBRATED",
                    "power": "UNCALIBRATED",
                    "thermal": "UNCALIBRATED"
                  },
                  "subsystems": {
                    "envelope": {
                      "state": "UNCALIBRATED",
                      "approved_observations": 0,
                      "distinct_sites": 0,
                      "statement": "envelope: UNCALIBRATED (n=0 approved observations). Figures are modelled; accuracy is unquantified.",
                      "variables": {
                        "facility_load_kW": {
                          "unit": "kW",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        },
                        "it_load_kW": {
                          "unit": "kW",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        },
                        "racks": {
                          "unit": "racks",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        }
                      }
                    },
                    "grid": {
                      "state": "UNCALIBRATED",
                      "approved_observations": 0,
                      "distinct_sites": 0,
                      "statement": "grid: UNCALIBRATED (n=0 approved observations). Figures are modelled; accuracy is unquantified.",
                      "variables": {
                        "grid_firm_MW": {
                          "unit": "MW",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        }
                      }
                    },
                    "power": {
                      "state": "UNCALIBRATED",
                      "approved_observations": 0,
                      "distinct_sites": 0,
                      "statement": "power: UNCALIBRATED (n=0 approved observations). Figures are modelled; accuracy is unquantified.",
                      "variables": {
                        "btm_firm_MW": {
                          "unit": "MW",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        },
                        "transformer_load_kVA": {
                          "unit": "kVA",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        },
                        "ups_load_kW": {
                          "unit": "kW",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        }
                      }
                    },
                    "thermal": {
                      "state": "UNCALIBRATED",
                      "approved_observations": 0,
                      "distinct_sites": 0,
                      "statement": "thermal: UNCALIBRATED (n=0 approved observations). Figures are modelled; accuracy is unquantified.",
                      "variables": {
                        "coolant_flow_lps": {
                          "unit": "L/s",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        },
                        "coolant_supply_temp_C": {
                          "unit": "degC",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        },
                        "heat_rejection_kW": {
                          "unit": "kW",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        },
                        "pue": {
                          "unit": "ratio",
                          "state": "UNCALIBRATED",
                          "approved_observations": 0,
                          "counting_toward_calibration": 0,
                          "distinct_sites": 0,
                          "still_needed": {
                            "observations": 10,
                            "sites": 3
                          }
                        }
                      }
                    }
                  },
                  "withheld_variables": [
                    "capex_total_eur",
                    "weeks_to_full"
                  ],
                  "note": "Aggregate statistics over human-approved site observations only. Errors are in each variable's own unit and are never combined into one accuracy figure. A measured-versus-predicted residual describes this engine's past error at the contributing sites; it is not a guarantee for any other site. Capex and schedule residuals are withheld from the public report, ..."
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "503": {
            "description": "The calibration record store failed its integrity check and is not being served.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/usage": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "get": {
        "operationId": "usage",
        "summary": "This key's metered usage for the current UTC month.",
        "description": "The statement for the key that is sent: units used this month, by endpoint and by scope, the monthly quota and units remaining, and (pay-as-you-go keys) the accrued amount in cents. Answers 401 without a key. It is never itself metered.",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "metered"
        ],
        "x-gridforge-units": 0,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "account",
                    "key",
                    "key_id",
                    "scope",
                    "expires",
                    "month",
                    "units",
                    "account_units",
                    "by_scope",
                    "calls",
                    "by_endpoint",
                    "monthly_quota",
                    "units_remaining",
                    "unit_rates",
                    "durable",
                    "note",
                    "ledger_durable",
                    "schema_version"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The engine's API schema id, added to every JSON object response."
                    },
                    "account": {
                      "type": "string"
                    },
                    "key": {
                      "type": "string",
                      "description": "The key, masked."
                    },
                    "key_id": {
                      "type": "string"
                    },
                    "scope": {
                      "type": "string",
                      "description": "trial (free allowance), payg, or a plan scope."
                    },
                    "expires": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "month": {
                      "type": "string"
                    },
                    "units": {
                      "type": "integer",
                      "description": "Net units used this month in this key's own scope."
                    },
                    "account_units": {
                      "type": "integer"
                    },
                    "by_scope": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      }
                    },
                    "calls": {
                      "type": "integer"
                    },
                    "by_endpoint": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      }
                    },
                    "monthly_quota": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "units_remaining": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "unit_rates": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      },
                      "description": "Units per call by route; a route with weight 0 is free."
                    },
                    "durable": {
                      "type": "boolean"
                    },
                    "note": {
                      "type": "string"
                    },
                    "ledger_durable": {
                      "type": "boolean"
                    },
                    "unit_price_cents": {
                      "type": "integer",
                      "description": "Pay-as-you-go keys only."
                    },
                    "accrued_cents": {
                      "type": "integer",
                      "description": "Pay-as-you-go keys only: units used this month times the unit price."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "schema_version": "gridforge/api/1",
                  "account": "reference-synthetic",
                  "key": "gfk1.…synthetic",
                  "key_id": "",
                  "scope": "client",
                  "expires": null,
                  "month": "2026-11",
                  "units": 35,
                  "account_units": 35,
                  "by_scope": {
                    "client": 35
                  },
                  "calls": 13,
                  "by_endpoint": {
                    "/v1/bids": 2,
                    "/v1/compare": 1,
                    "/v1/deck": 3,
                    "/v1/diff": 2,
                    "/v1/portfolio": 1,
                    "/v1/power/assess": 5,
                    "/v1/power/deploy/assess": 5,
                    "/v1/power/deploy/bids": 2,
                    "/v1/power/deploy/spec": 3,
                    "/v1/proposal": 2,
                    "/v1/screen": 1,
                    "/v1/spec": 3,
                    "/v1/study": 5
                  },
                  "monthly_quota": 1000,
                  "units_remaining": 965,
                  "unit_rates": {
                    "/mcp": 0,
                    "/v1/bids": 2,
                    "/v1/calibration": 0,
                    "/v1/calibration/residuals": 0,
                    "/v1/compare": 1,
                    "/v1/deck": 3,
                    "/v1/diff": 2,
                    "/v1/estimate": 0,
                    "/v1/portfolio": 1,
                    "/v1/power/assess": 5,
                    "/v1/power/deploy/assess": 5,
                    "/v1/power/deploy/bids": 2,
                    "/v1/power/deploy/spec": 3,
                    "/v1/proposal": 2,
                    "/v1/qualify": 0,
                    "/v1/screen": 1,
                    "/v1/spec": 3,
                    "/v1/study": 5,
                    "/v1/tools": 0,
                    "/v1/usage": 0
                  },
                  "durable": false,
                  "note": "Usage is held in memory on this instance and is not durable. Set GRIDFORGE_USAGE_FILE, backed by a mounted volume, before billing against it.",
                  "ledger_durable": false
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "A refusal: 400, the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit; 401, a metered route was called without a key, or with one the engine does not accept; 402, the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry; 409, the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready); 413, the body is larger than 512 KiB; 415, the body was declared as anything other than application/json; 422, the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved; 429, the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version); 500, the engine failed on a valid request; the charge is refunded; 503, paid endpoints are not configured on that deployment, or a charge could not be recorded durably.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "servers": [
        {
          "url": "https://gridforge-engine.fly.dev",
          "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
        }
      ],
      "post": {
        "operationId": "mcp",
        "summary": "Model Context Protocol over JSON-RPC 2.0.",
        "description": "One POST endpoint, protocol version 2025-06-18. initialize, tools/list and tools/call. The transport is open: 14 tools are listed and each keeps its own tier, so gridforge_qualify and gridforge_estimate answer without a key and every other tool is refused with JSON-RPC error -32001 until a key is sent. A batch holds at most 10 messages. The Idempotency-Key header applies to tools/call. The tool names, schemas and unit weights are the operations in this document (see x-gridforge-mcp-tool).",
        "servers": [
          {
            "url": "https://gridforge-engine.fly.dev",
            "description": "The GridForge capacity and time-to-power engine (/v1/*, /health, /mcp)."
          }
        ],
        "tags": [
          "mcp"
        ],
        "x-gridforge-units": 0,
        "security": [
          {},
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Send an Idempotency-Key header (at most 150 characters) on a POST, or on an /mcp tools/call. A longer key is refused: HTTP 400 on REST; over /mcp, JSON-RPC error -32602 with data.status 400 inside an HTTP 200. It takes effect only on a request that carries a valid API key, and never on /v1/estimate: a keyless call to a free operation is not deduplicated. The key is scoped to your account and to the endpoint (over /mcp, the tool's endpoint), so the same string on another endpoint is a different request. For 24 hours after the first successful answer, a retry with the same key and the same body is answered with that first result and is not charged again; the replay carries X-GridForge-Idempotent-Replay: true (also sent as Idempotent-Replay: true) and its units are 0. \"The same body\" is exact: on REST it is the same bytes, so a re-indented or re-ordered JSON body is a different body; over /mcp it is the same arguments in any key order. The same key with a different body is refused and nothing runs: HTTP 422 on REST; over /mcp, JSON-RPC error -32602 with data.status 422 inside an HTTP 200. In an /mcp batch each message is keyed as <key>#<position in the batch>; a batch that mixes replays with new messages carries X-GridForge-Idempotent-Replay: true at the HTTP level, and X-GridForge-Units is the units actually charged for its new messages, not 0. Only a successful answer is remembered: a refused or failed call was refunded, so retrying it runs it afresh. If the stored answer has been evicted from the engine's memory, or the engine has restarted, the engine recomputes it and still does not charge twice only when it keeps its ledger durably (GET /v1/version reports metering.ledger_durable: true; keys with a spending cap or a free allowance are refused with 503 without one). Without a durable ledger such a retry is a new, charged request. A recomputed answer is the same except for date-stamped fields (a generated date, provenance.report_date) and the code digest if the engine was redeployed inside the window. A replay still counts toward the rate limit. After 24 hours the key is forgotten and a repeat is a new, chargeable request.",
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "x-request-id",
            "in": "header",
            "required": false,
            "description": "Optional caller correlation id (at most 64 ASCII characters of letters, digits and . _ : -) echoed in logs and error reports.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "required": [
                      "jsonrpc",
                      "method"
                    ],
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "const": "2.0"
                      },
                      "id": {
                        "type": [
                          "string",
                          "integer",
                          "null"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "description": "initialize, tools/list, tools/call, ping, or a notification."
                      },
                      "params": {
                        "type": "object"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "required": [
                        "jsonrpc",
                        "method"
                      ],
                      "properties": {
                        "jsonrpc": {
                          "type": "string",
                          "const": "2.0"
                        },
                        "id": {
                          "type": [
                            "string",
                            "integer",
                            "null"
                          ]
                        },
                        "method": {
                          "type": "string",
                          "description": "initialize, tools/list, tools/call, ping, or a notification."
                        },
                        "params": {
                          "type": "object"
                        }
                      }
                    }
                  }
                ]
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/call",
                "params": {
                  "name": "gridforge_qualify",
                  "arguments": {
                    "contracted_MW": 12,
                    "firm_capacity_MVA": 14,
                    "current_site_peak_MW": 7.4,
                    "current_it_load_MW": 4.9,
                    "busway_ampacity_A": 400,
                    "tapoff_max_A": 63,
                    "plant_supply_C": 6,
                    "positions_available": 180,
                    "platform": "gb300_nvl72",
                    "objective": "max_compute",
                    "client": "Reference Project (synthetic)",
                    "reference": "REF-EU-01/DH-02",
                    "site_name": "Reference Colocation Campus",
                    "metro": "Frankfurt",
                    "country": "DE",
                    "hall_id": "DH-02"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON-RPC response, or an array of them for a batch. A tool's refusal is a JSON-RPC error object inside a 200.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": [
                    "object",
                    "array"
                  ]
                },
                "example": {
                  "jsonrpc": "2.0",
                  "id": 1,
                  "result": {
                    "content": [
                      {
                        "type": "text",
                        "text": "0 racks as found, 28 after relief. Binds first on Rack feed / tap-off rating. No defensible date: not declared: transformers, UPS (reliefs they would need are neither priced nor timed). Calibration: uncalibrated."
                      }
                    ],
                    "structuredContent": {
                      "platform": {
                        "id": "gb300_nvl72",
                        "name": "NVIDIA GB300 NVL72",
                        "rack_kW": {
                          "value": 135,
                          "low": 132,
                          "high": 142,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "GB300 NVL72 rack TDP",
                          "model": "input@0.1",
                          "digest": "e6476e7cd728"
                        },
                        "gpus_per_rack": 72
                      },
                      "as_found": {
                        "racks": 0,
                        "racks_evidence": "E0",
                        "it_load_kW": {
                          "value": 0,
                          "low": 0,
                          "high": 0,
                          "unit": "kW",
                          "evidence": "E0_ASSUMPTION",
                          "label": "deployable IT load",
                          "model": "envelope.it_load@0.1",
                          "digest": "7878bb4e6931"
                        },
                        "binding_constraint": "Rack feed / tap-off rating",
                        "domain": "electrical",
                        "basis": "platform needs 205 [174–236] A (E0) per rack; installed tap-offs rated 63 A (E5). The tap-off rating is compared at 100% of its rating, with no continuous-load derating (the busway is derated to 0.8)"
                      },
                      "after_relief": {
                        "racks": 28,
                        "racks_evidence": "E0",
                        "architecture": "Full DLC, grid only",
                        "then_binds_on": "Firm supply (grid import + behind-the-meter)",
                        "sets_the_date": null,
                        "sets_the_date_reason": "No defensible date: not declared: transformers, UPS (reliefs they would need are neither priced nor timed).",
                        "date_basis": "none",
                        "date_evidence_class": null,
                        "date_binding_item": null,
                        "date_label": "no date: a lead time on the path is missing"
                      },
                      "first_three_constraints": [
                        {
                          "name": "Rack feed / tap-off rating",
                          "domain": "electrical",
                          "relief": "Higher-rated tap-off units (and busway if ampacity does not allow)"
                        },
                        {
                          "name": "Residual air load removal per rack",
                          "domain": "thermal",
                          "relief": "Add in-row cooling or rear-door heat exchangers for the residual air load"
                        }
                      ],
                      "intake": {
                        "completeness": 0.29,
                        "required_inputs_missing": 4,
                        "can_issue_a_study": false,
                        "gaps": [
                          {
                            "path": "hall.net_white_space_m2",
                            "input": "Net white space",
                            "unit": "m2",
                            "required": false,
                            "assumed": "2,000 [1,400–2,600] m2 (E0)",
                            "why_it_binds": "Caps rack count where positions are not yet counted.",
                            "how_to_get_it": "Floor plan."
                          },
                          {
                            "path": "hall.floor_loading_kPa",
                            "input": "Hall design floor loading",
                            "unit": "kPa",
                            "required": true,
                            "assumed": "12 [8–15] kPa (E0)",
                            "why_it_binds": "A 1.4 t rack against a 12 kPa design is a gate, not a margin.",
                            "how_to_get_it": "Structural record drawings; a survey if the building changed hands."
                          }
                        ],
                        "warnings": [
                          "Busway: neither hall.occupied_positions nor hall.rack_positions was supplied, so the occupied positions are an assumption (E0) from the library default total of 400 positions, not a count of anything in your hall. Reading that total less your 180 free positions as occupied (220 positions), at their 8 kW design density, would draw 1,760 kW, more than the 1,29...",
                          "project.reference names 'REF-EU-01'/'DH-02', but the document's site.id and hall.id are 'SITE-1'/'DH-02'. The deliverable carries both, so check which hall this intake describes."
                        ],
                        "recommended_engagement": "4 required inputs are missing. That is too thin for a full Capacity & Density Envelope Study yet. The next step is the Density Screen: it names the binding constraint and lists every input still needed, and its fee credits against the Capacity & Density Envelope Study when the data arrives."
                      },
                      "calibration": {
                        "state": "uncalibrated",
                        "statement": "Model accuracy against instrumented sites has not been established: 0 reconciled observations across 0 sites, covering 0 of 3 model outputs. Every figure in this report is modelled. The uncertainty ranges shown come from input uncertainty propagated through the model, not from the difference between this engine's predictions and site data — no such differenc...",
                        "observations": 0,
                        "observations_total": 0,
                        "observations_without_source_ref": 0,
                        "sites": 0,
                        "halls": 0,
                        "keys_asserted": 3,
                        "keys_with_site_observations": 0,
                        "keys_calibrated": 0,
                        "coverage": 0,
                        "keys": [],
                        "uncalibrated_keys": [
                          "constraint.rack_feed_tapoff.racks",
                          "envelope.racks"
                        ]
                      },
                      "notice": "Directional screening read. Modelled from the inputs supplied, against library defaults for everything not supplied. It is not a bankable number, not a design, and not a measurement of this asset. Capital cost, programme duration, the full constraint ladder and the scenario comparison are part of the paid engagement.",
                      "figures_not_supplied": []
                    },
                    "isError": false
                  }
                }
              }
            }
          },
          "202": {
            "description": "Accepted: the request held only notifications, so there is no body."
          },
          "400": {
            "description": "Not a valid JSON-RPC request, an empty batch, or a batch over the limit.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or API key not recognised, expired, or revoked.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "402": {
            "description": "Monthly free allowance, prepaid credit balance, spend cap, or plan quota exhausted. Not charged; do not retry without topping up or raising cap.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error402"
                }
              }
            }
          },
          "409": {
            "description": "State or readiness conflict (for example require_rfq_ready requested on an architecture with unresolved readiness gates).",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error409"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable request input, plausibility bound violation, or Idempotency-Key reused with a different request body. Nothing solved and nothing charged.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error422"
                }
              }
            }
          },
          "429": {
            "description": "Per-caller request rate limit exceeded (counted per IPv4 or IPv6 /64 + /48 window). Respect RateLimit-Reset / Retry-After before retrying.",
            "headers": {
              "x-request-id": {
                "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
                "schema": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "X-GridForge-Units": {
                "description": "Units this request was weighted at (0 on an idempotent replay).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Month": {
                "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Units-Remaining": {
                "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Charge-Cents": {
                "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Key-Expires": {
                "description": "Present when the key has an expiry date.",
                "schema": {
                  "type": "string"
                }
              },
              "X-GridForge-Idempotent-Replay": {
                "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the current rate-limit window resets.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "Deprecation": {
                "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
                "schema": {
                  "type": "string"
                }
              },
              "Sunset": {
                "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error429"
                }
              }
            }
          },
          "default": {
            "description": "The HTTP-level refusals listed under the other operations (413, 415, 429).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "headers": {
      "x-request-id": {
        "description": "Correlation identifier for this request, echoed or generated for tracing and error diagnostics.",
        "schema": {
          "type": "string",
          "maxLength": 64
        }
      },
      "X-GridForge-Units": {
        "description": "Units this request was weighted at (0 on an idempotent replay).",
        "schema": {
          "type": "string"
        }
      },
      "X-GridForge-Units-Month": {
        "description": "Units used so far this UTC month, counted against this key's own scope (free allowance, pay-as-you-go cap or plan).",
        "schema": {
          "type": "string"
        }
      },
      "X-GridForge-Units-Remaining": {
        "description": "Units left under the cap or plan allowance for the month. Present only when the key has one.",
        "schema": {
          "type": "string"
        }
      },
      "X-GridForge-Charge-Cents": {
        "description": "Pay-as-you-go keys only: what this request adds to the invoice, in cents.",
        "schema": {
          "type": "string"
        }
      },
      "X-GridForge-Key-Expires": {
        "description": "Present when the key has an expiry date.",
        "schema": {
          "type": "string"
        }
      },
      "X-GridForge-Idempotent-Replay": {
        "description": "\"true\" when the response is a replay of an earlier request with the same Idempotency-Key. The engine also sends the same value as Idempotent-Replay.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Limit": {
        "description": "Per-window request ceiling (see rate_limit_per_minute at GET /v1/version).",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "RateLimit-Remaining": {
        "description": "Requests remaining in the current window.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until the current rate-limit window resets.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "Deprecation": {
        "description": "RFC 9745 structured deprecation timestamp (@<unix-epoch>) present only when an operation is deprecated.",
        "schema": {
          "type": "string"
        }
      },
      "Sunset": {
        "description": "RFC 8594 HTTP-date indicating the earliest removal date (at least 90 days after deprecation), present only when scheduled.",
        "schema": {
          "type": "string"
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "The key goes in X-API-Key; the engine also accepts the same key as Authorization: Bearer <key>."
      },
      "SupabaseSession": {
        "type": "http",
        "scheme": "bearer",
        "description": "The access token of a signed-in session whose email address is confirmed. The caller's address is read from the token, never from a request."
      }
    },
    "schemas": {
      "RegistryError": {
        "type": "object",
        "required": [
          "ok",
          "error"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "description": "A short stable code for the refusal, for example name_taken, last_owner, superseded, invalid_reference."
          },
          "currentId": {
            "type": "string",
            "format": "uuid",
            "description": "On a refused correction: the figure that replaced the one named."
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Organisation": {
        "type": "object",
        "required": [
          "id",
          "name",
          "role",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "billing",
              "editor",
              "viewer"
            ],
            "description": "The caller's role in it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "The caller's own membership, the id to pass to DELETE .../members?id= to leave."
          },
          "addedBy": {
            "type": "string",
            "description": "Who added the caller. There is no acceptance step: an owner adds an address and its holder is a member when they next sign in."
          },
          "addedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "An organisation is a group of people who share a registry. It is NOT a billing entity and is unrelated to a subscription's seats."
      },
      "Member": {
        "type": "object",
        "required": [
          "id",
          "email",
          "role",
          "addedBy",
          "addedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "billing",
              "editor",
              "viewer"
            ]
          },
          "addedBy": {
            "type": "string"
          },
          "addedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Hall": {
        "type": "object",
        "required": [
          "id",
          "siteId",
          "label",
          "createdBy",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Site": {
        "type": "object",
        "required": [
          "id",
          "orgId",
          "name",
          "country",
          "dataOrigin"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "orgId": {
            "type": "string",
            "format": "uuid"
          },
          "orgName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Z]{2}$"
          },
          "dataOrigin": {
            "type": "string",
            "enum": [
              "production",
              "test",
              "synthetic"
            ],
            "description": "What KIND of data the site holds, declared by whoever created it and fixed once written. It is a declaration, not verified. A project attached to a test or synthetic site is kept out of the calibration ledger."
          },
          "createdBy": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "halls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hall"
            }
          }
        }
      },
      "HallInput": {
        "type": "object",
        "required": [
          "id",
          "fieldPath",
          "value",
          "unit",
          "evidenceClass",
          "origin",
          "asOf",
          "recordedBy",
          "recordedAt",
          "supersedesId",
          "superseded",
          "source"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "fieldPath": {
            "type": "string",
            "description": "A dotted lower-case path such as grid.firm_capacity_mva."
          },
          "value": {
            "type": [
              "number",
              "string",
              "boolean",
              "null"
            ]
          },
          "unit": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidenceClass": {
            "type": "string",
            "enum": [
              "E0",
              "E1",
              "E2",
              "E3",
              "E4",
              "E5",
              "E6",
              "E7"
            ],
            "description": "As DECLARED by the recorder. The database enforces the rules between origin and class; nothing verifies that a declared class is deserved."
          },
          "origin": {
            "type": "string",
            "enum": [
              "measured",
              "observed",
              "vendor",
              "quotation",
              "modelled",
              "assumed",
              "missing"
            ],
            "description": "Where the figure came from, as declared by the recorder."
          },
          "asOf": {
            "type": "string",
            "format": "date"
          },
          "recordedBy": {
            "type": "string"
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time"
          },
          "supersedesId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "superseded": {
            "type": "boolean"
          },
          "source": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "project_evidence",
                  "intake_evidence"
                ]
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "filename": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reviewStatus": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The file's review status now, read live."
              }
            }
          }
        }
      },
      "TimelineEvent": {
        "type": "object",
        "required": [
          "occurredAt",
          "kind",
          "subject",
          "summary",
          "origin",
          "basis",
          "actor",
          "superseded",
          "sourceTable",
          "sourceId"
        ],
        "properties": {
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "kind": {
            "type": "string",
            "description": "input_recorded, project_event, supplier_date, observation or project_attached."
          },
          "subject": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "evidenceClass": {
            "type": [
              "string",
              "null"
            ]
          },
          "basis": {
            "type": "string",
            "description": "What stands behind the event, in words. Nothing appears without one."
          },
          "actor": {
            "type": "string"
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "superseded": {
            "type": "boolean"
          },
          "sourceTable": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          }
        }
      },
      "CalibrationBlock": {
        "type": "object",
        "description": "How far the engine has been reconciled against instrumented sites, carried on the responses that name it. Where `state` is uncalibrated, it means uncalibrated: the figures are modelled and their accuracy is unquantified.",
        "required": [
          "state",
          "statement"
        ],
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "uncalibrated",
              "indicative",
              "calibrated"
            ]
          },
          "statement": {
            "type": "string"
          },
          "observations": {
            "type": "integer"
          },
          "observations_total": {
            "type": "integer"
          },
          "observations_without_source_ref": {
            "type": "integer"
          },
          "sites": {
            "type": "integer"
          },
          "halls": {
            "type": "integer"
          },
          "keys_asserted": {
            "type": "integer"
          },
          "keys_with_site_observations": {
            "type": "integer"
          },
          "keys_calibrated": {
            "type": "integer"
          },
          "coverage": {
            "type": "number"
          },
          "keys": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "uncalibrated_keys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true
      },
      "AssumptionGap": {
        "type": "object",
        "description": "One input the request did not supply and what the engine assumed in its place.",
        "required": [
          "path",
          "input",
          "unit",
          "required",
          "assumed",
          "why_it_binds",
          "how_to_get_it"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "input": {
            "type": "string"
          },
          "unit": {
            "type": [
              "string",
              "null"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "assumed": {
            "type": "string",
            "description": "What the engine used instead, in words."
          },
          "why_it_binds": {
            "type": "string"
          },
          "how_to_get_it": {
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "description": "On a 402: free_allowance_exhausted, spending_cap_reached or plan_quota_exhausted."
          },
          "request_id": {
            "type": "string",
            "description": "Correlation identifier when present."
          },
          "units_required": {
            "type": "integer"
          },
          "units_used": {
            "type": "integer"
          },
          "monthly_quota": {
            "type": "integer"
          },
          "cap_units": {
            "type": "integer"
          },
          "month": {
            "type": "string"
          },
          "resets_at": {
            "type": "string",
            "format": "date-time",
            "description": "On a 402: when the allowance renews (start of next UTC month)."
          },
          "fix": {
            "type": "string",
            "description": "What to do next, in words."
          },
          "retryable": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      },
      "Error401": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          }
        ],
        "description": "401 Unauthorized — missing, unrecognised, expired, or revoked API key.",
        "example": {
          "schema_version": "gridforge/api/1",
          "error": "an API key is required for this endpoint",
          "public_endpoint": "/v1/qualify",
          "tool_schemas": "/v1/tools"
        }
      },
      "Error402": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          }
        ],
        "description": "402 Payment Required — monthly allowance, prepaid credits, or spend cap reached.",
        "example": {
          "schema_version": "gridforge/api/1",
          "error": "monthly unit allowance reached",
          "reason": "spending_cap_reached",
          "units_required": 5,
          "units_used": 25,
          "cap_units": 25,
          "retryable": false
        }
      },
      "Error409": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          }
        ],
        "description": "409 Conflict — action conflicts with current readiness or resource state.",
        "example": {
          "schema_version": "gridforge/api/1",
          "error": "'GRID + GENERATION' is not RFQ-ready; no RFQ was prepared",
          "blocking": [
            "reliability"
          ]
        }
      },
      "Error422": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          }
        ],
        "description": "422 Unprocessable Entity — invalid input figure, out-of-bounds value, or Idempotency-Key body mismatch.",
        "example": {
          "schema_version": "gridforge/api/1",
          "error": "this Idempotency-Key was already used with a different request body"
        }
      },
      "Error429": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          }
        ],
        "description": "429 Too Many Requests — per-caller rate limit exceeded.",
        "example": {
          "schema_version": "gridforge/api/1",
          "error": "rate limit exceeded",
          "limit_per_minute": 30
        }
      }
    }
  }
}