The method
Assembly Line runs repeatable work the way a factory runs a production line. Each unit of work is a workpiece. It moves through a line of stations, and each station does one job on it. The state of the work is the folder it sits in, so you can always see where everything is by listing folders.
These pages explain the rules and why they hold, grouped from the ground up: what work is, how a line is shaped, how work flows, how a station checks, and what it hands to people. They don't depend on our tool: any code that follows them gets the same guarantees. To build with Assembly Line itself, see the guides.
Work, bins and moving work
| Page | The idea |
|---|---|
| Workpieces | One unit of work is one folder: an identity file, a history, and the files stations add |
| Bins | Five folders per station. Where a workpiece sits is its state. |
| The doing bin | Work happens on a copy, so a crash loses nothing and leaves nothing half-finished in the line |
| Stations pull work | A station writes only to its own bins; the next one pulls |
| Nothing leaves silently | Every workpiece ends up finished or failed with its reason, and skips are counted |
The shape of a line
| Page | The idea |
|---|---|
| Cutting work into lines | Where one line ends and the next begins |
| One job per station | A stage gets a station of its own only when it must run, retry or be watched apart |
| Check apart from fix | Checking never changes records; fixes are decided and done elsewhere |
| Fix the line, not the output | Redo wrong work through the fixed line; never patch it |
How work flows
| Page | The idea |
|---|---|
| Splitting work | When one thing holds several units, send the parts back through the line head |
| The line head's registry | One line per unit taken in, so a re-run never takes the same work twice |
| Batches and concurrency | Cap each run's batch; run one at a time when workpieces share something outside |
| Waiting gets its own station | Work blocked on a person waits in a station of its own, never in failed |
| Act towards a goal state | Read where things stand, do only what is missing, read again before writing |
Checking
| Page | The idea |
|---|---|
| Code first, the model for judgment | Rules run as code; a model judges what's left, and code checks its answer |
| Three verdicts | Verified, needs correction, needs investigation: a known fix and an open question go to different people |
| Design the checks | Fetch first, then broad to narrow, one question per check |
| Classify before you present | Sort records by readable rules into the reader's categories; build the stable core first |
What a station hands to people
| Page | The idea |
|---|---|
| Each output answers one question | The report, the supporting documents and the workpiece files each answer a different question |
| Facts apart from conclusions | Evidence holds what the source said, all of it; the report holds what the line concluded |
| A report someone can act on | Outcome first, then what needs attention |