Repository navigation
docs(readme): emphasize the magic — auto-#general, uses-what-you-have, no infra - #47
Merged
Merged
Conversation
…, no central infra Per Joel: 'emphasize how it just works magically pretty much. New tabs or machines just connect. AIs can make their own dms and rooms.' Major reframes: - New 'The Magic' section up top — concrete scenarios for "it just works" - Lead-in stresses: zero-string for same gh account, encrypted SSH + gh OAuth scope as the trust boundary, no central server - New 'Built entirely on tools you already have' callout — gh + Tailscale + OpenSSH, nothing to sign up for, no credit card - Requirements section rewritten: TWO things, both you probably have — Tailscale + gh. Skills walk users through any missing piece. - IRC table: marked rooms / list / part / federation / auto-rejoin all shipped (was 'partial' / 'roadmap') - 30-Second Setup: same-gh magic case is now primary, cross-account is secondary, legacy 1:1 invite is fallback (vs prior order) - Sharing Invite: airc rooms is the modern path; legacy invite reduced to a footnote - Validate: 88 assertions / 11 scenarios (was 35 / 4) - Core Commands: full surface — rooms / part / daemon / channel / canary / list / tests - Skills: list / canary / tests added; framing emphasizes AI autonomy - Roadmap: marked rooms / federation / resilience / auto-#general all shipped; new items are multi-room, QR, mDNS, Reticulum, continuum bridge Per 'trust docs as vision, verify as state' rule — every shipped item is empirically running in this canary as I write it (anvil daemon hosting #general, bigmama-wsl paired across the substrate, the overnight sleep cycles + dogfood-caught bugs all proven the chain).
joelteply
added a commit
that referenced
this pull request
Aug 8, 2026
…ld — and not at all for a no-op (#1332) fix(update): stop the daemon for the binary swap, not for the whole rebuild — and not at all for a no-op Incident 2026-08-08: a peer's daemon was down ~4 minutes during an `airc update`, and every message sent to that node in the window was LOST. Not queued, not replayed. Replay resumes from the RECEIVER's cursor against the RECEIVER's store, so a frame that never reached that store cannot be recovered and the receiver cannot even know it missed one. Generalized, that is severe: every update costs the grid a coordination blackout on each node as it rolls, and the traffic most likely to be in flight during an update is the traffic coordinating it. A substrate whose own update silently drops the messages organizing it is not dependable, however correct each part is in isolation. Durable store-and-forward (#47) is the other half and is not this change. This one shrinks the window that makes #47 fire on a SCHEDULE instead of by accident. ROOT CAUSE, from the code rather than from theory: `stop_daemon` ran BEFORE `prepare_build_source` (a git fetch/checkout) and before `run_installer` (a full `cargo build --release`, self-described as "can take a few minutes"). The only step that genuinely requires the daemon down is replacing the binary. The node was therefore off the air for the fetch and the entire compile. THE WORSE HALF: `before == after` — the updater KNOWING the source had not moved — decided nothing but a println. It still stopped the daemon, still ran the full installer, still restarted. A node that was already current paid the entire outage for a no-op, and since auto-update runs on a cadence, those were recurring outages bought with nothing at all. Reordered so the daemon goes down only for what needs it: 1. fetch/checkout — a git op on a separate worktree; no daemon involved 2. nothing-to-do — return WITHOUT ever stopping the daemon 3. pre-warm build — compile while the node is still on the air 4. stop → install → restart — the genuinely exclusive part The skip needs BOTH conditions. `before == after` says the SOURCE did not move this run; it does not say the installed binary matches it (#354: a prior install can fail while the checkout stays current). Pairing it with the existing smoke test is what makes skipping safe rather than a new way to be silently stale. The pre-warm runs `cargo build --release -p airc-cli` in the same directory install.sh uses, so it warms exactly the cache the installer will hit and the post-stop build becomes near-incremental. It is best-effort ON PURPOSE and not a masking fallback: `run_installer` performs the authoritative build moments later and fails loud on a real compile error. Nothing is hidden — a broken build still stops the update, a few seconds later. Net: outage falls from (fetch + full rebuild + install) to roughly (install + restart), and to ZERO when there is nothing to update. Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 10, 2026
…ruth + name the gaps (#1338) * feat(backfill): peer-to-peer transcript backfill request/response (S1 of #47) A message published while a peer is unreachable is LOST, not queued — measured three times on 2026-08-08, once inside the investigation of it. Replay resumes from the RECEIVER's cursor against the RECEIVER's store, so a frame that never arrived cannot be replayed and the receiver cannot know it missed one. PULL, not an outbox. An outbox needs new per-event durable state AND an eviction decision (a queue growing while a peer is away a week is its own incident). Pull needs neither: the sender already has the events in its durable transcript, the receiver already holds a per-room cursor. Backfill is the daemon's existing resume, crossing a peer boundary instead of a process one. DeliveryLedger cannot serve this — it is per-peer COUNTERS, so it knows a peer has not acked but not WHICH events it missed. Carried on the existing command bus (request/reply/await_reply over FrameKind::Command); nothing new invented on the wire. Receive-side dedup already exists, so an overlapping page costs bandwidth, never correctness — which is what lets the asker be sloppy about its cursor. Extracted command_bus::reply_addressing: every responder needs (reply_to, correlation_id) off a request, and each one re-deriving it from raw headers is how they drift. `truncated` is on the response because a bounded page presented as a complete one lets the gap survive the mechanism built to close it — worse than no backfill, because it looks fixed. NOTHING CALLS THIS YET. The reconnect watcher is S2; landing them separately keeps this slice incapable of changing existing behaviour. Validated on ALL targets per [[validate-lib-tests-before-push]], not just --lib. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(ci): the windows leg was a phantom; docs: lead with delivery truth, name the gaps ## CI: a check that never ran, for months `cargo test (windows-self-hosted)` has been reporting a permanently-pending check on every PR. Not slow, not offline — the runner does not exist: gh api repos/CambrianTech/airc/actions/runners -> total_count 0 and bigmama itself has no runner service, no Runner.Listener process, and no actions-runner directory. On #1336 the job sat `pending` at 0s. It came one check away from blocking the canary->main release, while reporting Windows coverage that never ran a single test. The #1114 rationale for moving off hosted Windows (queue starvation) is stale: ci.yml's clean-install-windows and clean-install-windows-ps5 run on windows-latest and passed in 9m10s / 8m42s the same day. So the leg moves back to windows-latest, where it actually executes. This RESTORES Windows coverage rather than removing it. The fork-PR guard stays for the day a real self-hosted runner is registered. ## README: it never mentioned the one thing that makes airc different In 366 lines the word "ack" did not appear once. The lead was an inventory of plumbing ("channels, peers, presence, messages, typed headers, replay, and transport routing") — true, and no reason to care. The property that actually matters is delivery truth: most surfaces say "sent", airc says "delivered", with a count. That distinction did real work this week — a daemon at 21h uptime told us nothing, and `1305 of 1305 acked, rtt ~134ms` told us everything. Now it is the lead and a first-class part of Reliability, with the real command output. ## README: an honest gaps section There was none. Added "What Doesn't Work Yet" for four things hit while building ON airc, each of which reads as inattention or a broken peer when you meet it cold: `@Name` in a body is decorative (every send is MentionTarget::All, so a peer is structurally unable to see it was addressed), long bodies clip on the receiving side, an offline peer gets no store-and-forward, and the ACK proves transport delivery rather than that any agent read it. Verified rather than recalled: the MentionTarget::All hardcoding was re-grepped across the send sites, and the truncation was reproduced live in a two-part message whose second half never arrived. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 14, 2026
…kfill slice 2, wired) (#1419) * feat(lib): a node that comes back asks every peer what it missed — backfill slice 2, wired Slice 1 (#47) built the request/response pair and nothing ever called it. Measured today: the 5090 came back after six dark days and its board had none of the cards published meanwhile; the M5 held them all. A node's board is the union of what it heard live, so a tower that was off during a publish never learns of it — the cross-node board gap every operator has been closing by pasting card bodies by hand. The wiring: - ASK: the routed forwarder, the first time it sees a peer connected (a node that came back, or this daemon just started), spawns `backfill_all_from_peer`: for every subscribed channel, ask that peer for the last 24 h, up to 4 pages of 200. - SERVE: the transport's inbound path, on a delivered event carrying the backfill header, spawns `serve_backfill`: the newest envelopes in the asked window from this daemon's own transcript, projected onto the wire with `build_forward_frame` — re-signed by the responder exactly as a live relay is — and returned as frames. - INGEST: the asker delivers each frame through its inbound bridge: same dedup, same channel remap, same trust. Backfill cannot introduce anything a live relay could not. Cross-node "since" is TIME on the responder's ingest clock (`since_ms`/`until_ms`), not a cursor: the bus re-stamps every event at publish, so one node's cursor means nothing to another. A truncated page is walked older by lowering `until_ms`. Slice-1 requests still parse (serde defaults), so a mixed fleet keeps talking. Tests: select_window (inclusive/exclusive bounds, newest page survives, truncated flag); slice-2 and slice-1 requests both parse. backfill/forwarder/transport/bridge/command_bus mods 14/14; workspace check clean. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(lib): clippy — a subscription set already iterates * fix(lib): name every delivery verdict in the backfill ingest (CI clippy: no wildcard arm) --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Per Joel's directive: rewrite README to lead with the substrate magic. Auto-#general for same-gh-account, uses tools you already have (gh + Tailscale), no central infra. IRC table marks rooms/list/part/federation/resilience all shipped. Roadmap updated: shipped items moved to checked, new items focus on multi-room + QR + Reticulum + continuum bridge.