Skip to content

Status symbols

Reference for the status symbol tables (openspec changes consistent-table-columns and context-status: operator-clients, Table Columns, Status Symbols and Context Status). Every item table of both operator clients has a Status column, second after the Name. It shows one symbol, whose glyph (TUI), icon (web app), tone and sort order come from the table for the item's kind. Neither client keeps a copy of a table.

Kind Items The raw status
connection connections, feed definitions the connection state table
worker workers, atomic strategies the WorkManager's worker status (RUNNING, LOADING, STOPPED, LOAD_FAILED)
health triggers, EventStores, the Topology rows the topology health level (workerLevel, triggerLevel)
scenario scenarios the scenario's status
context contexts the context's api as the client watches it (CONTEXT_STATUS, below)
Python (virtufin.domain_devkit.status) TypeScript (@virtufin/domain-devkit)
status_symbols(kind) -> tuple[StatusSymbol, ...] statusSymbols(kind): readonly StatusSymbol[]
status_symbol(kind, raw: str \| None) -> StatusSymbol statusSymbol(kind, raw): StatusSymbol
STATUS_KINDS, KIND_CONNECTION … KIND_CONTEXT STATUS_KINDS, StatusKind
CONTEXT_UP, CONTEXT_DOWN, CONTEXT_KEY_REFUSED, CONTEXT_CONNECTING CONTEXT_STATUS, ContextStatus
status_symbol_vectors() STATUS_SYMBOL_VECTORS

Both are pure, and the TypeScript one is browser-safe. Every table has the entry shape of the connection state table: state, label, glyph, icon, spin, tone and rank. The lookup is also the same for all of them (SymbolTable in _symbols.py and symbols.ts):

  1. It trims the raw status and reads it in lower case, with _ as -.
  2. It takes the table's alias for the result, if there is one.
  3. It returns the matching entry, or the table's unknown entry. The client still shows the raw status as its name.

The tables are status/status-symbols.v1.json and the connection state table. The vectors in status/lookup.v1.json run in both languages' tests.

The glyphs are single-width characters, never emoji, whose terminal width varies. The tables below are sorted by rank, the most severe first.

worker

Rank State Glyph Icon Tone Meaning
1 load-failed ✖ circle-x danger could not load its code
2 loading ◌ loader (spins) warn loading its code
3 unknown ? circle-question-mark muted a status this client does not know
4 running ● circle-play ok running
5 stopped ■ circle-stop muted stopped by intent, or never started

health

Rank State Glyph Icon Tone Meaning
1 failing ✖ circle-x danger failed, could not load, or reports a failure
2 degraded ◐ triangle-alert warn runs, but degraded (a report, a gap, held outputs, a trigger nobody listens to)
3 unknown ? circle-question-mark muted a level this client does not know
4 ok ● circle-check ok runs, nothing wrong
5 idle ○ circle-pause muted stopped, not started or not scheduled, by intent

scenario

Rank State Glyph Icon Tone Meaning
1 unreadable ✖ circle-x danger its entry cannot be read
2 paused ‖ circle-pause warn paused: its strategies hold
3 unknown ? circle-question-mark muted a status this client does not know
4 active ● circle-play ok active
5 archived ▪ archive muted archived, kept for the record

context

A client watches each context's api: a health stream (grpc.health.v1.Health/Watch, no key needed), and one keyed call each time the context comes up. It gives the context one of these raw statuses (CONTEXT_STATUS / CONTEXT_*):

  • up: the stream says SERVING and the keyed call accepts the key;
  • key-refused: the keyed call is refused (UNAUTHENTICATED, PERMISSION_DENIED);
  • down: the api does not answer, is not serving, or the stream breaks; it stays down (or key-refused) while the client tries again;
  • connecting: watched, no answer yet.

A context the client does not watch (the TUI with no active context) has no status: unknown.

Rank State Glyph Icon Tone Meaning
1 down ✖ unplug danger its api does not answer: unreachable, not serving, or its health stream broke
2 key-refused ⊘ key-round danger its api answers, but refuses the API key
3 connecting ◌ loader (spins) warn watched, no answer yet
4 unknown ? circle-question-mark muted not watched (no context active), or a status this client does not know
5 up ● circle-check ok its api answers and accepts the API key