Inventory
Last updated on May 21, 2026
TofuPilot Inventory is how the platform tracks the physical world. A Part is a product family, a Revision is a design version, a Unit is one physical instance, and a Batch is a production cohort. Every run links to one unit, and every unit links to one part revision.
Units
Devices under test, identified by serial number. Carry typed metadata, attachments, sub-unit hierarchies, and a sample flag.
Parts and revisions
Product families and their design Revisions. Use Revisions to compare yield across hardware generations.
Batches
Production cohorts. Group units made together to slice yield by manufacturing lot.
Serial numbers
Auto-extract a part number from every unit's serial number with an organization-wide regex.
Identity graph
The four inventory records form a small graph that links every run back to a physical object.
Part ──▶ Revision ──▶ Unit ──▶ Run
│
optional│
▼
BatchA unit always has a part and a revision, and it may have a batch and a parent unit when it belongs to an assembly.
Auto-creation
You rarely need to create inventory by hand. The first run against a new serial creates the unit, part, revision, and batch (when batch_number is sent) in one transaction, and names default to placeholders you can edit later.
You can also create records up front from the API or the dashboard, which is useful for legacy imports, reference samples staged before production, or pre-allocated serial ranges.
Constraints
A handful of constraints apply to every inventory record.
- Identifier format:
^[a-zA-Z0-9_.:+-]+$, 1-60 characters. The same rule applies to serials, part numbers, revisions, and batches. - Uniqueness: per-organization and case-insensitive.
- Unit metadata: up to 50 typed keys per unit (string, number, boolean), with 40-character keys.
- Cascades: deleting a part deletes its revisions, units, and runs. Deleting a batch unsets
batch_numberon its units but keeps the units themselves.
How is this guide?
SlackPreview
Learn how to post messages to a Slack channel from a TofuPilot workflow using an incoming webhook URL, with no OAuth app or token rotation.
Units
Learn how to track units under test in TofuPilot with units: serial numbers, typed metadata, attachments, sub-unit hierarchies, and reference samples.