Skip to content

feat: a thread moves across the link its work came over - #985

Merged
badcuban merged 1 commit into
mainfrom
feat/move-step4b-link
Nov 18, 2026
Merged

badcuban merged 1 commit into
mainfrom
feat/move-step4b-link

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Part 3 of step 4b (docs/design/fleet.md, Part 3f, with build notes). Builds on #984 (families) and #981 (rooms), and merges after them.

What it does

  • A child moving alone. A child thread can move to another computer on its own and stay its parent's child there. The parent still reaches it with thread_send, thread_read and thread_stop, and its answer comes back.
    • The receiving computer writes the child's remoteOrigin from its own authenticated link, so the child is fenced for good there.
    • The child's dialog offers "Move just this thread" or "Move its whole family".
  • Going home. A thread another computer's agent started can move back to that computer, and nowhere else. At home it becomes a local child again, but only if home's own records already list it under that parent.
  • Everything else stays refused, with words that say why.

Safety

  • A manifest can't supply a trusted link identity, device id, remoteOrigin or parent. All of them come from the receiver's authenticated link and its own records.
  • No hop to a third computer, even by chaining moves. A thread still fenced from a move can only move back where it came from, until a person here takes it over.
  • Parent and child never move against each other. A parent waits while a child moves alone, and a child can't leave while its parent is moving. Both are rechecked at the freeze, first-come wins, and the shared-folder wait doesn't count held queues, so they can't deadlock.
  • Old peers: gated by moveLinkLineage, with optional fields only and a decode test using the old schemas. No migration.

Checks

  • Outside reviews, each fixed with a test that fails without the fix:
    • the diff (2 P1: going home cleared the third-computer restriction, and a parent moving after its child was packed stranded the child);
    • the fix (1 P1 shared-folder deadlock, 1 P2 lost parent link).
  • Live test on three local servers: a child moved alone A→B and stayed the parent's child, the parent's message reached it and the answer came back, a move to C was refused, and moving home made it a local child again. This ran before the last two rounds of fixes; a rerun is in progress.
  • Gates: fmt, lint, typecheck; server 4,081 (replays included), move browser spec 21/21.

Not done yet: the outside recheck of the last fix commit (059d9625a). Threadlines' limit on agent requests was reached; it runs next.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 18, 2026 4:00am UTC

Request Review

@badcuban
badcuban force-pushed the feat/move-step4b-families branch from b069c64 to 3f9148d Compare November 18, 2026 03:25
Base automatically changed from feat/move-step4b-families to main November 18, 2026 03:52
Step 4b, last part (docs/design/fleet.md, Part 3f). A child thread can move alone to another computer and stay its parent's child there, with the receiving computer writing its link origin from its own authenticated link; a thread another computer's agent started can move back home and nowhere else; and a thread still fenced from a move can only go back where it came from until a person here takes it over. A parent and a lone child never move against each other, and a shared folder waits for everything still running in it. Rebuilt on main after #984.
@badcuban
badcuban force-pushed the feat/move-step4b-link branch from 1642992 to 5e6f813 Compare November 18, 2026 04:00
@badcuban
badcuban added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit c7dad73 Nov 18, 2026
24 checks passed
@badcuban
badcuban deleted the feat/move-step4b-link branch November 18, 2026 04:14

This branch was previously deployed

1 inactive deployment
Preview — 5e6f8135 Deployed Nov 18, 2026 by vercel[bot]
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