Skip to content

Releases

v0.10.0

Choose a tag to compare

@hamicek hamicek released this 29 Aug 20:27
183ff0f

Observability and reliability release: thralls now describe themselves, and handlers get a typed let-it-crash and opt-in idempotence.

Highlights

Self-description (what a thrall is, and what build runs)

Every thrall reports a curated self-description on its heartbeat, so "what is this, what build runs here, what last failed" can be answered without an ssh:

  • Operations it answers, derived from its handler maps (call_ops/cast_ops) - nothing is declared, a handler stays a map of functions.
  • Self-declared version - it lives with the code, so it answers "what actually runs" (a manifest would lie against a wrongly-deployed binary).
  • Last error, with a "dying breath" heartbeat carrying the reason on an escalation before the process exits.

Surfaced by a new aether describe <name> (full record, --json), a VERSION column in aether ps, and per-thrall version/error in aether fleet. A [[thrall]] metadata block adds operator-owned deployment tags (site, PLC, criticality), kept out of Prometheus labels by design. Wired across all four runtimes (GenServer/FSM/event/edge) in the Go, TS and Python SDKs, with a shared golden fixture pinning wire parity.

Typed let-it-crash

A handler can trigger a typed crash by returning/throwing Escalate(reason): the SDK terminates the thrall with an abnormal exit so the lord restarts it through init per policy (a call caller gets a distinguishable "escalated" reply), instead of a manual panic/os.Exit. A durable poison cast is acked before the crash, so it is not redelivered into a loop.

Opt-in idempotence for call/cast

An in-memory dedup by idempotency key (or the envelope id): a duplicate cast is skipped and a duplicate call returns the first reply. Opt-in per thrall; it does not survive a restart.

Edge-route validation

An [[edge.http]] route's target is checked at manifest load against the declared thralls (a typo fails aether up loudly), and its operation is validated asynchronously once the target thrall describes itself.

