carlos / platform Public

census: re-propose held-requests after Task 3 fix round 2

make census-propose NAME=region-ha-held-build with the branch claims;
the backhaulHA unit is gone, so its claim is dropped. Awaiting the
cross-family review on #280.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f9b17c0f935eea921f31fdceadb60f2e633ed457 parent 786d6fc
3 files changed, +5 −8
  • docs/superpowers/notes/census-proposal-region-ha-held-build.md +2 −3
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv +2 −4
diff --git a/docs/superpowers/notes/census-proposal-region-ha-held-build.md b/docs/superpowers/notes/census-proposal-region-ha-held-build.md
index d6bd1185b..d5fd6309b 100644
--- a/docs/superpowers/notes/census-proposal-region-ha-held-build.md
+++ b/docs/superpowers/notes/census-proposal-region-ha-held-build.md
@@ -1,6 +1,6 @@
# Census approval: region-ha-held-build
-Ruling `census-ruling-region-ha-held-build`. The independent reviewer approves or rejects every change below, 21 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-region-ha-held-build`. The independent reviewer approves or rejects every change below, 20 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -42,7 +42,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/handover.go:Service.readMoveHolder`: reads +whole:Route ×3; written legacy, accepted-legacy, frozen
- new `internal/activator/handover.go:Service.waitMove`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/activator/handover.go:sameMoveLifetime`: reads +registry:Account ×2, +registry:App ×2, +registry:Host ×2, +registry:Incarnation ×2, +registry:ServingSeq ×2; written legacy, accepted-legacy, frozen
-- new `internal/edge/backhaul_holder.go:var backhaulHA`: reads +registry:Account, +registry:App, +registry:HA, +registry:Host; written legacy, accepted-legacy, frozen
- new `internal/edge/backhaul_retry.go:homeMap.handoverAuthority`: reads +registry:Account, +registry:App, +registry:Host ×2; written legacy, accepted-legacy, frozen
- new `internal/edge/forwardha.go:Edge.forwardHAFollow`: reads +whole:Route ×6; written legacy, accepted-legacy, frozen
- new `internal/edge/forwardha.go:Edge.forwardHANoted`: reads +registry:Host ×3; written legacy, accepted-legacy, frozen
@@ -56,6 +55,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/edge/edge.go:Edge.ServeHTTP`: +registry:HA ×2, +registry:Host, +whole:Route ×4; keeps legacy, task accepted-legacy
- reads `internal/edge/forwardha.go:Edge.forwardHAAndNote`: -registry:Host ×3, +whole:Route; keeps legacy, task accepted-legacy
-Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `049b7fe9af24a0102d2edcb4ae017ebba20f5723c785d1d3e8644aed875061a4`.
+Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `0a1abdce087aa06f1d1bb76f736748c14ae9c0e19b72d14fa6b5b33cb4fb8381`.
Overlay: `internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index c3288dea9..4c4480be5 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -130,4 +130,4 @@ plan14-root-reads-instance-syscall-filter.tsv b970bb28c5a633d2572a1da549030e9258
plan14-root-reads-instance-restore-658-cli.tsv b970bb28c5a633d2572a1da549030e9258cfdabb6322ddffdd0ebf41b56c464c
plan14-root-reads-instance-stop-execstop-528.tsv 75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4
plan14-root-reads-region-ha-shutting-down-retry.tsv 75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4
-plan14-root-reads-region-ha-held-build.tsv 049b7fe9af24a0102d2edcb4ae017ebba20f5723c785d1d3e8644aed875061a4
+plan14-root-reads-region-ha-held-build.tsv 0a1abdce087aa06f1d1bb76f736748c14ae9c0e19b72d14fa6b5b33cb4fb8381
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv
index 11d234b78..635bd535a 100644
--- a/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv
+++ b/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv
@@ -1,6 +1,6 @@
# Census overlay region-ha-held-build, written by census-propose (#369). census-ruling-region-ha-held-build, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-held-build.md.
# 8 body, 2 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 21 new dispositions: 2 reads re-frozen at their disposition with the claim, 19 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+# 20 new dispositions: 2 reads re-frozen at their disposition with the claim, 18 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
@legacy cf55ebdbd229c4a4ed2533fa4c184f700dbfc35d1ecc70b28b2bc80e67e8e275 internal/activator/activator.go Service.serve legacy accepted-legacy accepted-legacy;rev3=census-ruling-hotfix281;basis=Startup repeats the existing Kind and Hibernate checks; error logging moved to serveWakeError. A request held through startup re-reads its own route's Socket and Addr and can only refuse (wake-timeout 503) when recovery moved them; agent-side, deny-only, no root decision.;rev3=census-ruling-edge-request-records;basis=passes the member request r to begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance is the activator's; same deploy-safety for binary rows;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a verified HA hop this box cannot serve gets the holder diagnostic; two new whole:Route sites pass the route to answerForwarded/noteNoHolder; no new kind of read;rev3=census-ruling-region-ha-g2-fixes;basis=Refuse latched HA lease loss before startup wait or proxy accounting, and schedule bounded recovery; reads supplied route, no new external read here.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: after begin succeeds, edge.ReleaseMoveTicket(r) ends the request's in-memory admission ticket; on the sidecar path the same after BeginSidecarRequest; no read added registry:Addr@1131,registry:Addr@1145,registry:Host@1056,registry:Host@1256,registry:Socket@1102,registry:Socket@1118,whole:Route@1081,whole:Route@1190,whole:Route@1324,whole:Route@198,whole:Route@261,whole:Route@2873,whole:Route@2974,whole:Route@298,whole:Route@3788,whole:Route@3851,whole:Route@526 aa0786cb4f635aa33ea7c0ef884d82d9d43c0de1a47bc2c441e5c83fa93578be
@legacy 4ce180eb76cb536e1b2ad70762386957efbe1be9c002f0e4a1537f87d6f16944 internal/activator/haduties.go Service.dutyInput legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read HA classification/lifetime from the existing backend and route host, HA, replica, tunnel, import gate and status; read advisory DutyStore state and cached home projection outside a.mu. No new filesystem or bucket path. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged.;rev3=census-ruling-region-ha-g2-fixes;basis=Apply LocalEligible before legacy/HA duty shortcuts: HA and Provisioned routes require pool membership, operator-placed non-HA routes keep their prior behavior; no new direct I/O.;rev3=census-ruling-region-ha-held-build;basis=LocalDenied also when IsDraining() (this box in the planned-handover drain state); only narrows duty and adoption starts; no read added registry:Basis@1349,registry:HA@326,registry:HolderEpoch@1584,registry:HolderIID@1426,registry:HolderIID@1628,registry:HolderRef@1362,registry:HolderRef@1412,registry:HolderRef@1614,registry:Host@122,registry:Host@1280,registry:Host@592,registry:Host@658,registry:ImportGate@891,registry:NotBefore@1654,registry:NotBefore@1710,registry:Replica@858,registry:Status@915,registry:Status@934,registry:Tunnel@872,registry:ViewKey@1457,whole:DutyState@1327,whole:DutyState@1738,whole:Route@1086,whole:Route@152,whole:Route@231,whole:Route@298,whole:Route@394,whole:Route@686 bd5eb406a50f93e2fe8d5db0044d77a727b0d614dc5186237dd2ac30f192c8c1
@legacy 6a044da8b179661c9a4889dcbac79d34c21e0b2c0b9021f9c717526d04b366f1 internal/activator/haforward.go Service.NoteForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Ignore canceled forwards; classify connected-holder silence for bounded revalidation and refuse stale local-entry shortcuts by pool; reads cached route under the existing locks, no external read.;rev3=census-ruling-region-ha-held-build;basis=returns early, changing nothing, for a ForwardSilent outcome from a peer the edge fold shows draining (spec 25.5 Silence); all other outcomes unchanged; no read added whole:Route@1242,whole:Route@1253,whole:Route@1325 6063c04005c985b5976f9da2de4efb7fb5fbb1a82f1c5cbc189e451b1003a1bc
@@ -14,7 +14,6 @@
@legacy e75960a04db9e7ce784bcc27f0b85a1ad1831758c07987c84febbf652e8be126 internal/activator/handover.go Service.readMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: ConfirmMoveHolder's one lock read (existing readHolderView, bounded by holderReadTimeout) and its reading through otherHolder and DecidePlacement with LocalDenied; reads only; authorizes nothing whole:Route@409,whole:Route@963,whole:Route@996 3f59d6e470312678682fced857969e8e4aec359fd622d32ac081dac6570f74da
@legacy 1ee4ec42b4c7b11bf062810412ad7ecc3920737b469ada236b8776bd6104b97f internal/activator/handover.go Service.waitMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: a held request's bounded wait on in-memory state; no read whole:Route@308,whole:Route@549 51784ee39903fe8d6685b4c376f2065a3fa76998b881020e3798755478c117e4
@legacy 1dffd7b92663ee5f3675ba30ee4063679e8561f16907d505c244e3271f350bb7 internal/activator/handover.go sameMoveLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (fix round 1): compares two in-memory routes' Host, Account (EffectiveAccount), App, Incarnation and ServingSeq; reads nothing else; only narrows which requests a move applies to registry:Account@114,registry:Account@158,registry:App@175,registry:App@188,registry:Host@63,registry:Host@77,registry:Incarnation@198,registry:Incarnation@219,registry:ServingSeq@237,registry:ServingSeq@257 1c996c6cdce819f0196684ddf21da2860321518e467193571f6f996a8207c87f
-@legacy 4370eeb5fe7e9e71c2ca70d1bfe7bf38b1cfe311806e88cac99253aed328d756 internal/edge/backhaul_holder.go var backhaulHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3 fix round 1): whether a backhauled request is for an HA route, from this box's in-memory HA ingress projection (ingressRoute, built from platform records): reads the projected route's HA, Host, Account and App and compares them with the checked owner; no store or filesystem read; only gates whether the body is copied whole registry:Account@150,registry:App@181,registry:HA@124,registry:Host@133 8f04e94376d06a3329ce025081fc05356cb2f259b5d3f0af594e0fa0858ed65f
@legacy 970d7a1336a4489c044e157445c64ff3432b38642a03b664a22a5167a4591ac5 internal/edge/backhaul_retry.go homeMap.handoverAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): name authority for a handover answer's ref on an in-region front forward; reads the supplied route's Host, Account and App and the in-memory edges fold snapshot (resolveHomeName over the already-folded claims); no store or filesystem read; only narrows which box a request may be sent to a second time registry:Account@485,registry:App@509,registry:Host@166,registry:Host@435 aa9a4bf7fefc470f931ed8369733708d20a9e4f4edeccf6833c3f1e1f3ff0472
@legacy e74193b4cfcca6f473039efe9163209b7afd1cf8847f7c3d94b25a5e0fa99247 internal/edge/forwardha.go Edge.forwardHAFollow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): wraps the existing front forward; installs the in-memory attempt counter, and on a handover answer to the marked first attempt sends the in-memory body copy once more to the checked ref, or reports that the ref names this box so the caller serves it through the existing local path; passes the whole route in memory; no store or filesystem read whole:Route@185,whole:Route@189,whole:Route@267,whole:Route@651,whole:Route@655,whole:Route@728 458e3eaa39975df77b221aaee459c00ba4e2791a18b2f43403a697b9bda2aad9
@legacy 3765db605d5322898b539edac85a6f80455331d131441e589a205b9d940fc2f0 internal/edge/forwardha.go Edge.forwardHANoted legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new name for the former body of forwardHAAndNote (held-requests Task 3), unchanged but for passing the attempt state on; the same route Host reads for NoteForward; no read added registry:Host@312,registry:Host@611,registry:Host@692 35c1f30b298b9d1c179d6aa4936cacebd90ec12a31d3204525ba8ce69c62b333
@@ -45,7 +44,6 @@ internal/activator/handover.go Service.moveNoneLocked legacy accepted-legacy acc
internal/activator/handover.go Service.readMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: ConfirmMoveHolder's one lock read (existing readHolderView, bounded by holderReadTimeout) and its reading through otherHolder and DecidePlacement with LocalDenied; reads only; authorizes nothing whole:Route@409,whole:Route@963,whole:Route@996 3f59d6e470312678682fced857969e8e4aec359fd622d32ac081dac6570f74da
internal/activator/handover.go Service.waitMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: a held request's bounded wait on in-memory state; no read whole:Route@308,whole:Route@549 51784ee39903fe8d6685b4c376f2065a3fa76998b881020e3798755478c117e4
internal/activator/handover.go sameMoveLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (fix round 1): compares two in-memory routes' Host, Account (EffectiveAccount), App, Incarnation and ServingSeq; reads nothing else; only narrows which requests a move applies to registry:Account@114,registry:Account@158,registry:App@175,registry:App@188,registry:Host@63,registry:Host@77,registry:Incarnation@198,registry:Incarnation@219,registry:ServingSeq@237,registry:ServingSeq@257 1c996c6cdce819f0196684ddf21da2860321518e467193571f6f996a8207c87f
-internal/edge/backhaul_holder.go var backhaulHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3 fix round 1): whether a backhauled request is for an HA route, from this box's in-memory HA ingress projection (ingressRoute, built from platform records): reads the projected route's HA, Host, Account and App and compares them with the checked owner; no store or filesystem read; only gates whether the body is copied whole registry:Account@150,registry:App@181,registry:HA@124,registry:Host@133 8f04e94376d06a3329ce025081fc05356cb2f259b5d3f0af594e0fa0858ed65f
internal/edge/backhaul_retry.go homeMap.handoverAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): name authority for a handover answer's ref on an in-region front forward; reads the supplied route's Host, Account and App and the in-memory edges fold snapshot (resolveHomeName over the already-folded claims); no store or filesystem read; only narrows which box a request may be sent to a second time registry:Account@485,registry:App@509,registry:Host@166,registry:Host@435 aa9a4bf7fefc470f931ed8369733708d20a9e4f4edeccf6833c3f1e1f3ff0472
internal/edge/forwardha.go Edge.forwardHAFollow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): wraps the existing front forward; installs the in-memory attempt counter, and on a handover answer to the marked first attempt sends the in-memory body copy once more to the checked ref, or reports that the ref names this box so the caller serves it through the existing local path; passes the whole route in memory; no store or filesystem read whole:Route@185,whole:Route@189,whole:Route@267,whole:Route@651,whole:Route@655,whole:Route@728 458e3eaa39975df77b221aaee459c00ba4e2791a18b2f43403a697b9bda2aad9
internal/edge/forwardha.go Edge.forwardHANoted legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new name for the former body of forwardHAAndNote (held-requests Task 3), unchanged but for passing the attempt state on; the same route Host reads for NoteForward; no read added registry:Host@312,registry:Host@611,registry:Host@692 35c1f30b298b9d1c179d6aa4936cacebd90ec12a31d3204525ba8ce69c62b333
@@ -61,5 +59,5 @@ internal/edge/forwardha.go Edge.forwardHAAndNote legacy accepted-legacy accepted
internal/edge/forwardha.go Edge.frontForwardHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): the agent's edge decides at the front door whether to forward a visitor request: reads the route's HA flag and host from the box's own registry row and asks the activator; forwards only to a box in view over the existing signed hop; root never calls it;rev3=census-ruling-region-ha-dead-holder-backoff;basis=ForwardTarget returns a ForwardDecision (Ref, Refuse, Gen); a Refuse is answered at the front door with the existing unreachable answer (503, Retry-After: 10, same body, via answerHolderUnreachable), with no forward, dial, note or per-request step. A forward passes the decision to forwardHA and NoteForward carries Ref and Gen back. The round-1 connection callback (NoteConnected) is gone: the dial bound now lives in forwardTransport's forwardDialGate, which coalesces TCP dials per holder address in memory. The same 5 read sites; no new read; root never calls it.;rev3=census-ruling-region-ha-p1b3a;basis=Pass the existing route to a lazy cached wakeSnapshot closure, handle explicit local denial before all accounting, and refuse a disappeared Placement choice rather than falling through locally; whole Route read only, no new store or filesystem operation and no root authority.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): for a marked request to a hibernating HA route it uses the new HAForwarderFromMemory (ForwardTargetFromMemory) instead of ForwardTarget, so the hold path makes no holder-lock read; a non-stream marked request is left to this box's classification, and a holder not known from memory is answered with the one-retry event. The unmarked path is unchanged. Reads only the request mark and the already-loaded route and home map; no read added.;rev3=census-ruling-region-ha-followups;basis=Report detached TCP/TLS failure after a canceled Placement or Recovery request through the existing NoteForward classifier, preserving Ref, Gen and PeerGen. Reuse the route Host to correlate the late result; no new storage read or routing authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Share forwarding observation helper and refuse disappearance of a selected peer when local pool-ineligible; existing route input, two Host reads moved to helper.;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: calls forwardHAFollow instead of forwardHAAndNote, and when a handover answer named this box returns false so the request takes the existing local path (only when the route is locally pool-eligible); the same route reads; no read added registry:HA@225,registry:Hibernate@584,whole:Route@1244,whole:Route@1368,whole:Route@1602,whole:Route@1651,whole:Route@1856,whole:Route@228,whole:Route@515,whole:Route@587 43b47f419e9d094f67e9fb1737b9988efb7d732f09a52884197726a31cc68b85
internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added registry:Account@1361,registry:Account@2752,registry:Account@3006,registry:Account@3026,registry:Account@519,registry:App@1378,registry:App@2775,registry:App@3040,registry:App@3056,registry:App@543,registry:ClaimStamp@638,registry:HA@1099,registry:HA@1921,registry:HA@1998,registry:HA@2308,registry:HA@3176,registry:Host@1190,registry:Host@1248,registry:Host@1874,registry:Host@1980,registry:Host@2290,registry:Host@2495,registry:Host@251,registry:Host@2728,registry:Host@2978,registry:Host@2995,registry:Host@374,registry:Incarnation@1399,registry:Incarnation@2802,registry:Incarnation@3094,registry:Incarnation@3118,registry:Incarnation@570,registry:Pool@3066,registry:Pool@3083,registry:ServingSeq@1427,registry:ServingSeq@2836,registry:ServingSeq@3136,registry:ServingSeq@3159,registry:ServingSeq@604,whole:Route@1732,whole:Route@1807,whole:Route@1924,whole:Route@1959,whole:Route@2074,whole:Route@2157,whole:Route@2263,whole:Route@254,whole:Route@2938,whole:Route@2968,whole:Route@2981,whole:Route@3009,whole:Route@3043,whole:Route@3069,whole:Route@3097,whole:Route@3139,whole:Route@3179,whole:Route@3422,whole:Route@3544,whole:Route@377,whole:Route@522,whole:Route@546,whole:Route@573,whole:Route@607,whole:Route@641,whole:Route@892 5e0dfdd7bf53cadf9d9a1de94475d3cc4d6fb316d72c8b45e0b19e04e7e29153
@coverage internal/activator 41848e37a68a93c71c80f28380b1e6e48218840c29d5b7bc291529c0e44aab17
-@coverage internal/edge e30158d7c8a6a0d556568da4b6566be3f6d1fec50a525d7b1600c3e02ab87026
+@coverage internal/edge eaf6fefff41a9fb942f621820e6b9285a2261d21282c8e5626f3f6043aae4260
@coverage internal/host 2e83bba2a89d116388857912876ebde007a7c7b7fb6a3265c04856d60185583d