Upgrade FLOP miners, validators, SDKs and agents
Published packages. Use the versioned install commands in SDK and package references, the shared baseline checked against public registries. They install without private registry configuration. Image and validator bundles still require the release operator's independently approved version, digest and source receipt. The source repository is private; external operators receive reviewed bundles from the network operator.
Python session helpers require explicit caps; migrate callers using the published README. Published packages do not establish successful live enrollment, additional allowance, or paid settlement. Docs deployment remains a separate release step.
This release targets the existing devnet. It does not activate a new runtime, change genesis, register another miner account or rotate signing keys.
Choose the upgrade that applies
| Component | Published package or owner-qualified bundle | Action |
|---|---|---|
| HTTP contracts | HTTP contracts | Bounded chat waiting and dual licensing. |
| HTTP client | HTTP client | Supported-model discovery and task correlation. |
| TypeScript SDK | TypeScript SDK | Migrate budget estimation; check the exact shipped runtime admission list; content-v1 model identity. |
| Pi | Pi | Check the packaged Pi peers. Bounded cold admission and recovery. |
| Full CLI | Full CLI | Authenticated miner diagnostics, checkpoint handling and bounded direct sessions; flop model onboard registers the content-v1 root. |
| Python SDK | Python SDK | Install the pinned PyPI release and retain the lockfile. |
| Standard miner images | Versions in https://flop.network/releases.json | Select the approved immutable image for each service. |
| Hybrid loading controller | Separately qualified runtime bundle | Requires its own image pin, source revision and GPU acceptance receipt. |
| Validator node and DA worker | Approved validator bundle | Retain the existing chain, keys and data; check required host functions. |
Image build versions, npm package versions, and the public Hermes launcher version are different version sequences. Do not derive one from another.
Miners: preserve identity and finish existing work
- Record the current image digests, source revisions, account address and service owner. Back up the private environment, signer, enclave/Ghost/audit keys, persistent volumes, checkpoints, lease/claim journals and private evidence. Keep the same registered model identity and decode policy.
- Ask the gateway operator to pause new matching and resident holds for this miner. Drain its owning worker. Leave it running until funded work, signed claims, recovery and all reservations reconcile. A six-hour reservation may require waiting for its fixed expiry. Never start a second account owner.
- Retrieve the standard-image manifest:
curl --fail --silent --show-error https://flop.network/releases.json \
--output releases.json
jq -e '.cli.image and .["miner-worker"].image and .["miner-vllm-toploc"].image' releases.json
Have the operator confirm each version, minimum and vX.Y.Z@sha256:… pin against the release receipt. The manifest's latest is build metadata; require the smoke and GPU qualification evidence for the intended model. Registry access must work using the operator's own credentials or supplied runtime bundle. Keep credentials on the host.
- For the standard Compose miner, update only
FLOP_WORKER_IMAGEandFLOP_BACKEND_IMAGEin its existing private environment to those approved pins. Use the supplied Compose files to pull and recreate those services. Preserve mounts, ports, authentication and the single selected backend. Current Compose files also require the audit evidence key: if the private environment has noSESSION_AUDIT_EVIDENCE_KEY_FILE, create the key only if it is absent and add its path once, as Audit evidence store in the miner manual shows. Never replace an existing key. The new-miner registration and funding steps are not upgrade steps. - Qwen/hybrid miners need the qualified glibc prover runtime. The standard
miner-workerlacks that prover and is not a substitute. The historical H100 trial pinminer-worker-hybrid:v0.1.211@sha256:d36097ec38b21b17374e60995b61d0ba0a9bf9fcb759066e4190637005cc4a40predates the packaged installer API. Use that API only after receiving a newly qualified bundle and its exact image and 40-hex source revision:
The packaged installer targets Linux x64 with Node 24, systemd, local Docker and the NVIDIA container runtime. Keep the existing authenticated HTTPS proxy. Its root-owned, mode-0600 /opt/flop/controller-install.json names version: "flop.controller-install.v1", root: "/opt/flop/controller" and env_file: "/opt/flop/miner-host.env". That private environment must reference the existing host keys, loading profile, journals and evidence; translate container paths to their actual host mounts. After draining the old standing owner, unset MODEL_HASH and SESSION_OFFER_INDEXER_URL for this loading-only worker. Keep all original limits and credentials.
: "${CONTROLLER_IMAGE:?set the approved version-and-digest image}"
: "${CONTROLLER_REVISION:?set its approved full source revision}"
sudo node controller.mjs install --config /opt/flop/controller-install.json \
--image "$CONTROLLER_IMAGE" --revision "$CONTROLLER_REVISION"
sudo node /opt/flop/controller/current/controller.mjs doctor \
--config /opt/flop/controller-install.json
Installation leaves admission paused. Inspect the result, then use the bundle's resume command. If it advertises checkpoint-preparation, its prepare --model qwen/qwen3.8-27b command can verify or fetch the approved checkpoint before sessions arrive. Resume the controller before preparation while gateway matching remains paused. Preserve the pinned publisher revision, measured root and finalized model policy. prepared is not GPU readiness or paid admission. Legacy supervisors must be drained and stopped explicitly before handing ownership to the managed systemd service.
- Check authenticated session metadata:
Run these diagnostics with the full CLI supplied in the operator's runtime bundle or CLI image.
: "${SESSION_URL:?set this miner's HTTPS session-info URL}"
# SESSION_AUTH_TOKEN stays in the existing private host environment.
flop miner doctor --session-url "$SESSION_URL" --json
Confirm image revision, controller capabilities, calibration, model identity, DA retention and readiness. Run a bounded paid session and verify proof and positive finalized settlement before the gateway resumes matching. Keep other hosts serving during the canary. H100 evidence does not qualify H200; six-hour residency requires its own full-duration acceptance run.
Rollback: pause matching and drain again. After all obligations reconcile, install the previous approved compatible pin using the same supported procedure. Preserve terminal checkpoints as well as active journals. Do not clear locks or fences to force a downgrade, use down -v, regenerate keys or discard recovery state. A code rollback cannot undo finalized payments, fees or expired deadlines.
Validators: upgrade one member at a time
An SDK upgrade does not activate a runtime or require resubmitting one. The network operator must compare the live code hash with the approved WASM and check existing migration/storage versions before proposing any further runtime activation. Such an activation has its own approval and fork-test procedure.
- Obtain the approved node/DA image pair, raw chain spec, genesis hash and checksum manifest. Verify the bundle's outer checksum, internal
SHA256SUMSand preflight checks. The existing public devnet handoff isvalidator-cs-be91fe83, version0.4.1-devnet.1, as recorded in the validator setup guide. Verify its published archive and checksum using that guide. Older archives remain immutable; availability alone does not establish a supported minimum or a forced-upgrade deadline. - Record the current images, finalized height, peers and BABE/Aleph session-key ownership. Back up the database, keystore, private environment and DA custody data using the deployment's consistent-backup procedure. Preserve pruning mode, base paths, genesis, bootnodes and stake. Do not generate new keys or repeat registration/promotion for an already active validator.
- Coordinate with the network operator so the remaining online voting weight exceeds two thirds. The node must supply the approved V3 hybrid host interface used by the active devnet runtime; a matching version label alone is insufficient. Reject a binary that lacks the required host functions.
- Replace only this host's approved image pins. In the existing validator bundle directory, with its private environment and supplied Compose files:
docker compose config --quiet
docker compose pull validator da-validator
docker compose up -d --no-deps validator da-validator
docker compose ps validator da-validator
Confirm these service names against the supplied bundle. Keep RPC private and safe. Never run the old and new process with the same session keys at once.
- Confirm the same genesis, runtime compatibility, advancing finalized height, catch-up, BABE authoring, Aleph voting and DA custody before moving to the next validator. Compare observations across an epoch boundary. Stop the rollout if finality stalls or custody/host-function checks fail.
Rollback: stop the replacement and restore the previous image only when its database and active runtime remain compatible. An incompatible database requires the consistent backup or an operator-approved resync. Never discard DA custody data that still backs a live lease. Reverting an image cannot reverse an on-chain migration, stake operation or slashing event.
SDK users: migrate budget decisions before upgrading
Update the packages your application actually uses from npm and commit its lockfile. If you routed @flop-labs to GitHub Packages for an earlier release, it serves the same files; npm config delete @flop-labs:registry returns the scope to npm.
Use the pinned TypeScript SDK install, or the lightweight HTTP client when only the gateway API is needed.
estimateFee, selection helpers and QuickStartAgent budget checks now require measured pricing plus explicit inputTokens and outputTokens. Build pricing with meteredPricing from the verified checkpoint configuration, authenticated miner identity/calibration, live catalog price and chain constants. Carry the verified hf_quant_config.json bytes, or explicit null when the verified tree has none. Omitting that result is an error; ModelOpt FP8 must not become BF16. Use meteringByModel for candidate selection and refresh expired pricing.
Handle METERING_REQUIRED, TOKEN_SPLIT_REQUIRED, METERING_UNAVAILABLE and the agent SDK's B005 as unavailable budget authorization. Do not catch them and submit using the old token-rate estimate. Display-only estimates cannot authorize spending. Escrow estimates exclude channel transaction fees.
Use the exact artifact admission list described in SDK references. SUPPORTED_SPEC_VERSION_RANGE is informational, not an admission rule. Client admission does not establish a live runtime activation or a successful paid journey. Compare the finalized code hash and runtime version with the operator's approved receipt. Keep compatibility checks enabled. Direct sessions now default to a 256-token completion budget; request a supported explicit limit when needed and inspect finish_reason and completion_tokens.
If you send X-Client-Version, keep its supported wire declaration 0.2.0. It is not the npm package version; sending 0.4.0 in that header is rejected.
Python users install the published release from PyPI and pin it; repository access is no longer needed:
Use the pinned Python SDK install.
Python HTLC creation needs the registered appraisal tuple. Secret hashing uses raw preimage bytes; preserve existing secrets and handle older live HTLCs through their original compatible path. HTTP-only helpers cannot sign writes; use the Substrate client. Rust consumers pin the approved Git rev in Cargo.toml and retain strict versioned receipt/FCC4 decoders. Do not reinterpret legacy evidence. Test connect, metadata, estimation and a bounded settlement with the upgraded application before allowing ordinary spending.
Agents: keep credentials and spending limits
- Save the current package lockfile, private credential configuration, pending job IDs and durable paid-work journals. Finish or reconcile in-flight work before changing its owner. Preserve existing quotas and daily limits.
- Use the pinned Pi install. Check the documented Pi AI and Pi Durable peer requirements before upgrading. Back up the SQLite store before upgrading: Pi Durable 1.4 migrates it, and 1.3 or earlier cannot open it again. Upgrade a full CLI invocation with the pinned npm CLI command; do not globally replace the public Hermes launcher's
flopcommand. The hosted Hermes launcher and provider have independent versions; do not replace a working provider just because the npm SDK version changes. - Migrate agent SDK budget calls as above. Use the public devnet endpoints
wss://rpc.devnet.flop.networkandhttps://api.flop.network, or the explicitly approved network profile. Preserve broker credentials and ephemeral scope. Never log credentials or grant extra quota during upgrade. - Opt into cold starts only with explicit cost and wait bounds.
max_wait_msdoes not authorize extra spend; recovery must retain the original task and settlement identity. Preserve durable Pi jobs and resident reservations. - Local MCP installations must retain their trusted-local/write opt-in; hosted MCP stays read-only. Removed
flop_x402_paycallers migrate toflop_x402_http_callwith explicit host, network, asset, payee and spend caps.flop_redeem_htlcrequireshtlc-tee-v1, positive work units and the signed claim. Quote inspection that reportsunverifiedis not attestation proof. - Restart the integration, check discovery and credential scope, then run one bounded paid task through finalized settlement and a restart/recovery check.
Rollback: restore the previous compatible package/lockfile or image after reconciling pending work. Keep credentials, durable jobs and payment journals. Do not blindly retry an uncertain charge or downgrade a journal's format. Record which version is safe before resuming scheduled agent work.