Skip to main content

Stack

Excubio uses the same stack as Convexio Strataplane, and the shared crates use Strataplane's 1.0 pins (checked 2026-10-22), so components can be shared. A version in the tables is the lowest the workspace accepts ([workspace.dependencies] takes it as a caret requirement); Cargo.lock fixes the exact versions of a build. Crates that only Excubio needs get their version after their spike (spikes); until then they are marked "spike".

1. Repository layout​

Cargo.toml # workspace
crates/
excubio-hub/ # bin: hub server of a standalone or managed installation (init, join, serve, db, secrets, diagnostics; a managed installation's provisioning)
excubio-cloud/ # bin: cloud server (tenants, on-call, the hub link, the registry and channel of installations, sign-up and billing)
excubio-watch/ # bin: watch server (no dependency on cloud crates except ex-proto)
ex-store-watch/ # watch sqlx queries and migrations
excubioctl/ # bin: CLI
excubio-msg/ # bin: opcmsg drop-in (small, static, no async runtime)
excubio-discover/ # bin: migration assessment
excubio-relay/ # bin: relay (listeners, spool, connections to the hub's nodes, allowlist)
ex-core/ # domain types, selectors, attributes, durations
ex-spec/ # spec parsing, canonical TOML, limits, L0/L1 validation
ex-pipeline/ # map, enrich, heartbeats, correlate, storms, downtimes, routing evaluation, replay
ex-inventory/ # inventory source types, merge, snapshots
ex-mssql/ # SQL Server connections and rows as text (Discover, sql inventory sources)
ex-correlate/ # correlator: alert groups, causes, expectations, hygiene
ex-intake/ # channel parsers and listeners (HTTP channels, syslog, SMTP, SNMP, OBM upstream)
ex-actions/ # page requests, tickets (sm9, webhook), write-back, mail, webhooks; the egress dialer
ex-store-hub/ # hub sqlx queries and migrations: the installation's registry of hubs, hub scope
ex-store-cloud/ # cloud sqlx queries, tenant scope, RLS
ex-oncall/ # rotations, shift materialisation, incidents, escalation, delivery
ex-carriers/ # carrier adapters (SMS, voice, inbound), failover
ex-proto/ # hub–cloud, hub–watch and hub–relay protocol types
ex-api/ # axum routers, auth, OpenAPI conformance tests
ex-tasks/ # durable tasks: client of the vendored absurd SQL
ex-testdb/ # tests: throwaway Postgres 18 databases
ex-e2e/ # tests: cloud and hub nodes in-process, the simulated carrier, end to end, HA kill and a managed installation's provisioning
ex-push/ # APNs and FCM senders, HPKE sealing, receipts
ex-mobile/ # app core via UniFFI: API client, push decryption, offline queue, cache
web/ # npm workspaces, one lock file
shared/ # what both apps share: API conventions, live updates, URL state, texts, themes, permissions, commands, components
hub/ # SvelteKit app of the hub
cloud/ # SvelteKit app of the cloud; tests/ its Playwright tests
screenshots/ # the documentation site's screenshots, against ex-e2e's ui-hub and ui-cloud
site/ # the documentation site (Docusaurus): guides/, the reference from docs/, the APIs; image/
app/
ios/ # Swift, SwiftUI, notification service extension
android/ # Kotlin, Jetpack Compose, FCM service
tools/
mib-compile/ # Go: compiles MIB modules to mibs.json for trap packs (gosmi)
terraform-provider-excubio/ # Go: the OpenTofu provider of a tenant's cloud objects (docs/, examples/, its own module)
packaging/ # deb/rpm, systemd units, Helm charts (hub installations, cloud, Watch, relay), Prometheus rules
docs/
spikes/

2. Rust crates​

Shared with Strataplane (same versions):

