Skip to content

fix(fleet): the org room is the checkout's fact, not the launcher's cwd — supervised nodes judged their hour every hour and never said it (card 11b66313) - #4254

Merged
joelteply merged 1 commit into
canaryfrom
fix/the-org-room-is-the-checkouts-fact-not-the-launchers-cwd
Sep 20, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/the-org-room-is-the-checkouts-fact-not-the-launchers-cwd

Conversation

@joelteply

@joelteply joelteply commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Two call sites derived the org room (#cambriantech for github.com/CambrianTech/…)
from the core PROCESS'S cwd via airc_lib::JoinContext::from_cwd(current_dir()). That
holds only under the script launcher, which runs the core from the repo root. A
supervised core does not: launchd runs it with WorkingDirectory ~/.continuum (the
#4228 plist; lsof confirms), the Windows S4U task from its own directory. No remote
there → the org was None → grid::say_in_org_room returned silently (three legs,
no probe) → the 5090 posted no [health] line since it came up and IntelMac's hour
(citizen.health.hour at 06:08/07:08/09:08Z) never reached the room. The operator peer
took the same read and subscribed no org room on those nodes either. The M5 posted
because its launcher's cwd happened to be the checkout.

  • persona::org_room is THE resolver: the org channel is the TRACKED CHECKOUT's origin
    owner (runtime::tracked_checkout, the durable clone the deploy already stands on),
    by the same JoinContext rule airc join applies to a directory. No checkout, an
    unresolvable one, or no remote owner is a named OrgRoomAbsence, never a silent
    None. Resolved through the durable checkout so a lease worktree names the same
    room — airc-lib reads no org off a worktree at all (its gitdir carries no config;
    airc join from a lease lands in the lobby), which the test now pins.
  • say_in_org_room probes fleet.node.line_not_posted on EVERY leg it can lose the
    line (leg = no_operator_airc | no_org_room | subscriptions_unreadable | not_subscribed | publish), each with what was missing.
  • The operator peer subscribes the org room through the same resolver; its absence
    probe carries the why.
  • Test: a temp clone with a remote is named "acmeorg" from a process whose cwd is
    elsewhere; its worktree names the same; no remote / not a checkout name nothing.

Receipt: 23 passed / 0 failed (org_room + source_hygiene, ratchets green) on IntelMac;
the live receipt is the next [health] hour from a supervised node in the org room.

Faster or slower?

Neither for a citizen — one resolution per hourly line and per operator-peer boot.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…wd — supervised nodes judged their hour every hour and never said it (card 11b66313)

Two call sites derived the org room (`#cambriantech` for github.com/CambrianTech/…)
from the core PROCESS'S cwd via `airc_lib::JoinContext::from_cwd(current_dir())`. That
holds only under the script launcher, which runs the core from the repo root. A
supervised core does not: launchd runs it with `WorkingDirectory ~/.continuum` (the
#4228 plist; lsof confirms), the Windows S4U task from its own directory. No remote
there → the org was `None` → `grid::say_in_org_room` returned silently (three legs,
no probe) → the 5090 posted no [health] line since it came up and IntelMac's hour
(`citizen.health.hour` at 06:08/07:08/09:08Z) never reached the room. The operator peer
took the same read and subscribed no org room on those nodes either. The M5 posted
because its launcher's cwd happened to be the checkout.

- `persona::org_room` is THE resolver: the org channel is the TRACKED CHECKOUT's origin
  owner (`runtime::tracked_checkout`, the durable clone the deploy already stands on),
  by the same `JoinContext` rule `airc join` applies to a directory. No checkout, an
  unresolvable one, or no remote owner is a named `OrgRoomAbsence`, never a silent
  `None`. Resolved through the durable checkout so a lease worktree names the same
  room — airc-lib reads no org off a worktree at all (its gitdir carries no config;
  `airc join` from a lease lands in the lobby), which the test now pins.
- `say_in_org_room` probes `fleet.node.line_not_posted` on EVERY leg it can lose the
  line (`leg = no_operator_airc | no_org_room | subscriptions_unreadable |
  not_subscribed | publish`), each with what was missing.
- The operator peer subscribes the org room through the same resolver; its absence
  probe carries the why.
- Test: a temp clone with a remote is named "acmeorg" from a process whose cwd is
  elsewhere; its worktree names the same; no remote / not a checkout name nothing.

Receipt: 23 passed / 0 failed (org_room + source_hygiene, ratchets green) on IntelMac;
the live receipt is the next [health] hour from a supervised node in the org room.

Faster or slower: neither for a citizen — one resolution per hourly line and per
operator-peer boot.

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

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head 284b47d (checks running at read time; merge on green).

Read the resolver, both call sites and the test. The shape is right: one fact (the tracked checkout's origin owner, resolved through the durable main checkout so a lease names the same room), a typed absence for each way it can be missing, and say_in_org_room naming the leg it lost the line on (fleet.node.line_not_posted with no_operator_airc | no_org_room | subscriptions_unreadable | not_subscribed | publish) — the silent triple-return that hid two nodes for weeks is gone. The worktree assertion pinning airc-lib's gap is the right kind of test: it tells the next reader when the detour can be deleted.

One thing I checked, not a condition: the M5 has no CONTINUUM_TRACK_REPO_DIR in config.env (it never ran continuum install), so candidate() falls to the build-time source root — which on the M5 is the checkout, so it keeps posting; the fact should be recorded there too (continuum install's job, not this PR's). The live receipt is the first [health] line from the 5090 or IntelMac in #cambriantech.

@joelteply
joelteply merged commit e1c9e41 into canary Sep 20, 2026
6 checks passed
@joelteply
joelteply deleted the fix/the-org-room-is-the-checkouts-fact-not-the-launchers-cwd branch September 20, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant