assemblyline.sh

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

PageThe idea
WorkpiecesOne unit of work is one folder: an identity file, a history, and the files stations add
BinsFive folders per station. Where a workpiece sits is its state.
The doing binWork happens on a copy, so a crash loses nothing and leaves nothing half-finished in the line
Stations pull workA station writes only to its own bins; the next one pulls
Nothing leaves silentlyEvery workpiece ends up finished or failed with its reason, and skips are counted

The shape of a line

PageThe idea
Cutting work into linesWhere one line ends and the next begins
One job per stationA stage gets a station of its own only when it must run, retry or be watched apart
Check apart from fixChecking never changes records; fixes are decided and done elsewhere
Fix the line, not the outputRedo wrong work through the fixed line; never patch it

How work flows

PageThe idea
Splitting workWhen one thing holds several units, send the parts back through the line head
The line head's registryOne line per unit taken in, so a re-run never takes the same work twice
Batches and concurrencyCap each run's batch; run one at a time when workpieces share something outside
Waiting gets its own stationWork blocked on a person waits in a station of its own, never in failed
Act towards a goal stateRead where things stand, do only what is missing, read again before writing

Checking

PageThe idea
Code first, the model for judgmentRules run as code; a model judges what's left, and code checks its answer
Three verdictsVerified, needs correction, needs investigation: a known fix and an open question go to different people
Design the checksFetch first, then broad to narrow, one question per check
Classify before you presentSort records by readable rules into the reader's categories; build the stable core first

What a station hands to people

PageThe idea
Each output answers one questionThe report, the supporting documents and the workpiece files each answer a different question
Facts apart from conclusionsEvidence holds what the source said, all of it; the report holds what the line concluded
A report someone can act onOutcome first, then what needs attention