AreaChoiceVersion
Async runtimetokio1.x
HTTP serveraxum, tower-http0.8.9, 0.7.1
TLShyper-util, tokio-rustls, rustls, aws-lc-rs0.1.21, 0.26.6, 0.23.46, 1.18.2
Client certificatesrustls-webpki, x509-parser0.103.16, 0.18.1
Static UImemory-serve2.4.0
CLIclap4.6.7
Embedded Postgrespostgresql_embedded (bundled, Postgres 18)0.22.0
Queries, migrationssqlx0.9.0
Durable tasksabsurd SQL, vendored; own Rust client ex-tasks0.5.1
Authorizationcedar-policy4.14.0
OIDCopenidconnect4.0.1
HTTP client, URLsreqwest (rustls), url0.13.5, 2.5.9
TOMLtoml, toml_edit1.1, 0.25.17
Diffsimilar3.2.0
Hashingsha20.11.1
Secretssecrecy, zeroize, age0.10.3, 1.9.1, 0.12.1
Password hashes (the break-glass admin)argon20.6.0
Logs, metricstracing, metrics, metrics-exporter-prometheus0.1.44, 0.24.6, 0.18.3
Testsinsta, proptest1.49, 1.12
OpenAPI conformancejsonschema, yaml_serde0.60.0, 0.10.7

absurd is vendored, not a dependency: its sql/absurd.sql of tag 0.5.1 is the first hub migration (crates/ex-store-hub/migrations/0001_absurd.sql), unmodified below a header with its source, licence (Apache-2.0) and SHA-256, which a test checks. Another absurd version is a new migration made from absurd's own upgrade script. ex-tasks calls absurd's SQL functions through its Absurd client: create a queue, spawn (with retry strategy, attempts and idempotency key), claim with a lease, complete, fail (retried by the strategy), sleep, extend the lease, step checkpoints and task status.

