Concepts
Slots, adapters, placement and rules: the model behind the stack builder.
Slots
A project is a set of slots: the page that calls the API, the API client, the router, the context, the database client, the auth config. Every stack fills the same slots; what changes is which file fills each one and what it says.
That is why the walks read the same for every stack. The stops are slots, and the builder shows the file that fills each one in the stack you picked.
Adapters
A choice such as the API style or the ORM is an adapter: it writes the slots its own way while keeping their shape. The page that lists todos is the same file in every API style. That is the test each adapter is held to.
When a choice changes only how a slot is written, the preview marks the file as changed. When it changes where the slot lives, the file is marked as moved. Ports and adapters works through this with live figures.
Placement
Where a file goes is a separate decision from what it says. A monorepo puts the API, auth and database in packages; a single repo puts them in folders that follow a structure preset: layered, feature folders or flat.
Placement never changes a file's job, so switching the repository shape moves files without rewriting them.
Rules
Some options need others: D1 is SQLite on a Worker, Notes belong to a signed-in user, split apps need a Hono API. Each rule is one sentence in the builder's code, and the same sentence appears in the builder, on the Compatibility page and on the option it guards.
A shared link or a half-changed stack always describes something real: the builder moves any choice that breaks a rule to the first one that fits, and says what it moved.