> ## Documentation Index
> Fetch the complete documentation index at: https://eddy-ac74d702.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamic operating envelopes: each customer connection's export and import limit at every interval of a time-series run, every connection at its limit at once holding the network's limits (`ss.power.envelope/1`)

> UD13: each connection (a customer's loads and DER, replaced by one element at its net power) gets, for every interval of UD3's run, an export limit and an import limit such that with every connection at its limit at once every limit the study gives holds: overvoltage, thermal and reverse flow at regulators exporting; undervoltage and thermal importing. Method: the forecast run with every connection at zero, a perturbed run for the sensitivities, an allocation rule (`equal`, or `proportional` to each connection's rating), then replays of the whole range with every connection at its envelope, tightening each interval that breaks a limit and raising each with room, until a replay is clean; the result is that replay (its extremes, headroom and binding quantity per interval). Computed ahead, not dispatched: no communications with any connection (stated on every result). `compare` replays a fixed limit per connection beside the envelopes and states where it breaks. No limit is built in: each is the study's input, a network operator's published limit. An interval whose limit is broken with every connection at zero is `unmet`; one the replays could not settle is `unsettled`, each named. A year of steps is a job. Not drawn on the map yet (`power_resultmap` refuses it by name). Refused by name: `POWER_REQUEST` (400: the body, a member the study does not take, not exactly one network source, a study missing, a value table given inline), `POWER_SETTINGS` (400: `settings` or `study` does not read, with the field), `POWER_DOCUMENT_INVALID` (400), `POWER_NETWORK_NOT_FOUND` (404), `POWER_PROFILE_NOT_FOUND` (404: a profile the network binds is not stored), `POWER_PROJECT_KIND` (422), `POWER_VALUE_TABLE` (422: a named table missing, not adopted or not in force), `POWER_CASE_NOT_FOUND`, `POWER_CASE_NOT_READ` (422), `POWER_BUSY` (429: the heavy lane is full; retry after `Retry-After`, or send `async: true`), `POWER_ENVELOPE_INVALID` (422: a limit not above zero, a direction held to no limit, crossed voltage limits, a power factor outside (0, 1], an unknown load or DER, a load in two connections, a rating missing under `proportional`, ...), `POWER_ENVELOPE_OVER_BUDGET` (422: the runs' work or the kept forecast over its budget, before anything runs), `POWER_ENVELOPE_UNEVALUABLE` (422: an inverter setting read from a value table the study was not given or that lacks it, naming the table and key). A design aid: a person reviews it before it is relied on.



## OpenAPI

````yaml openapi.json POST /v1/power.envelope
openapi: 3.1.0
info:
  description: >-
    Deterministic, content-addressed geometry + structural-FEA engine. Every
    result carries provenance (model hash, pinned solver build, params, runtime
    profile) and is reproducible byte-for-byte from its report. Identical inputs
    return the same result_key with the second call served from cache.


    Authentication: when the deployment sets SS_REQUIRE_AUTH=1, pass an API key
    in the `x-api-key` header (create keys via the admin endpoints or the
    /console app). Admin endpoints require `x-admin-token` when SS_ADMIN_TOKEN
    is set.


    Rate limits: a key may carry a request-rate limit (`limits` on its record:
    requests a minute and a burst, set by an admin at mint or through `POST
    /admin/keys/{key_hash}/limits`), and a deployment may set one for every key
    without its own (SS_KEY_RATE_DEFAULT; unset = unlimited). Past it, any `/v1`
    or `/admin` call by that key is 429 `RATE_LIMITED` with `retry-after`
    (seconds) and `x-ratelimit-limit` / `x-ratelimit-remaining` /
    `x-ratelimit-reset`; an allowed call by a limited key carries the
    `x-ratelimit-*` headers too. The limit holds per gateway replica. Other 429s
    (RESOURCE_LIMIT, SESSION_LIMIT, size caps) are not transient and carry no
    `retry-after`; the SDKs retry a 429 only when it does.


    Errors are always typed: `{"error": {"code": "INVALID_GEOMETRY" |
    "MESH_FAILED" | "SOLVE_DIVERGED" | "RESOURCE_LIMIT" | "UNKNOWN_SOLVER" |
    "UNAUTHORIZED" | "NOT_FOUND" | ..., "message": "..."}}`.
  title: Eddy API
  version: 0.1.0
servers:
  - description: the hosted engine (Sydney)
    url: https://api.eddy.engineer
  - description: a local engine (cargo run -p ss-api)
    url: http://127.0.0.1:8080
security: []
tags:
  - description: 'Eddy IAM: API keys and usage metering'
    name: admin
  - description: Health and documentation
    name: meta
  - description: >-
      Eddy PLM (L track): Teamcenter-class PLM - item masters and revisions,
      EBOMs, ECR/ECO change control with hash-chained signoffs, effectivity +
      configurations, the vault, AP242 structure interchange, the digital-thread
      certificate
    name: plm
  - description: >-
      Eddy Parts, the 3D CAD application on the native kernel: recipes, edits,
      sketches, features, sections, drawings, export.
    name: cad
  - description: 'Eddy Assemblies: assemblies and mates.'
    name: asm
  - description: 'The engine: geometry -> mesh -> FEA -> result'
    name: solve
  - description: >-
      Eddy BIM, on the BIMCraft engine (BC track): projects as content-addressed
      documents with their history, every edit a command run server-side, views,
      schedules and sheets drawn by the engine, IFC and DXF in and out, .rvt in
      behind the rvt feature, measures for the verification matrix.
    name: bim
  - description: 'Eddy Verify and Eddy B3: reports, verification, runs, blobs'
    name: provenance
  - description: >-
      Eddy Bridge (IG20): fixed kinds of job run on the customer's own vendor
      seat under the customer's licence, results back as labelled external
      results
    name: bridge
  - description: CAM.
    name: cam
  - description: Eddy Flow, the CFD application (/cfd).
    name: cfd
  - description: Circuit simulation (MNA).
    name: circuit
  - description: >-
      Eddy Surrogates: corpora, datasets, sweeps and training runs over solver
      traces.
    name: training
  - description: >-
      Eddy ProcessSim (/multisim, A track): multi-method simulation - discrete
      events, agents and stocks-and-flows on one calendar - the AnyLogic-class
      engine.
    name: multisim
  - description: >-
      Eddy Requirements (Q track): DOORS-class requirements platform - modules,
      typed traceability links, baselines, the live verification matrix, the
      authoring recorder, ReqIF interchange
    name: req
  - description: 'Eddy Redline: markup and review.'
    name: review
  - description: 'Eddy Datasets: the data plane.'
    name: data
  - description: >-
      The generative design loop's perception (J12): the design packet — every
      picture an agent needs to see a recipe or assembly, content-addressed.
    name: design
  - description: >-
      Eddy Manufacturability (MF track): a part, an assembly or an imported STEP
      body checked against a process and the shop that will make it — findings
      on the faces and parts they are about, every limit cited with its
      confidence, the rule catalogue and the seeded shop profiles.
    name: dfm
  - description: >-
      Eddy Earthing (EG track): soil surveys and layered soil fitting, the IEEE
      80 hand method, our own boundary-element solver in uniform and layered
      soil, safety (touch and step) against cited criteria, the fault current
      split, risk-based criteria, transferred potentials and hazard zones, large
      farm grids, field test plans and calibration, grid generation, reports and
      sheets - refereed by SimPEG, pyGIMLi, groundinsight and FEA; paid values
      only from adopted value tables
    name: earthing
  - description: 'Eddy Circuits: schematics, boards, the E-track projects.'
    name: eda
  - description: Eddy Fields, the electromagnetics application (/em).
    name: em
  - description: 'Eddy QuickFlow: instant previews.'
    name: preview
  - description: 'Eddy Structures, the FEA application (/fea): studies, meshing, results.'
    name: fea
  - description: >-
      Eddy Kernel, the native B-rep kernel's services: healing, clearance,
      signed distance, STEP import. The kernel's booleans, sketches, features
      and meshers are reached through the cad tag; its ledger is the K track
      (/docs/tracks/k-track), its page /docs/solvers/ss-geometry.
    name: geometry
  - description: >-
      Eddy Generation Plants (GP track): solar, wind and battery plants on
      terrain - the site's buildable area, weather documents (ERA5, NASA POWER,
      EPW, customer files, our TMY), PV yield with rows, trackers and bifacial,
      row packing with piles and blocks edited by commands, wind yield and
      wakes, noise, shadow flicker, visual impact, micro-siting, BESS sizing,
      duty and layout, the MV collector as a power network, access roads and
      civil quantities, P50 / P90 and the yield report - refereed against pvlib,
      PySAM, solarfactors, PyWake, FLORIS and windpowerlib; paid values only
      from adopted value tables; design and screening, never bankable
    name: gp
  - description: >-
      Eddy Product Graph, on ParamDB (PX track): materials and suppliers as
      documents; one dependency graph per product across every document kind —
      BOM lines and items, materials, supplier offers, studies in any solver
      domain, requirement checks — with impact before work, propagation that
      evaluates exactly the frontier, and the derivative layer (rank, tolerance)
      composed over the graph.
    name: graph
  - description: >-
      Eddy Optics (/optics, OP track): lens files, the glass catalogs, the
      vocabulary.
    name: optics
  - description: >-
      The physical-AI interchange (IX track): UsdPhysics / MJCF / URDF in, the
      USD sublayer and MJCF out, calibration of the training engines' parameters
      from the truth, the audit of their rollouts, the foreign-audit corpus
      family.
    name: interop
  - description: >-
      Eddy Knowledge: the curated engineering reference library — standards
      notes, design guides, material data and house rules that staff maintain —
      searched lexically by models and people; live bases only.
    name: knowledge
  - description: >-
      Eddy Math (X track): the MATLAB-style numeric workbench - a stated
      MATLAB-language subset evaluated as a pure function over content-addressed
      workspaces, Octave-refereed
    name: lab
  - description: >-
      Eddy AI Gateway: the Anthropic Messages shape forwarded to the
      deployment's TrueFoundry gateway (Claude on Google Cloud), the caller
      tagged, the model allowlisted per role, the tokens metered.
    name: llm
  - description: >-
      Collaboration (CO16–CO18): the project event stream, presence (who is here
      and which view — nothing finer), comment threads with anchors and
      mentions, and notifications.
    name: collab
  - description: >-
      Eddy IAM - organisations and teams (CO3): the tenancy unit projects, live
      sessions, comments, notifications and activity are scoped by. Invites by
      email bind on first sign-in.
    name: orgs
  - description: >-
      Eddy Motion (MO track): the study document on an assembly's mates, the
      multibody solve, result series, traces, interference over time, loads for
      an FEA study, mate references by stable face name.
    name: motion
  - description: >-
      Eddy ParamDB, the parametric database: the store's management surface
      (status, refs, log, objects, GC, flush, init) behind the console's ParamDB
      service.
    name: pdb
  - description: >-
      Eddy Power Systems (PW track): the network document and device libraries,
      load flow, short circuit, protection and time-current curves,
      coordination, arc flash, sizing, motor starting and harmonics - our own
      solvers, refereed by pandapower and OpenDSS; paid values only from adopted
      value tables
    name: power
  - description: Saved app documents (the console's project library)
    name: projects
  - description: >-
      Eddy Live - live co-editing (CO13): one chain per project on ParamDB,
      every edit a micro-commit with a CAS; the loser of a race gets a typed
      conflict and catches up. Zero per-app code: any registered family's
      vocabulary, or JSON Patch.
    name: live
  - description: >-
      Variants (CO13b): explore your own design or simulation options on a
      private branch forked at zero copy, share it, compare it as a node diff
      with results, and merge it back as one whole state (a two-parent commit)
      when you want.
    name: variants
  - description: Result post-processing.
    name: results
  - description: >-
      Eddy Maps, the spatial engine (/spatial, SP track): frames, terrain,
      volumes and paths — and the S-track spatial aggregates over result fields.
    name: spatial
  - description: >-
      Eddy Build Guides (AQ track, /instructions): the assembly sequence
      document (explode steps, the build as its reverse), the planner with its
      path / stability / tool-access checks and the fast check of a given order,
      the animation with its auto camera, the render (AV1 / GIF / APNG / glTF /
      USD) and the step sheets, public share links, service procedures, DFA
      scoring and the precedence graph.
    name: sequence
  - description: 'Eddy Sim2Real: rigid-body simulation and rollouts.'
    name: sim
  - description: 'Eddy 1D: system simulation, Modelica-style networks and signal flow.'
    name: system
paths:
  /v1/power.envelope:
    post:
      tags:
        - power
      summary: >-
        Dynamic operating envelopes: each customer connection's export and
        import limit at every interval of a time-series run, every connection at
        its limit at once holding the network's limits (`ss.power.envelope/1`)
      description: >-
        UD13: each connection (a customer's loads and DER, replaced by one
        element at its net power) gets, for every interval of UD3's run, an
        export limit and an import limit such that with every connection at its
        limit at once every limit the study gives holds: overvoltage, thermal
        and reverse flow at regulators exporting; undervoltage and thermal
        importing. Method: the forecast run with every connection at zero, a
        perturbed run for the sensitivities, an allocation rule (`equal`, or
        `proportional` to each connection's rating), then replays of the whole
        range with every connection at its envelope, tightening each interval
        that breaks a limit and raising each with room, until a replay is clean;
        the result is that replay (its extremes, headroom and binding quantity
        per interval). Computed ahead, not dispatched: no communications with
        any connection (stated on every result). `compare` replays a fixed limit
        per connection beside the envelopes and states where it breaks. No limit
        is built in: each is the study's input, a network operator's published
        limit. An interval whose limit is broken with every connection at zero
        is `unmet`; one the replays could not settle is `unsettled`, each named.
        A year of steps is a job. Not drawn on the map yet (`power_resultmap`
        refuses it by name). Refused by name: `POWER_REQUEST` (400: the body, a
        member the study does not take, not exactly one network source, a study
        missing, a value table given inline), `POWER_SETTINGS` (400: `settings`
        or `study` does not read, with the field), `POWER_DOCUMENT_INVALID`
        (400), `POWER_NETWORK_NOT_FOUND` (404), `POWER_PROFILE_NOT_FOUND` (404:
        a profile the network binds is not stored), `POWER_PROJECT_KIND` (422),
        `POWER_VALUE_TABLE` (422: a named table missing, not adopted or not in
        force), `POWER_CASE_NOT_FOUND`, `POWER_CASE_NOT_READ` (422),
        `POWER_BUSY` (429: the heavy lane is full; retry after `Retry-After`, or
        send `async: true`), `POWER_ENVELOPE_INVALID` (422: a limit not above
        zero, a direction held to no limit, crossed voltage limits, a power
        factor outside (0, 1], an unknown load or DER, a load in two
        connections, a rating missing under `proportional`, ...),
        `POWER_ENVELOPE_OVER_BUDGET` (422: the runs' work or the kept forecast
        over its budget, before anything runs), `POWER_ENVELOPE_UNEVALUABLE`
        (422: an inverter setting read from a value table the study was not
        given or that lacks it, naming the table and key). A design aid: a
        person reviews it before it is relied on.
      operationId: powerEnvelope
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                async:
                  description: >-
                    true: run as a job and answer 202 with `job_id`, `poll` and
                    `events`; the finished job's `result` is this route's body
                    without the inline result (read `result_key`'s blob), and it
                    runs within the job's budget (`SS_POWER_DIST_JOB_WORK`, 2e9
                    conductor-solves) rather than the crate's inline one. false:
                    always inline. Left out: sized by the estimated work (`work`
                    in the answer): inline up to 1e7 conductor-solves
                    (`SS_POWER_DIST_SYNC_WORK`), on the heavy lane above 2e6
                    (`SS_POWER_DIST_LIGHT_WORK`), a job above 1e7
                  type: boolean
                case:
                  description: >-
                    A study case of the document, by id: its switch and source
                    states and `in_service` are laid over the document. A case
                    that states load levels (`load_scale`, `loads`) or solver
                    settings is refused (`POWER_CASE_NOT_READ`): profiles and
                    the study's DER cases set the loads, `settings` the
                    solver's. Left out: the document as it stands
                  type: string
                network:
                  description: >-
                    The network document (`ss.power.network/1`), inline, with
                    its `ders`, `controls` and `profiles` bindings (UD2). Give
                    exactly one of `network`, `network_key`, `project`
                  type: object
                network_key:
                  description: >-
                    The key (`b3:<hex>`) of a stored network: what
                    `power_network`, `power_import`, `power_gis` and
                    `power_edit` answer as `key`
                  type: string
                'on':
                  description: >-
                    The date the tables must be in force on, YYYY-MM-DD; today
                    when left out
                  type: string
                profiles:
                  description: >-
                    Profile documents (`ss.power.profile/1`) given inline: each
                    is stored first, so the network's `profiles` bindings find
                    it by key. The rest are read from the store
                    (`power_profile`, or an OpenDSS `power_import`)
                  items:
                    type: object
                  type: array
                project:
                  description: >-
                    The id of a project whose document is a network (`app:
                    "power"`): its live head where it has one, else its last
                    save
                  type: string
                settings:
                  description: >-
                    PW4's phase-domain load flow settings: `tolerance_pu`
                    (1e-8), `max_iterations`, `source` (ideal |
                    behind_impedance), `earth_model` (carson | full_carson |
                    deri), `earth_resistivity_ohm_m`, `transformer_no_load`,
                    `antifloat_ppm`, `load_voltage_window` ([low, high] per
                    unit), `switch_impedance_ohm` ([R, X] Ω a conductor of every
                    closed switch that states no resistance, in place of an
                    ideal tie: OpenDSS gives a `switch=yes` line 0.001 + j0.001
                    Ω; none by default)
                  type: object
                state:
                  description: >-
                    The state the tables must be in force for (such as NSW),
                    where a table is keyed by state
                  type: string
                study:
                  description: >-
                    UD13's envelope study: `run` (UD3's time-series study:
                    `start`, `steps`, `step_s`, `scale`, `control`, `limits`;
                    the profiles' own step where it states none) and `limits`
                    {v_min_pu, v_max_pu, loading_max_pct, reverse_flow_w} (each
                    the study's input; none built in), and optionally
                    `connections` [{id, loads, ders, max_w}] (every load in
                    service where left out), `allocation` (equal |
                    proportional), `directions` ([export, import]), `max_w`
                    (equal: every connection's cap; 1,000 resolution steps),
                    `resolution_w` (100 W on LV, 1 kW otherwise),
                    `sensitivity_step_w`, `power_factor` (1), `reactive`
                    (absorbing | producing), `max_replays` (12), `raise_passes`
                    (3), `compare` {export_w, import_w} (a fixed limit per
                    connection replayed beside), `store_budget_bytes`. Inverter
                    settings come from `tables`, never inline
                  type: object
                tables:
                  description: >-
                    Ids of adopted value tables (`ss.mep.values/1`,
                    `mep_values_import` then a person's `mep_values_adopt`),
                    handed to the study where it reads them. At most 8. A table
                    is never given inline
                  items:
                    type: string
                  type: array
                variant:
                  description: A variant of `project`, by slug
                  type: string
              required:
                - study
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: >-
            `study`, `schema`, `result_key` (BLAKE3 of the result's canonical
            bytes, the crate's own; `blob_uri` reads it, `report_uri` is its
            certificate, which `verify_result` runs again), `request_key`,
            `network` {key, name, counts}, `case`, `tables` (each table read, by
            id, item, revision and content key; never its entries), `upstream`,
            `parts`, `validation`, `summary`, `work` (the estimate the lane was
            chosen by, and whether the job budget was used), `result_inline`,
            and `result`: `dispatch` (computed ahead, not dispatched),
            `allocation` and `method` (stated), `step_s`, `steps`,
            `resolution_w`, `connections` (each its element, bus, phases, loads,
            DER and cap), `export` and `import` (each: the limits judged,
            `intervals` with the envelope per unit of every cap and in W,
            status, limits broken, binding quantity, the replay's extremes and
            headroom; `total_mwh`, the least, mean and most limit, counts held,
            ceiling, unmet and unsettled; `fixed`: the fixed limit's energy,
            intervals broken and the envelopes' energy over it), `runs`,
            `step_solves`, `findings`
        '202':
          $ref: '#/components/responses/JobAccepted'
        '400':
          $ref: '#/components/responses/TypedError'
        '404':
          $ref: '#/components/responses/TypedError'
        '422':
          $ref: '#/components/responses/TypedError'
        '429':
          $ref: '#/components/responses/TypedError'
      security:
        - apiKey: []
        - {}
components:
  responses:
    JobAccepted:
      content:
        application/json:
          schema:
            properties:
              events:
                example: /v1/jobs/job-000001-…/events
                type: string
              job_id:
                type: string
              phase:
                example: queued
                type: string
              poll:
                example: /v1/jobs/job-000001-…
                type: string
            type: object
      description: >-
        Accepted as an async job (estimated cost above the sync threshold, or
        mode=async). Follow `poll` (JSON) or `events` (SSE).
    TypedError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
      description: Typed error — never a bare 500
  schemas:
    ErrorEnvelope:
      properties:
        error:
          properties:
            code:
              enum:
                - INVALID_GEOMETRY
                - MESH_FAILED
                - SOLVE_DIVERGED
                - RESOURCE_LIMIT
                - UNKNOWN_SOLVER
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - STORE_ERROR
                - INTERNAL
                - INVALID_KEY_NAME
                - RATE_LIMITED
                - LIVE_RATE
                - SESSION_LIMIT
                - SCOPE_DENIED
                - CREDITS_EXHAUSTED
                - INVALID_LIMITS
              type: string
            message:
              type: string
          type: object
      type: object
  securitySchemes:
    apiKey:
      description: Required when the deployment sets SS_REQUIRE_AUTH=1
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.