Spawn a forge from a config, and keep it as a recipe

A forge is described by a config: apps, each started as a fork, autonomous or migration, and optionally a budget. Keep one under a name (a recipe) and spawn it again. Three doors, one rule set (spawnDoor).

Who may: a signed-in person. A stranger's apps are forks only; autonomous and migration hand the crew the wheel and take the spawner's words as the direction, so a stranger asking for either is refused (422). A guest has no recipes.

Modes: autonomous sets the app's autonomy to go (no plan nod, decisions by the decider) from the child's first tick; migration is that plus MIGRATION_DIRECTION as the first direction, the spawner's words after it.

admin and domain are recorded in the plan and the child's ledger and acted on by nothing yet, so only the API takes them; the page and the terminal leave them off.

A recipe is one file per person, <data>/recipes/<person>.json, at most 20, with no name for the child, no key and no brief. Saves are one synchronous read-change-write into a renamed file, so two at once do not lose one.

Code: src/spawn/recipes.ts, src/spawn/door.ts, src/spawn/plan.ts, src/web/pages/new-forge.ts, src/tui/screens/newforge.ts.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs