.agents/skills/tesser/<service>.toml. The filename is the service name,
which may contain lowercase letters, digits, -, and _. Service names are
shared across the org.
A manifest holds facts about the service: where its code lives, what ports it
listens on, how to set it up and start it, how to tell that it is healthy, and
what it depends on. Decisions such as when to restart, when to run tests, or
what else to install are made at the command line, not in the manifest.
Minimal
All fields
Field by field
Rules
- Bind declared ports however the app prefers.
127.0.0.1and0.0.0.0both work, and Tesser never binds them itself. Other boxes reach a declared port only through the box’s mesh ingress, and the org’s network exposes nothing else, so an all-interfaces bind is not public. Pin the port in the dev server’s config so a collision fails loudly instead of silently drifting to the next port and breaking routing. setupruns as ansh -escript, so any line that fails stops it,devnever starts, andtesser devfails with a message thatsetupfailed. Append|| trueto a line whose failure is harmless. The box’sshhas nopipefail, so incmd | tee setup.loga failure ofcmdgoes unnoticed.devruns as a plainshscript oncesetupexits 0.- Pick a
health.paththat goes through the app, such as an API route that reads the database. A static file, a proxy, or auth middleware can answer before the app works or while it is stuck: a dev server can serve/js/main.jsbefore the build has written the rest, and a deadlocked server can keep answering/api/0/while every other request hangs. - The service’s own
portsand its[deps]keys share the box’s loopback port space, so a port cannot appear in both. - Ports 14651 through 14655 are reserved for Tesser and are rejected in
portsand[deps]. - A service name that reads as a box id, such as
box-1a2borbox1a2b, is rejected, because<service>.localhostwould be ambiguous. - Names that can run code on the box are refused, both in
env.requiredand bytesser env set:PATH,HOME,SHELL,NODE_OPTIONS,NODE_PATH,HTTP_PROXY,HTTPS_PROXY,CC,RUSTFLAGS,GOPROXY, and similar interpreter, compiler, and proxy settings, plus anything starting withLD_,DYLD_,BASH_,GIT_,SSH_,NPM_CONFIG_,PNPM_,YARN_,BUN_,COREPACK_,PYTHON,PERL,PIP_,BUNDLE_, orCARGO_. A few harmless Python settings such asPYTHONUNBUFFEREDare allowed. - A service name already registered by another repository in the org cannot be registered again; the registration fails with an error.
- When a repository has several manifests,
devrequires the service name. When it has one, that service is the default.makewithout a service name always creates a workbench. - Unknown keys are rejected, and the error message lists the keys that exist.
- Secret values do not belong in a manifest. The
[env]table holds names and file lists only, because the manifest is committed to the repository. - Dependencies are names, never addresses. Which box a name reaches is decided for each box at run time, as described in Connect a frontend to a backend.
Loading env files
env.load lists dotenv files the box reads before each start, so setup
and dev get their values as env without sourcing a file as shell.
- Files apply in order, and a later file wins over an earlier one.
- Values from
tesser env setand the box’s ownTESSER_*variables win over every file. - A path may leave
root, such as"../../.env", but not the repository. - A gitignored file reaches the box only through
env.filesortesser env push. When anenv.loadfile exists in your worktree, is gitignored and is not inenv.files,tesser devandtesser service lsprint onetesser: warning:line for it on your laptop. - A shared instance reads committed files only, so one member’s file never
becomes the org’s env.
tesser make --ensure-runningprints onetesser: warning:line for eachenv.loadfile that is not committed at the commit it starts and is not gitignored. - A missing file, a file outside the repository, an uncommitted file on a
shared instance, and a line that is not
KEY=VALUEeach leave onetesser: env.load:line in the run log and are skipped. On a shared instance, an uncommitted gitignored file, such as a local secrets file, is skipped without a warning or a run log line. setupgets the same values asdev. A loadedNODE_ENV=productionmakes npm, pnpm and yarn 1 installs insetupskip devDependencies. Whentesser env setdoes not setNODE_ENV, the box writes onetesser: env.load:line about this beforesetupruns, andsetupruns anyway. To install devDependencies, prefix the install insetup, such asNODE_ENV=development npm ci, or setNODE_ENVwithtesser env set, which applies todevtoo.- Lines are read the same way as
tesser env set --from-file, described in the CLI reference. - A file may set any name, including ones
tesser env setrefuses, such asPATHandNODE_OPTIONS. - Every shell on a service’s box gets these values too, for names the shell
does not already have. This covers
tesser exec, atesser sshcommand line, and the interactivetesser sshshell. A shell gets the values the service’s last start read, not the files as they are on disk, so a changed file reaches shells at the service’s next start, such astesser devortesser sync --restart. - On a workbench,
tesser execand atesser sshcommand line get the values from the committedenv.loadfiles of every service in the repository, read from your worktree when you run the command, for names the shell does not already have. A name that two services set to different values is left unset, and the command prints onetesser: [env] load:line naming each such name and the services that set it.tesser exec --in <service>takes that service’s value instead. The interactivetesser sshshell on a workbench gets none.
Snapshot files
A snapshot file holds thesetup that a repo’s boxes share, such as the
workspace install. A blank box captures its disk right after that setup
runs, and new boxes start from the capture. The Snapshots
guide walks through writing one, and Snapshots
has the rules for how boxes make and pick them.
- The file is
<name>.snapshot.tomlbeside the manifests. The name may contain lowercase letters, digits,-, and_. default.snapshot.tomlis the snapshot of every manifest withoutfrom_snapshot, and of the repo’s workbenches. A manifest withfrom_snapshot = "<name>"takes<name>.snapshot.tomlinstead. A manifest withfrom_snapshot = falsetakes no snapshot file, which suits a service that only runs containers.from_snapshot = trueis rejected.- A start whose manifest names a snapshot file that does not exist fails with a message naming the missing path.
- Every start runs the snapshot file’s
setup, then the manifest’ssetup, thendev. Bothsetupcommands run assh -escripts and must be idempotent. setupis required and cannot be empty. Onlyroot,setup, and[env]are allowed, and unknown keys are rejected.[env]holdsloadandNAME = "value"lines. Each value must be a string, so writePORT = "3000", notPORT = 3000. Names that can run code on the box are refused, as listed under Rules.- The snapshot file’s
setupgets the values fromtesser env set, the committed files in its ownenv.load, and its own[env]values, not the manifest’s[env]. A name set in more than one place takes the snapshot file’s[env]value first, then itsenv.loadfiles, thentesser env set. An uncommitted or missing file leaves onetesser: snapshot <name> env.load:line in the run log and is skipped. - The snapshot file’s
[env]values andenv.loadfiles reach only itssetup. The manifest’ssetupanddevdo not see them. - That
setupsees noTESSER_BOX_*variables and noTESSER_SLOT. Anything specific to one box, such as its address, its id, or a per-box secret, belongs in the manifest’ssetupordev. A value the snapshot file’ssetupneeds, such as aDATABASE_URLa code generator reads, goes in the snapshot file’s[env], in a committed file it loads such as.env.example, or intesser env set.
What setup may change
- A box created from a snapshot keeps only
/homeand Docker’s images and volumes, sosetupshould change only files there. - System packages go in the top-level
aptlist, not insetup. The box installs them beforesetupanddevon every start, from.debfiles cached under/home, so a box from a snapshot installs them offline. - Kernel, network, and mount changes (
sysctl,modprobe,iptables,ip route,mount), and anything that must run on every start, such as a background process or a container without a restart policy, belong indev.