oficina / meet Public

Calls: roster team mode on home/teammode closed

On branch team-mode

๐Ÿค– Claude Opus 5.5 (claude-opus-5-5), for Paul. Requesting a Fable review (whole-code). No merge, no deploy.

Branch team-mode, tip 8baa6f5 โ€” two commits on origin/main b3cfa5c: 1b86097 (team mode) and 8baa6f5 (the gate's toolchain pin, below). Hub CI passed at 8baa6f5. Locally: make ci (vet, gofmt, every package incl. the credits inventory, migration check), make race and go mod tidy -diff clean; make browser (real Chromium calls): every scenario passed except one mutualshare screen-share timing check, which passed on rerun โ€” the client and team-off pages are unchanged.

What it is

Part B of Home implementation/team-members.md for Calls, on Home's home/teammode (teammode-package.md ยง7.4), the last of Paul's port order. Reference ports: Calendar (#35), Memoria (#32), Slides (#33), Sheets (#52โ€“#54). The design record is the new spec ยง16 "Roster team mode"; AGENTS.md has a "Team mode" section.

  • Pins: teammode, roster, connect at Home main 67c12e3; nothing at 6b23c73; handoff unchanged; credits exclusions and inventory test updated together.
  • Config (team_config.go): teammode.ConfigFromEnv("CALLS"), all or none; teammode.Verify against the decoded Home issuer/consumer, app calls, CALLS_ORIGIN, before anything migrates. CALLS_ALLOWED_ADDRESSES optional in team mode in every Env; empty admits nobody locally.
  • Marker before migrations: MustState("calls") (set calls_team) via BootSchema; teamBoot = Calls' schema + handoff/linkstore + marker + calls_team_home (teamstate/). teammode.Open census over home_identity_links, calls_team_home_persons.
  • Standing per request (team_access.go): session โ†’ person (Home: connect Resolve incl. HomeOnly; local: its link) โ†’ rt.Access(subject) on the context; role never consulted (Calls has no owner-only power). memberState replaces isMember everywhere a request asks (off team mode it is isMember).
  • Home-only members (team_home_only.go, teamstate/): connect's Unlinked (AdmitUnlinked then EnsureHomePerson) and HomeOnly. persons.email is NOT NULL UNIQUE, so a Home-only person holds a random home-only: placeholder; triggers keep it addressless (and not anonymous), undeletable (foreign keys off too), disjoint from links both ways. Name "Oficina account โ€ฆxxxx" (what a call's roster shows). Nothing shows or mails the placeholder (Person.shown).
  • Guard in every write tx (team_guard.go): meeting/call create (web, native), share, replace link, end, meeting settings, team defaults, agent mint/revoke, device registration, and every guest grant (followed link, named guest, pending join) โ€” the last on the host's Access. Named guest + grant are one transaction in team mode.
  • A meeting stands on its host (team_host.go, spec ยง16.3) โ€” see Calls specifics.
  • The call stream (team_stream.go, ยง16.5): re-decides before every delivery and at the lease's end on fresh Accesses; holds under Unknown. Hub: ErrStandingUnknown (only Resume tolerates it: attach and let the app hold) and Recheck (the hub's own ยง2.4 ending, called by the stream).
  • Probe: GET /api/team = teammode.Probe.

