EightyOnedocseightyone.app

Commissioning: a company from one file

A factory spec is a company's whole setup as one JSON document: plant, supply, work, machine data, quality and people.

The sections

Stage Sections
Plant ssuStatuses, reasonCodes, workCenters, sites (with their storage and the SSU tree), warehouses, settings
Supply productCategories, vendors, products (by SKU, with vendors, recipe and stock policies)
Organisation permissionGroups, roles, teams, skills
Work parameterSets, taskTypes (forms, SLAs, gates, flags), routings
Machines and quality machineData (signals, meters, condition rules, spare parts), flows, issues, inspectionPlans, guidance
People people: existing users only, with their roles, teams and skills

The schema has every field.

The calls

  1. config.export: the company's setup as a spec. It's the best example of the format, and the starting point for a change.
  2. config.validate: problems, each with its path in the file (a status that doesn't exist, a gate naming a field the form lacks).
  3. config.plan: what applying would do, item by item: creates, updates field by field, what's blocked by permissions, and what's in the company but not in the spec (left alone).
  4. config.apply: applies the plan through the same rules as the dashboard, audited. If a change fails, the earlier ones stay and the answer names the failure. Fix the file and apply again: unchanged items are skipped.

Over REST, prune also removes what's in the company but not in the spec. Agents can't prune.

Working as an SI

What a spec doesn't do