Repository navigation
desk hub: a lost live projects push is resent from the Registry's alarm (#552) - #561
Merged
Merged
Conversation
…ct takes it (#552) The Registry kept its push of a stored projects record to each machine's ref object in memory (retry.ts): one abandoned after RETRY_ATTEMPTS, or lost with the Registry's reset before its retry ran, left that endpoint on an older record until its next welcome. Each ref is now owed the machine's record in `projects_owed` (ref, machine, revision), written in the transaction that stores the record, and the alarm is set before any push leaves. A push sends the record held, the newest; an answer clears what it covered, a failure stays owed and the alarm sends it again with retry.ts's waits, up to a minute, for as long as it takes, as the state announcements already are. A ref object of the build before (no relayProjects) is taken as answered. The wire is unchanged: the same `projects` frame, on the connection the endpoint has. The directory push the ticket also names left the hub with DX2 at O14 M5b (fe246ea); retry.ts's header named it still and now lists its real callers. Proved in projects-records.test.ts: a Registry reset between the store and the push (a test seam aborts it once the store is durable), and a push that fails RETRY_ATTEMPTS times, each reach the other machine's endpoint on the same connection; with the alarm's sweep removed, both fail. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 12, 2026
…11-12; §1, D-14, D-20, §19); CLAUDE.md and research/SOURCES.md follow, the Codex tree deleted; registry plan Decision Log 9 (3) amended for #561 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 12, 2026
…ith the render case over its bound by the owner's ruling; the day's landings, thirteen tracker rows and O7's thinking-text correction DL 272 records #571's Mac gates and measured cases, the footprint placement, and the owner's ruling "머지 후 바로 여유 회복 (Recommended)", which supersedes the 11-11 row's condition; #561, #569, #570 and the charter's benchmark ruling (dee7575) landed the same day. The tracker gains the registry's M9 to M12 and panel-wave residue, #561's relays row, the paired network-change line, the desk's OrgAdmin.amend row and the unbuilt wire-registry cut; the 11-11 mawsd row gains the placement and the ruling. O7's plan gains a dated correction: MAWS-run sessions carry thinking text since 84ada72. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.
Closes #552. Land after F's swaps are recorded (architect 1479). There is no hub deploy before then.
A live
projectspush that the Registry loses, given up after RETRY_ATTEMPTS or lost when the Registry resets, is now healed on the endpoint's current connection, without waiting for its next welcome.projects_owed (ref, machine, revision, attempts, due)in the Registry has one row per (destination ref, source machine). It is written in the same storage transaction as the record (OrgRecords.storeProjects's callback), so the record and what it owes commit together. The alarm is set before any push leaves, inside the same implicit transaction (workerd'stransactionSyncsavepoint, thensetAlarmin the same turn).pushProjectssends the newest record held. An answer deletes the row only up to the revision it sent, so a newer record stored meanwhile stays owed.sweepProjectsresends a failure with retry.ts's waits, capped at a minute and with no attempt limit. A ref object of the build before, or one with no connection, counts as answered.src/endpointor the org-protocol vectors changes.Tests. In
apps/desk-hub/test/projects-records.test.ts, under "a push the Registry lost":hub.projectsPushReset): both endpoints get the record on the connection they have.sweepProjectsremoved.Review. reviewer-high: correct, no findings. Its lens was durable-object storage and alarm atomicity, the delete-by-revision race, and sweep interplay.
Gates. Class 1a green (run 42900006665). This is a desk-hub change, so the landing gate needs
e2e:remoteande2e:remote-latency-checktoo.Residue, not in this PR:
relayskeeps retired machines' refs, so each stored record owes them a row and a call that answers at once.Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)