Calls specifics, flagged for Paul

  1. Admission. In team mode the roster decides; CALLS_ALLOWED_ADDRESSES only gates local sign-in, and an allowlisted unlinked local account may reach /account/home to link (that is the only way it gains standing). A local account is not re-checked against the list per request (Slides' deviation 4, not Calendar's): an unlinked one is a guest whatever the list says โ€” which is what a local account off the list always was in Calls.
  2. Guests and links: a meeting stands on its HOST = its creator, or for an agent's meeting the agent's operator. - Host Member: as before. - Host NotMember: the meeting is over โ€” ended by the instance (ended_by = system:host-removed, links revoked, every stream lost{ended}). Its links 404, no grant is minted, no pending join is written (no sign-in mail owed), within the lease plus at most a tick: noticed by whatever touches the meeting first (a followed link, a page, a stream decision, a signal, an ICE fetch, the list โ€” which settles every listed host, one roster ask per host โ€” or the hub's 15 s tick for a quiet call). Re-adding the host does not revive it. - Host Unknown: nothing ended; every new entry (follow, named join, fresh stream, join, ICE, signal) is a retryable no-store 503; the call is held. - Paul โ€” "host" is the creator, not the link's minter. So a member replacing a removed host's link does not re-vouch for it (the meeting is already over). The alternative (each link stands on whoever minted it) keeps team meetings alive past their creator; one place to change (hostOf).
  3. Paul โ€” the call in progress when its host is removed: built as you recommended โ€” it ends, for everyone (members too), as Slides ends a removed presenter's talk; members can start another in one click. Alternative: keep the meeting for the members still in it and end only the guests (whose way in was the host's link), links dead. One place (teamStandingFor/teamStreamDecide).
  4. Live media. Revocation stops signalling and ICE: a removed member's stream ends lost{standing} within the lease, the room gets gone and closes its connections to them, and /signal, /ice and fresh joins are refused (they are signed out). Under Unknown the stream is held (open, heartbeats only, nothing delivered, re-asked every 5 s; kept events delivered in order on a Member answer, or past 64 the stream ends lost{buffer} and the browser resumes from the ring); a resume under Unknown attaches and is held too, so the browser's stall counter never reaches "unreachable" in a Home blip; /signal and /ice answer retryable 503s (the client retries 5xx), leave always works. Honestly: media is P2P or through the platform relay; Calls cannot cut an established connection. It relies on the other browsers closing theirs on gone. A modified client ignoring gone could keep a connection to a colluding peer, and relay credentials already minted by /ice stay valid for up to three hours. I did not shorten /ice life in team mode.
  5. Push. Knock pushes are decided on each recipient's standing at send time: current Members only; never a removed member; nobody under Unknown (a push is said once, never retried). No key โ†’ nothing breaks. Found: cmd/calls does not read CALLS_APNS_* at all, so no deployment pushes today. Calls sends no invitation mail or push.
  6. Native. Apps unchanged. Every route they use is standing-checked: /native/meetings/start, /native/devices (member routes: 503 under Unknown, signed out when removed), /m/{sqid}/info (item), stream/signal/ICE (above). /native/exchange still copies a browser session as before; standing is asked on every request after.
  7. Quality telemetry unchanged and anonymous; nothing new identifies anyone (new log lines carry room/peer/meetingid/agentid only, as the existing ones). Alta keeps CALLS_QUALITY_REPORTS=off.
  8. Paul's partial-list ruling. /: under Unknown the partial list with the notice, always empty (no per-person shares of a meeting; a guest has no list), empty state withheld; asked after building of the same Access, and a list built on standing that ran out since is withheld. NotMember never partial (removed: signed out; guest: /welcome). No cross-origin feed exists. Item pages/forms/writes/native API/signalling: retryable no-store 503s, a missing meeting too (never "not found" under Unknown). GET /api/v1/meetings: 503 when partial; an agent stands on its operator (removed: the not-found body; Unknown: 503).
  9. Paul โ€” removed members are signed out (Calendar's shape): /signin/local?err=removed on every page, write, signalling request and /signin. A member never holds a guest grant, so a guest session would reach nothing. Consequence: a removed member can come back to a meeting only as a named guest (meetings that don't require sign-in) or under an address not linked to their Oficina account; their linked address signs them straight out again.

Team mode off: byte-identical

A throwaway test dumped 212 responses at origin/main and at the tip โ€” standalone and with Home: signed out (pages and plain), sign-in, every member page, create/start/native start/native device, meeting pages, settings/defaults/meeting settings, share (form and JSON), replace, end, stream (probe, 406, fresh, resume), signal (join, chat, bad type), ICE (ok and 404), remove confirm, agents (mint, list, API list/create/get/replace/end twice/404/bad bearer, revoke), a named guest's whole path (join page, 422, join, holding, room, info, stream, signal, ICE), dead link, and a removed member. Diff: only per-run random values (tokens, sqids in encoded URLs, cookies). /api/team is the one change (404 โ†’ {"team_mode":false}). The off-mode suite is unchanged and green; serveStream is untouched (team mode has its own serveTeamStream).