Also

  • The secured-bus soak now exercises [nats.security] under load with credential rotation (surfaced an upstream nats-server reload race, reported as nats-io/nats-server#8499).
  • README leads with a plain-language "What it's for"; a new USE-CASES.md collects concrete shapes grounded in runnable examples.

Not a breaking change - the heartbeat describe block is optional; older SDKs omit it and liveness is unaffected.

v0.9.0

Choose a tag to compare

@hamicek hamicek released this 23 Aug 15:26
b9873de

Highlights

  • Secured embedded bus — the embedded NATS server can now be exposed on the network with server-side TLS and mandatory nkey authentication ([nats.security]). Absent, the server stays on 127.0.0.1 with no auth, exactly as before, and existing manifests are unaffected.
    • Least-privilege roles. Beyond a single shared identity (nkey_seed), you can give the lord, thralls and operator their own nkey identities (lord_nkey / thrall_nkey / operator_nkey, mutually exclusive with the shared seed). The server enforces a role-scoped, deny-based permission set that makes aether._lord.> node-local by permission on a networked bus: a thrall cannot drive supervision or command siblings, an operator cannot forge control, only the lord has full rights.
    • Credential rotation without downtime. Renew a certificate or key by replacing the file in place and sending the process SIGHUP; the server reloads via NATS ReloadOptions. A TLS rotation keeps live connections up; an nkey rotation lets the new key in and the old one out.

Notes

  • Opt-in and backwards-compatible: without [nats.security], the embedded bus is the loopback, no-auth default; no wire (envelope) change; the SDKs are unchanged (they already read the injected credential paths).
  • Two honest limits (documented): the role permissions are deny-based (allow all, subtract the dangerous subjects, so JetStream and KV keep working — not a strict allow-list), and a single shared thrall identity does not isolate one thrall from another (the roles isolate the lord / thrall / operator boundaries).
  • Rotating the lord's own key is better done with a restart; structural changes (a different listen, the role set) need a restart. Mutual TLS remains an opt-in follow-up (see ROADMAP).
  • Reference manifest: examples/counter/aether-secure-embedded.toml.

Full changelog: v0.8.0...v0.9.0

v0.8.0

Choose a tag to compare

@hamicek hamicek released this 22 Aug 14:00

Highlights

  • Fleet observability — a network-wide view of runtime health across lords. Opt in with [observability] fleet_health and each lord publishes a curated summary of itself (its thralls, their status and metrics) on aether._fleet.<app>.<lord_id>; the new aether fleet CLI (a reusable aggregator) assembles the whole fleet from one place — which lords are live or stale, their thralls and states. It is the network-wide sibling of the per-node observer dashboard, and a mechanism, not a domain concern: it describes the runtime, never application data.
    • Works across a leaf boundary too: the [nats.leaf] spoke exports its fleet health as a stream, and the hub imports it (operator-authored), so a hub sees the fleet health of its isolated spokes — while raw supervision (aether._lord.>) stays node-local and is never exported. A domain dashboard (tags/alarms) is an application thrall that consumes this feed as one input.

Notes

  • Opt-in and backwards-compatible: with fleet_health off, no subject and no overhead.
  • No wire (envelope) change; a lord-side mechanism, the SDKs are unchanged.
  • The health payload is a JSON contract, so a dashboard can consume it in any language.

Full changelog: v0.7.0...v0.8.0

v0.7.0

Choose a tag to compare

@hamicek hamicek released this 21 Aug 23:43

Highlights

  • Embedded leaf spoke ([nats.leaf]) — an embedded bus can now join a hub as a NATS leaf node straight from the manifest. A new [nats.leaf] section (remote / site / domain / credentials) binds the node into its own NATS account with its own JetStream domain, so a site deploys as a single binary instead of "aether + a hand-written NATS server config". Only the spoke side is ergonomized; the hub stays operator-authored (mode = "external", bring-your-own). Isolation and supervision fall out of what is exported: only the data plane (aether.<app>.>) crosses the leaf, while the supervision subjects aether._lord.> are never exported and stay node-local by construction. Runnable demo in examples/nats-leaf/. Closes the gap noted in the multi-node spike that an embedded server could not be a leaf.

Notes

  • No breaking changes. ether.Start is now variadic (WithApp); existing callers are unaffected, and the wire contract is unchanged.
  • Fail-fast manifest validation for the new section (mode enum, embedded-only, required fields, reserved account name, credential shape).

Full changelog: v0.6.0...v0.7.0

v0.6.0

Choose a tag to compare

@hamicek hamicek released this 21 Aug 22:16

Highlights

  • Durable consumer throughput (~14x) — the durable cast consumer now reads JetStream in batches (Fetch(128)) with explicit AckWait/MaxAckPending, instead of one message per round-trip. Measured ~26k → ~367k casts/s on the drain path (examples/durable-perf/). Across all three SDKs (Go, TS, Python); FIFO holds in the happy path, at-least-once unchanged. Upgrade-safe: a durable consumer from an earlier version is attached to as-is rather than erroring.
  • Docker support — a canonical non-root Go image (tini + procps) and a documented recipe for polyglot and observer deployments, plus a compose setup against external NATS.

Also

  • Internal soak-suite cleanup: removed two permanently-skipped singleton tests whose two-lord failover premise is refused since the one-lord-per-app enforcement.

Full changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@hamicek hamicek released this 19 Aug 13:31

Retention intent - event_log_use (#58)

A retention bound on an event log you rebuild state from silently truncates the projection:
Rebuild folds the whole log and there is no snapshot, so once retention purges old events the
rebuilt state is wrong with no error. v0.4.0 could only warn. This release adds a declared intent so
the runtime can act on it:

  • event_log_use = "rebuild" + a retention bound (event_log_max_msgs / event_log_max_age_ms)
    is a config error, rejected at manifest load - aether up fails, names the field and the fix.
  • event_log_use = "audit" + a bound is fine and suppresses the startup warning.
  • unset keeps the previous behaviour - backward compatible, no manifest changes meaning.

The three examples/eventsourced manifests declare "rebuild" so the demo shows the intent.
Docs: DESIGN.md 13c and the README event-sourced section.

Singleton reframe (#57)

After enforcing one lord per app (v0.4.0), scope="singleton" no longer arbitrates between
competing lords - that is now refused outright. DESIGN.md 12 is reframed around the feature's real
residual value (gating handoff across a lord restart), and two stale doc spots are fixed.


Go SDK: go get github.com/hamicek/aether@v0.5.0. Full diff: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@hamicek hamicek released this 18 Aug 22:59
5f5fb7d

Enforces one lord per app and reconciles a doc/test/code inconsistency around the fencing model, surfaced by an external review.

Supervision

  • One lord per app is now enforced (#54): a second lord starting for an app whose lord-liveness lease another lord is actively renewing refuses to start with a clear error, rather than stomp the lease and reap each other's thralls into a crash-loop. Empirically, two lords per app never provided HA singleton failover - the second lord supersedes the per-app lord-liveness epoch and the singleton instance self-terminates; the old test missed this by counting starts, not liveness. The check is best-effort (two lords started within the same startup window still race, no worse than before); a live competitor is told apart from a dead predecessor (a lingering lease after a crash) by whether the lease is being renewed. Cross-node single-instance is via leaf-node isolation, not lords racing a shared lock.

Docs

  • Reconciled the docs with the enforced model (#54): DESIGN §14 (assumed → enforced), §12 (the singleton is one instance within an app; cross-node single-instance is leaf isolation), and fixed a stale §13c note (a stream config change is rejected at startup, not silently ignored).
  • Added a Multi-node and isolation section to the README (#55): one lord per app+node, leaf-node isolation with per-site accounts, the hub importing only the data plane. Links DESIGN §11b and the hub-spoke spike.
  • Stated plainly that aether is OTP-inspired, not OTP (#55): real OTP (Erlang/BEAM) runs millions of lightweight in-VM processes; aether runs tens of OS processes across languages, trading scale for OS-process isolation and polyglot. Filled in the examples list and added a version stamp.

Full changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@hamicek hamicek released this 18 Aug 18:18
f1b8629

Operational hardening from a post-publication review: a per-thrall fencing opt-out and fail-fast on event-log stream config drift.

Fencing

  • Per-thrall fencing opt-out (#52): a new manifest field fencing (default on). Set fencing = false on a thrall whose orphan is harmless - a stateless / read-only poller - so a shared-bus KV hiccup does not reap it along with the whole tree in external mode. Lord-side only (no SDK change); singleton fencing is a separate mechanism and stays on. The opt-out means the thrall may outlive its lord, so it is only for thralls that own nothing; in practice it applies to local thralls (a singleton is still reaped by singleton fencing when its lord dies).

Event log

  • Fail-fast on stream config drift (#51): a retention bound or the dedup window is fixed at stream creation, so changing it in the manifest against an already-provisioned stream used to be a silent no-op - the lord ran on the stale value. It now compares the desired config against the existing stream and refuses to start on a drift, naming what differs. Both adding and removing a bound are caught; a stream that was never bounded is unaffected. The lord does not update the stream automatically (shrinking retention would drop the event log's rebuild history), so the error asks the operator to reconcile deliberately.

Docs

  • Marked lord-liveness/singleton fencing as delivered (it had lingered in the README's "deferred" list), surfaced the delivered dedup and fencing-token work in the ROADMAP, and tracked the remaining follow-ups (single-lord enforcement, dynamic-child fencing opt-out) (#50).

Full changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@hamicek hamicek released this 17 Aug 22:31
212711c

Event-log correctness and singleton fencing ergonomics, plus documentation honesty. All changes are additive and backward-compatible.

Event log

  • Append dedup (command-key) (#44): Append takes an optional dedup key sent as Nats-Msg-Id, so a redelivered command does not write a non-idempotent event twice. The handled message id is exposed as ctx.MsgID / ctx.msgId / ctx.msg_id. The stream's duplicate window is explicit and configurable via event_log_dedup_window_ms.
  • Retention fail-fast (#45): the lord warns at startup when event_log is combined with a retention bound - a bounded log silently truncates a rebuild (there is no snapshot), which is safe for an audit-only log but wrong as a rebuild source.
  • Dedup window clamp (#46): the dedup window is clamped to max_age when it would exceed it, so a short event_log_max_age_ms no longer fails stream creation and crashes aether up.

Singleton fencing

  • Docs honesty (#47): the docs now state the honest guarantee - singleton fencing bounds liveness overlap (at most one live instance, overlap ≤ lock TTL), it is not strict single-writer (a GC-paused old instance can still write; Kleppmann's fencing argument).
  • Write-side fencing token (#48): the fencing epoch is exposed as ctx.SingletonEpoch / ctx.singletonEpoch / ctx.singleton_epoch (0 for a non-singleton), so an application can enforce strict single-writer against a resource by sending the epoch with each write and rejecting a lower one. New examples/fencing-token/ demonstrates the pattern in all three languages with an atomic KV compare-and-set guard.

Docs

  • The README intro makes the OTP mapping explicit (lord = supervisor, thrall = GenServer / gen_statem / gen_event, ether = transport) (#49).

Full changelog: v0.1.0...v0.2.0