SourceLess · AsgardAsgard · chain 1313

Part II · Running a node · Chapter 7 of 12

strblk — what the command line promises

What the strblk command line promises, command by command: its exit codes, how it refuses, and what status, wallet and a sealing node do.

11,037 bytes 1,887 words newest date 2026-10-29

Verify: the published bytes are in the raw file CLI.md, whose SHA-256 is in SHA256SUMS.
45e47a99190e9c846bb9f5d43625bb601bef6848b2e324fec00b3d1e0b5aafe1

strblk --help is the list of commands and flags, and it is generated from the same file that dispatches them. This page is the part a help text cannot carry: what happens when a command does not go through, and which commands are safe to point at something by mistake.

It exists because on 2026-09-11 the built CLI was run through its own documented surface — every command, every refusal path, a real node over TCP — and six defects came out of it. Not one was a crash. Every one was a command that appeared to work, or a refusal whose wording sent a person somewhere unhelpful. A test suite over the same functions produces neither.


1. Exit codes#

CodeMeansExample
0It did the thing.strblk genesis --identity
1A refusal. You asked for something this build will not do, and the message is the whole answer.strblk genesis --network asgard — Asgard has no genesis in this build … Pass --genesis <file> (measured 2026-10-29; until then this cell quoted "Asgard has not launched", a message the build no longer prints)
2You typed something wrong. Usage, an unknown command, an unknown flag, a bad argument.strblk postmining --amount abc
3+Reserved for the node's own fault exits; see EXIT_INTERNAL_FAULT in src/cli/strblk.ts.

The line between 1 and 2 is worth keeping: 2 means the command never ran, so nothing happened and retyping is the whole fix. 1 means the command ran and declined.


2. A refusal is a sentence. A fault is a stack.#

Every refusal used to print a Node stack trace under it. strblk genesis --network midguard answered with the sentence that helps —

unknown network "midguard": expected one of dev, midgard, asgard

— and then seven lines of ModuleJob.run and asyncRunEntryPointWithESMLoader. The sentence was the whole answer and it was buried, which teaches an operator that the output of a failed strblk is noise to scroll past. The next time it is not noise, they scroll past that too.

The split is who the message is for:

  • A plain Error in this tree is a refusal somebody sat down and wrote for the person running the command. Its message is the answer; a stack adds nothing, because the fault is not in the code. Printed as its message alone.
  • A built-in error type — TypeError, RangeError, SyntaxError, ReferenceError — is a bug reaching the surface. Nobody wrote that message for anybody, and the trace is the only useful part of it. Printed with a line saying it is an internal error, then the stack, because an internal error and you typed the wrong flag send a person to different places.

SOURCELESS_STACK=1 prints the trace either way, for when a refusal is arriving from somewhere unexpected and the question is where.


3. An unknown flag is refused, not ignored#

$ strblk node --no-dashbord --network dev
unknown option for "node": --no-dashbord

  Did you mean --no-dashboard?

  An unknown flag is refused rather than ignored. Ignoring one is how
  `--no-dashbord` starts a node with the operating surface open while the operator
  who typed it believes it is closed.

This is a security control and not a convenience. Until 2026-09-11 an unrecognised flag was silently dropped. For three of them that fails open:

TypedWas ignored, so
--no-dashbordGungnir listened on 8082. The operator had evidence they had closed it.
--no-opAstrolabe listened on 8081.
--no-rcpIris listened on 8083.

The rest are quieter and still wrong: --ops-prot 9000 binds 8081, --advertize leaves a node unreachable, a misspelt --halt-at is a Ragnarok that never happens.

This is the same rule the help text already states about --network: omitting a flag used to start the open-set dev chain silently, which is the one failure an operator cannot see and cannot undo once their node has gossiped. A flag nobody reads is an omitted flag that looks present, which is worse — the operator has evidence they did the right thing.

Two details:

  • A value is never read as a flag. --halt-reason "--governance-is-compromised" is a reason, not an unknown option — a checker that got this wrong would refuse a Ragnarok at the moment it was most wanted.
  • The suggestion is omitted when nothing is close. A wrong suggestion is worse than none, because it gets typed.

wallet is not covered. Its verbs carry their own arguments and cmdWallet parses them itself. That is a gap and it is stated rather than implied. The verbs at least refuse an unknown one before opening a keystore — see §5.


4. status reads. It does not create.#

