FLUXFLUX
  • Introduction
  • Quickstart
  • Two Specs, One Substrate
  • The Six Families
  • The FLUID Seam
  • Deterministic & Governed
  • Runtime & Evidence
  • Anatomy
  • The Nineteen Kinds
  • Versions
  • Changelog
  • JSON Schema 0.5.1
  • UI Hints 0.5.1
  • Enforcement Contract 0.5.0
  • Bundle Manifest 0.5.0
  • Overview
  • Tutorial
  • How-to guides
  • Reference
  • Explanation
  • Command line
  • Error codes
  • Accuracy program
  • The vNext Plan
  • The Nine RFCs
  • RFC-10 (proposed)
  • Conformance Profiles
Examples
What's New
FLUID
GitHub
  • Introduction
  • Quickstart
  • Two Specs, One Substrate
  • The Six Families
  • The FLUID Seam
  • Deterministic & Governed
  • Runtime & Evidence
  • Anatomy
  • The Nineteen Kinds
  • Versions
  • Changelog
  • JSON Schema 0.5.1
  • UI Hints 0.5.1
  • Enforcement Contract 0.5.0
  • Bundle Manifest 0.5.0
  • Overview
  • Tutorial
  • How-to guides
  • Reference
  • Explanation
  • Command line
  • Error codes
  • Accuracy program
  • The vNext Plan
  • The Nine RFCs
  • RFC-10 (proposed)
  • Conformance Profiles
Examples
What's New
FLUID
GitHub
  • FLUX Simulation Engine
  • Tutorial
    • First evidence pack in five minutes
  • How-to guides
    • Model your customers
    • Add a journey
    • Use the FLUID seam
    • Calibrate from aggregates: declare a scorecard
    • Ship with evidence
  • Reference
    • Command line
      • fluxsim init
      • fluxsim validate
      • fluxsim plan
      • fluxsim apply
      • fluxsim run
      • fluxsim verify
      • fluxsim ship
      • fluxsim replay
      • fluxsim calibrate
      • fluxsim accuracy
      • fluxsim gate
      • fluxsim expr
      • fluxsim describe
      • fluxsim plugins
      • fluxsim explain
    • Error codes
    • Python API
    • Schemas
  • Explanation
    • The six-step loop
    • Determinism and the seed tree
    • The FLUID seam
    • The evidence pack, and what it does not claim
  • Accuracy program

    • The accuracy program: design
    • Accuracy report

Command line

FLUX Simulation Engine: runs a FLUX bundle deterministically against the FLUID contract it references, and packs the evidence.

# start with a small working project
fluxsim init demo
cd demo
fluxsim run . --verify --ship -o out

# look up what an error code means
fluxsim explain FLX-3105

Commands

CommandWhat it does
fluxsim initwrite a small working project into a new directory
fluxsim validatevalidate a FLUX bundle
fluxsim planexecute the loop once and record plan.json
fluxsim applyapply a recorded plan and write its run directory
fluxsim runplan + apply, with --verify/--ship sugar
fluxsim verifygolden regression + row conformance + RFC-04 + fidelity
fluxsim shipthe fidelity gate, then the evidence pack
fluxsim replayre-execute a recorded plan; assert its digest
fluxsim calibratedeclared-scorecard calibration for a Playback
fluxsim accuracyoutcome-accuracy gate: register, score, record
fluxsim gateRFC-04 enforcement gate: decide, conform
fluxsim exprflux-expr/1: evaluate an expression, print an attribute model
fluxsim describeself-describe this installation
fluxsim pluginslist installed vertical packs
fluxsim explainprint the catalog entry for one FLX-nnnn code, or list them all

Options every command accepts

OptionDescription
--versionprint the version and exit
-j, --jsonemit machine-readable JSON

--json and -j may come before or after the command.

The JSON envelope

With --json every command prints one document of the same shape, so a caller never has to guess which command produced it or read stderr for the reason it failed:

{
  "stage": "validate",
  "exitCode": 0,
  "ok": true,
  "artifacts": {},
  "error": null
}

artifacts is the command's own output. error is null on success, otherwise {"code": "FLX-nnnn", "message": "..."}, where code is null for a failure with no catalogued code. A usage error is an envelope too, with exitCode 2.

Exit codes

CodeMeaning
0The command ran and succeeded.
1The command ran and failed. The message says why; a catalogued failure carries an FLX-nnnn code.
2A usage error: the command line itself was wrong, so nothing ran.
3fluxsim gate decide only: the request was decided, and the policy said no.

Environment

VariableEffect
FLUX_ZONEThe run's declared zone for sovereignty checks, used when --zone is not given.
FLUX_DEBUGAny non-empty value prints the traceback of an unexpected failure.
FLUX_NO_PROGRESSAny non-empty value silences the progress lines and the next: hints that a terminal otherwise gets on stderr.

All error codes

Last Updated: 11/12/26, 10:41 PM
Next
Error codes