Repository navigation
teams: opt-in team sharing between paired computers - #2080
Merged
Merged
Conversation
AbirAbbas
added a commit
that referenced
this pull request
Oct 30, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
added a commit
that referenced
this pull request
Oct 31, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
force-pushed
the
feat/teams-on-relay
branch
from
October 31, 2026 05:40
31d6128 to
50247ad
Compare
A value each device writes only for itself (Traffic windows) gets its own carrier with rate limiting and removal when its collection goes; a restore keeps an edit made while a pull was in flight; removal honours Holds; equal-stamp live entries converge by content; optional extras never fail a vault round. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ly Traffic mirror Members carry a portable identity, merged files repair parents, handles and managers the same way on every computer and list teams by creation, and Traffic from another computer lives in elsewhere.jsonl beside the log: delivery never reads it. Export windows are bounded (32 lines, 16 KiB per team, 64 KiB per device, text cut at 2 KiB). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Team records and each device's Traffic window ride the existing sealed vault rounds; unchanged rounds scan no session world; a continued chat's membership is rebound best effort; replacing a paired profile moves local teams aside and keeps Traffic. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…own computer A send, start, rouse, decision or escalation to a chat known to be on another computer is refused before anything is written; mixed sends reach local recipients and name those not reached; a failed lookup delivers locally as before. Cursor files record their device, and a foreign or past-the-end position starts that team again as a chat meeting it for the first time. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…how other computers' Traffic Every member gesture reaches Home's own Continue this chat here? lifecycle; hosted surfaces say where the chat is instead; the Teams dropdown and @ list refresh from the file stamp without writing; mirrored Traffic lines are drawn read-only with their computer's name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pinned crew routes and providers turned off are preferences, so they travel with the seat pins that already did. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The manual answers whether teams, deletes, Traffic and crew settings show on another computer, with the real limits; PERF records the Traffic budgets. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…y rules Only the team scopes opt into the content tie-break, the ownership check on removal and the cross-round baseline (GuardedKeys). Credentials, provider keys, preferences and memories behave exactly as on dev. Optional sharing runs through BestEffort so its failures never block other carried state. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Making crew seat routes and disabled providers synced preferences would change what travels for every paired pair, with no switch. Dropped; a follow-up can ride the team sharing switch or one of its own. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings -> General -> share teams. It is not a synced preference: each computer decides, and teams travel only when both paired computers have it on. The surface reads it at boot and when profile settings are adopted, never on its update loop. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…un only with sharing on With the switch off a paired computer captures, restores, replaces and polls exactly as on dev, and preserves another computer's team values untouched. The pair test moves to package pair_test, breaking the test import cycle with syncsetup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h sharing on With the switch off a team send, raise, escalate and decide never asks the directory, and the cursor file keeps dev's bytes. The prompt and tool descriptions are dev's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… only with sharing on With the switch off the @ list, Home recents and the Teams interaction panel behave as on dev, and no refresh clock turns. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The dev box pages shifted the corpus enough that a team-manager section outranked it for "what is the squiggly line at the start of a card". Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
force-pushed
the
feat/teams-on-relay
branch
from
October 31, 2026 06:23
50247ad to
f7a82da
Compare
This was referenced Oct 31, 2026
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.
What this changes
Two paired computers can now share their teams. Before this,
internal/teamsimported no sync package, so a team made on one computer did not exist on the other.It is off until you turn it on. Settings → General → share teams is a local switch, off by default, and it is not a synced preference. Teams travel only between two paired computers that have both turned it on. With it off, or on an unpaired computer, codeaf reads, writes, delivers and polls exactly as before.
With sharing on, on both computers:
teams/<id>/elsewhere.jsonl) beside the log, and delivery never reads that file. The localtraffic.jsonlstill holds only lines written on that computer, so nothing from another computer can deliver, start, stop or wake anything here.Continue this chat here?question, from the Teams dropdown, the Teams page, Traffic links, the@list and chat tabs. Hosted surfaces (--host/--at) say which computer has the chat instead.Stability (Abir's rule: "Dont mess anything up, stability is most important")
Off by default (NEEDS ABIR: the brief assumed automatic sharing). Turning it on by default later is a one-line change.
Existing vault carriers are unchanged. Credentials, provider keys, preferences and memories keep origin/dev's equal-stamp rule, removal rule and apply rule. The team carriers opt into their own guarded rules by scope and by constructor (
GuardedKeys). Tests pin a non-team equal-stamp merge and a provider-key removal tombstone to origin/dev's answers.With sharing off, two paired homes run several rounds and a member continue, and afterwards:
.cell/team.jsonkeep origin/dev's bytes;With A on and B off, B leaves A's team values in the vault byte for byte.
The surface reads the switch once at boot and after a panel save. It never reads the switch from disk on its update loop.
The model's prompt and tool descriptions are origin/dev's, so nothing the model is told changes for anyone.
Older builds sharing a profile. They never read
elsewhere.jsonlor the new vault scopes. With sharing off nothing new is written. With it on:devicefield, which older builds ignore;sync_id/start_origin, which dev's member reader already keeps and writes back as unknown fields.Validation contract
@list) with the same members and handles.Continue this chat here?.Also covered:
Proof
teams,vaultsync,keys,config,identity,manual,pair,remote,syncsetup,sessionandtui3. The pairing tests pair two homes through a real loopback relay, with real signing and encryption.make test-lawspasses, and the PR gate (checkand every touched leg) and the Full check are green on f7a82da (rebased onto dev 9be6706; the rebase was clean and touched none of this PR's files).@list (item 1).elsewhere.jsonl, and B had no local log (item 5).Continue this chat here?. leave it there changed nothing (same teams.json bytes on both). continue here moved the chat in 17 s and rebound B's membership to the local copy (item 6).unreachableuntil restarted, and B caught up 4 s after the restart. This is relay behaviour under load, in code this PR does not touch.Two read-only adversarial reviews ran over the change, and their findings are fixed in it.
Follow-ups
Continue this chat here?, so nothing is sent from the copy.🤖 Generated with Claude Code