APIs: docs/api/*.yaml are the source. The Rust request and response types are written by hand with serde; no code is generated from the documents. ex-api's conformance checker (feature testing) compiles the documents in and validates each response an API test produces against the schema of its operation, status and media type, as JSON Schema 2020-12; statuses the API conventions allow on every operation are checked against components/responses/Problem; an NDJSON body is checked line by line. Every response schema of the three documents compiles in ex-api's tests.

Strataplane's own selector parser and Cedar binding projection are the model for ex-core selectors and the Excubio authorization; they move into shared crates when both products use them.

Excubio only:

AreaChoiceVersion
Expressions (source mappings)cel (cel-rust), features parser_pratt, strings extension0.15.0
SNMP decodingrasn (BER) with own lenient PDU and varbind types; rasn-snmp for the v3 header and USMSecurityParameters; USM in own code on aws-lc-rs0.30.0, 0.30.0
MSSQL (sql inventory sources, Discover)tiberius (tds80, rustls: TLS on aws-lc-rs)0.13.0
ServiceNow Table API, UCMDB REST API (inventory sources)reqwest with own types–
Snapshot in memoryown interned tables of CIs, aliases and services–
SMTP (notify e-mails)own client on tokio-rustls (STARTTLS, AUTH PLAIN, one message per connection), so it dials the addresses the egress rules checked–
E-mail intake: MIME, HTML bodies as text (the SMTP listener is own code)mail-parser1.0.0
IMAP mailboxes of email Sources: commands and responses (the reader is own code over tokio-rustls, so it dials the addresses the egress rules checked)imap-next (stream), on imap-codec0.3.4
SMPP (fallback channel)own transmitter client on rusmpp's codec (features tokio-codec, extra for the GSM 7-bit and UCS-2 encoders) and tokio-rustls, so it dials the addresses the egress rules checked0.4.0
Time zones, holidaysjiff (tzdb-bundle-always); own holiday tables0.2.39
HPKE (push contents)hpke (RFC 9180, DHKEM P-256, features nistp, aes) for sealing; own opener in ex-mobile0.15.1
App core bindingsuniffi0.32.2
Raw payloads (event_payload)zstd0.13.3
XML bodies (obm-rest, obm-listener), no DTDsroxmltree0.21.2
Streams (the link's down stream)futures-util0.3.34
Graceful stop of a node's taskstokio-util (CancellationToken)0.7.20
Intake concurrency limittower (limit)0.5.3
Egress TLS trust (syslog sinks; reqwest uses it too)rustls-platform-verifier, the host's trust store0.7.1
The link's certificates: the hub's key pair and CSR, the hub CA's certificates, the dev CA of testsrcgen (aws_lc_rs)0.14.10
Free disk space (a node's disk-space condition)fs4 (statvfs)1.1.0

[workspace.dependencies] in Cargo.toml carries the versions of the first table, and of an Excubio-only crate from the first crate that uses it. cargo deny judges the licence and advisories of a crate once it is in Cargo.lock, so a pin no crate uses is unjudged: uniffi is MPL-2.0, which deny.toml allows as an exception for that crate when ex-mobile takes it, as it does for ucs2 (MPL-2.0, the UCS-2 encoder of rusmpp's extra). Avoid crates pinned to sqlx 0.8 (two sqlx versions in one build).

What the spikes and tests found about these crates:

  • cel 0.15 parses and evaluates, nothing more: it has no type checker, no cost limit and no cancellation, and both parser and evaluator recurse (cel-mapping spike). ex-core adds the checks of risk 1 (§6). split and the other string functions need the strings extension; optional syntax (.?x, orValue) is in the standard environment. Runtime errors carry no position, so the hub prefixes the mapping field.
  • tiberius 0.13 with rustls reads SQL Server 2022 over TLS, with the server's own certificate trusted explicitly (trust_server_certificate); it falls back to aws-lc-rs when no rustls provider is installed. ex-mssql reads every column as text, for Discover and the sql inventory sources alike: a row decodes from ColumnData, datetime and datetime2 as UTC (crates/excubio-discover/tests/mssql.rs and crates/ex-inventory/tests/mssql.rs, ignored by default).
  • rasn-snmp types reject a whole trap for one value outside its type; the own types keep rasn for the BER structure and decode each varbind from its raw TLV (snmp-receiver spike). aws-lc-rs covers HMAC-SHA-1 to SHA-512 and AES-CFB128; no other crypto crate.
  • async-imap isn't used: 0.12 depends on pin-utils, which is unmaintained (RUSTSEC-2026-0441), so cargo deny refuses it. imap-next takes a response of at most max_response_size bytes, which the reader sets to pipeline.maxEventBytes and 64 KiB, so a message larger than its RFC822.SIZE said ends the session instead of filling memory; the reader's tests run against Dovecot 2.4 (crates/excubio-hub/tests/imap.rs).
  • rusmppc isn't used: 0.4.0 stalls with more than five queued actions and doesn't reconnect, the release that fixes both (main at 3b5a9b8) isn't published, and its client builds binds with interface_version 5.0 and refuses other versions by default. The fallback needs one request at a time, a bind only while it is active, enquire_link and unbind of the SMSC answered and a generic_nack taken as the answer to the request it names, which the codec gives directly; binds set interface_version 3.4 (smpp-fallback spike).
  • jiff: hand-overs and restriction edges don't use the compatible disambiguation, which maps a time in a gap to the time plus the gap (02:30 to 03:30); a gap time resolves with TimeZone::following to the gap's end (rotations spike, on-call.md §2).
  • reqwest and hyper keep an HTTP/2 connection in the pool after its body is dropped. On a link break the hub drops the client's pool and bounds the wait for response headers, or the reconnect lands on the dead connection. hyper's server-side HTTP/2 PING (http2().keep_alive_interval) needs a timer (TokioTimer), otherwise it panics (proxy-link spike).
  • sqlx 0.9 passes server-side connection parameters in the startup packet with PgConnectOptions::options (tcp_keepalives_*, tcp_user_timeout, idle_session_timeout), for pool connections and for the lock connection alike. The lock connection is a PgConnection outside the pool that holds every partition's lock with pg_try_advisory_lock and is pinged with a timeout every second; a ping keeps idle_session_timeout from firing. sqlx sets no TCP keepalive or TCP_USER_TIMEOUT on its own socket and has no option for it, so the client side relies on timeouts per call. Dropping a future doesn't cancel its statement on the server, and a dropped transaction rolls back only at the connection's next use. The pool's check on return has no timeout. After a migration that changes a table, a cached SELECT * fails with "cached plan must not change result type": queries name their columns (hub-ha sqlx spike).
  • hpke 0.15 seals with DHKEM(P-256, HKDF-SHA256), HKDF-SHA256 and AES-128-GCM and reproduces the RFC 9180 test vectors; aws-lc-rs has no HPKE with a P-256 KEM. No crate opens from a key agreement done elsewhere, so ex-mobile has its own opener (about 80 lines: decap, key schedule, AEAD open) that takes the platform's ECDH result and passes the same vectors. Sealing brings RustCrypto into the cloud build next to aws-lc-rs (mobile-push spike).
  • Postgres runs without extensions, so there is no trigram index: selector globs compile to Postgres regular expressions with every literal escaped, and scan (selectors-sql spike); the candidate search for an OBM close key without an anchored literal prefix scans the open keys of the namespace (risk 4).

3. Frontend​

AreaChoiceVersion
Runtime, buildNode, vite, typescript26, 8.3.5, 6.0.3
Framework@sveltejs/kit (Svelte 5 runes), svelte, @sveltejs/adapter-static, embedded in the binary3.1.0, 5.57.2, 4.0.0
API clientopenapi-typescript + openapi-fetch, types generated from docs/api/*.yaml7.13.0, 0.17.0
Componentsbits-ui with shadcn-svelte components copied into web/shared (its components.json: the nova style, the preset b76qqA9WwS with the mist base, sky and blue charts, the design tokens adjusted to WCAG 2.2 AA), @internationalized/date (the dates of its calendars), tailwindcss2.20.0, 3.12.0, 4.3.3
FontIBM Plex Sans, @fontsource-variable/ibm-plex-sans, served with the app5.3.0
EditorCodeMirror 6 for the spec files: @codemirror/state, @codemirror/view, @codemirror/commands (history, keys), @codemirror/language with @codemirror/legacy-modes (TOML) and @lezer/highlight, @codemirror/lint (validation results inline), @codemirror/search, @codemirror/merge (diff against the base)6.7.6, 6.43.15, 6.11.1, 6.13.1, 6.5.5, 1.2.5, 6.9.7, 6.7.2, 6.12.3
Lists@convexio/data-grid: /query (a list's URL state), /list (toolbar, filters, selection, pagination), /table (DataTable), /messages and /messages/de (its texts in the UI's language); the grid itself is not used0.5.0
Chartslayerchart2.8.1
Iconsphosphor-svelte3.1.1
QR code (the app's sign-in on the Me page)uqr0.1.3
Live updatesServer-sent events–
Textsown catalogs per app, English and German, typed by their keys–
Testsvitest, @playwright/test, @axe-core/playwright; the mock of the end-to-end tests checks against the API documents with ajv and yaml5.0.5, 1.64.1, 4.14.0; 8.20.0, 2.9.1
Type checksvelte-check4.7.7
Documentation screenshots@playwright/test against ui-hub and ui-cloud, code in @fontsource-variable/jetbrains-mono1.64.1, 5.3.0
Documentation site (site/, its own lock file)@docusaurus/core, preset-classic and theme-mermaid, docusaurus-plugin-openapi-docs and docusaurus-theme-openapi-docs, @easyops-cn/docusaurus-search-local, react, @fontsource-variable/ibm-plex-sans3.10.2, 5.2.0, 0.55.3, 19.3.1, 5.3.0

The versions are those of Strataplane's web/package.json (checked 2026-11-10), but uqr and @axe-core/playwright, which Strataplane doesn't use, and @convexio/data-grid, whose texts in German need 0.5.0 (Strataplane's is 0.4.0); web/hub and web/cloud pin them exactly in their package.json, with one lock file for the npm workspaces of web/. The documentation site's are those of Strataplane's site/package.json (checked 2026-11-24), pinned exactly in site/package.json with its own lock file; how it is built and published is in site/README.md. The shared code is the workspace web/shared, imported as #shared/… (the apps' own code as #lib/…). The generated code is the API types of the documents an app calls and the roles of each operation (x-excubio-role), from which the UI decides what it offers; it is checked in, and mise run lint and CI regenerate it and fail on a difference.

Lists use @convexio/data-grid, Convexio's shared list layer: a list's query (defineListQuery: filters, sort, rows per page and cursor, named as the API's parameters) is parsed by the route's load, which passes it on to the API, and bound by the page with routeList (#lib/lists, over web/shared/src/lib/list.svelte.ts, which writes the page's query through SvelteKit navigation) to the toolbar, the DataTable sort headers and the pagination; useLists() in each root layout gives the package's glyphs the app's phosphor icons and its texts the UI's language (ui.md §4). Loaders, live updates, permissions and bulk actions stay in the apps. The package is private to Convexio: its packed tarball is committed as web/vendor/convexio-data-grid-<version>.tgz, which the workspaces install with a file: dependency, so installs and builds need no registry. A new version: pack it in its repository (npm pack --ignore-scripts after its checks) or from its registry, replace the tarball in web/vendor and run npm install --save-exact -w shared -w hub -w cloud ./vendor/<file> in web.

Each binary embeds its app's build with memory-serve and serves it with ex_api::web, the hub on its management listener (the build is taken when it exists, else a page that says the UI wasn't built, so the server builds without Node). A path of the UI is answered with index.html, revalidated (no-cache); paths of the API, intake, carrier callbacks, calendar feeds and the UI's own assets never fall back, and the hashed assets are cached for a year. Every answer carries the Content-Security-Policy of architecture.md §11, with the hashes of the page's inline scripts taken at build.

4. Mobile app​

AreaChoiceVersion
iOSSwift, SwiftUI; a notification service extension for decryption and receipts; keys in the Secure EnclaveXcode and minimum iOS: spike
AndroidKotlin, Jetpack Compose; FCM data messages, a page channel on the alarm stream; keys in StrongBox or the TEEminimum Android 12 (§6, risk 11); Kotlin, AGP and Compose: spike
Shared coreex-mobile in Rust through UniFFI: the API client with hand-written types checked like the servers' (§2), HPKE opening, the offline action queue and the encrypted cache. The P-256 key agreement runs in the platform keystore and the app passes its result: open_push(ciphertext, enc, dh_result, device_public_key)uniffi of §2
LoginAppAuth (OIDC with PKCE in the system browser)spike
TestsXCTest and the Android instrumentation tests on real devices for notification paths–

The versions marked "spike" are set by the on-device part of the mobile-push spike. The iOS build and its tests need a macOS runner; the Android build runs on the Linux runners.

5. Go tooling​

tools/mib-compile reads MIB modules with gosmi (as Telegraf's snmp_trap input does) and writes mibs.json. It runs only when trap packs are built, never in the hub.

PartVersion
Go1.27
gosmiv0.4.4 with the inline-OID patch: the patched module is vendored in tools/mib-compile/gosmi and taken through a replace directive
  • gosmi v0.4.4 drops every node after the first under an OID value of several arcs (::= { netapp 0 2 }; NETAPP-MIB loses all 258 traps); the patch keeps walking from the node already in the tree (snmp-receiver spike).
  • gosmi resolves imports on use and loads a module whose imports are missing. mib-compile loads every imported module itself and fails on an object without a type.
  • mib-compile ships the SMIv1 and SMIv2 base modules (RFC-1212 and the others net-snmp doesn't carry), and its NetworkAddress is IpAddress, its one choice: gosmi leaves a CHOICE without a type.
  • It ships with excubioctl, which runs it for trap-pack build. scripts/check-gosmi (in mise run lint) checks that the vendored tree is v0.4.4 with tools/mib-compile/gosmi-inline-oid.patch and nothing else.

tools/terraform-provider-excubio, the OpenTofu provider (operations.md §13), is a Go module of its own, so the directory stands alone as a repository, on the same Go:

PartVersion
terraform-plugin-framework (protocol 6)v1.19.0
terraform-plugin-framework-validatorsv0.19.0
terraform-plugin-gov0.31.0
terraform-plugin-testing (acceptance tests)v1.16.0
OpenTofu (acceptance tests, packaging/tools.py)1.13.9

6. Risks​

  1. CEL in Rust: cel-rust has no type checker and no cost limit (§2). Mappings use a restricted dialect checked in ex-core: an own type checker against the channel's variables (integrations.md §1); no comprehension macros (all, exists, exists_one, map, filter), so cost is linear in the expression and the strings it reads; the standard library, optional syntax and the strings extension only; at most 1,000 nodes and depth 64; and before each evaluation a cost bound over the event's sizes. With that bound the example mapping runs at 64,000 events/s on one core (spec-format.md §3.1; cel-mapping spike). Stack overflow: parser and evaluator recurse, and an overflow aborts the hub process; it can't be caught. The ANTLR parser overflows on operator chains of about 4,000 terms, the evaluator from depth about 2,000 on a 2 MiB stack. Mappings are parsed with the Pratt parser (parser_pratt), which didn't overflow up to 100,000 terms, and the depth bound applies before any evaluation.
  2. SNMPv3 USM: the USM is own code (about 250 lines) and passes the net-snmp 5.9.4 set: every auth and priv combination, wrong passwords, unknown users, the time window. One receiver task decodes far above 2,000 traps/s; the storage write is the limit (snmp-receiver spike). What remains is gosmi, unmaintained and patched (§5), and agents' encoding bugs beyond those the lenient types cover; no real devices were tested.
  3. Carrier APIs: inbound SMS and keypad handling differ per carrier; ex-carriers isolates them behind one trait with recorded fixtures. Nothing about real carriers is verified: the fixtures and the carrier facts on-call.md §4 builds on come from the carriers spike (spikes), and the simulated carrier of ex-carriers stands in for both.
  4. OBM compatibility: the close key semantics are settled against OBM 24.2's own matcher classes, with no difference in 600,492 cases; the conversion of simple patterns to SQL LIKE rests on reading OBM's code (close-key-patterns spike). OBM's syntax can't be expressed in SQL: the search prefilters by an anchored literal prefix and runs the matcher on the candidates, and a pattern without one reads every open key of the namespace (75 ms at 100,000 keys). Open: the keys and patterns of real policies, and the pagination and annotation writes of the event web service against a real OBM.
  5. absurd is pre-1.0 without a Rust SDK: pin the SQL, keep the client small, share it with Strataplane.
  6. Shift materialisation: time zones, DST, holidays and absences; property tests over the rotation model, run in three zones including a 30-minute change (rotations spike).
  7. Hub HA: verified against Postgres 18 with three nodes (hub-ha spike): processed_to is a correct watermark with long intake transactions; 2,000 events/s with 32 partitions and no intake locks; activations are seen by every later event when the activation locks the row before it reads the clock; fencing by epoch let no old owner commit across 53 takeovers; takeover took about 10 s with server-side TCP keepalives and tcp_user_timeout on every connection and idle_session_timeout on the lock connection; a synchronous standby loses nothing at failover. With sqlx 0.9 and the lock connection outside the pool, a silent network drop was taken over in 10.0–10.4 s over 12 runs, a cut lock connection in 9.4–10.4 s and a frozen process in 9.4–9.5 s, and no step of an older epoch committed after a newer one began (hub-ha sqlx spike). Either the keepalives or the session timeouts alone sufficed; with neither, nothing was taken over. Also open: the conformance sequences with a node killed mid-sequence, storm counts per partition and the SNMP spool across a failover; the HA kill test of §7 covers them.
  8. Inventory merge quality: identity keys differ in format and freshness between sources, and wrong merges route and group wrongly. Ambiguous merges are kept apart and reported. Verified on a synthetic estate of 900,000 records (inventory-merge spike): a merge takes 0.7 s on 8 threads with a working set of 1.7 GB; versioned storage and replay of 14 days of snapshots work. Open: merge and ambiguity rates per identity kind on real pairs of sources and their real churn, and a merge that takes the imports of many sources within one inventory.mergeInterval.
  9. Breadth of inventory sources: four types, each with its own API and paging; sql and csv cover the CMDBs without a type of their own. Every type has recorded fixtures and a contract test against a real instance.
  10. Correlator: one writer for all grouped alerts. Verified on a model of the hub (correlator spike): 1,000 selected alert changes per second over an inventory of 500 K CIs with p99 latency at the watermark lag (1 s) and about 20 times headroom; identical groups and decisions given the same ordered input, also with the correlator killed mid-step. Joining a group is a lookup by pattern and groupBy values. Open: a quarter of a day's decisions differ between live and replay, because order-sensitive members make whole groups order-sensitive; and replay of 14 days at 1 M events a day takes 5–36 minutes, not 2, with the sequential correlator as the bottleneck (replay spike), which route-only replay and the event cap of pipeline.md §12 address. Takeover is risk 7's.
  11. Critical alerts and background limits: Apple grants the critical alerts entitlement on application; Android makers restrict background work and "do not disturb" bypass in their own ways. Without the entitlement, iOS pages are time-sensitive and SMS and voice carry the wake-up; readiness checks show every restriction (mobile.md §4). Key agreement with a key in the Android keystore needs Android 12, which sets the app's minimum. The cost of the Secure Enclave and StrongBox key agreement inside the notification service extension's time limit is unmeasured; the opening after it takes about 2.5 µs and 1.3 KB (mobile-push spike).

7. Testing​

mise run lint (the newest release's migrations unchanged, rustfmt, clippy with warnings as errors, cargo deny) and mise run test run locally and in CI (.woodpecker/check.yaml), with mise run check (its models in .woodpecker/models.yaml) and mise run check-schema-drift. CI runs the workspace tests under cargo-nextest, each in a process of its own and those of all binaries side by side, at most 8 at once; .config/nextest.toml names the tests that run alone. Integration tests take a fresh database from ex-testdb: a postgres:18 container started by the test process, or the server EXCUBIO_TEST_DATABASE_URL names. The IMAP tests take a Dovecot 2.4 server from ex-testdb the same way: a container of the pinned image, or the server EXCUBIO_TEST_IMAP_ADDR names (CI: a service); a mailbox per test, reached through a proxy of the test that can cut its connections.

LayerWhat it covers
UnitEach crate's functions, in the crate.
Propertyproptest: selectors, CEL checks, shift materialisation in three time zones (§6), merge and replay invariants.
Golden spec treesSpec trees with their validation results, canonical TOML and routing decisions, as insta snapshots.
Recorded intake payloadsReal payloads per channel and SNMP trap, parsed and normalised, as insta snapshots.
API conformanceRouter responses validated against docs/api (§2).
Schema driftThe migrations build the schemas of docs/schema (mise run check-schema-drift).
Replay determinismThe same ordered input gives the same groups and decisions, live and in replay, also with the correlator killed mid-step.
HA kill testAn HA test hub of three nodes on Postgres with a synchronous standby; a node is killed mid-sequence (§6, risk 7).
N-1 schemaThe previous minor version's tests run against the current schema (operations.md §7).
N-1 linkRecorded link requests and stream events of the previous minor versions the cloud accepts (operations.md §7) run against the current cloud, and the current hub against a cloud that answers 426.
API coveragePer binary, every route the router serves has a conformance-checked call in the tests; the test lists the operations of docs/api without a route.
Web unitvitest over the logic of web/shared and the apps: the contrast of the design tokens in both themes, the API conventions, URL state, texts in both languages, permissions from the documents' roles, commands, incident and calendar rules.
Documentation screenshotsThe screenshots of the site's guides (web/screenshots) against ui-hub and ui-cloud, their responses checked against the documents; the site's build fails on a screenshot a guide lacks or no guide uses, on a broken link or anchor (mise run docs, site/README.md).
UI end to endPlaywright with Chromium against each binary with its UI embedded: the cloud (crates/ex-e2e ui-cloud: a throwaway database, the simulated carrier, a fake OIDC issuer, a seeded tenant, and a second cloud under evaluation delivery) and a hub node linked to a cloud (ui-hub: a seeded spec, events sent through intake, users with each hub role, the fake OIDC issuer), every API response checked against docs/api/cloud.yaml or docs/api/hub.yaml; operations a server doesn't route answer from a mock that checks requests and answers against the document (web/shared/tests); axe checks of WCAG 2.2 A and AA on every page, a phone viewport for the incident page.
Command lineexcubioctl and excubio-msg run as binaries against in-process servers on loopback (a hub node, a cloud, Watch) whose routers check every request and answer (§2); the working copy end to end against a hub. Operations no server routes run against a stub that checks the requests and its canned answers against the document. excubio-discover runs as a binary over synthetic CSV exports, the same tables in Postgres (and in SQL Server in a container, a test ignored by default), and a fake SIGNL4 API; its draft is validated at L0 and L1, its rotations and shadow records are checked against the requests of the documents and taken by excubioctl into a cloud and a hub, its report is an insta snapshot, and no name, number or text of the fixtures may appear in its outputs.
OpenTofu providergo test of tools/terraform-provider-excubio: schemas, plan-time validation, the client's retries and problems, every attribute documented; with TF_ACC OpenTofu applies, changes, imports, finds drift in and destroys each resource against crates/ex-e2e ui-cloud with a service-account token of scope config, every answer checked against docs/api/cloud.yaml, creates a hub the vendor runs on ui-cloud's registered installation cell-1, whose provisioning the test ends through ui-cloud's control as the installation would (enrolled, or failed with a reason), and plans the documentation's example.
Hub scopeTwo and more hubs of one installation with rows of the same names: no row of a hub is visible or writable without its scope or under another's (ex-store-hub tests/rls.rs, hubs.rs), no credential of one hub passes at another's front door (excubio-hub tests/front_door.rs), each hub decides as it would alone and replays alone to the same decisions (shared_installation.rs, hubs.rs), and a noisy hub's storm, backlog and replay leave another's paging within its bound (noisy_neighbour.rs).
Installation end to endA managed installation enrolled with its token and provisioned by the cloud with no human step: a hub set up, enrolled, signed in to, paging, limited, suspended, metered and deleted, with a crash at each step of the client and a second node taking it over (crates/ex-e2e tests/installation.rs).
ScaleIgnored by default, run by hand: 500 hubs on one node (excubio-hub tests/hubs.rs bench_500_hubs_on_one_node), the cloud's link with 2,000 streams (excubio-cloud tests/link_scale.rs soak), Watch's idle pass and heartbeat batches (excubio-watch tests/evaluator.rs the_cost_of_5000_hubs); their results are the basis of the cell sizing (operations.md §10).
Model guardsA test that exercises a guard of a model (models) names the model's constant in its doc comment: the epoch check at a step's commit, the stream epoch, the timer re-check.

8. Builds and releases​

The tools are Strataplane's, at its versions; packaging/tools.py fetches each at its version and checks it against its SHA-256, and packaging/release makes a release from them.

PartToolVersion
Linux binaries (x86-64, arm64, glibc 2.34)cargo-zigbuild with zig, --locked, on the toolchain of rust-toolchain.toml0.24.0, 0.17.0
deb and rpm with the systemd unitsnfpm (packaging/nfpm/*.yaml)2.48.0
Container imagesthe binaries as one layer per architecture on a Debian base pinned by digest (distroless cc-debian12, user 65532), joined in one index with crane0.21.7
Helm charthelm, tests with helm-unittest4.3.1, 1.2.1
Signaturescosign with the release key (packaging/cosign.pub): images, chart and SHA256SUMS of the packages and binaries2.6.1
SBOMcargo-cyclonedx: one CycloneDX document per binary from Cargo.lock, published and signed with the artifacts; the web's from its lock file0.5.10
OpenTofu provider (linux amd64 and arm64, darwin arm64)go build without cgo, -trimpath, in the registry's zips with SHA256SUMS and a mirror (packaging/build-terraform-provider)Go of §5
Alerting rule templates (packaging/prometheus)promtool check rules, promtool test rules3.16.0
Scanscargo deny (advisories, licences, sources) on every push; npm audit of the web's runtime dependencies; the image base's advisories at build§7
  • Reproducible: a release build of the hub from the same commit gives the same binaries: the pinned toolchain and Cargo.lock, SOURCE_DATE_EPOCH from the commit, --remap-path-prefix, no build time or host in the binary. CI builds the hub twice and compares.
  • Pipelines: .woodpecker/check.yaml and .woodpecker/models.yaml check every push (TLC runs when the models, its script or its JRE differ from a run that passed); .woodpecker/publish.yaml publishes the hub's, the cloud's, Watch's and the relay's images of a main push that passed, from the binaries check.yaml built and packaged, to the forge's registry as main-<pipeline> and sha-<commit>, and with them the documentation site's image excubio-docs (nginx-unprivileged pinned by digest, the site as one layer, built and served once in check.yaml), which the vendor's deployment follows, the hub's without the vendor's trap pack key (operations.md §5); a release pipeline signs and publishes a tagged version and verifies the signatures from the public registry.
  • Bundles (operations.md §5) are built and signed by excubioctl trap-pack build with an ed25519 key held outside the repository; the revocation list is a file of the repository compiled into the binaries.
  • Apps are built and signed by the platforms' own tools (Xcode, Gradle) and published through the stores; their SBOMs come from the same cargo-cyclonedx run for ex-mobile and from the Gradle and Swift package locks.