Skip to content

desk hub: a lost live projects push is resent from the Registry's alarm (#552) - #561

Merged
SSFSKIM merged 1 commit into
masterfrom
hub-552-projects-push
Nov 12, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
hub-552-projects-push

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Closes #552. Land after F's swaps are recorded (architect 1479). There is no hub deploy before then.

A live projects push 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.

  • The owed table. 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's transactionSync savepoint, then setAlarm in the same turn).
  • The push. pushProjects sends the newest record held. An answer deletes the row only up to the revision it sent, so a newer record stored meanwhile stays owed.
  • The resend. The alarm's sweepProjects resends 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.
  • The wire to endpoints is unchanged. Nothing under src/endpoint or the org-protocol vectors changes.
  • The directory push the ticket names went with DX2 at O14 M5b. retry.ts's header now lists its real callers.

Tests. In apps/desk-hub/test/projects-records.test.ts, under "a push the Registry lost":

  • A Registry reset between the store and the push (the test seam hub.projectsPushReset): both endpoints get the record on the connection they have.
  • A ref object that fails RETRY_ATTEMPTS times gets the record on the next call.
  • Both tests fail with the alarm's sweepProjects removed.

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:remote and e2e:remote-latency-check too.

Residue, not in this PR:

  • Registry plan Decision Log 9 (3) still says a lost live push waits for the next welcome.
  • A snapshot given up after its retries still waits for the next welcome (relay.ts; Decision Log 9 (2), accepted at M2).
  • An older push in flight can reach an endpoint after a newer one, as before. M9's endpoint should keep the highest revision per machine.
  • relays keeps 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)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T21:10:47.202405Z 84f268f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit d15b800 into master Nov 12, 2026
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
SSFSKIM deleted the hub-552-projects-push branch November 12, 2026 11:13
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hub: a live projects push lost after its retries or a Registry reset waits for the endpoint's next welcome

1 participant