Skip to content
The five phases

The five phases

Six groups, five phases. The table is the short answer; the rest of this page is why. If you came to look something up: what the catalogue offers today lists every coordinate by group, the families say which half of a coordinate decides its placement, and the empty rib is the honest answer to “why is there nothing under deploy”.

Every Simplon product hangs its commands off the same six top-level groups, and it cannot invent a seventh. Five of them are the phases of the delivery loop - build, test, release, deploy, monitor - and support is the group that supports those five rather than a sixth of them.

That is the corset the rest of this half of the site is written inside. The manifest chapter describes a file whose top level is these groups; the environments chapter is about a distinction that exists only between them; the placement rule in Task and command is a rule about their names. This chapter is the one that says what they are.

The five, and the one beside them

The wording below is the catalogue’s own - src/simplon/catalogue.yaml declares each group with the help: a product inherits, so this table is a reading of the file every product merges onto:

group what it means takes an environment
build Produce the artefacts. no
test Verify them. no
release Publish them. no
deploy Put them into an environment. yes
monitor Watch what is running there. yes
support Host preflight, environment introspection and host tooling. no

Five verbs and a workbench. The five are what a component does on its way from a source tree to something running that somebody is watching; support is what you need in order to be able to do them at all - a machine with the right tooling on it, a list of the environments that exist, the git verbs. It sits beside the loop, not inside it, and nothing in the loop’s flow passes through it.

Why this distinction is worth being pedantic about. support carries a placement exactly like the five: support:install belongs under support and nowhere else, and the loader says so. So the placement rule is stated over all six groups. It does not follow that there are six phases - the sixth group is a workbench, and a page or a message that counted six would be telling a reader the loop has a stage it does not have. Six groups, five phases.

What flows between them

The five are a loop rather than a list, and what makes it one is that each hands the next something concrete. Read the labels, not the boxes - the boxes are only names:

    flowchart LR
  subgraph loop["the delivery loop - the five phases"]
    direction LR
    build["build"]
    test["test"]
    release["release"]
    deploy["deploy<br/>env-first"]
    monitor["monitor<br/>env-first<br/>no catalogue task yet"]

    build -- "artefacts" --> test
    test -- "a verdict" --> release
    release -- "a published version" --> deploy
    deploy -- "a running instance" --> monitor
    monitor -- "what it observed" --> build
  end

  support["support<br/>not a phase"] -. "a host that can run the five" .-> loop
  

Each arrow is a handover, and each one is a different kind of thing:

  • build hands test artefacts. Files that exist: a wheel, an image, a bundle. Not a promise that they work - that is the next arrow’s job.
  • test hands release a verdict. A pass or a fail over artefacts that already exist. This is why test never builds: a suite that rebuilds what it verifies has verified something nobody shipped.
  • release hands deploy a published version. The artefacts, plus an identity somebody else can ask for by name - a tag, a version, a digest in a registry. Publishing is where a mistake stops being local.
  • deploy hands monitor a running instance. Not a file any more: a thing with a state, in one named environment.
  • monitor hands build what it observed. The loop closes here, and that is the only reason it is a loop. Monitoring that reaches nobody is a fifth phase that does not connect to a first.

support touches all five and is on none of the arrows, which is the picture of what it is: nothing is handed along it. It is the bench the other five stand on.

Why there are five, and not a sixth

Because a product cannot declare a group the platform does not already declare - and the refusal is not a rule layered over the merge, it is the merge. A product’s tree is merged onto the platform’s, so a path the platform does not declare has nowhere to land. That mechanism, and the load error it produces, are set out in The design, noun by noun and are not repeated here.

What follows from it is the thing this chapter is about: test means verify in every product built on the kernel, and myctl prod deploy up reads the same to somebody who has never seen that product. The vocabulary is worth exactly as much as it is fixed, which is why the five are declared once, centrally, and why a sixth would have to be declared there too - once, for everybody.

Env-first, and agnostic

deploy and monitor are declared env_first: true in the catalogue; the other three are not. That one flag is the whole of the difference, and it runs in both directions:

myctl prod deploy up        # the environment comes first, before the group
myctl deploy up             # refused: this group needs an environment
myctl build wheel           # no environment, and none accepted
myctl dev build wheel       # refused outright: this group takes no environment

