~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/stream

jetstream v2 in zig · mirror of https://tangled.org/zat.dev/stream

0
0
126 lines · 6.7 KB Raw History
# Stream 0.0.2 maintenance record

Work began 2026-11-04 America/Chicago (2026-11-05 UTC). The production baseline
was Stream `3f7d356`, Caddy `stream-caddy:emudhra-20261021`, Ubuntu 24.04.3,
running kernel `6.8.0-90-generic`, and `net.mptcp.enabled=0`.

## Dependencies

| Component | Before | Released |
| --- | --- | --- |
| Zig | 0.17.0 | 0.17.1 |
| zat | 0.6.0-alpha.6 | 0.6.3 |
| websocket (server and loadgen) | 0.2.0-alpha.5 | 0.2.0 |
| xxHash | 0.8.3 | 0.8.4 |
| zstd | 1.5.7 | unchanged; latest release |
| rocksdb-zig | 30cf93d / RocksDB 9.7.4 | unchanged; latest wrapper revision |
| otel-zig | 0.1.0-alpha.1 | unchanged; latest selected release |
| Caddy / Go | 2.10.2 / 1.26.10 | 2.11.9 / 1.27.3 |
| caddy-ratelimit | 0.1.0 | unchanged; latest release |
| Strata lexicons | 2.1.0 | 2.1.1 |
| Strata TypeScript / Wrangler | 5.9.3 / 4.127.1 | 7.0.2 / 4.157.0 |

Other Strata development pins are recorded in its manifests and lockfiles.
The latest RocksDB engine is 11.13.2, but replacing the wrapper's bundled 9.7.4
requires a separate migration with storage reopen and rollback evidence.

## Kernel mitigation

[Ubuntu's CVE-2026-98432 advisory](https://ubuntu.com/security/CVE-2026-98432)
still listed Noble as vulnerable, with a fix in progress in 6.8.0-149.149.
Refreshing the production APT indexes offered only 6.8.0-147.147, already
installed but not booted. No patched-kernel claim is warranted.

Applied `deploy/security/` without restarting the service. Verified the
persistent unit, dedicated nftables table, fresh SSH connection, MPTCP still
disabled, and advancing upstream sequence (35,207,904,491 → 35,207,920,091).
The public `/healthz` URL returned 404; `/status` remained live. Do not mistake
the proxy's route behavior for the internal health endpoint's behavior.

This filter reduces exposure; it is not a kernel fix. A kernel upgrade and
reboot remain necessary once the fixed Ubuntu package is available. General
host package updates and monitoring-image upgrades are not included in the
Stream binary release.

## Evidence and admission

Strata typechecking, lint, eight tests, npm audit (zero reported vulnerabilities),
parser regeneration, and Worker packaging dry run passed. Node's SQLite test
API emits its existing experimental warning; it is not suppressed.

Native macOS builds, debug and ReleaseSafe unit suites passed (368 passed, one
Linux-only process-metrics skip). Linux x86-64 and ARM64 ReleaseSafe cross-builds
and loadgen compiled without compiler warnings. The live TLS probe rejected all
three compromised-certificate hosts and accepted the valid control. Fault-injection
tests emit expected runtime warnings. The admission rejection contract passed.

The WebAssembly probe fails in the RocksDB build script's unsupported-WASI
branch. See [build targets](../build-targets.md).

The October 27 sibling build audit informed the paired transport upgrades and
manifest-version fallback. ZDS supplies the version fallback pattern; Zeldi
shows the separation between native hosts and portable WebAssembly modules.
The timestamp API adaptation preserves the pinned upstream layout in
`d4dd2f0:internal/subscribe/encoder.go:47`.

## Release admission

All 21 suites passed in the serialized [Prefect run](https://prefect-server.waow.tech/runs/flow-run/e34dbf53-49b7-44d5-a3a5-2a8d6edfc0ec).
The [receipt](../../receipts/9a0ea8f.json) covers source
`9a0ea8f51102a187e9624a8fe93b319d8ac042a2`, Zig 0.17.1 and upstream
`289b0328c2e1a0ccf8c870cb45de0b2397de19fb`. Upstream was marked dirty because
its `go.sum` acquired 96 checksum lines; `go.mod` and source files were unchanged.

Published image: `atcr.io/zat.dev/stream:9a0ea8f@sha256:6f8c6d1ad2082c35b7a6b89bb3be4f8d27620e5f821aa1e4ebce57d1b1a908ae`.
The build daemon recorded config ID
`sha256:bc1910e9fcfa6113d83e07632f448e80a2ad08155f3561d316a03ac0f6fb6f25`;
the receiving Docker stores report the manifest ID instead. Publication verified
the saved config and every layer before binding the registry digest. A real
image with an incorrect receipt was rejected before push; regression coverage
also rejects altered layers, missing layers and multi-image archives.

The candidate's 15 commits each passed `zig build test -j4` through
`git rebase -x`. Later operational changes preserve the image's application
source. The CI admission trigger was repaired to use Prefect's public endpoint;
pipeline `3mzjxj3ilej22` passed both workflows. An automatically queued,
redundant gate for the operational-only revision was cancelled.

## Production rollout

Cutover began 2026-11-05 04:11:37 UTC. Stream and Caddy were recreated together;
Stream reconnected upstream at 04:15:08 after storage/tombstone recovery.
The existing data directory and monitoring containers were retained. Previous
images remain available as `stream:rollback-20261105` and
`stream-caddy:rollback-20261105`. Restore image pins for rollback while keeping
the MPTCP overlay and TCP filter.

Caddy runs `stream-caddy:2.11.9-go1.27.3`, image ID
`sha256:03ee0aec847862be3a4a2036d09271b55f4e9682f58f2fcadcc882fbd4d2ab03`.
Its formatted configuration adapts to the same JSON as the prior live config.
Both recreated container namespaces report `net.mptcp.enabled=0`; the Stream
namespace had initially remained enabled despite the host setting. The new
`compose.mptcp.yaml` makes the per-container setting persistent.

Strata Worker version `4be5aafa-dfdd-4e66-8dd8-02dbd08e81e0` and static release
`20261105T034414Z` are deployed. Live parser checks covered 2,687 sources,
2,687 source details, 766 profiles and three storage entries; API and asset
requests succeeded. Browser control was disabled in the session, so visual
verification is not claimed.

Post-cutover baseline-CPU probes received 38,103 messages live over 90 seconds
and 29,768 messages from a ten-second rewind over 60 seconds, with zero errors
or disconnects. The initial HeavyPad-native probe failed with an illegal CPU
instruction before connecting; rebuilding for baseline x86-64 resolved it and
CI now builds loadgen for that destination explicitly.

Upstream advanced from 35,209,509,589 to 35,209,564,589 across observations.
Metrics identified `9a0ea8f`; RSS ranged from 7.20 to 7.44 GB during the early
post-recovery window, compared with roughly 10.9 GB before the restart.
Drop and terminal-retry counters remained zero, and the container had zero
restarts through 04:19:09 UTC. These are rollout checks, not a long-term memory
stability claim. Both public hostnames served status successfully. Browser-based
Grafana inspection was unavailable; the underlying metrics were checked directly.

All later operational commits also passed unit and admission rejection tests
individually through `git rebase -x`. The release tag remains on the admitted
application source, not the later receipt and operational documentation commits.