Fab reference
3 pages, 29 routes, 27 connections and 0 CLI commands, generated from the declarations of Fab without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 7
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| List | fab.index | list | /view/fab/list | 0 | FabJob | in navigation | |
| Job replay | fab.item | detail | /view/fab/{job_id} | 10 | fab.index | FabJob | hidden |
| Transparency & proof | fab.proof | detail | /view/fab/proof/{job_id} | 20 | fab.index | FabJob | hidden |
| Machine | fab.machine | detail | /view/fab/machine/{machine_id} | 30 | fab.machines | FabMachine | hidden |
| Machines | fab.machines | list | /view/fab/machines | 30 | FabMachine | in navigation | |
| Print farm | fab.farm | list | /view/fab/farm | 40 | FabFarm | in navigation | |
| Farm | fab.farm | detail | /view/fab/farm/{farm_id} | 40 | fab.farm | FabFarm | hidden |
Connections · 27
Fab.FarmEnsure
Register a print farm: a row of simulated printers (16 by default), each on its own Transport `3d_print` station so any of them claims the next production job. A farm only grows, and only its operator changes it.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm_id | optional | |||
| name | optional | |||
| bays | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/farmHTTP route
Fab.FarmOrder
Put a saved Shape design on sale at a print farm: list it on the local catalog, priced from its slicer estimate at the bays' declared rates, on the farm's shop, as the farm's operator. Returns the product page where a buyer pays and chooses a printed part shipped to them or a virtual part in their wallet.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shape_id | required | |||
| farm_id | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/farm/orderHTTP route
Fab.FarmStatus
Read a farm and what each bay is printing, without advancing anything.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm_id | optional |
- Output keyfab.result
- Classificationreal
- GET /fab/farm/statusHTTP route
Fab.FarmTick
Advance every bay of a farm by one production step (Fab.ProductionRun per bay) and report each bay's phase.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm_id | optional | |||
| wait_ms | optional | |||
| settings | optional | |||
| max_reprints | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/farm/tickHTTP route
Fab.JobActivity
A job's metered plan (filament, energy, time, layers) and its fab.activity.v1 record: one leaf per command with its frames, inputs and the controller's acknowledgement. `line` returns that command's leaf with a Merkle inclusion proof.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| job_id | required | |||
| offset | optional | |||
| limit | optional | |||
| line | optional |
- Output keyfab.result
- Classificationroute_handler
- GET /fab/job/activityHTTP route
Fab.JobCreate
Run G-code through the provable CRE8VM gcode language; the resulting fab.motion.v1 frames stream to the CRE8VIRTUAL machine twin and the run books a Manufacture step (machine-linked, chain/ir hashes in metadata). A job for a registered CNC router or laser (machine_id, or dialect grbl | grblhal | fluidnc) starts from a state header in its controller's dialect with no axis placed; a printer job runs as written. A trace larger than one proving-grade run runs as chained slices whose chain hashes fold into the job's.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| gcode | required | |||
| machine_id | optional | |||
| dialect | optional | |||
| title | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/jobHTTP route
Fab.JobGet
Fetch one fab job including its full fab.motion.v1 frames.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| job_id | required |
- Output keyfab.result
- Classificationroute_handler
- GET /fab/job/getHTTP route
Fab.JobList
List fab jobs (newest first) with frame counts + hashes.
- Output keyfab.result
- Classificationroute_handler
- GET /fab/jobsHTTP route
Fab.JobPreflight
Check a job's proven motion trace against a registered machine: every axis placed from the origin its frame names (the declared work offset, machine coordinates, or another work system's offset) inside the envelope, per-axis feed, spindle or laser S, tools against the tool table, and a run-time estimate. On CNC and laser it refuses every CRE8VM diagnostic code, moves to positions the trace cannot place, a trace not created for the controller, and canned cycles off grblHAL. The verdict is canonical JSON hashed to preflight_sha256, bound to the chain hash, machine id and revision. Owner-gated.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| job_id | required | |||
| machine_id | required | |||
| work_offset | optional | |||
| wcs_offsets | optional | |||
| use_live_offset | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/job/preflightHTTP route
Fab.JobProve
Bind a real Winterfell hash-chain + PIS STARK proof to each run of a fab job's motion trace (one per slice, on a worker thread). Requires the fab `stark-prove` feature (enables cre8-vm/zk-stark); without it the STARK tier reports unavailable and the always-on Fab.JobVerify replay-determinism check is the proof. Each bundle is re-verified in-process and written for offline `cre8vm verify-proof`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| job_id | required |
- Output keyfab.result
- Classificationreal
- POST /fab/job/proveHTTP route
Fab.JobSend
Stream a fab job's G-code to a real machine over the device app's serial streamer (Marlin/GRBL ack flow control; simulator://gcode for the offline seam). Acked source lines mirror back onto the provable frames and drive a second in-world twin that tracks the REAL machine's progress. A registered CNC router or laser streams only after a passing Fab.JobPreflight for this chain hash and its current revision, a confirmed arming checklist, and a controller still in the job's start work system with the offsets the pre-flight placed it with; there is no override. The run seals a flat machine receipt (kind fab_gcode) on the job.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| job_id | required | |||
| machine_id | optional | |||
| endpoint | optional | |||
| dialect | optional | |||
| baud | optional | |||
| fake_ack_ms | optional | |||
| arming | optional | |||
| pause_on | optional | |||
| check_first | optional | |||
| status_poll_ms | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/job/sendHTTP route
Fab.JobVerify
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| job_id | required |
- Output keyfab.result
- Classificationunclassified
- POST /fab/job/verifyHTTP route
Fab.MachineControl
Hold, resume, stop or continue a live stream (by machine_id or job_id) through Device.GcodeStreamControl. Owner-gated. The web Stop is not an emergency stop.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| machine_id | optional | |||
| job_id | optional | |||
| control | required | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/machine/controlHTTP route
Fab.MachineGet
Fetch one machine profile and its active job, if any.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| machine_id | required |
- Output keyfab.result
- Classificationroute_handler
- GET /fab/machine/getHTTP route
Fab.MachineJog
One relative jog (at most 10 mm per axis, feed capped) through Device.GcodeJog, refused while a job streams. Owner-gated.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| machine_id | required | |||
| dx | optional | |||
| dy | optional | |||
| dz | optional | |||
| axis | optional | |||
| step | optional | |||
| direction | optional | |||
| feed | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/machine/jogHTTP route
Fab.MachineList
List registered machine profiles (the port only for its owner).
- Output keyfab.result
- Classificationroute_handler
- GET /fab/machinesHTTP route
Fab.MachineStatus
The machine's live controller status for its owner (Device.GcodeMachineStatus, or the running stream); the last known status for anyone else.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| machine_id | required |
- Output keyfab.result
- Classificationroute_handler
- GET /fab/machine/statusHTTP route
- POST /fab/machine/status/readHTTP route
Fab.MachineTwin
Register or update a printer's virtual twin ({machine_id}-twin: the same bed, feeds, nozzle, filament, kinematics, rates, spool and owner on simulator://printer) and say whether the real printer is connected now (a simulator always is, a serial port when the device scan lists it, a network endpoint is unknown until a send tries it).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| machine_id | required |
- Output keyfab.result
- Classificationreal
- POST /fab/machine/twinHTTP route
Fab.MachineUpsert
Register or edit a machine profile (kind, controller, port, envelope, feeds, spindle or laser maximum, tool table, station). Every change bumps the revision, which strands earlier pre-flights. A CNC router, laser or other strict machine needs an owner; edits are owner-gated.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| machine_id | optional | |||
| name | optional | |||
| kind | optional | |||
| dialect | optional | |||
| endpoint | optional | |||
| baud | optional | |||
| travel_mm | optional | |||
| envelope_min_mm | optional | |||
| max_feed_mm_min | optional | |||
| max_spindle_rpm | optional | |||
| laser_max_s | optional | |||
| has_homing | optional | |||
| has_probe | optional | |||
| tools | optional | |||
| tools_text | optional | |||
| station_id | optional | |||
| twin_process | optional | |||
| kinematics | optional | |||
| meter | optional | |||
| material | optional | |||
| filament_diameter_mm | optional | |||
| density_g_cm3 | optional | |||
| nozzle_diameter_mm | optional | |||
| cost_per_kg_minor | optional | |||
| laser_max_power_w | optional | |||
| spindle_power_w | optional | |||
| owner | optional | |||
| clear | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/machineHTTP route
Fab.MachineZero
Set work zero on the named axes through Device.GcodeSetZero, refused while a job streams; strands every earlier pre-flight on the machine. Owner-gated.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| machine_id | required | |||
| axes | required | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/machine/zeroHTTP route
Fab.OrderRun
Print a build order's ready print jobs on a machine: read the order, slice the next ready job's print file, stream it, and settle the run onto the order from the Manufacture step the fab job booked. Each call does the next step that is ready and returns; a print still running is handed back as `fab_job_id` and `job` to pass in again. Only a simulated machine finishes inside one call.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | required | |||
| machine_id | required | |||
| prints | optional | |||
| fab_job_id | optional | |||
| job | optional | |||
| settings | optional | |||
| max_reprints | optional | |||
| wait_ms | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/order/runHTTP route
Fab.ProductionRun
Make one local production job on a station's machine: claim it from the transport queue, slice (or take) its print file, create and stream the fab job, and advance the production job to qc with the fab_gcode machine receipt, which carries the activity root. Each call does the next step that is ready and returns; call again (or let the stream pump run) until `phase` is `made`. Only a simulated machine runs unattended.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| production_job_id | optional | |||
| order_id | optional | |||
| station_id | optional | |||
| machine_id | optional | |||
| settings | optional | |||
| max_reprints | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/production/runHTTP route
Fab.Slice
Slice a closed mesh (a primitive spec such as cube:20, or an STL) into Marlin G-code: walls, 45/135 degree fill, solid floors and roofs. The build volume and nozzle come from the named machine. Creates a fab job from the G-code unless create_job is false. No supports, bridges or brims.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| mesh | optional | |||
| stl_base64 | optional | |||
| stl | optional | |||
| settings | optional | |||
| machine_id | optional | |||
| title | optional | |||
| create_job | optional | |||
| actor | optional |
- Output keyfab.result
- Classificationreal
- POST /fab/sliceHTTP route
Fab.Status
Fab subsystem health: job count + trace schema.
- Output keyfab.result
- Classificationroute_handler
- GET /fab/statusHTTP route
Fab.StreamPump
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| job_id | optional |
- Output keyfab.result
- Classificationunclassified
- POST /fab/stream/pumpHTTP route
Fab.ViewPatch
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| action | optional | |||
| job_id | optional | |||
| scope | optional | |||
| machine_id | optional |
- Output keyfab.result
- Classificationunclassified
- GET /fab/document/patchHTTP route
Fab.VirtualPrinterEnsure
Register the built-in virtual printer (a 220 x 220 x 250 mm Marlin machine on the device app's simulator://printer, metered as 1.75 mm PLA) if it is not registered, and return its profile. An existing profile is returned as it stands.
- Output keyfab.result
- Classificationreal
- POST /fab/machine/virtual-printerHTTP route
Other routes · 1
| Method | Path | Kind |
|---|---|---|
| GET | /fab/twin/{file} | raw handler |
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerFab
- SQL projectionnone · DDL declarations: 0
- None declared.
- None declared.
- None declared.
- No model warnings were reported.
Capabilities and dependencies
- Manufacture
Structure review · 4
- FabJob · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Fab · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)