The two env-first phases are the two that act on something rather than producing something. A deployment is always a deployment somewhere, and “what is running” is only a question about one environment at a time - so naming the environment is part of naming the command, which is why it is the outer token rather than an option.

The other three refuse an environment token, and the reason is worth stating as a claim about artefacts rather than as a convention: a wheel built “for dev” is either byte-identical to the one you would have built anyway, in which case the token meant nothing, or it is a different artefact, in which case the thing you tested and the thing you ship have quietly become two things.

The declaration, the matrix of environments, the dispatch’s four steps and the backend gate are in Environments.

What the catalogue offers today

A coordinate reaches a phase two ways, and Task and command is where that rule lives:

  • a coordinate whose namespace is a group name carries a placement - build:image sits under build, in every product, always;
  • any other namespace is a family, and the product files it where it likes - docs:site is under build in simplon and could be under release somewhere else.

So the count of tasks named after a phase is not the count of commands that phase ends up holding. It is, however, the honest measure of what the platform carries for that phase and no other, which is the number that says whether a rib is filled:

namespace kind tasks in the catalogue today
build phase, agnostic 13
test phase, agnostic 13
release phase, agnostic 14
deploy phase, env-first 3
monitor phase, env-first 0
support not a phase 17
vcs family 6
docs family 4
tasks family 2
toolchain family 1

Seventy-three coordinates: sixty carrying a placement, thirteen free to be filed. The numbers in this sentence, in that table and in every section below are read back out of catalogue.yaml by the test suite and compared with what is printed here, because a count typed into a page is wrong on the day the next task lands and nobody finds out.

What each coordinate does is not written out here. The sections below name them and nothing more, and the sentence that says what one is for lives in the command reference - generated on every build from the catalogue’s own help:, for every coordinate there is. This page used to paraphrase those sentences beside the names, and by the time anybody compared them several had quietly stopped saying what the catalogue says: docs:render had grown the word architecture, test:typecheck-python had lost (no Docker, no lab), vcs:submodules had lost lib/platform. How many is a matter of how strictly one reads, and no count stands here for exactly that reason - a number typed onto a page is the second source this paragraph is about. The reliable fix is not to guard the copy but not to keep one.

Separately from all of this, a catalogue task is either offered - a product declares a command for it - or placed, written into the tree for everybody. The bar a placed command has to clear, and why release:tag does not clear it, are in Offered, or placed.

build

Produce the artefacts. Whatever a product ships: a wheel, a container image, a bundle, a generated site.

In the catalogue today: 13 tasks.

  • build:cmake-files
  • build:conan-cache
  • build:dotnet-solution
  • build:fetch
  • build:homebrew-formula
  • build:image
  • build:image-file
  • build:maven-pack
  • build:model
  • build:model-binary
  • build:nuget-config
  • build:nuget-pack
  • build:nuget-restore

What a product brings itself. The artefact, and the source tree the two generators read. There are three things the kernel knows how to build for you: a container image, the build files a C++ or a .NET product hands to its compiler, and - since si#127 and si#128 - the half of a package handover that happens on the CONSUMING side. Everything past that is a body in the product’s own tasks:, because “build” means something different in every language. Each of the six reads something the product brings - build:image an artifacts: entry of kind: image, the two generators a tree of sources, the other three an artifacts: entry of their own kind - which is why all six are offered rather than placed: declared for everybody, build:image would die on its first line in a product with no Dockerfile, and a generator would write a CMake project for a product with no C++ in it. build:model (si#400 4b) is offered by the same bar: it runs firn gen over a product’s firn project, and a product with no firn model has nothing for it to generate.

The tree is the declaration, and the manifest is the exception. A directory holding sources already says what it is - a library, or an executable when it holds a main - so the generators read that rather than asking a product to state it twice. The one thing a directory cannot show is what a target depends on, and that is the whole of what the optional build: targets: block carries. Guessing it from include paths was considered and refused: it reads a C++ preprocessor approximately, and an approximate answer in a build file fails at link time, in a message about symbols rather than about the manifest.

