41af2124VM execution in source builds#
Selective fleet VM execution is unreleased and is absent from the published
0.1.26 archives. A current source build includes vm/README.md, the host
prerequisite helper and the Packer recipe beside the ordinary distribution.
The
VM guide
covers image selection, approved mounts,
provider login, finite resource groups and cleanup. The same configuration applies
to managed C#, NativeAOT and Rust. Server Docker deployment is unchanged.
Prerequisites#
The current publisher targets Linux x64. Building requires a source
checkout, Node.js 26+, npm 11.17+, the .NET SDK pinned in global.json, the
repository’s EF/NuGet pins, GCC and the NativeAOT native-link dependencies.
Use the exact .NET 11/EF preview pins. NativeAOT build diagnostics are not
suppressed; supported product tests and dependency limitations are reported
separately.
Installed products are native executables and need no .NET SDK or runtime installation. They still depend on the Linux system libraries selected at link time; this is not a static or musl distribution. Fleet agents require Node for the shared tool client, the selected Codex or verified Pi 1.0.0 executable and an authorized native provider login. Remote commands require SSH.
The server operator requires rootless Docker and a completed container package. Building the NativeAOT runtime and Knex images requires a source checkout. Public deployment requires operator-owned DNS, HTTPS and separate application/content hostnames. The full verification bank additionally requires Rust, Chrome and native test assets. These commands do not install host services or provider credentials.
Download a native distribution#
Native release archives for 0.1.26 and SHA256SUMS are public. Anonymous downloads of all four assets were verified against the recorded checksums on 5 November 2026. The release inventory records exact files and checksums. Setup never downloads or substitutes a different release automatically.
Release archives contain all three products and their shared artifacts. Download one selected target, verify its checksum and retain the extracted layout:
set -eu
version=0.1.26
archive=ctlflow-csharp-nativeaot-$version-linux-x64.tar.gz
base=https://github.com/control-flow-project/ctlflow/releases/download/v$version
curl -fLO "$base/$archive"
curl -fLO "$base/SHA256SUMS"
sha256sum --ignore-missing --check SHA256SUMS
mkdir -p /absolute/releases
tar -xzf "$archive" -C /absolute/releases
export PATH="/absolute/releases/ctlflow-csharp-nativeaot-$version-linux-x64/fleet:$PATH"
fleet --helpThe checksum file covers the release archives. These commands install no host service and start no controller or agent. Keep fleetd and its artifacts beside fleet in the same extracted distribution. Local source builds remain available below and produce the same selected native implementation.
Build and package#
From the repository root, with an existing output parent and a new destination:
systemd-run --user --scope --quiet \
--property=MemoryMax=16G --property=MemorySwapMax=0 \
--property=TasksMax=2048 /bin/bash -c \
'npm ci --ignore-scripts && npm run publish:csharp -- --mode nativeaot --output /absolute/releases/csharp-nativeaot'The publisher stages all products before renaming the completed directory.
It produces crossfire/Crossfire.Server, fleetd/fleetd, fleet/fleet, common
web/tool assets, licenses, the implementation README and distribution.json. The manifest
records implementation, mode, platform, coordinated version, tool release and
executable paths. Retain all files, including native dependency data/notices.
Local publication does not upload a release, publish npm packages or activate an instance. No managed backend is embedded as a fallback. All npm workspaces are private tooling dependencies.
Install and run the server#
Server deployment uses Docker Compose with the selected csharp-nativeaot image and
matching one-shot Knex image. Build the three backend kits from source with
npm run package:containers -- --output /absolute/packages. Copy the complete
selected directory, including release.json, images.tar, package-tool.mjs and
compose.yaml, to the deployment host. The trusted maintenance helper requires
Node.js 26; these examples also use jq. No host SDK is required to run an image.
Verify/import trusted artifacts before stopping any current writer:
set -eu
node /absolute/packages/csharp-nativeaot/package-tool.mjs verify \
/absolute/packages/csharp-nativeaot > /absolute/private/verified-images.json
export CROSSFIRE_RUNTIME_IMAGE=$(jq -r .runtimeImage /absolute/private/verified-images.json)
export CROSSFIRE_MIGRATION_IMAGE=$(jq -r .migrationImage /absolute/private/verified-images.json)
export CROSSFIRE_STATE=/absolute/private/crossfire-state
export CROSSFIRE_PORT=8098 CROSSFIRE_CONTENT_PORT=8099
export CROSSFIRE_INSTANCE=team CROSSFIRE_SERVER_NAME=team.localhost
export CROSSFIRE_ORIGIN=http://127.0.0.1:8098
export CROSSFIRE_CONTENT_ORIGIN=http://localhost:8099
export CROSSFIRE_ADMINISTRATOR=admin
docker compose -p team -f /absolute/packages/csharp-nativeaot/compose.yaml \
--profile maintenance run --rm initialize
docker compose -p team -f /absolute/packages/csharp-nativeaot/compose.yaml \
up -d --no-build --waitRun initialize only for new empty state. It refuses nonempty state and writes
the initial administratorPassword in private bootstrap.json. Compose starts the
runtime only after the common Knex job succeeds. Existing configuration,
credentials, Matrix data and publications remain in the selected state directory.
The server never migrates at startup. There is no crossfire start Docker
operator or automatic backend fallback.
For upgrades, verify/select the matching release, use the SAME project/state, stop writers and remove the completed job before starting:
docker compose -p team -f /absolute/packages/csharp-nativeaot/compose.yaml stop crossfire
docker compose -p team -f /absolute/packages/csharp-nativeaot/compose.yaml rm -f migrate
docker compose -p team -f /absolute/packages/csharp-nativeaot/compose.yaml up -d --no-build --waitA failed migration blocks activation. Inspect the migrate service logs and correct its failure before retrying; never delete state or volumes to recover. Backups are optional and operator-managed. SQLite backups must include committed WAL state through its backup API or a quiescent procedure.
The example serves Element at http://127.0.0.1:8098/ and management at http://127.0.0.1:8098/manage/. Reports use the separate content origin. Public hosting needs exact HTTPS origins, separate proxy routes and trusted ingress. These are local example addresses, not live deployment evidence.
Install and connect fleet and fleetd#
Retain the sibling fleet and fleetd directories. The CLI resolves the native
controller and fleetd/artifacts from that layout, not an npm installation.
export PATH="/absolute/releases/csharp-nativeaot/fleet:/absolute/releases/csharp-nativeaot/fleetd:$PATH"
fleet --help
fleet setup --descriptor 'https://example.test/onboarding/setup.json?ownerBackendUserId=%40member%3Aexample.test'
fleet listUse the actual personalized descriptor from management and its matching release.
Setup starts or reuses a private controller, creates a separate managed native
conversation and waits for human enrollment approval. The invoking assistant
remains independent. Optional --root /absolute/private/controller and
--config /absolute/private/fleet/runtime.toml use the shared loader.
Restore an existing controller with its original root:
fleet daemon start --root /absolute/private/controller
fleet daemon status --root /absolute/private/controllerSaved registry, activation and histories remain authoritative. Deliberately stopped bindings stay stopped. No boot service is installed automatically.
Upgrade and verify#
Record the exact source revision and distribution manifest. Use the server’s Compose upgrade sequence above, retaining the common Knex-created database. Do not merge files into an active executable release directory. Stop the old controller normally before selecting a new executable with its original root.
Use the new CLI’s fleet update FLEET or
fleet agent update FLEET INSTANCE, then restart fleetd with the same root.
Remote updates require the exact installed remote
/absolute/releases/csharp-nativeaot/fleetd/artifacts directory. Inspect outcomes,
effective settings, saved histories and prior enabled/stopped selection.
fleet test FLEET checks readiness without model input. From source, run the
following inside the same finite scope:
npm run verify:csharp
npm run verify:parity -- /absolute/new-evidence-directoryThe C# bank executes actual managed and NativeAOT programs. The integrated bank also runs Rust, shared installed/browser/container behavior and migrations. Passing fixed supported EF queries does not establish arbitrary dynamic query, reflection or plugin support. Linux x64 inert-provider results do not certify other hosts, paid models or all subprocess failure cases.