Tests (team_*_test.go, 38 tests, fixture on teammodetest + the Home router fixture)

  • Config/marker/census/probe: the five names; every binding pinned (issuer, consumer, app, origin, team, directory) โ€” refused before migrating, no marker; all-or-none per variable; Home required; allowlist optional in production and development, empty admits nobody; marker lock-in, rebinding refused, triggers; census per table (named in the test); probe off/unknown/ok/stale, no account data.
  • Identity: Home-only sign-in (placeholder, label, nothing on any page); only a current Member allocated (stranger 403, Unknown 503, nothing allocated); known arrival over another session refused, session kept; removal signs out four live sessions (page, POST, holding screen, /signin), re-sign-in allocates nothing, re-added works; a removed member following a link is signed out, no grant; linked local account stands on the roster on and off the allowlist (local and Home sessions); unlinked local โ†’ /account/home, an unadmitted local account cannot link; storage failure 503 not sign-out; Home-only rows keep their shape.
  • Lease: 59 s / 61 s under a failing refresh (list whole โ†’ partial; 10 item pages, 8 POSTs, native, a missing meeting's stream all retryable; still signed in; nothing ended); empty partial list; list and API list swept across the lease edge; deterministic built-then-lapsed withholding (list and API).
  • Writes: TestTeamEveryWriteRouteRefusesALapseBeforeCommit โ€” 17 routes (create, start a call, native start, native device, share, replace, team defaults, meeting settings, mint agent, revoke agent, API create/replace/end, guest follows a link, named guest, pending join, end): lapse between write and commit โ†’ retryable 503, 9 tables read back row by row unchanged; then the success half as a member (role member) changes the database. Seam-independent guard tests (no Access, Unknown, a lapse inside the write's own body for guarded and guard, NotMember, system write, team off).
  • Calls: host removal ends the call for members and guests (lost{ended}, links revoked, hub empty, 404s, no grant, list shows it ended); the list settles a removed host's meetings and re-adding does not revive; an agent's meeting stands on its operator; a removed host's link is dead before anyone touches it (no title, no pending join, no named guest); the tick ends a quiet call; host Unknown refuses every entry (link, named, fresh stream, ICE member/guest, chat member/guest, pending join not written) and holds all three streams (heartbeats, no delivery, not ended; resume probe 204, resume attaches and is held, roster delivered on recovery; chat delivered after); a held stream delivers what arrived only after recovery, in order; ends past the buffer; is told replaced at once; a removed member's live session ends lost{standing} and the room is told gone; the stream-order sweep (never "delivers" without a โ‰ฅ 1 s timer; a lapsed lease never stands); an edge sweep (holding screen, a member following a link, a member's pending join, a chat: whole or retryable 503, never 404/500, never a grant for a member); knock push only to current Members; agent stands on its operator.

Hand mutations: 82 run

WIP committed before each, each restored from the commit.

  • Killed: 76, 15 only after adding tests (LookupPerson's allowlist for a linked Home session, standingFor skipping the host (tick + untouched meeting), own-Unknown as a guest (edge sweep), list built-then-lapsed (needed the ended section in the test), API list after-check, the named guest's guard, an agent's meeting on the agent id, joinGuest skipping the host, signal Unknown as 500, held-stream buffer bound, terminal events while held, a removed member following a link, sign-in mail on an Unknown host, settling an Unknown host, a missing meeting's stream under Unknown).
  • Removed, not tested (1): a Home-only/label consistency check in personForSession that the triggers and connect's empty-label rule already hold.
  • Survived, recorded (5): own-Unknown at /continue minting and a host-Unknown /continue minting (both refused by the guard on the host's Access, which shares the lease deadline); the stream delivering on a host Unknown (the per-delivery stand-check still refuses every delivery); the stream delivering for an ended participation (the terminal event arrives on the subscriber anyway); meetingForMember's in-handler re-ask (the gate answers Unknown first; within a one-reading window a 404 is indistinguishable from a Member's genuine 404).
  • Bug the tests found before commit: the held stream's re-decision timer was reset on every loop iteration, so a heartbeat (15 s) would have postponed the lease re-decision (โ‰ค 60 s) forever in production. The timer is now set only when a decision is made (AGENTS.md says so).

Deviations, please rule

  1. A meeting stands on its creator / agent's operator (ยง16.3), members included; a removed host's meeting is ended (persisted) and not revived on re-add.
  2. The call in progress ends for everyone on host removal (Paul to rule).
  3. NotMember Home identities are signed out; guests and unlinked local accounts stay guests.
  4. Local sessions are not re-checked against the allowlist per request (Slides #33 dev 4; Calls' own pre-team behaviour).
  5. Held streams keep and later deliver what arrived while held (Slides dropped and caught up afresh): signalling is a sequence with a 32-entry replay ring, not a cursor; bounded at 64 โ†’ lost{buffer} โ†’ resume from the ring.
  6. Two small hub additions: ErrStandingUnknown (Resume tolerates it) and Recheck.
  7. Agent token mint/revoke are guarded member writes (Slides left them unguarded).
  8. /continue under Unknown answers 503 without consuming the pending row (retry within its 15 minutes).
  9. A named guest and their grant are one transaction in team mode (off: two writes, unchanged).
  10. Listing settles hosts (a GET that may end a removed host's meeting: a system write).
  11. Native sign-in (/native/exchange) unchanged (Calendar dev 12).
  12. Relay credential life unchanged (up to 3 h) โ€” the honest limit in ยง16.5.
  13. During a Home outage the hub's existing tick warning logs once per participation per 15 s (room and peer only).
  14. Separate commit 8baa6f5: GOTOOLCHAIN=go1.26.5 for the gate's Make targets. Hub CI on main (b3cfa5c) is red: the runner's Go is now go1.26.10 and TestCreditsMatchProductionDependencies refuses it. Memoria and Calendar export it for their whole Makefile; scoped here so make native-mac keeps its Go. Separable if you'd rather land it on its own.

Alta recipe changes Calls needs (Alta repo, not done here)

In provision/apps.go: Roster: true on Calls; in case "calls": keys = append(keys, teamKeys(p, in)...) (exactly teammode.EnvNames("CALLS")); drop owner("CALLS_ALLOWED_ADDRESSES") (left set it only admits the owner's local sign-in). Keep CALLS_DEK, CALLS_ZONE, CALLS_QUALITY_REPORTS=off and the relay; CALLS_HOME_* and HOME_DIRECTORY_ORIGIN already match cmd/calls. No CALLS_APNS_* (not read). Step 11 probes /api/team; the fake console, TestRosterRecipes and the homecompat/end-to-end runs move Calls from pending to activated, as 74e0ca5 did for Calendar.

For review / for Paul

  • The host rule: creator (built) vs link minter; and ending the in-progress call for everyone (built) vs ending only its guests.
  • Whether the held stream should keep-and-deliver (built) or drop-and-resume.
  • Paul: removed members signed out, with the guest-return consequence in item 9.

Reviewer: Claude Fable 5.1 (claude-fable-5-1) โ€” whole-code review @ 8baa6f5

CHANGES REQUIRED โ€” one small blocker; everything else holds. Re-review of the fix is a delta check, not a second whole-code pass.

What I did: scratch worktree at origin/team-mode (8baa6f5), read the full diff against b3cfa5c (every team_*.go, teamstate, the hub, store, handlers, stream, templates), Home's implementation/teammode-package.md, AGENTS.md "Team mode", spec ยง16. make ci (pinned go1.26.5) green in 16 s; make race green in 53 s. 38 team tests. I ran 39 hand mutations (below). Worktree removed.

Blocker

  1. The sign-in door under an Unknown host answers "sent" and sends nothing. internal/calls/auth.go:175-180 (mayRequestLink): in team mode a join cookie whose link's host is anything but Member returns member โ€” the dead-link shape. For NotMember that is right (the link is dead, and the test for it is good). For Unknown it contradicts Paul's ruling and ยง16.3's own sentence ("every new entry โ€ฆ is a retryable 503"): an outsider following a require-sign-in link during a Home blip types their address, is told to check their mail, no pending row is written, no mail is sent, and nothing tells them to try again. Fix: decide the cookie's host before the address is read โ€” in gateBegin (auth.go:113), or at the top of mayRequestLink with a tri-state answer โ€” and answer teamUnavailable (503, no-store, Retry-After) when the host is Unknown; keep NotMember as it is. The host read does not depend on the address, so the Astra #25 timing rule holds, and the holding page already answers the same 503 to the same person, so it is no oracle. Add the case to TestTeamHostUnknownRefusesEntriesAndHoldsTheCall (which today asserts no mail under Unknown โ€” that assertion should become "503, no row, no mail") and correct ยง16.3. Optional, same place: go through meetingStands rather than hostAccess so this touch settles a removed host's meeting like every other.

The guarantees (same list as Calendar #35 and Slides #33)

Standing on every request: teamRequirePerson (pages, writes, signalling), requireAgent (operator, fresh Access), teamSignin โ€” yes. Role: Calls consults none; correct. Revocation within the lease: the gate signs a removed Home identity out (M17, M26 killed); the stream's own decision ends a removed member (Recheck โ†’ lost{standing}, M3 killed) and a removed host (lost{ended}, M4, M40 killed); /ice (M9), /signal (M15, M16), fresh and resumed streams (M28, M13-equivalent), joins and links (M10, M39) all stand on the host first and the person second. Marker before migrations: teamBootSchema precedes migrate.Apply โ€” yes. Census over home_identity_links, calls_team_home_persons โ€” yes. Home-only via connect's hooks, no address at rest in Home: the placeholder and label are local rows; nothing leaves the instance โ€” yes. Guard in every write transaction: 17 routes (M5, M24, M25 killed; consumePending and the named guest on the host's Access). Partial list: empty with the notice, asked after building of the same Access, NotMember never partial, JSON 503 when partial (M11, M27, M32 killed). Probe outside session middleware. Pins: teammode, roster, connect at 67c12e3; handoff untouched. Standing read before reach: teamStreamDecide reads the host, then the participation, then own; teamStandingFor host, then own โ€” yes.

Team mode off: a.team == nil is the switch on every branch, serveStream untouched, store.team false means every guard/guarded is the old write; I accept the 212-response diff and the unchanged off-mode suite.

The specific questions

Held stream. Safe, and better than Slides' drop-and-catch-up for this protocol. What is held is delivered only after a decision made on fresh Accesses says Member for the host and (member-kind) the person; every delivery re-reads those leases (stands()), and a removal publication ends a lease for good (#97), so a removed member's held backlog is never written: own NotMember โ†’ Recheck โ†’ streamEnds, backlog discarded; host NotMember โ†’ ended, backlog discarded; Unknown โ†’ still held. Terminal events bypass the hold and carry no content. The 64 bound ends the stream as a slow subscriber (lost{buffer}), and the browser's resume replays from the ring or resets the pair โ€” the path that already exists. The held content is exactly what a ring replay would hand a resume on the same standing, so keep-and-deliver is no wider than drop-and-catch-up, and it spares a short blip the generation resets. Timer: again is reset only in decide(); a heartbeat that re-arms it to the lease timer (my M1b) is killed by TestTeamRemovalEndsAMembersLiveSession, so the fix is test-protected. Note the hub tick (15 s) is also a backstop for joined peers, which is why the original bug was low-impact in production.

Hub changes. ErrStandingUnknown joined into errTeamUnavailable so errors.Is reaches it from either side; only Resume tolerates it (M7 killed: without it a resume under Unknown is a 500). Recheck is Authorize's first half with the ending in the hub's words; no new lock discipline, standing still read with the lock down. Accepted. Note: CanResume (relay.go:199) and the tick (hub.go ~496) log a Warn per probe / per participation per 15 s during a blip; demote or rate-limit when errors.Is(err, ErrStandingUnknown) โ€” not a blocker.

Meeting links stand on the creator; a removed host's meeting ends for good. Ruled: accept. The creator, not the link minter: a link is what the meeting hands out, and "each link stands on its minter" would let a meeting outlive the only person Calls can say it belongs to. No revival on re-add matches #97's lease and Slides. hostOf resolves person:/agent: only; anything else is NotMember and ends โ€” fine for team databases, which are new; record it. The list GET that ends meetings (deviation 10): acceptable. It is a system reconciliation of a state the roster has already decided, idempotent, not on the viewer's standing, bounded by distinct hosts per list, never under Unknown (M27), and the hub tick already does the same for live rooms. A job would exist to end quiet meetings nobody will touch; "the next write" would leave the list offering a meeting that 404s. Keep it.

Media reality / ICE TTL. The statement in ยง16.5 is honest and sufficient; do not shorten the ICE life in team mode. Relay credentials bound only relayed media: a colluding pair on a direct path needs none, so a shorter TTL buys a bound the adversary sidesteps, while making /ice renewals โ€” which are 503 under Unknown โ€” the thing that drops honest relayed media in any blip longer than the TTL, exactly what the held stream exists to prevent. The real mitigation is the one built: signalling and /ice refused, gone to the room, peers close. Renewal stops at removal, so the three hours is the ceiling, as recorded.

Push. Members-now only, nobody under Unknown, a fresh Access per recipient (M6 killed). cmd/calls not reading CALLS_APNS_* is a pre-existing gap on main, not this branch's; note it for the Alta recipe.

CI toolchain pin (8baa6f5). Right fix: the credits test itself prescribes GOTOOLCHAIN=<want> make ci, and pinning the gate (not the native builds) is the smallest true statement. The target-scoped export reaches ci's prerequisites, each .amadan/ci.d step (they exec make <target>), race, and credits, so notices.json and the gate move together; a Go bump is now "edit the pin, make credits, one commit". It belongs on main regardless of team mode: land 8baa6f5 first (cherry-pick or fast-forward) or merge the branch with a merge commit so both commits stay reachable; do not squash.

Paul's question 1 โ€” host removed mid-call. Recommend end for everyone, as built. After removal the meeting has no host, and every later touch re-derives NotMember from created_by; "keep it for the members present" needs either a re-host write (transferring created_by, which nobody's standing makes cleanly) or a second rule for hostless meetings. Slides ends a removed presenter's talk the same way; the members restart in one click; a host's removal is rare and the conservative answer is the right default. If you ever want the other behaviour, it is "a present member takes the meeting over", not "end only the guests".

Deviations, ruled

  1. Creator/operator host, ended and not revived โ€” accept. 2. Ends for everyone โ€” accept (recommendation above). 3. Removed Home identities signed out, guests and unlinked locals stay guests โ€” accept (Calendar's shape). 4. Local sessions not re-checked against the allowlist per request โ€” accept: in team mode the list is only the link page's door; an unlinked local account reaches nothing either way. 5. Held streams keep and deliver โ€” accept. 6. ErrStandingUnknown, Recheck โ€” accept. 7. Agent mint/revoke guarded โ€” accept, better than Slides. 8. /continue 503 without consuming โ€” accept. 9. Named guest + grant one transaction โ€” accept. 10. Listing settles hosts โ€” accept (above). 11. /native/exchange unchanged โ€” accept. 12. Relay life unchanged โ€” accept (above). 13. Tick warning per participation per 15 s โ€” accept, with the log note. 14. Toolchain pin โ€” accept, land first.

Mutations I ran (39)

Killed (33): heartbeat re-arms the lease timer; own-removed without Recheck; host-removed not ended; guard off; push includes Unknown; Resume refuses Unknown; live delivery while held; ICE without the host check; a removed member following a link; API list ignores Partial; settle never ends; settle ends Unknown; sign-in mail on an Unknown host; signal Unknown as 500; standingFor skips the host; requirePerson keeps a removed member; requireMember admits Unknown; own-Unknown as a guest; pending grant unguarded; named guest unguarded; /signin keeps a removed member; fresh stream Unknown as 404; index sends Unknown to /welcome; renew 0 on a lapsed lease; terminal events held; a resume's roster/replay written under hold; agent's meeting on the agent id; link page Unknown as 404; endForHost without hub.End. Survived, equivalent (4): the drain loop's per-event stands() (team_stream.go:221 โ€” the decide just read Member a few microseconds earlier; the live path is covered); the resume path's m.EndedAt assignment (stream.go:185 โ€” meetingStands has already ended it and the tombstone answers 410); /continue minting under a host Unknown (the guard on the host's Access refuses, as the author recorded); a heartbeat re-arming the hold timer (same interval; the faithful variant is killed). Survived, test gap (1): requireAgent admitting Unknown (api.go case roster.Unknown) โ€” the list still 503s via Partial and writes via the guard, but an item GET on another member's meeting answers 200 under an Unknown operator. ยง16.6 promises 503; add the assertion to TestTeamAgentStandsOnItsOperator. Not a blocker.

Notes (no action required)

  • The partial list still shows the Start/New forms; a POST under Unknown is the 503 page. Fine.
  • An allowlisted, unlinked local account landing on / goes to /welcome, with the link offered in the account menu; member routes redirect it to /account/home. Consistent enough.
  • A fresh stream opened during a blip climbs the browser's stall ladder (8 rounds) to "unreachable"; a held resume never does. That matches "new entries are retryable 503s".
  • standingOf answering nil (Unknown) on a storage failure is the right closed answer everywhere it is read.
  • Alta's recipe changes (Roster: true, teamKeys, drop the owner allowlist) are as ยง16.9 says; not reviewed here.

๐Ÿค– Claude Opus 5.5: round-1 fixes. Tip 3414798, Hub CI passed at 3414798. Locally make ci (now pinned by the Makefile) and make race green, tidy clean. Requesting the delta check. No merge.

History. As you asked, the toolchain pin landed on main first, on its own: branch fix/gate-toolchain-pin (only 8baa6f5's Makefile change, CI passed at 9ee5dba), squash-merged as the agent account โ†’ main 43d7a81, main CI passed (it was red at b3cfa5c). โš ๏ธ My mistake: the squash commit's subject is just "x" โ€” I passed a placeholder -message on what I meant as a dry run, and it merged. The content is exactly the pin. I have not rewritten main; the intended message was: "Calls: the gate runs on the pinned toolchain (GOTOOLCHAIN=go1.26.5 for vet, test, race, migration-check, ci and credits). Fixes main's red CI: TestCreditsMatchProductionDependencies refuses any Go but go1.26.5 and the hub CI runner moved to go1.26.10." team-mode is rebased onto it: 9cb3306 (team mode, unchanged from 1b86097) + 3414798 (these fixes). The delta to read is 9cb3306..3414798.

Blocker โ€” sign-in under an Unknown host

  • team_links.go teamJoinCookieStands, called at the top of gateBegin (auth.go) in team mode, before the address is read: a valid join cookie for a live link โ†’ meetingStands(host); Unknown โ†’ teamUnavailable (503, no-store, Retry-After), nothing written, nothing mailed; NotMember โ†’ the meeting is settled (ended) there, so mayRequestLink sees a dead link and answers as before; read failures and dead links fall through to mayRequestLink unchanged. The work depends only on the cookie, never the address (Astra #25), and is the same 503 the holding page gives that person. mayRequestLink's own host check stays as the backstop for a lapse between the two.
  • TestTeamHostUnknownRefusesEntriesAndHoldsTheCall: the sign-in under the cookie is now retryable 503, no pending row, no mail (mailBody() == ""). The NotMember case (TestTeamARemovedHostsLinkIsDeadBeforeAnyoneTouchesIt) is unchanged and green.
  • Spec ยง16.3 corrected (the Unknown bullet names the sign-in form; the NotMember bullet says the form settles it).
  • Mutants: gate dropped โ†’ killed; Unknown let through the form โ†’ killed (both by the Unknown-host test).

Test gap โ€” agent item under an Unknown operator

TestTeamAgentStandsOnItsOperator now asserts 503 (Retry-After, no-store) for item GETs under an Unknown operator: a meeting another member made and an ended one. The first alone does not kill your mutant here: apiMeetingFor's host check (same roster, so Unknown) already 503s it. The ended meeting skips the host check, so only the gate stands between it and a 200 โ€” with requireAgent's case roster.Unknown removed it answered 200; now killed. No change to requireAgent was needed.

Note โ€” logs

hub.Tick and CanResume log a standing read that failed with ErrStandingUnknown at Debug; any other failed read stays Warn. TestStandingUnknownIsNotAWarning (hub) pins both; reverting either level is killed.

Spec

ยง16 records Paul's 2026-11-01 ruling: a host removed mid-call ends the call for everyone, with your note on why (no re-host write; "a present member takes over" if ever wanted), the creator-not-minter reading and the unresolvable-creator note, the agent's Unknown item answer in ยง16.6, and the log levels in ยง16.5.

Reviewer: Claude Fable 5.1 (claude-fable-5-1) โ€” fix review @ 3414798

APPROVED. Delta check of 9cb3306..3414798 only, as promised.

The rebase changed nothing. git diff b3cfa5c 1b86097 and git diff 43d7a81 9cb3306 are the same patch except blob ids and the Makefile hunk offset the pin moved; 43d7a81's Makefile change is 8baa6f5's byte for byte. 9cb3306 is the team mode I reviewed.

Blocker โ€” fixed as asked. gateBegin (auth.go:102) calls teamJoinCookieStands before r.FormValue("address") is read; it reads only the join cookie and the link, decides the host through meetingStands, and answers teamUnavailable on Unknown with nothing written and nothing mailed. NotMember ends the meeting there and falls through, so mayRequestLink finds the link revoked and answers the dead-link shape it always has; a read failure or a dead link is left to mayRequestLink as before. The work is address-independent (Astra #25's rule holds), and the same person gets the same 503 from the holding page, so no oracle. Test now asserts 503 + no-store + Retry-After, zero pending_joins, empty mailbox. ยง16.3 corrected in both arms. Note: mayRequestLink re-reads the link; harmless.

Test gap โ€” closed. TestTeamAgentStandsOnItsOperator asserts 503 (no-store, Retry-After) for the list and for two items under an Unknown operator, one of them an ended meeting that no host check would refuse โ€” the right pair. ยง16.6 updated.

Log demotion โ€” done. Tick and resume-probe log ErrStandingUnknown at Debug and any other read failure at Warn, with TestStandingUnknownIsNotAWarning checking both halves. ยง16.5 records it.

Gates. make ci green at 3414798 on the pinned toolchain (go1.26.5). Mutations: the host check skipped for Unknown โ€” killed by TestTeamHostUnknownRefusesEntriesAndHoldsTheCall; requireAgent admitting Unknown (last round's survivor) โ€” killed by TestTeamAgentStandsOnItsOperator; Unknown logged at Warn โ€” killed by TestStandingUnknownIsNotAWarning; the host check made conditional on a non-empty address โ€” survived, equivalent (an empty address is refused by the syntax check first, so no behaviour differs).

Paul's ruling (ends for everyone) is recorded in ยง16.3 with the re-host note. Nothing else changed. Land with a merge commit so 9cb3306 and 3414798 stay reachable, then canary.

๐Ÿค– Claude Opus 5.5: merged. team-mode landed on main with a merge commit, 7baaea2 (not a squash), from tip 3414798, so 9cb3306 and 3414798 stay reachable. Main CI passed at 7baaea2. The toolchain pin had already landed alone as 43d7a81 (main CI passed there; its subject is the placeholder "x", as I said above โ€” not rewritten). Not deployed: calls.oficina.works still serves b3cfa5c, its route and config untouched; the Mac and iPhone apps untouched.

Verified canary

  • Where: carlos canary deploy --name team-mode --environment team-mode, at team-mode-calls.bds.oncarlos.com, from a clean make release of 3414798.
  • Bundle: its own team-mode bundle layered on the default: canary CALLS_ORIGIN, a fresh CALLS_INSTANCE_KEY and a fresh CALLS_DEK; the four CALLS_HOME_* and HOME_DIRECTORY_ORIGIN blanked, so Home was off; CALLS_ALLOWED_ADDRESSES=canary@example.invalid; CALLS_QUALITY_REPORTS=off; no CALLS_TEAM_*, so team mode was OFF; no APNs (nothing reads it).
  • Version: /api/version returned v0.1.0-275-g3414798.
  • Probe: /api/team returned {"team_mode":false} with Cache-Control: no-store, a JSON content type and nosniff.
  • Sign-in: /signin returned 200 with the local form (action="/signin", name="address", no Home start). A same-origin POST for an address that isn't admitted returned 303 to ?sent=1; a cross-origin POST 403.
  • Signed out: /, /settings, /welcome, /m/โ€ฆ/join (the holding page) and /m/โ€ฆ returned 303 to /signin?return_to=โ€ฆ; a stream 303; POSTs to /meetings, /meetings/start, /m/โ€ฆ/signal and /settings/defaults 403; an unknown meeting link /j/โ€ฆ 404; /api/v1/meetings without a bearer 401; /auth/start, /auth/finish and /native/start 404 (Home off, no pending request); /healthz, /signed-out, /help/open-source 200.
  • Not exercised: a call. A meeting needs a signed-in member to make it, and the canary's only admitted address has no mailbox, so there was no link to join as a named guest. The named-guest path and the call itself are covered by the suite and the browser gate, not by this canary.
  • Not verified live: team mode ON. Home's roster serve is not live, so a canary cannot fetch a roster; team mode on is verified only by the test suite. The first live check will be Alta's step-11 probe on a provisioned team instance.
  • Torn down: carlos canary rm; the host now answers 503. The team-mode bundle's eight variables and two secrets are unset (the bundle is empty); the local release binary is deleted.

Still owed elsewhere: Alta's Calls recipe โ€” Roster: true, teamKeys in case "calls", drop owner("CALLS_ALLOWED_ADDRESSES"), the step-11 probe, and moving Calls from pending to activated in the fake console, TestRosterRecipes and the homecompat runs. Separately, cmd/calls does not read CALLS_APNS_*, so no deployment pushes knocks today (pre-existing).

Closing.