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

# A recipe fitted to a concept mesh by the engine (V2.b; M2C6 the profile converter)

> No model in the loop: planes and axis-aligned cylinders are fitted to the mesh's triangles (normal-bucket plane clustering, deterministic RANSAC cylinders), a body box + pads + bosses + bores recovered from them (a boss as the stub it shows outside the body, coaxial fits as a stack largest radius first with each base flush on the previous cap, a corner fillet read off the body's vertical edges and the body tried as a filleted extrude), every candidate kept only where the kernel builds it and the IoU against the mesh gains (`min_gain`), and the recipe's numbers (sizes, offsets) optimised by coordinate descent against the mesh's occupancy on `counts` (`max_evals`). The mesh is a fitted STL blob in world metres (`stl_blob_id`, e.g. a `concept_mesh`'s) or the `mesh_reference` pinned on a contract (`icd_key` + `part`). Returns the fit fractions, the recover / select / optimise reports (what was kept, what was dropped and why), the IoU, the recipe and the recipe as read, the `fasteners` read off the mesh (small compact heads standing on a larger face: axis, position on the host face, head diameter and height) and an `assembly` (the fitted body fixed, a parametric hex bolt per fastener at its pose, each fastened to the body); stored as a content-addressed `recipe_fit` artifact. The recipe is a starting point for the design loop, never the part.



## OpenAPI

````yaml openapi.json POST /v1/ideate.fit
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/ideate.fit:
    post:
      tags:
        - req
      summary: >-
        A recipe fitted to a concept mesh by the engine (V2.b; M2C6 the profile
        converter)
      description: >-
        No model in the loop: planes and axis-aligned cylinders are fitted to
        the mesh's triangles (normal-bucket plane clustering, deterministic
        RANSAC cylinders), a body box + pads + bosses + bores recovered from
        them (a boss as the stub it shows outside the body, coaxial fits as a
        stack largest radius first with each base flush on the previous cap, a
        corner fillet read off the body's vertical edges and the body tried as a
        filleted extrude), every candidate kept only where the kernel builds it
        and the IoU against the mesh gains (`min_gain`), and the recipe's
        numbers (sizes, offsets) optimised by coordinate descent against the
        mesh's occupancy on `counts` (`max_evals`). The mesh is a fitted STL
        blob in world metres (`stl_blob_id`, e.g. a `concept_mesh`'s) or the
        `mesh_reference` pinned on a contract (`icd_key` + `part`). Returns the
        fit fractions, the recover / select / optimise reports (what was kept,
        what was dropped and why), the IoU, the recipe and the recipe as read,
        the `fasteners` read off the mesh (small compact heads standing on a
        larger face: axis, position on the host face, head diameter and height)
        and an `assembly` (the fitted body fixed, a parametric hex bolt per
        fastener at its pose, each fastened to the body); stored as a
        content-addressed `recipe_fit` artifact. The recipe is a starting point
        for the design loop, never the part.
      operationId: ideateFit
      requestBody:
        content:
          application/json:
            schema:
              properties:
                async:
                  default: false
                  description: >-
                    Answer 202 with a job (`job_id` `fit-...`, the content
                    address of the request without its stamp; poll
                    /v1/jobs/{job_id}: phases queued, fitting, done, error). The
                    finished job's `result` is the synchronous answer. A play on
                    a large concept mesh runs for a minute or more.
                  type: boolean
                counts:
                  description: >-
                    Grid cells per axis, 4..=128 (default 64 on the longest
                    extent, in proportion on the others).
                  items:
                    type: integer
                  type: array
                created_at:
                  type: string
                design_margin:
                  default: 0.01
                  description: >-
                    With `method: design` (M2C8.i): the model's recipe is kept
                    where it reads within this of the search's by volume.
                  maximum: 0.1
                  minimum: 0
                  type: number
                icd_key:
                  type: string
                max_evals:
                  default: 600
                  type: integer
                max_features:
                  default: 24
                  description: >-
                    With `profiles` / `best`: the most features the play builds.
                    24 since M2C6.h (16 before): the play stops on its own when
                    no move gains, so the cap only binds the largest parts, and
                    those were the four lowest of the corpus (the pump 0.911 at
                    16 -> 0.919 at 21, where it stops; 32 adds nothing).
                  maximum: 40
                  minimum: 1
                  type: integer
                method:
                  default: rules
                  description: >-
                    M2C8.i: `design` is THE SEARCH FOR THE SHAPE AND THE MODEL
                    FOR THE DESIGN -- the converter's search (`profiles`) and
                    the trained proposer (`model`) are both run and the model's
                    recipe is kept wherever it reads within `design_margin` of
                    the search's by volume (the search reads a mesh's shape
                    best; the model writes the part's design: on drawn parts
                    whose design is known it recovers 0.88 of the design's
                    features and every pattern, the search half and three
                    patterns of sixteen); the chosen fit with `method: design`,
                    `chosen` (`search` or `model`), `design_margin` and
                    `candidates` (`search` and `model`: each `fit_key`,
                    `iou_neutral`, `features`, `patterns`, the model's account
                    of itself, or the `error` that left it out: an unreachable
                    model leaves the search's recipe). M2C8.d: `model` is THE
                    TRAINED PROPOSER at play against the kernel -- a model
                    (served by `ml/mesh2cad/serve.py`; the engine reaches it at
                    SS_M2C_MODEL_URL) reads the mesh's grid and the grid of the
                    solid built so far and writes the next move in tokens
                    (`mesh2cad_tokens`); the kernel builds each move written,
                    the solid's coverage against the mesh's decides, a refused
                    move costs nothing, and the recipe is polished (`polish`)
                    and graded as every fit is. `hybrid` then lets the
                    converter's search continue from the model's recipe
                    (`profiles` are the search's options), unless the model's
                    play reads under 0.75 by volume, when the search starts from
                    nothing. Both answer a `recipe_fit` in the converter's shape
                    with `method`, `chosen` (`model`, `hybrid` or `search`:
                    which recipe was kept), `model` (the server's account of
                    itself: name, step, weights), `play` (tokens, frame, curve,
                    kernel_calls, refusals, askings, ended, features, seconds),
                    `as_built`, `polished`, `searched` and `iou` =
                    `iou_neutral`. With no server configured they are 503
                    `M2C_MODEL_UNCONFIGURED`; an unreachable one is 502
                    `M2C_MODEL_UNREACHABLE`. M2C6: `rules` is the rule fitter
                    (planes and cylinders read off the triangles; the artifact
                    it has always stored). `profiles` is THE CONVERTER: the play
                    with the profile moves of /v1/mesh2cad.env.play (outlines
                    traced off the grading grid, extruded and revolved beside
                    the primitives, the kernel deciding what builds), answering
                    in a rule fit's shape -- `iou` on the rule fitter's grid,
                    `surface`, `fasteners`, `assembly`, the `recipe` -- with
                    `method: profiles`, `iou_neutral`, `play` (curve, iou_play,
                    kernel_calls, refusals, features, sketched) and `polish`
                    (fine, trials, moves, iou_before, iou_after, reverted,
                    nudged, dropped, seconds). Its numbers are then POLISHED
                    against a grid twice as fine (`polish`). `best` runs both
                    and keeps the higher NEUTRAL IoU (`iou_neutral`: since
                    M2C6.b the COVERAGE IoU -- each solid's coverage of a
                    128-cell grid, how full every cell is, the volume both hold
                    over the volume either holds; it reads a mesh's volume to a
                    part in ten thousand and a recipe's IoU the same to a few
                    thousandths on any grid from 64 cells to 192, where one bit
                    a cell at its centre wanders by three hundredths and
                    flatters whichever search steered by it), fewer features on
                    a tie: the chosen fit's manifest with `method: best`,
                    `chosen` and `candidates` (each `iou`, `iou_neutral`,
                    `features`, `seconds`). Every form is a `recipe_fit`
                    artifact `design.start` and `ideate.handoff` take by
                    `fit_key`.
                  enum:
                    - rules
                    - profiles
                    - best
                    - model
                    - hybrid
                    - design
                  type: string
                min_gain:
                  default: 0.002
                  type: number
                optimise:
                  default: true
                  type: boolean
                part:
                  type: string
                play_cells:
                  default: 96
                  description: >-
                    With `profiles` / `best`: the cells on the mesh's longest
                    extent the play runs on. By volume (the coverage IoU) a play
                    on 64 cells reads the four concept meshes at a mean of 0.882
                    and with the polish 0.889; a play on 96 with the polish and
                    its snap 0.906 -- for three to four times the time on the
                    largest mesh. M2C6.h: a part whose detail is two cells
                    across at 96 (a gear's teeth) reads 0.924 at 96 and 0.950 at
                    160, for two to four times the time and up to 1.4 GB through
                    its polish; a part without such detail reads the same.
                  maximum: 192
                  minimum: 16
                  type: integer
                polish:
                  default: true
                  description: >-
                    With `profiles` / `best`: settle the play's numbers (every
                    sketch edge and point, an extrusion's ends, a box's faces, a
                    cylinder's radius, height and place) against a grid twice as
                    fine, then SNAP every planar wall to where the mesh's
                    coverage says the face is (M2C6.b: the bits of a grid place
                    a wall to half a cell and no nearer). The verdict is by
                    volume, on the whole solid: of the recipe snapped, polished
                    and as built the highest coverage IoU stands, then each
                    feature's other forms are tried in it. A feature that no
                    longer builds on the polished ones is asked a little aside,
                    then left out or the polish under it undone, whichever reads
                    higher. `polish` in the answer: fine, trials, moves,
                    snapped, iou_before, iou_after (coverage), reverted,
                    declined, nudged, dropped.
                  type: boolean
                profiles:
                  description: >-
                    With `profiles` / `best`: the profile moves' options, as on
                    /v1/mesh2cad.env.play (`picks`, `pieces`, `keep`, `refine`,
                    `point_cost`, `multi`, `intent`, `tubes`, `sweeps`,
                    `shells`, `mirrors`, `tapers`, `helices`, `band`, `verify`,
                    `openings`, `blobs`). With `rules` it is 400.
                  type: object
                segments:
                  default: 24
                  type: integer
                steer:
                  default: bits
                  description: >-
                    With `profiles` / `best` (M2C6.b): what a step of the play
                    is rewarded by. `bits`: one bit a cell at its centre (as
                    M2C5 played). `volume`: the coverage IoU of the kernel's
                    solid against the mesh. Measured on four AI concept meshes
                    the two reach the same fit (0.898 either way before the
                    snap) and `volume` takes half as much time again, so it is
                    not the default; the grade (`iou_neutral`) and the polish's
                    verdict are by volume either way.
                  enum:
                    - bits
                    - volume
                  type: string
                stl_blob_id:
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: The fit, the reports, the IoU and the recipe
        '202':
          content:
            application/json:
              schema:
                type: object
          description: 'With `async`: `job_id`, `phase`, `poll`, `events`.'
        '400':
          content:
            application/json:
              schema:
                type: object
          description: Typed refusal
        '404':
          content:
            application/json:
              schema:
                type: object
          description: Blob not found
      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.