Repository navigation
feat(uninstall): airc uninstall verb + /uninstall skill - #340
Merged
Merged
Conversation
This was referenced Apr 30, 2026
…script
Replaces the four-line uninstall.sh stub (only removed the airc symlink
and skill symlinks) with a full uninstall flow + a first-class verb on
the binary + an agent-invocable skill. Single source of truth: airc
uninstall execs uninstall.sh, /uninstall wraps the same path.
uninstall.sh now:
1. airc teardown --all to stop running processes (idempotent if none)
2. airc daemon uninstall to remove launchd / systemd-user / Task
Scheduler unit (no-op if not installed)
3. removes binary forwarders ~/.local/bin/{airc, relay, airc.cmd,
airc.ps1} — symlinks unconditionally, real .cmd/.ps1 only when
their contents reference the clone (don't blow away an unrelated
binary at the same name)
4. drops every skill symlink under ~/.claude/skills/ that resolves
into the clone — covers current names + any stale ones
5. rm -rf the clone dir (incl. .venv)
Per-project .airc/ state (identity keys, peer records, chat logs) is
left alone by default — that's user data. --purge prints a 'remove
manually if you want' list scoped to common project roots
($HOME/{Development,Projects,work,src}, max-depth 6) instead of
walking the whole filesystem.
Confirmation prompt asks the user to type 'yes'. Non-interactive runs
(curl|bash without a TTY) require --yes; refusing rather than silently
proceeding. -y and --yes both work.
The verb (airc uninstall|self-uninstall) resolves the clone via
_airc_lib_dir (lib path → strip /lib → clone root), execs the script
in-place. uninstall is a real word — added to the dispatch case + the
help block.
The /uninstall skill (skills/uninstall/SKILL.md) is built for agents:
emphasizes the destructive nature, tells the AI not to pass --yes
without explicit user confirmation, lists the leave-alone surface so
the agent can answer 'will this nuke X?' questions correctly.
install.sh: removed 'uninstall' from the stale-symlink cleanup loop
(it was there from when the skill didn't exist; now the per-skill
symlink loop recreates it).
README: added airc uninstall to the command list and the skill table.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
joelteply
force-pushed
the
feat/airc-uninstall-verb
branch
from
April 30, 2026 00:32
e499049 to
287b811
Compare
joelteply
added a commit
that referenced
this pull request
Aug 7, 2026
fix(cli): the send receipt is not a reach ratio — stop reporting connections as delivery (#351) The line read: addressed 52 enrolled remote peer(s), 1 currently connected Two numbers, adjacent, one obviously smaller. The eye divides them and gets 2%, and 2% of a broadcast landing is a catastrophe. So I filed a card on it (#340). Then I measured the ack ledger for the same window: 767 of 771 delivered. 99.5%. Neither number was wrong; the PAIRING was the lie. `enrolled` is every peer this scope has ever met, across every room, for all time — an address book, not this room's audience. `connected` is live LAN links only, which is not what delivery means anyway: #280 already established that delivery is a returned ACK, never a connection's existence. The receipt was a surviving instance of exactly the class #280 was built to kill, and it was the last thing an operator reads after a send. Now it states the live count as its own fact, states the enrolled count as its own fact, says outright that the address book is not this room's audience, and points at `airc doctor --health` for the ledger that actually knows. An instrument that reads as catastrophe during healthy operation is worse than no instrument at all — it spends the trust a REAL alarm is going to need. Two existing tests pinned the old shape (`"42 enrolled" && "3 currently connected"`, `"not yet confirmed"`); they now pin the new one — both numbers still disclosed, never as a fraction. Added `the_receipt_never_reads_as_a_reach_ratio` on the 52/1 shape that caused the false alarm, asserting the old phrasing and the old adjacency cannot come back. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 14, 2026
…-swap publish is acked and lost (#1415) * fix(publish): the receipt says when it reached no remote peer `airc msg` has always printed delivery reach — `format_send_receipt` warns "⚠ reached 0 of N enrolled remote peer(s): NONE are currently connected, so no remote machine received this". `airc publish` printed event_id, lamport and channel, and nothing about reach, because the honesty lived only in the prose formatter and the JSON path never got it. Measured 2026-09-14: a publish to #cambriantech returned {"event_id":"19dfdc60-…","lamport":339749092982784,"channel_id":"cb2e21a1-…"} and never arrived on the peer. Its 1-second-later twin to #fleet-coordination did. The two receipts were identical in shape, so the sender could not tell them apart — and reported the round trip as working partly on that basis. The receipt now carries `enrolled_peers`, `connected_lan_peers`, and `reached_no_remote_peer` so a shell consumer can branch on the loud case without re-deriving the rule. Additive: existing fields and consumers are untouched, and the airc-lib `PublishReceipt` type does not change. This is REACH, not delivery. Delivery is a returned ACK and lives in the daemon's ledger (`airc doctor --health`, #280); a receipt cannot promise it. What it can do is distinguish "queued with a live route" from "queued into the void", which is what was missing. The two counts must not be divided. `enrolled_peers` is every peer this scope ever enrolled, for all time — not this room's audience. That ratio manufactured a false catastrophe on 2026-08-07 (card #340: 2% reach on a receipt while the ack ledger showed 99.5%), and an instrument that cries wolf during healthy operation burns the trust of every later alarm. Test asserts the rule and was proven by mutation: inverting the condition fails it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(publish): a daemon that did not answer is UNKNOWN reach, not zero Root cause of the 2026-09-14 loss, now measured rather than guessed: the airc daemon RESTARTED at 13:07:07 (`ps -o lstart` on the new process; the old one's log ends "airc daemon: stopped."). Event 19dfdc60, published at 13:07:07.955, was sequenced by the dying daemon — it IS in the local store — and never forwarded to any peer. Its twin 45 ms later, after the new daemon held the route, arrived. So the frame was durably WRITTEN and reached nobody. That is why "no receipt without a durable write" does not describe this bug: the write happened. What the receipt could not say is that reach was unknowable at that instant. Reporting a daemon that did not answer as `connected_lan_peers: 0` is a guess wearing a number — indistinguishable from a healthy daemon with no live peers. Now: daemon_answered: false → connected_lan_peers: null (honest-absent) → reached_no_remote_peer: true Loud regardless of the peer counts, including the case that would otherwise read healthy. A send whose reach we could not ask about is not a send we may report as fine. Five reproduction attempts failed before the log gave it up — 10/10 same-room, 9/9 interleaved-room, 30/30 across a receiver's fresh boot, all against a STABLE daemon. None restarted the sender mid-burst, which is the only condition that matters. Test asserts the rule for both failing shapes and is mutation-proven. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 14, 2026
…n outage (#1418) fix(publish): the receipt names a FRESH daemon, so a reconnect is not read as an outage #1415 merged at 17:05Z and fired on a real case 37 minutes later — correctly. A publish at 17:42:07Z read `connected_lan_peers: 0, enrolled_peers: 101, reached_no_remote_peer: true`, and that message did reach nobody. But the cause was a daemon that had auto-updated to 6c7c56f seconds earlier and had not re-established its LAN route. From the other side at 17:44:36Z the peer's ledger read 1143/1143 acked to this node at 58 ms rtt. Nothing was broken; it was reconnecting. Without the uptime a reader cannot tell those apart, and the consequence is not hypothetical: I nearly filed my own instrument as a false alarm on exactly that confusion — `doctor` showed healthy acks at the same instant, which reads like an instrument crying wolf during healthy operation (card #340, the failure that makes an instrument worse than none). "0 peers, daemon up 4s" → wait, it is reconnecting "0 peers, daemon up 3h" → investigate, the route is dead Same number, opposite actions. `daemon_uptime_secs` is the field that separates them; `null` when the daemon did not answer, never a zero that would read as "just started". Refinement suggested by the M5 (7711fe60) from that first firing. Additive: existing fields unchanged, airc-lib `PublishReceipt` untouched. 12/12 publish_commands tests pass; the new one asserts the three readings of a zero (reconnecting / dead route / unknown). Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5 (1M context) <[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.
Summary
airc teardown --all), removes the daemon (airc daemon uninstall), drops binary forwarders (~/.local/bin/{airc,relay,airc.cmd,airc.ps1}), drops every skill symlink under~/.claude/skills/that resolves into the clone, andrm -rf's the clone dir + .venv.airc uninstall(andself-uninstallalias) as a first-class verb on the binary — execs intouninstall.shso there's one source of truth and no parity drift between the verb and the curl-pipe path./uninstallas an agent-invocable skill (skills/uninstall/SKILL.md). Built for agent UX: emphasizes destructive nature, tells the AI not to pass--yeswithout explicit user confirmation, lists the leave-alone surface so the agent can answer "will this nuke X?" correctly.uninstallfrom the stale-symlink cleanup loop (it was there from when the skill didn't exist; the per-skill loop now recreates it cleanly).airc uninstallto the command list and the skill table.What stays vs goes
Removed:
Left alone by default:
.airc/state (identity keys, peer records, chat logs) — that's user data.--purgeprints a "look here, remove manually" list scoped to$HOME/{Development,Projects,work,src}(max-depth 6) so we never walk the whole filesystem.ghauth, brew/apt-installed packages, other agents' configs.Confirmation flow
yes.-y/--yes: skip the prompt. Required for non-interactive curl-pipe; the script refuses to proceed without a TTY otherwise.--purge: prints the per-project state list after removal — does NOT auto-delete those dirs.Test plan
airc uninstallinteractive → confirmation prompt → typingyesremoves everything; typingnoaborts cleanlyairc uninstall --yesnon-interactive → no prompt, full removalbash uninstall.sh(no flag) on piped stdin → "Non-interactive run: pass --yes" exit 1, nothing removedairc uninstall --purge→ after removal, lists.airc/dirs under common project roots (or "(none found)" if none)curl ... | bashreinstalls cleanly; per-project.airc/state in any project dir is picked up by the nextairc joinairc daemon install→airc uninstall --yes→ confirm launchd/systemd unit is gone~/.local/bin/airc.ps1containing arbitrary unrelated content (simulated) is NOT removed — only ones referencing the cloneNotes
_airc_lib_dir(lib path → strip/lib→ clone root), so it works regardless of where the user installed (AIRC_DIR=...etc.).🤖 Generated with Claude Code