Skip to content

fix(doctor): drop sshd probe — post-3c the gist IS the wire (#341) - #345

Merged
joelteply merged 1 commit into
canaryfrom
fix/doctor-drop-sshd-probe-post-3c
Apr 30, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/doctor-drop-sshd-probe-post-3c

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Drops the last vestige of the pre-3c sshd dependency from airc doctor. install.sh comment 287 already notes "Post-3c: sshd setup + Tailscale install fully removed" — the doctor probe was the only thing still claiming sshd is required, and it surfaced as [MISSING] sshd -- needed when you HOST a room on every Mac/Linux/Windows box where Remote Login wasn't enabled. Carl on this rig flagged it as the third sub-bullet during the #341 QA pass.

Post-3c, every peer reads + writes the room gist via gh api. There is no ssh path remaining. ssh-keygen stays (identity key generation), the ssh client probe stays (manual diagnostic + future wire-pluggable bearers may want it), but sshd is irrelevant.

Changes

  • Remove _doctor_probe_sshd() function entirely (~100 lines of macOS launchctl / systemd / Windows OpenSSH.Server probe code)
  • Remove both call sites: default airc doctor (line 56) and airc doctor --connect preflight (line 366)
  • Replace each call site with a one-line comment explaining the removal so future readers don't add it back

Tested on this Mac

Pre-fix:

[ok] cryptography (Ed25519 identity gen + signing)
[MISSING] sshd -- needed when you HOST a room
       Fix: System Settings -> General -> Sharing -> Remote Login (toggle on)
       Or:  sudo systemsetup -setremotelogin on
...
1 prereq(s) missing -- see fix lines above.

Post-fix:

[ok] cryptography (Ed25519 identity gen + signing)
[info] tailscale (optional) -- not installed; only needed for cross-LAN mesh
       Install: brew install --cask tailscale
...
All required prereqs present. Behavioral suite:  airc doctor --tests

Out of scope

The dead sshd-comment chunk in install.sh:268-287 (historical context, no actual logic) — fold into the next install.sh touch. Also: cmd_send.sh's auth_failure path still surfaces "your GitHub token is dead" without the rate-limit-vs-auth diagnose distinction (different code path, runs off bearer report) — separate follow-up.

Test plan

  • airc doctor from a Carl-state Mac (LibreSSL only, no brew openssl, no Remote Login enabled) → "All required prereqs present"
  • airc doctor syntax check (bash -n)
  • airc doctor --connect on a Mac → confirm sshd block is gone, rest of preflight intact
  • Linux + Windows verify (no behavioral change expected since the probe is removed entirely)

🤖 Generated with Claude Code

airc doctor still reported [MISSING] sshd "needed when you HOST a room"
on every Mac/Linux/Windows box where Remote Login wasn't enabled. The
fix in install.sh comment 287 already notes "Post-3c: sshd setup +
Tailscale install fully removed" — the doctor probe was the last
vestige claiming sshd is required, and it confused Carl on this rig
(reported as the third sub-bullet during the QA pass on #341).

Post-3c, every peer reads + writes the room gist via gh API. There is
no ssh path remaining. ssh-keygen stays (identity key generation),
ssh client probe stays (occasional manual diagnostic + future
wire-pluggable bearers like LoRa/Reticulum may want it), but sshd
itself is irrelevant.

Removes:
- _doctor_probe_sshd() function (~100 lines of macOS launchctl /
  systemd / Windows OpenSSH.Server probe code)
- Both call sites: default `airc doctor` (line 56) and
  `airc doctor --connect` preflight (line 366)

Replaces each call site with a one-line comment explaining the
removal, so future readers don't add it back.

Verified on this Mac: pre-fix doctor reported [MISSING] sshd; post-fix
"All required prereqs present." Identical change applies to the
--connect preflight.

Doesn't touch the dead sshd-comment chunk in install.sh:268-287
(historical context, no actual logic) — fold into the next install.sh
touch.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joelteply
joelteply merged commit f4fd4ad into canary Apr 30, 2026
6 checks passed
@joelteply
joelteply deleted the fix/doctor-drop-sshd-probe-post-3c branch April 30, 2026 00:43
joelteply added a commit that referenced this pull request Apr 30, 2026
Carl flagged this in #345: the install.sh sshd-install block was
removed as part of Phase 3c (gist-substrate replaces ssh-on-the-wire),
but the surrounding comments + AIRC_SKIP_SSHD doc + CI auto-detect
narrative were left behind. Confused enough on read that #345 had to
explicitly call out 'this is unused, just comments now'.

Replace with a single tombstone comment so anyone grepping git history
for 'sshd' finds the rationale, but nothing else.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Aug 7, 2026
* feat(work): make project_room_work_board public — a room-scoped caller must be able to name its room

work_board_complete() resolves current_room() = "whatever my default subscription
happens to be". That is correct for the CLI, where the operator's current room IS
the intent. It is wrong for any consumer that already carries a room.

Continuum's persona board gate binds a room id and checks it, then reads a board
via work_board_complete() that never consults that id. They agree today only
because both were seeded from the same current_room() call at bootstrap. Nothing
in the types prevents a gate that passes for room A while the read returns room B,
and no probe would fire — the two values merely coincide.

Diagnosed 2026-08-07 while tracing why a citizen's board (58 claimable) and the
operator's (19 cards, all Open) disagreed. They were two different rooms —
#general vs #cambriantech — both reads correct, and NEITHER surface named the room
it had read, which is what made it take three agents to establish.

Promoting the already-room-parameterized read to pub lets the caller pass the same
room its gate checks: one value instead of two that happen to match. No signature
change, no struct change, no cache-format change — work_board_complete stays as the
convenience wrapper for callers whose intent genuinely is "my current room".

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* feat(work): room_by_channel — resolve a subscribed room from the id a caller already holds

The companion to making project_room_work_board public. A consumer bound to a room
holds a RoomId (continuum's persona board gate binds one), but the room-scoped read
wants a &Room — name, wire and channel — which cannot be synthesized from a bare
uuid. Without a lookup, such a caller has no way to USE the room-parameterized read
and falls back to current_room(), which is the guess this whole change exists to
remove.

Returns Ok(None) for a channel this scope is not subscribed to, and deliberately
does NOT fall back to the default room: silently substituting a different room's
board is precisely the failure being designed out. The caller decides whether a
miss is a tolerable degradation or something to shout about.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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 Aug 7, 2026
…oom to read (continuum #345) (#1322)

* fix(work): the board says which room it read, and can be told which room to read (continuum #345)

`airc work board` had no room parameter. It read whatever room the scope's
default pointer happened to reference, and said nothing about which one that
was. That is not a missing convenience — it is a correctness hazard, because
the failure produces a *plausible* board rather than an error: a real,
fully-populated board for the wrong room.

I hit it myself within an hour of filing the card. `airc room k3-serving` in
one turn, `airc work board | grep <card>` in a later turn; the pointer had not
persisted, the read landed on #general, the card was absent, and I was one
sentence from telling Joel a citizen had released a card she was still holding
(lease=22m12s). Knowing about a silent default does not protect you from it —
the failure mode is the ABSENCE of a signal, and you cannot notice an absence
by intending to.

So the label is the fix and the flag is the convenience:

- Every board read now prints `work board — #<name> [<channel>]` first, with
  or without --room. A careful reader can no longer be fooled by a boring
  wrong answer; the scope is in the answer, not only in the question.
- `--room <name-or-channel-id>` reads a named room. Ids are accepted because
  agents legitimately hold one and nothing else (a receipt, a board row) and
  should not have to invent an id→name lookup.
- An unsubscribed room REFUSES, naming the room and the remedy. Never
  auto-joins, never falls back to the current room — a valid-looking board for
  a different room is exactly the answer that caused this.
- The pointer never moves: same invariant `publish_to_room_does_not_mutate_default`
  pins for one-shot sends.

Compression: `publish`'s private target resolver is generalized to
`Airc::room_by_name_or_channel(name_or_channel, verb)` and shared, rather than
copied — two copies would drift on whether an id is acceptable and on what the
refusal says. `work_board()` is now `work_board_in(current_room())`, so the
"complete board" page size lives in exactly one place.

Tests (crates/airc-lib/tests/work_board_room_scoped.rs, real daemon fixture):
two rooms each holding a card the other lacks, so a current-room fallback
cannot pass by coincidence; plus the loud-refusal case. MUTATION-VERIFIED: with
work_board_in reverted to current_room(), the first test fails with
left: ["HOME-ROOM CARD"] / right: ["OTHER-ROOM CARD"].

Live-verified against the running daemon (current room k3-serving): default
read labels #k3-serving (12 cards), `--room <cambriantech-uuid>` reads a
genuinely different board (19 cards), `airc room` unchanged after both, and
`--room no-such-room-here` refuses with the join remedy.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(work): --available must not advertise cards the claim gate refuses (CardState::is_settled)

Two surfaces answered one question and drifted. `airc work board --available`
spelled its own exclusion list (`Closed | Merged`); the claim gate in airc-lib
refuses `Review | Merged | Closed`. `Review` was added to the gate on 2026-07-24
— "settled work is history, not backlog", after personas kept re-claiming
completed cards — and the board filter was never told.

So the board advertised settled work as available and the claim then refused it.
Measured live on 2026-08-07, k3-serving: `--available` reported "12 of 12
matched", and 4 of those 12 were `Review` with lapsed leases. The lapsed lease is
what makes them LOOK takeable; the claim bounces with "settled work is not
claimable". I reported the inflated 12 as fact before checking it, which is the
cost of the drift in one line.

"Available" is a promise that the claim will accept the card. When the promise
and the gate are two implementations, the board lies at the exact moment someone
acts on it.

Fix: one predicate, `CardState::is_settled()`, on the enum itself. The claim gate
and the board filter both ask it. `Blocked` is deliberately NOT settled — a
blocked card is live work waiting on something, and taking it over is the move.

Tests: the existing available-filter test grows the Review+lapsed case, and a new
test enumerates EVERY CardState variant and asserts `--available` never
advertises one `is_settled` refuses — so a variant added later cannot repeat this
silently. Includes a positive control (a lapsed claim on unsettled work must
still read available), without which a filter returning false for everything
would pass vacuously.

Scope note: continuum's persona-facing side was already correct — its
`CardHolder::claimable` consults `refused_by_claim(state)`. Citizens were being
told the truth; the operator CLI was not.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* chore(test/docs): a retired activity room's name must not live in fixtures or examples

`k3-serving` was an ACTIVITY room spawned for one model bring-up two weeks ago.
The activity is over, but the name had settled into a daemon test fixture and two
doc comments as the stock example of 'a room' — which is exactly how a finished
activity becomes permanent in a codebase long after it is retired.

Replaced with `project-x` (already the generic room name elsewhere in these
tests). Kept the sort order the assertions depend on: rooms come back sorted by
name and the fixture's second room must sort AFTER `general`, which my first
pass (`acme-org`) silently inverted.

A room is an activity with a done-condition, not a standing channel. Naming
fixtures after live rooms outlives the rooms.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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 Aug 7, 2026
…ignal (#275) (#1323)

* fix(work): the board says which room it read, and can be told which room to read (continuum #345)

`airc work board` had no room parameter. It read whatever room the scope's
default pointer happened to reference, and said nothing about which one that
was. That is not a missing convenience — it is a correctness hazard, because
the failure produces a *plausible* board rather than an error: a real,
fully-populated board for the wrong room.

I hit it myself within an hour of filing the card. `airc room k3-serving` in
one turn, `airc work board | grep <card>` in a later turn; the pointer had not
persisted, the read landed on #general, the card was absent, and I was one
sentence from telling Joel a citizen had released a card she was still holding
(lease=22m12s). Knowing about a silent default does not protect you from it —
the failure mode is the ABSENCE of a signal, and you cannot notice an absence
by intending to.

So the label is the fix and the flag is the convenience:

- Every board read now prints `work board — #<name> [<channel>]` first, with
  or without --room. A careful reader can no longer be fooled by a boring
  wrong answer; the scope is in the answer, not only in the question.
- `--room <name-or-channel-id>` reads a named room. Ids are accepted because
  agents legitimately hold one and nothing else (a receipt, a board row) and
  should not have to invent an id→name lookup.
- An unsubscribed room REFUSES, naming the room and the remedy. Never
  auto-joins, never falls back to the current room — a valid-looking board for
  a different room is exactly the answer that caused this.
- The pointer never moves: same invariant `publish_to_room_does_not_mutate_default`
  pins for one-shot sends.

Compression: `publish`'s private target resolver is generalized to
`Airc::room_by_name_or_channel(name_or_channel, verb)` and shared, rather than
copied — two copies would drift on whether an id is acceptable and on what the
refusal says. `work_board()` is now `work_board_in(current_room())`, so the
"complete board" page size lives in exactly one place.

Tests (crates/airc-lib/tests/work_board_room_scoped.rs, real daemon fixture):
two rooms each holding a card the other lacks, so a current-room fallback
cannot pass by coincidence; plus the loud-refusal case. MUTATION-VERIFIED: with
work_board_in reverted to current_room(), the first test fails with
left: ["HOME-ROOM CARD"] / right: ["OTHER-ROOM CARD"].

Live-verified against the running daemon (current room k3-serving): default
read labels #k3-serving (12 cards), `--room <cambriantech-uuid>` reads a
genuinely different board (19 cards), `airc room` unchanged after both, and
`--room no-such-room-here` refuses with the join remedy.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(work): --available must not advertise cards the claim gate refuses (CardState::is_settled)

Two surfaces answered one question and drifted. `airc work board --available`
spelled its own exclusion list (`Closed | Merged`); the claim gate in airc-lib
refuses `Review | Merged | Closed`. `Review` was added to the gate on 2026-07-24
— "settled work is history, not backlog", after personas kept re-claiming
completed cards — and the board filter was never told.

So the board advertised settled work as available and the claim then refused it.
Measured live on 2026-08-07, k3-serving: `--available` reported "12 of 12
matched", and 4 of those 12 were `Review` with lapsed leases. The lapsed lease is
what makes them LOOK takeable; the claim bounces with "settled work is not
claimable". I reported the inflated 12 as fact before checking it, which is the
cost of the drift in one line.

"Available" is a promise that the claim will accept the card. When the promise
and the gate are two implementations, the board lies at the exact moment someone
acts on it.

Fix: one predicate, `CardState::is_settled()`, on the enum itself. The claim gate
and the board filter both ask it. `Blocked` is deliberately NOT settled — a
blocked card is live work waiting on something, and taking it over is the move.

Tests: the existing available-filter test grows the Review+lapsed case, and a new
test enumerates EVERY CardState variant and asserts `--available` never
advertises one `is_settled` refuses — so a variant added later cannot repeat this
silently. Includes a positive control (a lapsed claim on unsettled work must
still read available), without which a filter returning false for everything
would pass vacuously.

Scope note: continuum's persona-facing side was already correct — its
`CardHolder::claimable` consults `refused_by_claim(state)`. Citizens were being
told the truth; the operator CLI was not.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* chore(test/docs): a retired activity room's name must not live in fixtures or examples

`k3-serving` was an ACTIVITY room spawned for one model bring-up two weeks ago.
The activity is over, but the name had settled into a daemon test fixture and two
doc comments as the stock example of 'a room' — which is exactly how a finished
activity becomes permanent in a codebase long after it is retired.

Replaced with `project-x` (already the generic room name elsewhere in these
tests). Kept the sort order the assertions depend on: rooms come back sorted by
name and the fixture's second room must sort AFTER `general`, which my first
pass (`acme-org`) silently inverted.

A room is an activity with a done-condition, not a standing channel. Naming
fixtures after live rooms outlives the rooms.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(feed): suppress claim_heartbeat — lease keepalive is churn, not signal (#275)

Stream chunks were already suppressed. The residual flood is `claim_heartbeat`:
it was SUMMARIZED ("Lease churn — frequent, low-signal; summarize tersely") but
still rendered, while `alive` — the identical class of keepalive — has always
returned None.

A heartbeat repeats every presence pulse for every held card and reports nothing
that changed. One citizen holding three cards emits three identical lines per
pulse, forever. Measured live 2026-08-07: an agent monitoring this feed took ~30
such bursts across a single session, several a minute, with zero actionable
content in any of them. The rational response to an unbroken stream of no-op
lines is to stop reading the channel — which is precisely how a peer's question
or a real failure gets missed. The noise does not just waste attention, it
trains the reader to look away.

Nothing is lost. `card_claimed` and `claim_released` still render because those
are the TRANSITIONS, and standing truth lives on `airc work board` where a lease
reads live or <STALE>. This suppresses the proof that nothing happened, never
the fact that something did.

Tests: a heartbeat yields None; and a companion over-suppression control asserts
a claim still renders its PARSED summary (`card_claimed [id] by …`) rather than
the generic `⟨card_claimed⟩` fallthrough — my first draft of that control passed
against the fallthrough, which would have let a future filter widen to all work
events and silently blank the board.

Both test bodies were also wrong on first write (invented `expires_at_ms`; the
real fields are `ttl_ms` + `heartbeat_at_ms`) — caught by a red test, then fixed
by reading `airc-work::event`, not by guessing again.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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 Aug 7, 2026
…tion needs a room (#1325)

feat(wall): room-scoped wall read — ask about THIS room, not whichever one the handle points at

`wall_posts` read through `page_recent`, which is current-room-only. A caller
that meant a specific room got a plausible wall for the wrong one — the same
correctness hazard as the unscoped work board (#345), on the other projection of
the same transcript, and with the same failure mode: not an error, a real answer
about the wrong subject.

Adds `wall_posts_in(room, category)` and makes `wall_posts` delegate to it with
`current_room()`, exactly the `work_board` / `work_board_in` split. Reads through
`room_transcripts_since` — the same room-scoped, daemon-aware event path the work
board projects from, because wall and board are two views of one transcript and
must never disagree about which events they can see. Page size moves into
`WALL_PROJECTION_PAGE_SIZE` so the two entry points cannot drift on what "the
wall" means.

Continuum needs this to ask "is this activity concluded?" about a room its handle
is not attached to. A persona reacts to traffic from any room it subscribes to,
so a current-room read answers about the wrong room precisely when the two
differ — which is exactly when the question is worth asking.

Tests: two rooms, one distinct post each, so a current-room fallback cannot pass
by coincidence; plus the category filter held under the scoped read, because a
standing read that picked up a doctrine post would hard-error the caller's turn.
The precondition (unscoped read answers for the current room) is asserted
explicitly — without it the rest of the test proves nothing.


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 Aug 16, 2026
… — WRITE half of the #345 class (#1363)

feat(work): room-scoped card state change — the WRITE half of the #345 class

Reads grew work_board_in while every mutate stayed pinned to current_room():
a multi-room supervisor (continuum's bench-grade sweeper, first live tick
2026-08-15) had 21 auto-closes refused in one pass because every target card
lived in a room its author wasn't standing in.

change_work_card_state_in(room, req) is the mutate sibling of work_board_in:
the guard keeps its strength (card must be ON the named room's board — now
ensure_work_card_in_room, with the current-room fn as its projection) and the
event frame is addressed to the named room's channel via a new
publish_work_event_in over the existing send_frame_to_room primitive. The
current-room verb is a thin wrapper — one implementation, one guard.

Integration test extends work_board_room_scoped: out-of-room mutate still
refuses on the current-room path, the scoped mutate lands on the named room's
card without moving the pointer, and the guard refuses a card that isn't on
the NAMED room's board.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant