> ## 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.

# Routing: proposed routes in ceiling space and risers for one tree, as the engine's own commands to accept (`ss.mep.route/1`, MEP32)

> Worked out by a BIM worker on a copy of the document, on the heavy lane under the router's own work budget; nothing is stored. One tree: the `source` component's free pipe or duct connector (`connector` picks one) joined to each of `terminals`' free connectors of the same medium, in each level's ceiling space (from its highest ceiling's top to the next level, or entered in `zones`) and in rectangular shafts (risers), round the engine's own geometry (walls, columns, beams, slabs less their rectangular shafts and openings, runs, components' family boxes, entered access zones) read as boxes grown by the route's half section and clearance. A component that is no part in a ceiling space is left out and listed in `not_obstacles` with why and, unless left out everywhere, `levels`: a conceptual mass (generic family `Mass`), everywhere; or, in the named levels' storeys only and an obstacle on every other, a box that runs right through a level's ceiling space and covers at least half of it in plan, or at least a tenth of it and holds a connector the route joins there (a volume drawn round the building). Nothing MEP31 checks is left out: a system component, equipment of any kind, a sleeve, or anything with a pipe or duct connector. What is left of such a box on other levels keeps the rectangular shafts as voids, as a slab does. Method: a grid every `pitch_mm` with a line through every connector; a Steiner tree by shortest paths (A* over node and direction under length + `bend_cost_mm` a turn + `tee_cost_mm` a tee, a turn or tee at a riser three times, every turn followed by room for MEP4's generic fittings); candidates (two terminal orders, mains laid first along each axis on each level) and the cheapest finished tree kept. Then on the copy: the runs (`type`, `system`), MEP4's fittings, the tees' entered losses (`air.tee_loss`), the pipe elbows' entered loss (`elbow_loss`), MEP22's sizes where `air` gives its inputs, or HV9's where `extract` gives a return's, an exhaust's or a discharge's (planned again for MEP22's largest size when it grows), MEP3's graph and MEP31's check with the request's rules. The answer: every route with its `reason` (where it joins, length, turns, cost, the straight-line ideal and what blocks it), the `commands` in order for `/v1/bim.run` (`"$n"` is the first id the n-th command made; run them on the document `key` names, each an undoable step, to reach `after_key`), the `measures` (terminals joined, clashes by kind, length, fittings placed and missing, MEP22's fan total pressure, risers), and `findings` by name (`ROUTE_UNREACHABLE`, `ROUTE_CONNECTOR_BLOCKED`, `ROUTE_CONNECTOR_NOT_AXIAL`, `ROUTE_TERMINAL_CONNECTED`, `ROUTE_TERMINAL_DOMAIN`, `ROUTE_FITTING_NOT_PLACED`, `ROUTE_CLASH`, `ROUTE_CLASH_CHECK_INCOMPLETE`, `ROUTE_GRAPH_FINDINGS`, `ROUTE_NOT_JOINED`, `ROUTE_SIZING_GAP`, `ROUTE_RATED_WALL`, `ROUTE_BEND_NO_LOSS`: a duct bend with no loss coefficient a design can read, none entered and none in MEP23's computed table, a tight or flat one, named with why; `air.sections.elbow_loss` enters one); `complete` only with none. Shafts no riser may use are listed apart (`shafts_not_used`). Risers run only in shafts; MEP31's clearance and insulation rules (entered or from a value table) and access zones are planned for. Slice 1: round ducts and pressure pipes; rectangular ducts, gravity drainage and pipe sizing are not routed (a duct route is drawn round; MEP22 may size a run as a flat rectangle where no round section fits the depth over it, `air.sections`). Walls (MEP32b), only when `walls.cross` is `interior`: a wall that closes a ceiling space may be crossed where it is interior there (a room read on both sides; on a side with no room, a ceiling of that storey drawn over it; or, on a side with neither, its level's floor under it and the next level's over it, an enclosed space the model has no room or ceiling for: each crossing's `interior_by` says which, `rooms`, `ceilings` or `slabs`, and every one but `rooms` is for a person to check), at `walls.cost_mm` a crossing (default 20 widths of the type, a weight of ours); never a wall that is curved, not along an axis, thicker than 500 mm, load-bearing by its `LoadBearing` parameter or listed in `walls.never` (ids or type names). Each crossing gets a sleeve, a generic round family `Wall sleeve (MEP32b)` (its bore the run's size plus twice its insulation and clearance, its length the wall's thickness plus clearance), placed by a command after the sizes; the wall itself is not changed. The answer then adds `crossings` (each `wall`, `type`, `thickness_mm`, `at`, `run_size_mm`, `sleeve` {command, element, diameter_mm, length_mm}, `rating` {from: `parameter` | `entered` | `not read`, value?}, `structure`, `interior_by`, `level`), `walls_read` (the walls counted by why they may or may not be crossed), `settings.wall_cost_mm` and each route's `walls`; a crossing through a wall with a fire rating (its `Fire Rating` parameter, or listed in `walls.rated`) is the finding `ROUTE_RATED_WALL`, and a type's name is never read as a rating. Left out or `none`, the answer is as it was without crossing. Refused by name: `ROUTE_REQUEST`, `ROUTE_SOURCE`, `ROUTE_TERMINAL`, `ROUTE_TYPE`, `ROUTE_MEDIUM`, `ROUTE_NO_PLENUM`, `ROUTE_TOO_LARGE`, `ROUTE_OVER_BUDGET`, `ROUTE_COMMAND_REFUSED` (422), and MEP3's, MEP31's and the value tables' own. R1–R3 of the rules plan: `issues` (each finding as `ss.issue/1`, its class read from what the plan placed on its copy and what the reach check found closed or open, and the rungs of the `mep.air.duct` ladder the plan ran), and `questions` where a main fits no section in the room around it (`AIR_ONE_MAIN_WONT_DO` for its plant; a larger main can't be done there).



## OpenAPI

````yaml openapi.json POST /v1/bim.route
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/bim.route:
    post:
      tags:
        - bim
      summary: >-
        Routing: proposed routes in ceiling space and risers for one tree, as
        the engine's own commands to accept (`ss.mep.route/1`, MEP32)
      description: >-
        Worked out by a BIM worker on a copy of the document, on the heavy lane
        under the router's own work budget; nothing is stored. One tree: the
        `source` component's free pipe or duct connector (`connector` picks one)
        joined to each of `terminals`' free connectors of the same medium, in
        each level's ceiling space (from its highest ceiling's top to the next
        level, or entered in `zones`) and in rectangular shafts (risers), round
        the engine's own geometry (walls, columns, beams, slabs less their
        rectangular shafts and openings, runs, components' family boxes, entered
        access zones) read as boxes grown by the route's half section and
        clearance. A component that is no part in a ceiling space is left out
        and listed in `not_obstacles` with why and, unless left out everywhere,
        `levels`: a conceptual mass (generic family `Mass`), everywhere; or, in
        the named levels' storeys only and an obstacle on every other, a box
        that runs right through a level's ceiling space and covers at least half
        of it in plan, or at least a tenth of it and holds a connector the route
        joins there (a volume drawn round the building). Nothing MEP31 checks is
        left out: a system component, equipment of any kind, a sleeve, or
        anything with a pipe or duct connector. What is left of such a box on
        other levels keeps the rectangular shafts as voids, as a slab does.
        Method: a grid every `pitch_mm` with a line through every connector; a
        Steiner tree by shortest paths (A* over node and direction under length
        + `bend_cost_mm` a turn + `tee_cost_mm` a tee, a turn or tee at a riser
        three times, every turn followed by room for MEP4's generic fittings);
        candidates (two terminal orders, mains laid first along each axis on
        each level) and the cheapest finished tree kept. Then on the copy: the
        runs (`type`, `system`), MEP4's fittings, the tees' entered losses
        (`air.tee_loss`), the pipe elbows' entered loss (`elbow_loss`), MEP22's
        sizes where `air` gives its inputs, or HV9's where `extract` gives a
        return's, an exhaust's or a discharge's (planned again for MEP22's
        largest size when it grows), MEP3's graph and MEP31's check with the
        request's rules. The answer: every route with its `reason` (where it
        joins, length, turns, cost, the straight-line ideal and what blocks it),
        the `commands` in order for `/v1/bim.run` (`"$n"` is the first id the
        n-th command made; run them on the document `key` names, each an
        undoable step, to reach `after_key`), the `measures` (terminals joined,
        clashes by kind, length, fittings placed and missing, MEP22's fan total
        pressure, risers), and `findings` by name (`ROUTE_UNREACHABLE`,
        `ROUTE_CONNECTOR_BLOCKED`, `ROUTE_CONNECTOR_NOT_AXIAL`,
        `ROUTE_TERMINAL_CONNECTED`, `ROUTE_TERMINAL_DOMAIN`,
        `ROUTE_FITTING_NOT_PLACED`, `ROUTE_CLASH`,
        `ROUTE_CLASH_CHECK_INCOMPLETE`, `ROUTE_GRAPH_FINDINGS`,
        `ROUTE_NOT_JOINED`, `ROUTE_SIZING_GAP`, `ROUTE_RATED_WALL`,
        `ROUTE_BEND_NO_LOSS`: a duct bend with no loss coefficient a design can
        read, none entered and none in MEP23's computed table, a tight or flat
        one, named with why; `air.sections.elbow_loss` enters one); `complete`
        only with none. Shafts no riser may use are listed apart
        (`shafts_not_used`). Risers run only in shafts; MEP31's clearance and
        insulation rules (entered or from a value table) and access zones are
        planned for. Slice 1: round ducts and pressure pipes; rectangular ducts,
        gravity drainage and pipe sizing are not routed (a duct route is drawn
        round; MEP22 may size a run as a flat rectangle where no round section
        fits the depth over it, `air.sections`). Walls (MEP32b), only when
        `walls.cross` is `interior`: a wall that closes a ceiling space may be
        crossed where it is interior there (a room read on both sides; on a side
        with no room, a ceiling of that storey drawn over it; or, on a side with
        neither, its level's floor under it and the next level's over it, an
        enclosed space the model has no room or ceiling for: each crossing's
        `interior_by` says which, `rooms`, `ceilings` or `slabs`, and every one
        but `rooms` is for a person to check), at `walls.cost_mm` a crossing
        (default 20 widths of the type, a weight of ours); never a wall that is
        curved, not along an axis, thicker than 500 mm, load-bearing by its
        `LoadBearing` parameter or listed in `walls.never` (ids or type names).
        Each crossing gets a sleeve, a generic round family `Wall sleeve
        (MEP32b)` (its bore the run's size plus twice its insulation and
        clearance, its length the wall's thickness plus clearance), placed by a
        command after the sizes; the wall itself is not changed. The answer then
        adds `crossings` (each `wall`, `type`, `thickness_mm`, `at`,
        `run_size_mm`, `sleeve` {command, element, diameter_mm, length_mm},
        `rating` {from: `parameter` | `entered` | `not read`, value?},
        `structure`, `interior_by`, `level`), `walls_read` (the walls counted by
        why they may or may not be crossed), `settings.wall_cost_mm` and each
        route's `walls`; a crossing through a wall with a fire rating (its `Fire
        Rating` parameter, or listed in `walls.rated`) is the finding
        `ROUTE_RATED_WALL`, and a type's name is never read as a rating. Left
        out or `none`, the answer is as it was without crossing. Refused by
        name: `ROUTE_REQUEST`, `ROUTE_SOURCE`, `ROUTE_TERMINAL`, `ROUTE_TYPE`,
        `ROUTE_MEDIUM`, `ROUTE_NO_PLENUM`, `ROUTE_TOO_LARGE`,
        `ROUTE_OVER_BUDGET`, `ROUTE_COMMAND_REFUSED` (422), and MEP3's, MEP31's
        and the value tables' own. R1–R3 of the rules plan: `issues` (each
        finding as `ss.issue/1`, its class read from what the plan placed on its
        copy and what the reach check found closed or open, and the rungs of the
        `mep.air.duct` ladder the plan ran), and `questions` where a main fits
        no section in the room around it (`AIR_ONE_MAIN_WONT_DO` for its plant;
        a larger main can't be done there).
      operationId: bimRoute
      requestBody:
        content:
          application/json:
            schema:
              properties:
                access:
                  description: >-
                    MEP31's access zones {of, zone: {min, max}}: obstacles to
                    the route, placed with their component
                  items:
                    type: object
                  type: array
                air:
                  description: >-
                    MEP22's inputs for the source: method?,
                    friction_rate_pa_per_m?, max_velocity_m_s?,
                    supply_delta_t_k?, roughness_mm?, terminal_pressure_pa?,
                    round_sizes_mm?, loads (`ss.mep.loads/1`), tee_loss?
                    {through, branch} (entered on every round tee the plan
                    places), sections? {rect_depths_mm?, max_aspect?,
                    max_width_mm?, elbow_loss?} and fit_sections? (default
                    true). The oversized-mains method (docs/mep/MEP32b.md): each
                    level run is sized to the room the router reads over and
                    beside it (twice the room the grid leaves about its centre
                    line, up and down and to each side, plus the drawn depth or
                    width; runs joined end to end or through an elbow share the
                    least of theirs): round where a listed round size fits and
                    carries its flow within the limits, else a flat rectangle at
                    a listed depth that fits (100 to 1000 mm every 50 where not
                    entered), no wider than max_width_mm (2000) nor wider than
                    max_aspect (4) times its depth, both our starting values
                    named in the design's `defaults`; friction on the hydraulic
                    diameter. A run no listed section fits is proposed at its
                    unlimited round size and named in the design's `no_fit` and
                    the answer's `air.no_fit` (a main to split into zones, or to
                    give more room); F3's bands then plan each sized run as wide
                    and as deep as its section. Where sizes change, the plan is
                    built again at them and MEP4's fittings proposed on that
                    build (generic rectangular elbows, tees and transitions
                    where a run is rectangular, a reducing tee where the main
                    steps down at a branch, a tighter elbow where the generic
                    one's arms do not fit), kept where MEP22 sizes it (else the
                    drawn fittings stand, said in the notes); elbow_loss is
                    entered on every duct elbow our CFD (MEP23) computed no
                    coefficient for (a flat or tight one). fit_sections false
                    sizes every run round, as before.
                  type: object
                bend_cost_mm:
                  description: >-
                    Cost of a turn in mm of length (default 10 widths of the
                    type: a weight of ours)
                  type: number
                clearance_mm:
                  description: >-
                    The margin kept to every obstacle, 0 to 1000 mm (default 25,
                    ours, not a standard's value); raised to the largest entered
                    MEP31 clearance that can select the routed system
                  type: number
                clearances:
                  description: >-
                    MEP31's clearance rules {of, to?, distance | value}, for the
                    check and the route's own clearance
                  items:
                    type: object
                  type: array
                connector:
                  description: >-
                    Which of the source's connectors, by its place in the
                    family's list, when it has several free
                  type: integer
                elbow_loss:
                  description: >-
                    Pipe routes: a loss coefficient entered on every elbow the
                    plan places (MEP10 reads a pipe elbow's loss only as
                    entered), 0 to 100; refused on a duct route
                  type: number
                extract:
                  description: >-
                    MEP33: a return, an exhaust or an exhaust fan's discharge,
                    sized as HV9 designs it (`/v1/bim.air` with `design.role`),
                    in place of `air`: role (`return`: grilles to an air
                    handler's return inlet; `exhaust`: grilles to an exhaust
                    fan's inlet; `discharge`: the fan's outlet to its louvre),
                    airflows (`ss.mep.airflows/1`: rooms [{name, room?,
                    airflow_l_s, terminals?}]; a discharge takes one row, the
                    exhaust's flow to its louvre), friction_rate_pa_per_m?,
                    max_velocity_m_s?, roughness_mm?, terminal_pressure_pa? (a
                    grille's, or the louvre's on a discharge), round_sizes_mm?,
                    tee_losses? (`momentum_balance`, the default: a converging
                    tee with no entered coefficient takes HV9's closed form,
                    named on its loss; `entered`: none), tee_gains? (`floor`,
                    the default: a closed-form gain applied as 0, `k_computed`
                    beside it; `refuse`: a gap), sections? and fit_sections? as
                    `air`'s. Equal friction, each run on the air it gathers;
                    MEP22's proposals are part of the plan as a supply's are. No
                    `questions` are asked of a no_fit on such a route (the
                    plant's zoning is the supply's).
                  type: object
                insulation:
                  description: MEP31's insulation rules {of, thickness}
                  items:
                    type: object
                  type: array
                key:
                  description: >-
                    A document key, `b3:<hex>`: the blob store's id for the
                    canonical bytes
                  type: string
                'on':
                  description: >-
                    The date the tables must be in force on, YYYY-MM-DD (default
                    today, UTC)
                  type: string
                pitch_mm:
                  description: >-
                    Grid pitch, 25 to 1000 mm. Left out: 100 mm, or where that
                    grid passes the router's caps (3,000,000 nodes, 20,000,000
                    blocked intervals) the finest of 125, 150, ... 1000 mm that
                    fits, said in the answer's `settings.pitch_from` and
                    `notes`; an entered pitch is never changed
                  type: number
                sleeves:
                  description: Families read as sleeves by MEP31
                  items:
                    type: string
                  type: array
                source:
                  description: >-
                    The source component (an air handler's or a supply point's
                    element id)
                  type: integer
                state:
                  description: A state code the value tables must be in force for
                  type: string
                system:
                  description: The system name the runs carry
                  type: string
                tee_cost_mm:
                  description: >-
                    Cost of a tee in mm of length (default 10 widths of the
                    type)
                  type: number
                terminals:
                  description: >-
                    The terminal components, 1 to 200, each with a free
                    connector of the type's medium and the source's domain (its
                    inlet first)
                  items:
                    type: integer
                  type: array
                tolerance:
                  description: MEP31's tolerance for the check on the copy, mm
                  type: number
                type:
                  description: >-
                    The engine type every run is drawn with: a round `duct` type
                    or a `pipe` type of the project
                  type: string
                values:
                  description: >-
                    Value table ids for MEP31's rules, comma separated, as
                    `/v1/bim.clashes` takes them
                  type: string
                walls:
                  description: >-
                    MEP32b: crossing the walls that close a ceiling space, made
                    only when asked: {cross: `none` (the default) | `interior`,
                    cost_mm? (0 to 100000; default 20 widths of the type),
                    never? [ids or type names never crossed, at most 1000],
                    rated? [ids or type names read as fire-rated, at most 1000]}
                  type: object
                zones:
                  description: >-
                    Ceiling spaces entered: {level, bottom, top (mm above the
                    level), plan? [[x0, y0], [x1, y1]]}; a level's entry
                    replaces what its ceilings give
                  items:
                    type: object
                  type: array
              required:
                - key
                - source
                - terminals
                - type
                - system
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  after_key:
                    description: The document the commands make, worked out on the copy
                    type: string
                  air:
                    type: object
                  commands:
                    type: array
                  complete:
                    type: boolean
                  counts:
                    type: object
                  finding_counts:
                    type: object
                  findings:
                    type: array
                  issue_count:
                    description: Every issue, listed or not.
                    type: integer
                  issues:
                    description: >-
                      R1 of the rules plan: the answer's findings as
                      `ss.issue/1` (at most 500, in the answer's own order),
                      beside its own fields, which are unchanged: {id (stable),
                      domain, code (the domain's own), kind, outcome, cause
                      {class: model | method | brief | undetermined, also?, why,
                      by? (the evidence a split reads), read? (whether it was
                      read), census}, subjects, at?, measure?, threshold?,
                      unit?, margin?, message, ladder? (R3: {ladder, tried
                      [{rung, params {key: {value, source: ours | brief}},
                      result: cleared | improved | no_change | refused, why}],
                      next?, stopped: cleared | question | exhausted | budget}),
                      question? (the id of the typed question it raised)}.
                    items:
                      type: object
                    type: array
                  issues_by_class:
                    additionalProperties:
                      type: integer
                    description: >-
                      Every issue counted by its cause class: whose problem each
                      is (the model's, ours, the brief's).
                    type: object
                  key:
                    description: >-
                      A document key, `b3:<hex>`: the blob store's id for the
                      canonical bytes
                    type: string
                  measures:
                    type: object
                  method:
                    type: string
                  notes:
                    type: array
                  order:
                    type: string
                  passes:
                    type: array
                  questions:
                    description: >-
                      R2 of the rules plan: what this answer asks, as typed
                      questions (`ss.question/1`): {schema, id (stable over a
                      re-run), code, domain, rung, scope (what one answer
                      covers: a plant, storeys), message, why {class, sentence,
                      measures}, options [{choice, possible, why_not?, does,
                      consequences [{what, limit?, from?, to?, unit?}],
                      changes_model}], answer_at (the brief's JSON pointer the
                      answer is written at), default? (an adopted practice
                      pack's)}. Absent where nothing is asked. Answer by writing
                      the choice into the brief at `answer_at` and running
                      again.
                    items:
                      type: object
                    type: array
                  regions:
                    type: array
                  routes:
                    type: array
                  schema:
                    type: string
                  settings:
                    type: object
                  shafts_not_used:
                    type: array
                  source:
                    type: object
                  table_gaps:
                    type: array
                  terminals:
                    type: array
                  work:
                    type: integer
                  zones:
                    type: array
                type: object
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: 09b5f888-961d-4054-af51-d317a6fcce25
          description: Typed error
        '404':
          content:
            application/json:
              schema:
                $ref: 09b5f888-961d-4054-af51-d317a6fcce25
          description: Typed error
        '422':
          content:
            application/json:
              schema:
                $ref: 09b5f888-961d-4054-af51-d317a6fcce25
          description: Typed error
      security:
        - apiKey: []
        - {}
components:
  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.