What they write is COMMITTED, which is what makes determinism load-bearing rather than tidy. Everything is sorted, and a solution’s GUIDs are derived with uuid5 from the project’s path rather than generated - a random one would put a new GUID in the diff on every run and make the committed output unreviewable within a week. Each generated file carries a DO NOT EDIT header, and the generator overwrites without asking. That is deliberately the opposite of support:toolchain’s never-clobber rule, and the difference is the subject: a manifest is a product’s own statement, a CMakeLists.txt is a rendering of one. Reverting a statement would be wrong; reverting a rendering is the point. A product whose build outgrows what the two generators can express keeps its hand-written files and declares neither coordinate - nothing degrades, it simply does what every product does today.

This is also the rib where families land most, and simplon’s own build is the illustration: it holds four commands - wheel, reference, site and the docs aggregate - and not one of them is build:image. The count of phase-named tasks is not the count of commands a phase ends up with.

test

Verify them. Over artefacts that already exist - the phase deliberately does not produce any.

In the catalogue today: 13 tasks.

  • test:generated
  • test:gate
  • test:accept
  • test:file
  • test:homebrew-formula
  • test:image
  • test:manifest-model
  • test:model
  • test:model-format
  • test:report
  • test:release-notes
  • test:typecheck-python
  • test:walk

What a product brings itself. A suites: section naming its levels, and a mypy.ini if it wants the type gate. test:gate is the clearest case in the catalogue of one body under several names: a product declares one command per level and pins the level with with:, so test unit and test system are two commands over one template. That mechanism is in Test levels.

Five of the six run something; the sixth reads the repository. test:release-notes declares no gate and calls no runner. It asks one question - does the releases page describe the releases this repository actually carries - and answers it out of git tag, git log and the page’s own headings. It is in test because its verdict is red or green and nothing else, and it is not in release because release notes are written before the tag: a guard that only spoke when release tag was typed would speak after every cheap chance to fix it had passed. What is the product’s own reaches it through a releases: section, in The manifest.

And one of them is answered by a person. test:walk puts somebody through the product’s own .feature files a step at a time and records what they said - the manual half of an acceptance test, so a customer can verify for themselves that the functionality they asked for is there. It is in test rather than anywhere else because its verdict has to be comparable with the automatic one: both address a scenario as <feature file>:<scenario>, which is the archive’s own key, so a person’s answer and a runner’s result join instead of merely resembling each other. The scenarios are the same files docs:acceptance documents - one source, and the mode is chosen by which command is typed. A step the person REFUSES becomes a bug ticket, worded by the product through a tracker: section.

release

Publish them. The point where a mistake stops being local: a tag can be deleted but not un-seen, and a pushed image is somebody else’s dependency by the time you notice.

In the catalogue today: 14 tasks.

  • release:artifact
  • release:asset
  • release:check
  • release:conan
  • release:github-attach
  • release:github-draft
  • release:github-publish
  • release:github-unpublished
  • release:homebrew-tap
  • release:image
  • release:maven
  • release:notes
  • release:nuget
  • release:tag

What a product brings itself. An artifacts: entry of the kind the task reads, or an assets: section, and - for release:tag - a workflow that a tag actually triggers. Every one of them is offered rather than placed, and release:tag is the case that fixed that bar: it is the one release: task that reads no product data at all, so it came closest to being handed to everybody, and it is still not - because it publishes, and a misfire is public and cannot be taken back.

release:artifact and release:asset are the same act aimed at different readers: a directory in a registry that a consuming pipeline pulls with its own token, and files on a release page that a person downloads. Which of the two a product offers is a question about its audience, and about what its licence lets it hand out - never one the kernel answers for it.

The release:github-* tasks are one GitHub Release, one task per moment of it: unpublished asks, before anything is built, whether the tag’s release is still unfinished (a draft or none - a published one is never overwritten); draft writes the draft with the release notes as its body before the build; attach puts the tested files and their .sha256 sidecars on that draft after the build; and publish makes it public after the image, once origin carries the tag. A question GitHub did not answer is red in each of them, never read as “no release”.

release:image is worth reading as a rule rather than a task. It pushes and then asks the registry whether the tag is there, because a push nobody verifies is the same defect as a report nobody reads.