$ strblk status --dir /srv/nodee          # one typo
there is no node at /srv/nodee: that directory does not exist.

  `status` reads a node; it does not create one. If the path is right, the node has
  never been started here — `strblk node --dir <path> --network <key>` is what makes a
  data directory. If the path is wrong, this is the typo.

It used to create. With no lock holder it fell through to acquireDataDirectoryLock, which makes the directory, and then to HestiaNode.start(), which mints a node identity into it. So one typo created /srv/nodee, wrote a fresh secret key there in the clear, took a lease, built a chain store, and then printed a confident report of a node at height 0 — together with the SECRET KEYS ARE NOT ENCRYPTED AT REST banner about the key it had just made. The operator checking on a validator is told the validator is empty.

The check is for identity.json and not only for the path, because an empty directory that happens to exist — /tmp, a home directory, a mount point that failed to mount — is not a node either, and opening one mints a key into it exactly as before.

Order matters here and was got wrong once. A directory a live node has leased outranks every question about what is in it: another process is using this sends an operator somewhere completely different from this is not a node, and it is the lock refusal that names the holding process. So the shape check runs only when no lock file is present — and again after the lease is taken, because Cerberus may legitimately reclaim a stale lock from a process that died.

What status does when the node is running is unchanged and is the normal path: it reads the node's own operator endpoint and says so.

  read from                    http://127.0.0.1:8081 — pid 42856, untouched

5. wallet says a verb is unknown before it asks for anything#

$ strblk wallet blance
unknown wallet command: blance
…

It used to answer this is not a terminal, so there is nowhere to ask for a passphrase, over a stack through promptPassphrase, because the unknown-verb arm was the default: of a switch that runs after the wallet is opened. A person who mistyped a verb was told their environment was wrong — and the fix they would reach for, setting a passphrase variable, does not help and is a bad habit besides. On a machine that does have a terminal it was worse: it prompted for the passphrase to a wallet it was never going to use, and only then said the verb was unknown.


6. A node that says it seals, seals#

  block interval               1000ms, but this node holds NO SEAT on this genesis, so it will never seal
    note                       zk13str_e6b6…33cb is not in this genesis's producer set. The node
                               will follow, validate and serve exactly as it does now; the timer
                               will fire and find no slot of its own.

This line read 1000ms — this node seals. Running strblk node --network dev --block-interval 1000 and waiting thirty-five seconds gave a height of 0, and it stayed there. Nothing was broken — the node holds no seat on the dev genesis, so its slot never comes round and it correctly seals nothing. The sentence was the defect, and it is the worst kind: an operator who reads this node seals beside a flat height goes looking for a fault in consensus, in the network, in the disk — anywhere except the one fact that explains it.

A seated node now reads "seals when its slot comes round", not "seals". A seat is a turn and not a licence: on a set of 1,313, an operator expecting a block per interval from their own node would report the chain as broken.

The seat is read from the chain's own genesis rather than from a flag, so this line agrees with what verifyProducerAuthorisedAt will decide.


7. What is not covered#

Stated so it is not mistaken for covered:

  • wallet flags. §3 does not reach them. Only the verb is checked.
  • Positional arguments. strblk domain, strblk verify and the wallet's positionals are validated by each command, not centrally.
  • A command with no entry in the flag map is not flag-checked at all — the safe direction for one added later, since it behaves exactly as it did before the check existed. A test scans the source for every flag literal the CLI reads and fails when one is registered nowhere, so "no entry" cannot survive a test run.
  • The sweep was one pass on one host. tests/integration/strblk-cli-surface.integration.test.ts is what keeps these six closed; it is not evidence that a seventh is not there.

8. See also#

RUNNING.mdfrom a clone to a network, by hand
INSTALL.mdinstalling a node with Brokkr
GUNGNIR.mdthe operating surface, and what you may not do with it
PROCEDURES.mdfixing something that is broken right now

strblk check: why a site cannot be read#

strblk check STR.sourceless --node http://host:port reads one public, free hostless space the way a reader does and names the step that fails with what to do: the node answers, the name is held, it is proved, the space is anchored, it is public and free, somebody announces it, this node holds every chunk, the manifest is the one the chain anchors, and up to three chunks verify and open. --cross-check URL also asks a second node whether it anchors the same root. strblk check host:port asks whether a port answers from this machine, which proves no identity. --json prints the report as data.

It probes from the machine it runs on, reads and never writes, and signs its read requests with a key made for the run. Exit code 1 means a step failed. A space nobody announces is a note and not a failure: an announcement lives at most 30 minutes after its creator last signed one.