Repository navigation
Conversation
Add a dead-air Rust crate with the 0.2.0 behaviour: strict TOML config, bounded children with process-group cleanup, policy-checked DNS and a pinned, proxy-free HTTP/HTTPS client, FFmpeg capture and decoded coverage, the three independent conditions with sustained/positive recovery, the schema-2 SQLite ledger and OS writer locks, alert delivery through owned worker children, read-only status, the loopback GUI with embedded assets, plus a Tempo client, a read-only MCP server and an optional loopback metrics endpoint. GUI assets move to gui/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcaBjEc9MB8YTjxgWuDd8y
Pin every behaviour the Python suite covered: probe/coverage/progress parsing, the three independent conditions, resolver and thumbnail fallbacks, incident opening and positive recovery, restart and clock resets, alert payloads, SMTP TLS rules, attempt deadlines, owned worker cleanup, the delivery ledger and Retry-After, read-only status, acknowledgment, writer locks, SIGTERM/Ctrl+C exit codes, the GUI's token/Host/Origin checks, and native lavfi media plus loopback HLS, HTTPS and SMTP acceptance. State written by the Python 0.2.0 release reads byte-identically and keeps its history. The GUI gains a Tempo brief button shown only when [tempo] is enabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcaBjEc9MB8YTjxgWuDd8y
Delete the deadair package, the dead_air.py and dead_air_gui.py entry points, pyproject/requirements and the Python tests now that the Rust suites pin the same behaviour. install.sh and install.cmd download the release build, check it against SHA256SUMS, fall back to cargo install --locked, or print the rustup line; both keep a dry run and the desktop launcher. CI runs fmt, clippy and tests on Linux, macOS and Windows; a tag workflow builds musl, MSVC and macOS binaries, writes SHA256SUMS and publishes with gh. scripts/check-windows.sh type-checks the Windows target without MinGW. The starter config documents [tempo] and [metrics]; the Python 0.2.0 state fixture is now tracked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcaBjEc9MB8YTjxgWuDd8y
README covers the binary install, upgrading from the Python release, the optional Tempo briefs and MCP server, and the metrics endpoint. OPERATIONS adds the metrics contract, the sender worker, bounded DNS threads, the GUI's lock handling and rollback notes. ARCHITECTURE maps the crate; docs/TEMPO.md documents the client, data minimisation, the MCP tools, an example session, policy and mcp-config. CHANGELOG 0.3.0 lists every visible change and the upgrade path; VERIFICATION records what ran here and what did not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcaBjEc9MB8YTjxgWuDd8y
Pick the earliest of CRLF and LF blank lines so a body can never be read as part of the head, and pin chunked bodies, 100 Continue prefaces, body caps and short Content-Length bodies in unit tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcaBjEc9MB8YTjxgWuDd8y
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcaBjEc9MB8YTjxgWuDd8y
…TTP error Perennos Tempo's gateway answers its own paths, so a 404 from /health, /v1/models or /v1/chat/completions means something else is listening on the port (for example a Tempo service that does not serve the OpenAI-style routes). Report that plainly and name the fix, instead of "answered HTTP 404". It is never reported as an authentication problem. /health can still answer 200 in that case, so status/doctor show the message on the models line. Requested by the Tempo main thread, whose v2 apps start a Rust agent on the same default port (127.0.0.1:8765). Tests cover a stand-in service that answers /health but 404s every gateway path; the real binaries were also run against one. Documented in docs/TEMPO.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcaBjEc9MB8YTjxgWuDd8y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DEAD AIR is now a single Rust binary,
dead-air, and the Python implementation is removed. Every command, flag, exit code, TOML key and on-disk state format is kept, so an upgrade keeps existing config and history.init,status,validate,doctor,check,watch(--max-cycles N/--continuous),gui,failures,ack-delivery, with--jsonoutput in the 0.2.0 text form and exit codes 0/1/2/3/130/141/143. All the semantics the docs pin are kept: three independent conditions, UNKNOWN never LIVE, thumbnail-only degraded, the 100 ms prefix and gap rules, stable event IDs with at most three delivery attempts (0/30/120 s), exact-allowlist private targets, FFmpeg-tls_verify 1, and owned-child cleanup on Ctrl+C/SIGTERM.status --jsonoutput and config written by the Python 0.2.0 release are checked in undertests/fixtures/. The Ruststatusoutput matches byte for byte apart from two added fields, the config fingerprints match (so stored samples stay fresh), and a Rust watcher recovers a Python-opened incident.[tempo]table anddead-air explain <incident-id>, plus a page button shown only when Tempo is enabled. It sends incident metadata only; a test asserts that URLs, stream ids, destinations and tokens never appear in the request. The brief and Tempo receipt id are stored and shown bystatus. Requests are never retried, andcheck,watchandstatusnever contact Tempo, so alerts never wait on AI.dead-air mcpserves five read-only tools over stdio (deadair_status,deadair_incidents,deadair_incident,deadair_deliveries,deadair_sources), anddead-air tempo status|policy|mcp-configprints a secret-free client entry and tool-policy fragment. Seedocs/TEMPO.md.[metrics]table makeswatchserve Prometheus text on loopback (default 127.0.0.1:47825). A busy port warns and never stops monitoring.install.sh/install.cmd(both with a dry run) download the release build and verifySHA256SUMS; with no release build they fall back tocargo install --locked, and without Rust they print the rustup line. No admin rights needed, and the desktop launcher is kept. CI runs on Linux, Windows and macOS; a tag-triggered release workflow builds five targets with first-party actions only..dead-air.lockguard for a live owner. Start now checks the real OS lock. Two Python GUI tests encoded that bug and were not ported.User-visible changes are listed under 0.3.0 in
CHANGELOG.md: no morepython dead_air.py, the installer no longer creates a venv or installs yt-dlp, added JSON fields (briefs,incident_id,advice), non-ASCII hostnames must use thexn--form, and multicast counts as private.Testing
Run in a Linux container; the coordinator re-ran the first three independently.
cargo fmt --check: clean.cargo clippy --all-targets --locked -- -D warnings: clean.DEAD_AIR_REQUIRE_MEDIA=1 cargo test --locked: 217 passed, 0 failed, with real FFmpeg 6.1.1 and test-owned loopback HTTP/HLS, HTTPS, SMTP and Tempo servers. Every behaviour pinned by the 183 Python tests is pinned again.cargo +1.85.0 check --all-targets(declared MSRV): passes.scripts/check-windows.shtype-checks the Rust code forx86_64-pc-windows-gnu(it stubs the C compiler that bundled SQLite and the TLS library need, so it checks Rust code only).init,validate,status, and an MCPinitialize/tools/list/tools/callround trip.dead-air tempo policyoutput (with an owner caller added) was loaded by Perennos Tempo's owntool_policy.load_policyand accepted.validate: 1.6 ms (Rust) vs 105 ms (Python), median.Not yet verified: no run on real Windows or macOS, the release workflow has never run, the installers were only tested against a fake release folder, and no real Tempo gateway, MCP host or 24-hour soak was tested. Rolling back to 0.2.0 on the same database should work once the
[tempo]/[metrics]tables are removed from the TOML, but that was reasoned through, not tested.Generated by Claude Code