A simulated target replaces the driver and the gateway of a target by a simulation engine, driven by a YAML description. It serves dry runs, the CI of procedure repositories, load tests and the training of operators — before any hardware exists.
The engine, stellar-simulator, registers as a driver and as a gateway, under the same contract
as real ones: Stellar Control does not tell a simulated target from a real one, except by the environment
that allows it (typically SIM). A procedure validated on a simulated target runs unchanged on a
flatsat and in orbit.
A simulation#
Simulations live in simulations/<name>.yaml of the configuration repository. stellar check
compiles them against the catalogue of their platform, and the engine reads them from the
repository. The HSC-100 camera of the
Payload integration use case, simulated
(simulations/hsc-100-sim.yaml, shortened):
simulation: hsc-100-sim
platform: hsc-100@1.0.0
seed: 1
initial:
camera:
responding: true
mode: STANDBY
last_status: OK
input_voltage: 12 V
input_current: 0.15 A # 1.8 W in STANDBY (ICD §2)
detector_temperature: 22 degC # detector off: at the temperature of the optics bench
detector_setpoint: 18 degC # default setpoint (ICD §10)
storage_free: 68719476736 B # 64 GiB
cover: CLOSED
telecommands:
# Asks for the housekeeping record (port 10).
camera.housekeeping:
reply: {responding: true}
delay: 100 ms
# Settings of the next acquisitions (port 12).
camera.configure_acquisition:
reply: {last_status: OK}
delay: 150 ms
# Setpoint of the detector temperature (port 15): the TEC follows it.
camera.set_detector_setpoint:
reply: {last_status: OK}
delay: 150 ms
ramp:
detector_setpoint: {to: args.temperature, rate: 10} # degC/s
detector_temperature: {to: args.temperature, rate: 0.5}
# Releases the launch cover (port 16): the burn wire fires within 5 s.
camera.release_cover:
reply: {cover: RELEASED, last_status: OK}
delay: 3 s
measures:
camera.input_voltage: {noise: 0.02 V}
camera.detector_temperature: {noise: 0.03 degC} # regulated: well within ± 0.5 °C
# Switched on during a run (`stellar sim fault <gateway> <fault> on`), as ICD §9 describes them.
faults:
tec_fault: # the TEC cannot reach the setpoint: SAFE
camera.tec_fault: true
camera.mode: SAFE
camera.detector_temperature: 29 degC
under_voltage: # the EPS channel sags: SAFE
camera.under_voltage: true
camera.mode: SAFE
camera.input_voltage: 10.2 V
files:
quicklook: {every: 2 min, size: 48 KiB}
cube: {every: 10 min, size: 256 KiB}
log: {every: 30 min, size: 16 KiB}The full file also plays the cooling of the detector and the course of an acquisition (see What a telecommand does next).
The description is compiled against the catalogue: an unknown telecommand, measure, component,
instance, argument or file type is an error (simulation::unknown-…), shown in the editor like any
diagnostic. stellar schema simulation prints its JSON Schema.
A simulation written from the catalogue#
A platform needs no simulation written by hand to be simulated: stellar generate simulation
writes one from its catalogue, a simulated target that keeps the contract of the catalogue — each
telecommand gives what its verification (ACK 3) expects — and a starting point to make more
realistic.
stellar generate simulation hsc-100 --repository . # simulations/hsc-100-sim.yaml
stellar generate simulation hsc-100@1.0.0 --name hsc-100-twin -o twin.yamlWhat the catalogue says becomes behaviour:
| In the catalogue | In the simulation |
|---|---|
verify: [{mode: STANDBY, within: 5s}] (a boolean or an enum) | reply: {mode: "STANDBY"} after a delay of a fifth of the window, 1 s at most |
verify: [{voltage: args.voltage, within: 3s}] (a number) | ramp: {voltage: {to: args.voltage, rate: …}}, reached at half the window: the rate covers the range of the argument, else the limits of the measure |
A condition without within | reply, at once |
An argument that is a rate of the measure (ramp in V/s) | ramp at that rate: rate: args.ramp |
verify: [echo] alone | The telecommand described with no effect ({}), which the engine echoes |
| Conditions in expressions | Inverted when they can be: not responding, a and b, mode is not SAFE, pressure < 50 kPa, stable(…) |
A parameter with set and readback | The readback takes the argument of the setter |
| Limits of a measure | Its initial value in the middle of its soft limits (else hard) |
requires of the telecommands | Initial booleans and enums that meet them |
| Alarms | Initial values that keep them quiet; a fault raising each (<component>_<alarm>) |
| Hard limits | A fault past the high limit (<component>_<measure>_high) |
| Float measures | A noise of 0.2 % of their limits; a fifth of the tolerance of a readback; none on a measure compared exactly by a verification |
stream component | stream: start and stop for the telecommands named so |
files component | A file of each type every 10 min |
What the catalogue does not say is listed at the end of the file and on the terminal, to complete by hand: the effect of a telecommand that changes the state without a verification (the current of a load), a condition that cannot be inverted, an alarm without a fault. The telecommands are commented with their description.
Before writing, the command compiles the simulation and checks it: each telecommand is sent alone to a fresh engine, in simulated time, and its verifications are evaluated as the executor would.
hsc-100-sim on hsc-100@1.0.0: each telecommand sent alone, its verification evaluated
camera.ping ok verified after 0s (data="00")
camera.housekeeping ok verified after 1s
camera.set_mode skipped its precondition `args.mode is STANDBY or args.mode is READY` does not hold in the initial state (mode="SAFE")
camera.configure_acquisition ok verified after 0s (integration_time=4000, binning="X1", lines=1024, band_set="FULL", compression="LOSSLESS")
camera.start_acquisition skipped its precondition `can_acquire` does not hold in the initial state
camera.abort_acquisition skipped its precondition `mode is IMAGING` does not hold in the initial state
camera.set_detector_setpoint ok verified after 2750ms (temperature=17.5)
camera.release_cover ok verified after 1s
camera.erase_storage ok verified after 0s
wrote ./simulations/hsc-100-sim.yaml
To complete by hand (also at the end of the file):
- alarm `camera.no_reply`: a fault raising it (`silent`)An existing file is kept (--force replaces it): the command then says so and exits with 1
(`./simulations/hsc-100-sim.yaml` exists: it is kept (`--force` to replace it, `--output` to write elsewhere)). It also exits with 1 when a telecommand is not played as its catalogue
verifies it.
Checking a simulation: stellar sim check#
stellar sim check hsc-100-sim --repository .The same check, on a simulation of the repository, written by hand or generated and edited: it needs no message bus. On the simulation of the Payload integration repository:
hsc-100-sim on hsc-100@1.0.0: each telecommand sent alone, its verification evaluated
camera.ping ok verified after 0s (data="00")
camera.housekeeping ok verified after 0s
camera.set_mode skipped its precondition `args.mode is STANDBY or args.mode is READY` does not hold in the initial state (mode="SAFE")
camera.configure_acquisition ok verified after 0s (integration_time=4000, binning="X1", lines=1024, band_set="FULL", compression="LOSSLESS")
camera.start_acquisition skipped its precondition `can_acquire` does not hold in the initial state
camera.abort_acquisition skipped its precondition `mode is IMAGING` does not hold in the initial state
camera.set_detector_setpoint ok verified after 200ms (temperature=17.5)
camera.release_cover ok verified after 3s
camera.erase_storage ok verified after 0sEach telecommand gets a verdict:
| Verdict | Meaning |
|---|---|
ok verified after <t> | Its verifications held, the last one t after it was sent; its echo came when the catalogue verifies it |
ok nothing to verify | The catalogue verifies nothing of it |
skipped | Not checkable offline: its precondition does not hold in the initial state, or a verification reads a temporal function |
FAILED | A verification did not hold in its window, or the echo did not come |
The arguments are their default, else the middle of their range, else the last value of their
enum, true or a byte. When a precondition of the telecommand refuses them in the initial state,
each other value of an enum argument without default is tried, one argument at a time, and the
first one the preconditions accept is sent (set_mode with requires: [args.mode is STANDBY or args.mode is READY] is sent with STANDBY). skipped says whether the arguments sent were
refused, or every value of the enum (for any value of mode``). The command exits with 1 when a
telecommand failed.
Reference of the format#
Top level#
| Key | Required | Meaning |
|---|---|---|
simulation | yes | Name of the simulation, and software name of its driver (hsc-100-sim) |
platform | yes | Catalogue simulated, name@version |
seed | no | Seed of the random generator; 0 by default |
period | no | Publication period of the measures; 1 s by default |
initial | no | Initial values |
telecommands | no | Effect of each telecommand |
measures | no | Models of the measures |
faults | no | Named fault scenarios |
gateway | no | The simulated link: rate, passes, losses, COP-1 |
files | no | Files generated in the on-board directory |
Names#
A telecommand or a measure is written alone when its name is unique in the platform, else
component.name. The measures of a reply or a ramp are those of the component of the
telecommand, for the instance the telecommand is sent to.
In initial and faults, a key names a component — channel[*] for all its instances,
thermal[PAYLOAD] for one, camera for a component without instances — or a measure directly
(camera.mode, channel[PAYLOAD].tripped). The simulation of the 6U CubeSat of the
Satellite integration use case
(simulations/cubesat-6u-sim.yaml, shortened):
initial:
channel[*]:
enabled: false
current: 0 A
tripped: false
"thermal[PAYLOAD]":
temperature: 12 degC # the payload bay, cooler: its heater is needed
faults:
payload_channel_trip: # over-current on the payload channel
"channel[PAYLOAD].tripped": true
"channel[PAYLOAD].enabled": false
"channel[PAYLOAD].current": 0 AValues#
Literals with their unit (0 V, 1.2 A), booleans, enum values, or an argument of the
telecommand (args.mode). A measure without initial value is 0, false, or the first value of
its enum.
Telecommands#
| Key | Meaning |
|---|---|
reply | Measures set after delay: a value, or args.<argument> |
delay | Delay before the reply and the ramps start; none by default |
ramp | Measures moving towards to at rate (unit of the measure per second); both accept args.<argument> |
stream | start or stop: the telecommand starts or stops the stream it is sent to (a telecommand of the stream component) |
then | What the target does next by itself, in order: the transitions an equipment goes through after a command |
A telecommand whose catalogue declares verify: [echo] receives a conforming echo when the
simulation describes it, with no effect if need be: camera.ping: {}, as
stellar generate simulation writes it for the HSC-100.
What a telecommand does next: then#
An equipment often goes on by itself after a command: a camera told READY cools down, then
is ready once its detector reaches its set point; an acquisition goes back to READY when it
ends. then lists these steps, applied in order after the first effect of the telecommand:
# simulations/hsc-100-sim.yaml, Payload integration use case
telecommands:
# STANDBY, or READY through COOLING (port 11): the TEC brings the detector to its setpoint.
camera.set_mode:
reply: {mode: COOLING, last_status: OK, tec_power: 2.2 W}
delay: 200 ms
ramp:
detector_temperature: {to: 18 degC, rate: 0.2} # degC/s: 20 s from 22 degC
input_current: {to: 0.54 A, rate: 0.1} # 6.5 W while cooling
then:
- after: 120 s # TEC_FAULT beyond, in the real camera
until: "detector_temperature <= 18.1 degC"
reply: {mode: args.mode, input_current: 0.375 A} # READY at 4.5 W
# Starts an acquisition (port 13): 20 s of imaging, 11 W.
camera.start_acquisition:
reply: {mode: IMAGING, last_status: OK, acquisitions: 1, last_acquisition: 1, input_current: 0.92 A}
delay: 150 ms
ramp:
acquisition_progress: {to: 100, rate: 5} # %/s: 20 s of imaging
storage_free: {to: 68404903936 B, rate: 15728640} # the cube, 300 MiB
electronics_temperature: {to: 27 degC, rate: 0.15}
then:
- after: 20 s # back to READY by itself (ICD §5.2)
reply: {mode: READY, acquisition_progress: 0, input_current: 0.375 A, next_acquisition_in: 600 s}
ramp:
next_acquisition_in: {to: 0 s, rate: 1} # the duty cycle, 10 min| Key of a step | Meaning |
|---|---|
after | Required. When the step applies, from the end of the delay of the telecommand; with until, the latest it applies. The steps are in the order of their after (simulation::then-order) |
until | A condition: the step applies as soon as it holds, after at the latest. It reads the measures of the component (faults applied), its derived measures and the arguments of the telecommand (args.mode is READY), as a verify does; no temporal function (a derived measure over time is unknown there, and the step waits for its after) |
reply, ramp | As for the telecommand, args.<argument> included; at least one of them (simulation::empty-step) |
- A step never applies before the one above it, nor before the end of the
delay. untilis evaluated every 100 ms of simulated time, on the same instants whatever the speed of the simulation: a seed replays the same run.- A command received meanwhile takes over. A telecommand sent to the same instance cancels
the steps still to come of the earlier telecommands, when they set or ramp a measure it sets
or ramps itself. For example,
set_mode STANDBYduring the cooling of aset_mode READYleaves the camera inSTANDBY. - A fault keeps its forced values over the steps.
stellar sim check and stellar generate simulation let the steps run within the window of
each verification. verify: [{mode: args.mode, within: 130s}] holds once the step sets the mode.
Measures#
| Key | Meaning |
|---|---|
noise | Standard deviation of a Gaussian noise, in the unit of the measure (0.02 V) |
model: first_order | The measure tends towards target with the time constant tau |
target, tau | Target value and time constant of the first-order model |
Faults#
A fault is a named set of forced values. While a fault is active, its values replace those of the
model. Faults are switched while a run is in progress, to test if failed blocks, alarms and their
reactions (see Driving faults).
The simulated link: gateway#
| Key | Default | Meaning |
|---|---|---|
rate_bps | 1 000 000 | Theoretical rate announced by the gateway at registration, in bit/s |
passes | none | Fictitious passes: {first, every, duration}, in simulated time |
loss | none | Share of the frames lost in each direction, 10 %, up to 90 % |
cop1 | false | Telecommands go up in TC frames sequenced by COP-1 |
- Passes.
passes: {first: 0 s, every: 90 min, duration: 10 min}— a pass lasts at most its period (simulation::invalid-passes). Outside a pass, the gateway reports the link unavailable, refuses the uplink and publishes no frame: current values age as in orbit. Withoutpasses, the link is always available. The measured throughput is the one the SDK counts. - Losses.
lossdrops that share of the frames each way: a telecommand sent but never received on board, a downlink frame never published. It exercises retries, timeouts and the retransmissions of file transfers. - COP-1. With
cop1: true, telecommands go up in AD frames of a fixed virtual channel, taken on board by a FARM-1 whose CLCW comes down in the telemetry. The simulated transportsim-cop1@1, which the link declares, runs COP-1 and lets the rest through. See COP-1 and the Link Component.
On-board files: files#
# The storage of the HSC-100: a quicklook every 2 min, a log every 30 min (small cubes: the
# simulator writes real contents).
files:
quicklook: {every: 2 min, size: 48 KiB}
cube: {every: 10 min, size: 256 KiB}
log: {every: 30 min, size: 16 KiB}For each file type declared by the files component of the catalogue (file_types: [cube, quicklook, log] for the HSC-100), a file is born at each multiple of every in simulated time,
of the given size.
- A file has an identifier (numbered from 1 in the order of generation), a type, a size, a generation date and a generation (1 at birth). Its checksum uses the algorithm of the catalogue.
- Its content is deterministic (seed, identifier, generation), except for a file of type
lttm(long-term telemetry; none in the use cases): it records the samples of every measure at its generation, one JSON line per on-board instant, one period apart going back, padded with newlines to its size. The simulated driver decodes thelttmfiles into deferred samples. - The
listtelecommand of the transfer protocol brings down a directory frame, decoded into measures offiles; thereadtelecommand brings down a chunk frame, at the rate of the link. Requests not served are lost at the end of a pass or when the gateway restarts. - The
writetelecommand writes on board and returns an echo. Its first chunk, at offset 0 and different from the content in place, starts a new generation; an absent file is created, of the last declared type. The checksum of a written file is computed at the next listing. - For a platform that transfers its files with CFDP, the simulator runs a CFDP entity on board (entity 2; the ground is entity 1). It sends the files the ground asks by Proxy Put Request, within the rate of the pass, and writes the files it receives. Its PDUs suffer the losses, which exercises NAKs and retransmissions.
Streams#
A telecommand marked stream: start starts the stream it is sent to; stream: stop stops it. A
stream produces its segments on board at its nominal rate; outside a pass, they are lost. See
Continuous Streams.
Raw values#
For a measure calibrated by Stellar Control (raw and calibration in the catalogue), the engine
publishes the raw value by inverting the calibration: polynomial of degree 1, monotonic table, or
enumeration. Another calibration is refused when the simulator starts.
Determinism#
The clock of the engine is simulated and its random generator internal: a seed replays exactly the same samples, which makes CI tests of procedures reproducible. Several engines simulate many targets, for load tests.
Running a simulated target#
stellar-simulator --repository . --simulation hsc-100-sim \
--target cam-sim-1 --gateway cam-sim-gw-1| Option | Default | Meaning |
|---|---|---|
--repository <dir> | . (STELLAR_REPOSITORY) | Configuration repository holding simulations/<name>.yaml |
--simulation <name> | — | Simulation to play |
--target <target> | — | Target served, as in the topology (cam-sim-1) |
--gateway <instance> | — | Instance name of the gateway, as in the topology (cam-sim-gw-1) |
--driver <instance> | <simulation>-1 | Instance name of the driver |
--transport <instance> | <simulation>-cop1-1 | Instance name of the sim-cop1 transport, with cop1: true |
It connects to the message bus (NATS, see NATS and JetStream) with
the variables of the SDK: STELLAR_NATS_URL
(nats://localhost:4222 by default) and STELLAR_NATS_CREDENTIALS. Logs follow RUST_LOG.
The driver registers with the name of the simulation as software, version 1.0.0, which a link
driver: hsc-100-sim@1 accepts. The topology declares the simulated target like any other, here
beside the engineering model of the camera (topology.yaml of the Payload integration use case):
targets:
cam-sim-1:
platform: hsc-100@1.0.0
environments: [SIM]
links:
sim: {driver: hsc-100-sim@1, gateway: cam-sim-gw-1, default: true}
parameters:
camera.detector_setpoint: {Nominal: 18 degC, Cold: 12 degC}
# The engineering model delivered by the supplier, on the CAN bus of the integration bench.
cam-em-1:
platform: hsc-100@1.0.0
environments: [BENCH]
links:
can:
driver: hsc-100-csp@1
transport: csp1-can@1
gateway: bench-can-1
default: true
params: {csp_address: 10}
parameters:
camera.detector_setpoint: {Nominal: 18 degC, Cold: 12 degC}Its frames are an internal JSON of the simulator, opaque to Stellar Control like any frame.
Driving faults#
stellar sim fault cam-sim-gw-1 tec_fault on
stellar sim faults cam-sim-gw-1 # the faults and whether each is active
stellar sim fault cam-sim-gw-1 tec_fault offstellar sim faults prints the reply of the simulated gateway, the faults of the simulation in
their order:
{
"faults": [
{
"active": true,
"name": "tec_fault"
},
{
"active": false,
"name": "under_voltage"
},
{
"active": false,
"name": "electronics_hot"
},
{
"active": false,
"name": "over_current"
}
]
}stellar sim talks to the message bus directly (--nats, STELLAR_NATS_URL, and the security options
--nats-credentials, --nats-ca, --nats-cert, --nats-key), not to the API. The API exposes the
same:
| Request | Effect |
|---|---|
GET /v1/faults/{gateway} | Faults and their state |
PUT /v1/faults/{gateway}/{fault} with {"active": true} | Switch a fault |
/v1/sim/{gateway}/faults… does the same, for the simulators. A hardware gateway that
declares faults (a Stellar Bench: forced CAN errors, SpaceWire disconnection…) answers too: see
Injected faults. A gateway that does not answer gives
404 sim::unknown-gateway; one that injects no fault 422 sim::not-simulated; an unknown fault
422 sim::refused.
Each change is published on stellar.sim.evt.<target> as {fault, active, at}, so that the
evidence and the reports of a run show the faults active during it.
Faults scheduled by a run#
A run request can switch faults itself, to rehearse the recovery of a procedure (its if failed
blocks, the reactions to its alarms) without anybody at a terminal:
# runs/tvac-leak.yaml
run: TVAC cycle
environment: SIM
targets: {chamber: chamber-sim, psu: psu-sim, dut: cam-sim}
inputs: {hot: 50 degC, cold: -30 degC}
faults:
- {target: chamber, fault: vacuum_leak, at: {step: Plateau, after: 10 s}, off: {after: 60 s}}| Key | Meaning |
|---|---|
target | Role of the target, as in targets |
fault | Fault, as its simulation names it |
at | When it is switched on: after a delay (10 s) from the start of the run, or from the first entry in the step step (its name, Plateau, or its path, TVAC cycle / Plateau); at once by default |
off | When it is switched off, after a delay from when it was switched on (or from the first entry in its step); never during the run without it |
- Checked twice. When the run is resolved, the role must be one of the run
(
run::fault-target), the step one the run may enter (run::fault-step), and the environment one that allows faults (fault_injection, by default every environment butin_orbit, never there:run::fault-not-simulated). When the run starts, before anything is sent, the target must be served by a gateway that injects that fault, a simulator or a hardware gateway declaring it: otherwise the run ends failed,fault `vacuum_leak` of `chamber` cannot be scheduled: the gateway of `chamber-1` injects no fault (…). - In the log. Each switch is logged in the run (
log fault `vacuum_leak` switched on for `chamber-sim` (scheduled by the request)) and published onstellar.sim.evt.<target>, so the report shows it. - Delays are those of the executor, like
wait: in a dry run,--speeddoes not shorten them. - After a restart of the executor, the faults of the run are scheduled again from its resumption.
Control verbs of the simulated gateway#
The simulated gateway answers these verbs on stellar.ctl.rpc.gateway.<instance>.<verb>, besides
status:
| Verb | Request | Effect |
|---|---|---|
faults | {} | Fault scenarios and whether each is active |
fault | {name, active} | Switch a fault |
files | {} | The on-board directory of the simulation |
generate | {file_type, size} | Create a file on board right away |
rewrite | {id} | Rewrite a file with its next generation (exercises supersession) |
corrupt | {id, active} | Alter the chunks sent down of a file, without changing its listed checksum (exercises CORRUPTED) |
stream_gap | {stream, segments} | Lose the next segments of a stream (exercises gaps) |
With the nats command-line tool of the message bus:
nats request stellar.ctl.rpc.gateway.cam-sim-gw-1.generate '{"file_type": "quicklook", "size": 49152}'
nats request stellar.ctl.rpc.gateway.cam-sim-gw-1.corrupt '{"id": 3, "active": true}'Dry runs#
A dry run plays a procedure on ephemeral simulated targets, without any shared infrastructure:
stellar run --dry runs/first-light.yaml --repository . --report report.htmlIt starts a local message bus, nats-server (--nats-server, STELLAR_NATS_SERVER), then, in its own
process, the reconciler, the compute stage, the value table, the alarm service and the executor,
on the snapshot of the local repository. Each role gets a target dry-<role>, played by the simulation of the
repository whose platform is the version of the library, with the links its telecommands use. Its
parameters, for configure, are those of the target dry-<role> when the topology declares one,
else those of the first target of the same platform and version. The
procedure runs in a SIM environment without human orchestration, ignoring allowed in, the
environment and the targets of the request.
A platform without a simulation in simulations/ gets one written from its catalogue on the fly
(see A simulation written from the catalogue), which
the log says: a procedure runs dry as soon as its catalogue exists.
| Option | Meaning |
|---|---|
--repository <dir> | Configuration repository; . by default |
--seed <n> | Seed of the simulations, instead of that of each simulation |
--speed <x> | Speed of simulated time (2 runs the simulations twice as fast); not the waits of the executor |
--report <file> | Write the report of the run |
--on-decision <choice> | How the dry run answers a decision: fail (default), skip, replay (3 times at most, then fail), abort, or ask on the terminal |
--fault <ROLE:FAULT[@[STEP+]DELAY][~OFF]> | A fault to switch on, after those of the request (see Faults scheduled by a run): chamber:vacuum_leak@120s, chamber:vacuum_leak@Plateau+10s~60s, cam:tec_fault@Cool the detector+5s. Repeatable |
--config <file> | Global configuration (compilation and executor parameters) |
Decisions. When a step not eligible for retry fails, a run waits for a decision (see
Decisions). Nobody watches a dry run: it answers by itself,
fail by default, so that the if failed blocks run — the recovery of the procedure is tested
too — and the command exits with 1. The answer is logged and in the report as given by
the dry run. The web editor and the VS Code extension run the same dry run.
Alarms and reactions. The alarms of the targets are evaluated as in operation, those of
limits and the named ones: each transition shows in the log (alarm dry-chamber.vacuum.vacuum_leak ACTIVE_UNACK (critical)) and in a section of the report. A
reaction (on_raise) is a run of the dry run: it takes the target from the run (see
Automatic reactions), its events show in the log prefixed by
[reaction], and its report follows that of the run. Once the reactions are over, the dry run
resumes the run they suspended as it answers a decision (--on-decision): by default the step
where it stopped fails, and its if failed blocks run on the state the reaction made safe
(suspended by alarm …, failed by the dry run); with --on-decision abort, the run is aborted
without them. The command exits with 1. Reactions still
running when the run ends are followed two minutes at most.
Faults. The faults of the request, and those of --fault, are switched by the dry run like
any run (see Faults scheduled by a run): the CI of a procedure
repository tests its recovery.
stellar run --dry runs/first-light.yaml --fault "cam:tec_fault@Cool the detector+5s"In the Payload integration repository, the TEC of the camera fails 5 s into « Cool the
detector »: the camera goes to SAFE, its alarm rises, set_mode READY is never verified, and
the if failed block of « First light » reports the state (the log, from the fault on):
2026-10-03T13:43:01.515203062Z log fault `tec_fault` switched on for `dry-cam` (scheduled by the request)
2026-10-03T13:43:01.633954283Z alarm dry-cam.camera.safe_mode ACTIVE_UNACK (critical)
2026-10-03T13:45:07.50487389Z → VERIFY_TIMEOUT: verification on `mode` not met within 130s
2026-10-03T13:45:07.506125085Z FAILED: `camera.set_mode` ended VERIFY_TIMEOUT: verification on `mode` not met within 130s
2026-10-03T13:45:07.507079099Z decision required on First light / Cool the detector: the step failed: `camera.set_mode` ended VERIFY_TIMEOUT: verification on `mode` not met within 130s
[dry] decision on First light / Cool the detector: fail (--on-decision)
2026-10-03T13:45:07.508759062Z answered fail by the dry run
2026-10-03T13:45:07.509346954Z step First light / Report the state
2026-10-03T13:45:07.51595813Z log First light failed: mode SAFE, last status OK, faulty true
2026-10-03T13:45:07.516847461Z PASSED
2026-10-03T13:45:07.519333065Z finished: FAILED: a step failedThe log shows as with stellar watch, and the command succeeds when the procedure succeeds: this
is the CI of a procedure repository. See Running Procedures and the
CLI Reference. The VS Code extension and the web editor run the same dry run on
the procedure under the cursor.
See also#
- Your First Procedure: the example simulated targets.
- API reference: simulation.