All docs
Docs · Build flows
Authoring
building stacks day to day
The working guides for stack builders: the workspace layout, the dev loop, mocks, and nano-ops. Concepts live in the main docs; these pages are the workflow.
The workspace
A stack is a directory tree of plain files:
my-workspace/
txco.yaml # optional — targets, apps, op:// URLs
OPS/
support/ # one directory per stack
0100_TRIAGE/ # a scope: integer + optional _LABEL
classify.txcl # a rule (several .txcl at one scope run in parallel)
classify.js # optional colocated nano-op for op://classify
mock-request.json # optional fixtures — see mocks.md
mock-response.json
FILES/ # optional static assets (txco://static)
0200_NOTIFY/
notify.txcl
APPS/ # optional — local services txco dev boots
api/server.js Scope directories sort the flow (0100 before 0200; leading zeros
are cosmetic) — a scope is simply a step’s address on disk. Stacks
whose names start with _ are system/local
(_cron, _sys/…) — loaded by the chassis, not pushed by apply.
That tree is the flow. The chassis sees it as:
The loop
txco init support # scaffold a stack
txco dev # boot apps + a throwaway chassis, watch, re-apply on save
# …edit, save, curl, read the trace…
txco apply # deploy to a real chassis (draft + activate per stack) Beyond apply: push/pull for one stack, draft/activate to
stage and flip deliberately, versions + diff + status for drift
and history, activate an older version to roll back — the full verb
table is in the CLI reference.
The guides
- dev.md — what
txco devboots, watches, and applies; thetxco.yamlschema. - mocks.md — develop a flow before its services
exist; mock fixtures, request-scoped mock patterns, and the
production
mock: denypolicy. - nano-ops.md — the
op://lifecycle: init → run → test → apply.
Related: TXCL for the language, envelope.md for every field you can read and write, schemas for declaring your stack’s shape.