Repository navigation
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
Conversation
…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
|
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 One thing I checked, not a condition: the M5 has no |
Two call sites derived the org room (
#cambriantechfor github.com/CambrianTech/…)from the core PROCESS'S cwd via
airc_lib::JoinContext::from_cwd(current_dir()). Thatholds 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_roomreturned silently (three legs,no probe) → the 5090 posted no [health] line since it came up and IntelMac's hour
(
citizen.health.hourat 06:08/07:08/09:08Z) never reached the room. The operator peertook 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_roomis THE resolver: the org channel is the TRACKED CHECKOUT's originowner (
runtime::tracked_checkout, the durable clone the deploy already stands on),by the same
JoinContextruleairc joinapplies to a directory. No checkout, anunresolvable one, or no remote owner is a named
OrgRoomAbsence, never a silentNone. Resolved through the durable checkout so a lease worktree names the sameroom — airc-lib reads no org off a worktree at all (its gitdir carries no config;
airc joinfrom a lease lands in the lobby), which the test now pins.say_in_org_roomprobesfleet.node.line_not_postedon EVERY leg it can lose theline (
leg = no_operator_airc | no_org_room | subscriptions_unreadable | not_subscribed | publish), each with what was missing.probe carries the why.
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