release:nuget and release:conan are two different answers to one question, and the difference is not this kernel’s taste - it is what GitHub Packages serves. release:maven is the third answer, and it lands on NuGet’s side (si#329): GitHub does serve a Maven registry, so there is somewhere to publish to and a transport would have been the weaker shape. What it adds beyond release:nuget is release:image’s rule - it reads the coordinates back out of the registry - and the reason is specific to this tool: a gradle publish with no maven-publish publication configured has no work to do and does not fail for it, so a green publish that uploaded nothing is reachable here in a way it is not for dotnet nuget push. Its verification has three outcomes rather than two, because a 401 means the token may not look and is not the same answer as a missing jar.

Since si#344 C.3 it is two tasks, as release:nuget is: build:maven-pack stages gradle publish into a file repository under the entry’s path:, so the jar exists before the release and a test can consume it, and release:maven uploads exactly those files and then reads them back.

It also answers the snapshot question itself (si#330), rather than leaving it to each manifest. A -SNAPSHOT version republishes under one coordinate; a release version is immutable. So a release version that is already in the registry is refused before a container starts, because publishing again would either fail part-way - some modules replaced, some not - or change nothing while reporting success. A snapshot is never probed, since republishing is its purpose. And the two get different closing sentences: for a release the read-back proves this run put the artefact there, for a snapshot it proves only that it is there, because an earlier run may have left it. One sentence covering both claims would be the weaker of the two.

The gradle task is fixed and not the product’s to name: the pack runs publishAllPublicationsToSimplonStagingRepository into a file repository, and release:maven uploads what was staged and reads it back. The read-back always runs (si#337). 0.24.0 let the entry name another one with task:, and si#334 measured the cost: task: publishToMavenLocal reaches no registry, so the read-back found nothing and reported a green local publish as a failed release, with a wrong diagnosis. The key was too wide rather than too weakly checked - this coordinate claims “the jars are in the registry, and I looked”, and a task that does not go there cannot be held to it. So the key is withdrawn and refused, not ignored, because ignoring task: ":core:publish" would run a different publication without a word. A publish that is not a release is the product’s own command through toolchain:run.

Java is now published and Python still is not, which is deliberate and measured. tasks/profiles.py builds four languages; this namespace publishes three of them. GitHub Packages has no Python index at all - the kinds it serves are npm, RubyGems, Maven, Gradle, NuGet and Docker/Container - so a wheel is Conan’s situation and not NuGet’s. And the route this repository itself uses for PyPI is trusted publishing, an OIDC exchange between GitHub Actions and PyPI that no command line can perform: a release:wheel would have to upload with an API token, introducing a long-lived credential where there is currently none in order to replace a verbatim workflow step. The verbatim step is the right shape there, and this is the reason. NuGet is a registry it has, so release:nuget packs a project and pushes it to nuget.pkg.github.com, and build:nuget-config and build:nuget-restore are the consuming half. There is no Conan registry in GitHub Packages at all, so release:conan is a transport: conan cache save writes an archive, this moves that archive into the registry as an ordinary OCI artifact, and build:conan-cache pulls the exact tag back for the product’s own conan cache restore. No dependency graph is solved remotely and no version range is resolved - that distinction is spelled out in Handing a package over.

deploy

Put them into an environment. Env-first: the environment is the outer token, before the group.

In the catalogue today: 3 tasks.

  • deploy:carrier
  • deploy:down
  • deploy:up

And one of the three makes the thing the other two deploy onto (si#5). deploy:carrier reads the carriers: section an environment points at and builds what it names: the machine on Proxmox, then the Portainer on it. Two tools, each in a pinned container, each doing the half it is good at - Pulumi describes a goal and keeps state, Ansible describes steps and keeps none.

It is its own command and not a preamble to deploy up, which was decided rather than assumed: two verbs, two verdicts. A setup that fails says so, instead of taking a deployment down with it - and a deploy up that created a container the first time it ran would be a very large command.

It sits under deploy and not under support, and that took back an earlier decision. Setting a carrier up needs the environment; support is environment-less by taxonomy and deploy is already environment-first. The alternatives on the table were opening support to environments, reaching the environment through a variable, and a seventh group. None was needed.

What a product brings itself. The rollout - unless it deploys to a Portainer, which is the one backend the kernel ships, because the whole chain under it is the kernel’s own. What up and down add is the half no product had: which version is going out, whether it exists, and - for a server - handing it to the backend, the product’s own where it registered one. A deploy: section says whether this is a client application installed into a directory here or a server brought up on a target, and which artifacts: entry the versions are looked up in. See deploy: in the manifest.

Distributing a client application to a fleet of machines - an SCCM, an MDM - is out of scope and is not what these grow into.

monitor

Watch what is running there. Env-first, for the same reason: “what is running” is a question about one environment.

In the catalogue today: 0 tasks.

What a product brings itself. All of it, again.

support

Host preflight, environment introspection and host tooling. Not a phase - the group the five stand on.

In the catalogue today: 17 tasks.

  • support:install
  • support:nexus
  • support:claude-plugins
  • support:claude-md
  • support:environments
  • support:workflows
  • support:completion
  • support:migrate
  • support:model
  • support:ci-privileges
  • support:ci-disk-hygiene
  • support:ci-arm64
  • support:ci-disk-preflight
  • support:ci-disk-cleanup
  • support:ci-docker-preflight
  • support:docker-preflight
  • support:toolchain

What a product brings itself. Nothing, for support:install and support:completion - they are the two tasks here the catalogue places, so every product gets support install and support completion without asking. One touches the machine and reads no manifest at all; the other writes the product’s shell completion out of the command tree every manifest already has, and a completion that has to be asked for is a completion nobody has. Four of the rest each read a section (nexus:, claude:, environments:, workflows:) and are therefore offered.

support:toolchain is offered for a third reason again (si#95): it reads no section, and it could be placed - but it WRITES the product’s own manifest, and a command that edits the file a product is defined by should be one the product asked for. What it writes is a language’s ready-made build, so that a product declares its parameters and receives the rest.

support:model (support manifest model <path>, si#346) writes the validated manifest as a firn model, package product.<product>, and it writes only after the manifest has loaded: a manifest the kernel refuses leaves no file, so a model on disk is always one of a manifest that worked - a refused run leaves the previous model in place, and the rc says whether it is the current one. Only the sections the kernel reads are modelled; a product’s own sections are ProductData with their key and nothing else. firn names take no - yet (firn#962 will allow it), so names are mangled - the non-group children get a t_, e_, i_, a_, s_ or d_ prefix - and the original is kept in key. simplon checks its own model in CI: simplon.yaml lists it under generated:, so test generated fails when the committed file is not what the command writes, and test model runs firn validate over it with the M2 packages beside it. A product’s exported model names four of simplon’s M2 packages, simplon.manifest, simplon.pipeline, simplon.catalogue and simplon.vocabulary, and since si#522 the wheel ships exactly those four as package data, simplon/m2/simplon/. Their source stays in this repository’s src/firn/: firn refuses a model folder inside its own simplon target (E105), so the build copies them, and test_wheel holds the copy to the source byte for byte. architecture and components describe simplon’s own code and do not ship. test:manifest-model (test manifest-model, which support toolchain firn scaffolds) uses them: it exports the manifest fresh, stages a firn project of its own below the output root, with the export and the M2 as a path dependency, and runs firn validate there in the product’s pinned firn image. firn’s rc passes through, and the product’s own firn.toml is not touched. simplon runs it on itself in test all and in CI. (The wheel’s top level is still simplon only: firn* is excluded since si#378 and site* since si#344 B1, when the website moved to src/site, and test_wheel holds both.)

support:ci-privileges is the one that is offered for a different reason (si#92). It reads no section at all, so by the test above it could be placed - and it deliberately is not, because it grants NOPASSWD: ALL and a docker group. A command that changes who may become root on a machine has to be something a product asked for, not something it received with the kernel. It refuses unless it is run as root, and says so: the privilege it hands out is the one the kernel needs in order to be allowed to do anything, so it cannot take it from inside a job.

support:ci-arm64 is offered for that reason at a third place (si#358). It registers a linux/arm64 emulator, which changes the host kernel for every process on it, so it is a command a person types on a runner, as root, once. It checks first, against the same simplon builder a multi-platform build uses, and installs only when that builder cannot run arm64: qemu-user-binfmt on a VM or bare metal, a boot-time binfmt_misc registration in an LXC container. Any other systemd-detect-virt answer is refused by name.

The three ci-disk-* coordinates are one mechanism split across three moments (si#327), and the split is the point rather than an accident of naming. support:ci-disk-hygiene is the one a person runs ONCE on each runner, as root: it caps container logs, bounds the build cache through the engine’s own GC and installs a daily prune timer. It is offered for ci-privileges’ reason at a second place - it restarts the docker engine, which kills every container on the machine, and that is not something anybody wants appearing in a CLI they did not ask for it in.

The other two run inside a job and need no privilege at all. support:ci-disk-preflight refuses to start work on a machine that cannot finish it; support:ci-disk-cleanup hands back what a run took, whatever that run decided. They are offered rather than placed because a product on a GitHub-hosted runner has no use for either - the machine is destroyed after every job - and a generated workflow places them for the product automatically when its runner kind says the disk survives. That is the one place in this catalogue where the KIND OF MACHINE, not the manifest, decides whether a command ends up in a pipeline.

support:ci-docker-preflight (si#623) is the third in-job half and goes first: it runs a pinned container from where the kernel uses docker and, on a refusal, names the uid and groups, the socket’s uid, gid and mode, the --group-add gids and the way out. The same runner kinds get it, placed on its own.

support:docker-preflight (si#564) asks whether docker answers on this host’s active context - the one docker context inspect names, honouring DOCKER_HOST and DOCKER_CONTEXT - instead of assuming /var/run/docker.sock, which Colima, Rancher Desktop, Podman and a rootless daemon do not use. It is red only when docker does not answer. With editor: devcontainer it also asks what VS Code’s Dev Containers extension will see, which is docker without the terminal’s DOCKER_HOST/DOCKER_CONTEXT (a VS Code started from the Dock inherits no shell export), and names the ways in (si#689): the user setting "docker.context", which only “Reopen in Container” reads, and for a window opened by URI (code --folder-uri vscode-remote://dev-container+<hex>) an authority that is the hex of {"hostPath": ..., "settings": {"context": ...}} rather than of the bare folder path, which the extension reads as default. It runs no sudo and writes no editor setting. It is offered, not placed: only a product with an editor path or a docker it cannot assume needs it.

The empty rib

monitor has no catalogue tasks. Not few: none. A product that watches an environment writes every line of it itself, and the kernel contributes the group name, the env-first gate and nothing else.

This section used to be called “the two empty ribs”, and the half that changed is worth keeping. The claim was that the empty ribs were exactly the env-first pair - the two phases about the shared environment rather than about the product’s own material - and that this made them the most expensive two to leave empty. Three products pointing at the same Portainer, the same Proxmox, the same Exoscale account are three products writing the same provider three times, and repetition of that exact shape is what the kernel was extracted to remove.

That equality stopped being true when deploy grew two tasks, and it is withdrawn rather than repaired. What survives is the implication that was carrying the argument: an empty rib is always an env-first one, because a phase about the product’s own material never sits empty. test_phases_chapter holds that direction and no longer the equality.

And what deploy gained is not the expensive half. deploy:up and deploy:down answer which version is going out and prove it exists; the provider - the thing three products would otherwise write three times - is still each product’s own. The rib is less empty and the argument is unchanged.

A documentation page that showed a filled monitor because a filled monitor is what the picture wants would be worse than no page: the reader would go looking for a command that does not exist and conclude they had misread the site.

What has to be decided before those ribs can be filled - provider in the kernel behind an extra, provider as a separate package, or provider in the product - is open as simplon#5.

The families, and where they land

The other ten coordinates name no group, so they say what a task is without saying when it runs. A product files each one where it belongs in its loop:

vcs

In the catalogue today: 6 tasks.

  • vcs:commit
  • vcs:push
  • vcs:prune-branches
  • vcs:clean
  • vcs:submodules
  • vcs:auth-scopes

Committing belongs to no phase at all, which is the clearest argument that the second axis has to exist: had every coordinate been forced to name a group, this family would have been the first thing to break. The catalogue places all six under support git.

docs

In the catalogue today: 4 tasks.

  • docs:render
  • docs:site
  • docs:reference
  • docs:acceptance

This family is the standing example of why placement is the product’s call: simplon files three of them - docs:reference, docs:acceptance and docs:site - under build, and a product that publishes its site as part of shipping would file docs:site under release and be just as right. The newest (si#204) makes the same point from the other side: docs:acceptance writes the document of what a product’s .feature files verify, and a product that regards that as an output of test rather than an input to its website would file it there.

tasks

In the catalogue today: 2 tasks.

  • tasks:generate
  • tasks:catalogue

The task machinery itself, and host tooling for whoever develops the product rather than a stage of the loop - which is why the catalogue places both under support tasks and not at the top level, where tasks would have claimed a very generic token beside build and test.

toolchain

In the catalogue today: 1 task.

  • toolchain:run

A pinned image run over the product tree, as the calling user, with named caches (si#95). It is the half of a build that is the same in every language: Java, C++, .NET and Python differ in which image runs and which argv it is handed, not in how a container is wired to a source tree.

A family rather than a placement, and that is load-bearing. A coordinate opening with a group name may only be placed under that group, and a toolchain is needed by build AND test - ctest, dotnet test and gradle test all belong under the latter. build:toolchain would have been unusable where half its callers live.

What a product brings itself. The image, the argv and the caches - or rather, it does not type them: support toolchain <language> <version> writes a ready-made configuration into the manifest, and the product owns it from then on. Scaffolded rather than resolved at run time, so a kernel release can never change how a product builds.

Every toolchain is named in toolchains: (si#525), and two of them bring no commands. support toolchain <name> adds the name to that top-level list. For python, java, cpp, dotnet and firn it also writes the commands. claude and gh are host tools: they bring a step in support install instead.

  • claude: support install installs simplon’s plugin default (eight base plugins, plus one LSP plugin for each language in the list), and so does the launcher right after it refreshed its deps. A product adds to the set or excludes from it in a claude: section and never restates it. support claude-md writes CLAUDE.md (simplon’s central working agreements, then the product’s own region between two markers, kept byte for byte) and the enabledPlugins of .claude/settings.json. List both under generated: and test generated holds them.
  • The step’s five outcomes, which never read alike:
    • off: claude is not in the list, and nothing is said.
    • skipped, and why: no claude on PATH, CI, or the container route.
    • nothing missing.
    • installed N: the line says to restart Claude Code.
    • failed: the plugin is named.
  • Exit codes: the launcher never fails a command over a plugin; support install is rc 1 on a failure.
  • The container route provisions nothing (si#710). Inside the kernel container support install skips brew, gh, the gh extensions and the plugins, each with one line saying to run it on the venv route, and the skip is rc 0. Until then the gates saw the image’s own gh and installed into the throwaway container.

And it writes every one of them under build (si#111), including unit and analyse, which the si#95 design’s own command table had put at test unit and test analyse. The split the kernel keeps is not build-versus-test by subject matter but rc versus verdict: a toolchain:run command runs a pinned image over the tree and hands back the container’s exit code, and that is all it does, while a gate under test turns one of those commands into a verdict with a setup marker and an archive (Test levels). Filing the bare ctest at test unit would stand a number with no verdict beside a verdict under one group, and the number is exactly the one that reports last week’s binaries as a full green suite. toolchain:run remains a family for the reason above and not for this one: a product may file it anywhere it needs, and the C++ use case files the very same coordinate under deploy up to run the binary it compiled.

One profile places a command under test, and the exception is measured rather than waived (si#371). support toolchain firn <version> writes firn validate as test model and firn gen as build model. The argument above is about a number that can describe something older than the tree: ctest runs the binaries the last build left behind. firn validate reads the model files as they stand, with no build step between, so its exit code is the verdict about the tree - the same shape as test typecheck-python, which runs mypy over the source and stands under test for that reason. firn’s codes are 0 clean, 1 model wrong, 2 usage, 3 no project and 70 internal, and toolchain:run hands every one back unchanged, so “no project” can never read as “clean”.

cwd: starts a command below the mount (si#371). firn reads firn.toml from the directory it starts in and takes no project option, so a firn project whose firn.toml is in src/ needs cwd: src on both commands. The tree stays mounted whole; only the working directory moves. A value that is absolute or climbs out with .. is refused by the same gate layout: build_root: uses.

One of the scaffolded commands writes an API contract (si#240). The python and java profiles carry a spec command that exports the product’s OpenAPI document into a file it commits - because an API contract is a build output like any other generated file, and the group its one real consumer already placed it in.

The two languages cost different things, and the table says which:

Python Java
what runs app.openapi() on the app object, in memory the product’s springdoc-openapi Gradle plugin
the product supplies the app, spelled the way uvicorn spells it, and where the file goes the plugin, and its own openApi { } block
network none - the export never starts a server needed; the plugin starts the application and stops it again
without the prerequisite ModuleNotFoundError, rc 1, no file written Task 'generateOpenApiDocs' not found, BUILD FAILED, rc 1

Both were measured on 2026-09-14 against real trees rather than read off a manual, and the last row is the one that decided the Java line was worth writing at all: the slot beside it stays empty because gradle check -x test runs nothing and reports success, and a command that cannot go red is worse than a missing one.

And then the contract is a file that can go stale, which is the other half. An exported document committed beside the code carries the same fact twice, so it goes in the manifest’s generated: section and test:generated rules on it - the same gate, the same six lines, for a contract as for a shell completion. That half is not a profile entry and not a language’s: see generated:.

Read the exit code against 0, never against 1. The kernel returns what the container returned and interprets nothing, and the tools disagree about what failure is worth: a failing ctest run exits 8, dotnet format --verify-no-changes exits 2 on a formatting fault, gradle test and mypy exit 1. A CI step or a gate that compares to 1 reads two of those four as a pass.

What a command declares is what the impl takes. The with: block’s keys - image, workdir, argv, env, caches - are the body’s parameters one for one, because that is how the loader binds a with: block at all (si#105). Pin every one a command uses: an unpinned parameter is rendered as a real option, so a command that leaves env: out grows a real --env - and no profile pins env: or caches:, so a scaffolded command carries both until the product writes them. A value typed into one of those is refused by the same gate that reads the manifest, naming the command, rather than crashing inside the body. What the caller types after the command name is APPENDED to the manifest’s argv, and an empty tail changes the line by not one byte.

A path in the tree over a path in the container: mounts: (si#511). npm, and every tool like it, fetches platform-specific packages for the machine it runs on. So a node_modules installed on a macOS host has no musl bindings, and a gate in an Alpine image cannot pass. The fix is a tree-local directory over the container’s copy:

with:
  image: node:24-alpine
  argv: [sh, -c, "npm ci && npm test"]
  mounts: ["build/cache/node_modules-linux:/work/src/frontend/node_modules"]
  • Form. Each entry is <path under the tree>:<absolute path in the container>, optionally followed by :ro. A source that is absolute, climbs, or reaches outside the tree through a symlink is refused. So is a target that is the tree mount itself or above it, and two entries on one target.
  • The kernel creates both ends first, as you. docker creates a missing mount point itself, owned by root. Measured with --user 4242:4242: the container’s write then fails with Permission denied, and an empty root-owned directory stays in the tree. So before the run the kernel makes the source, and the target’s place in the tree when the target lies inside it. It refuses instead, having made nothing, when a path is a file or belongs to another uid.
  • The working alternative to caches:. A caches: volume is created by docker, owned by root, so a run that is not root cannot write into it (#278, si#319). A directory under the output directory, mounted this way, is the caller’s.
  • From Python. A product that calls docker_argv itself passes Toolchain(..., mounts=[Mount(source, target)]) and calls toolchain.prepare_mounts(cfg, root, where) before the run. That function returns the refusal, or "" once both ends exist. simplon.adapters.hostpath.mount_argv spells one translated -v for anything else.

Where to go next

The six groups are the top level of every manifest, so The manifest is the next chapter to read: the tree, the group lock, and the product data sections each of the tasks above reads.

For what this looks like on a real product, the command reference is simplon’s own, generated from the assembled application on every build - and worth reading for what is not in it. There is no deploy and no monitor in that reference at all, because a group with no command anywhere under it does not render, and simplon neither deploys nor watches anything of its own - it OFFERS the two deploy tasks without placing them. The emptiness is visible from the other side there.