| index bdedc409f..c90fe66dc 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-held-move-speed.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-held-move-speed.tsv |
| @@ -2,19 +2,19 @@ |
| # 4 body, 2 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| # 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| @legacy e64cf805e37d1f046d902c1b9069cd461361a6a1b304ecbbbeb6ac19cf10ad6e internal/activator/handover.go Service.BeginMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: Task 5 driver API; sets in-memory holding for an awake HA entry; refuses on a latched loss; no read. Fix round 1: records the awake entry's route (in memory) as the move's lifetime identity; no read added;rev3=census-ruling-held-move-speed;basis=also clears the host's in-memory moveStreams ending flag for the new move (moveStreams.reset); no read added whole:Route@331,whole:Route@489,whole:Route@498 580cc7aabf4b01e7e473070f48a5b9657e95dcf184e878989cd88a954c82aebf |
| -@legacy 6123da1d81bea8999d2caadf860e2e5838833b702e8157934e53c6a56eec0d73 internal/edge/cookiescope.go Edge.responseModifier legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-3;basis=the ModifyResponse hook now also strips any asset cache header or trailer the app set (stripAssetResponseHeaders, stripAssetTrailers: X-Carlos-Asset-Fill, X-Carlos-Asset-Fill-Ack, X-Carlos-Asset-Expires, Carlos-Cache) between the purge channel and the cookie scoping; it deletes response headers only; read sites unchanged (2); no read added;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: strips an app-supplied X-Carlos-Holder (header, announced trailer name, trailer values at body close) so only the platform names a lease holder; same reads;rev3=census-ruling-edge-page-cache-1;basis=after the purge channel, records the app's Carlos-Page-Cache response header into the request's in-memory page mark holder (takePageMark, final responses only) and calls a nil-in-production test seam, before the existing scrub deletes the header; read sites unchanged (2); no read added;rev3=census-ruling-held-move-speed;basis=last, calls MarkMoveStream(resp): marks the request's in-memory StreamEnd when the response is a 101 or a text/event-stream, and wraps an SSE body in eventBoundaryBody so a move can end it at an event boundary; reads only the proxied response's status and Content-Type; read sites unchanged (2); no read added whole:Route@106,whole:Route@394 09c3267cab18b61a26c62594eb98d8eff228a896a2e348ce09b808cb315b5e3d |
| -@legacy e7cdd884e29b0cd6c9c7dfcfa1df1cc965abfd08f4ccf2622806256bbd03b212 internal/host/hadrain.go drainDriver.moveOne legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: one host's move (BeginMove, tickets and in-flight wait, DrainStop, take, SetMoveTaken or SetMoveLeft); reads the in-memory route Host; no read of its own; Task 5 fix 1: after SetMoveTaken, closes the host's edge-held streams on this edge at an event boundary (Edge.CloseHeldHost, memory only); no read added;rev3=census-ruling-held-move-speed;basis=right after BeginMove and before the ticket and in-flight wait, calls Service.EndMoveStreams(host) and Edge.CloseHeldHost(host) (memory only: ends the host's SSE streams at an event boundary, closes upgraded connections, closes edge-held streams); the later CloseHeldHost after SetMoveTaken is kept; no read added registry:Host@135,whole:Route@137 267945a579180574680077bd84ecfff059e2a1bc106365dcb73e8cbd4935a38f |
| -@legacy bc8d2db81abd45488a509371d2b0c817896871c6e50742b1acec38a8a48ce69c internal/edge/movestreams.go eventBoundaryBody.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-move-speed;basis=new: reads the proxied upstream SSE response body (an io.ReadCloser from the tenant reverse proxy, the same bytes the proxy already copies to the client) and ends it with io.EOF at an event boundary once a move asked; the two Read sites are that body, not a file; agent-side (carlos-edge as carlos), no root decision file:Read@230,file:Read@28 b68a9cc1b908a084bc05c13e22ee91bd8b5be07e061a6b884eb605ab88f08f81 |
| +@legacy 74c76ae0b8a2370a50af65b7756e99b091a821916fa2ad8def3ee781666c274d internal/edge/cookiescope.go Edge.responseModifier legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-3;basis=the ModifyResponse hook now also strips any asset cache header or trailer the app set (stripAssetResponseHeaders, stripAssetTrailers: X-Carlos-Asset-Fill, X-Carlos-Asset-Fill-Ack, X-Carlos-Asset-Expires, Carlos-Cache) between the purge channel and the cookie scoping; it deletes response headers only; read sites unchanged (2); no read added;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: strips an app-supplied X-Carlos-Holder (header, announced trailer name, trailer values at body close) so only the platform names a lease holder; same reads;rev3=census-ruling-edge-page-cache-1;basis=after the purge channel, records the app's Carlos-Page-Cache response header into the request's in-memory page mark holder (takePageMark, final responses only) and calls a nil-in-production test seam, before the existing scrub deletes the header; read sites unchanged (2); no read added;rev3=census-ruling-held-move-speed;basis=last, calls MarkMoveStream(resp): marks the request's in-memory StreamEnd when the response is a 101, an encoded text/event-stream (both ended by cancelling the request's context) or an unencoded text/event-stream, whose body alone is wrapped in eventBoundaryBody so a move can end it at an event boundary; the wrapper closes the trailer-scrubbing bodies below it through one shared close-once (sync.Once plus a done channel) that the move's watcher and the proxy both wait on, so the scrubs run once, never concurrently, and complete before the proxy copies trailers (Astra r1 F1.1; race witness TestMoveStreamCloseIsSharedWithTheTrailerScrubs); reads only the proxied response's status, Content-Type and Content-Encoding; read sites unchanged (2); no read added whole:Route@106,whole:Route@394 09c3267cab18b61a26c62594eb98d8eff228a896a2e348ce09b808cb315b5e3d |
| +@legacy d5a4cbb0adc2e4ec99ad1ba9ffa6e4f40735dded5d79381abdd82c2a37710c67 internal/host/hadrain.go drainDriver.moveOne legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: one host's move (BeginMove, tickets and in-flight wait, DrainStop, take, SetMoveTaken or SetMoveLeft); reads the in-memory route Host; no read of its own; Task 5 fix 1: after SetMoveTaken, closes the host's edge-held streams on this edge at an event boundary (Edge.CloseHeldHost, memory only); no read added;rev3=census-ruling-held-move-speed;basis=right after BeginMove and before the ticket and in-flight wait, calls Service.EndMoveStreams(host) and Edge.CloseHeldHost(host) (memory only: ends the host's SSE streams, closes upgraded connections and encoded streams, closes edge-held streams); the later CloseHeldHost after SetMoveTaken is kept; no read added registry:Host@135,whole:Route@137 267945a579180574680077bd84ecfff059e2a1bc106365dcb73e8cbd4935a38f |
| +@legacy 32b8de2b527ceb2548bab8a27d95d863a6ac7cb8251ed0a2bf0999d5070275a0 internal/edge/movestreams.go eventBoundaryBody.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-move-speed;basis=new: reads the proxied upstream SSE response body (an io.ReadCloser from the tenant reverse proxy, the same bytes the proxy already copies to the client; unencoded text/event-stream only) and ends it with io.EOF at an event boundary once a move asked; the two Read sites are that body, not a file; agent-side (carlos-edge as carlos), no root decision file:Read@230,file:Read@28 b68a9cc1b908a084bc05c13e22ee91bd8b5be07e061a6b884eb605ab88f08f81 |
| @legacy feb1253bbc1063e40780e7e8610d56db06e62b3e696557af616ef555005af62d 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;rev3=census-ruling-held-move-speed;basis=after begin succeeds, wraps r with an edge.StreamEnd and tracks it under rt.Host in the in-memory moveStreams until the request ends (+registry:Host: the supplied route's Host as the map key); no new kind of read, no root decision registry:Addr@1131,registry:Addr@1145,registry:Host@1056,registry:Host@1256,registry:Host@4002,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 fbdd029dbe4180c6138f2cdfe20428a55c6288d4f8081cc7a4846066f1195b71 |
| -@legacy e6a6037e6ce093cedffa414a7f4f436428da38d9ec1adabd23a05bfc33b868eb internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4;rev3=census-ruling-region-ha-p1b3b-t;basis=Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch unexpected lease loss before release and mark intentional release so ErrSpent alone is not treated as loss; no new read.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Cap Final, Finish and marker contexts by the shutdown deadline and reserves; keep calls synchronous and stop proof unchanged; record successful marker completion under the service mutex. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: records the written marker's clean flag on the entry (haReleaseClean) beside haReleased, for the drain report; no read added;rev3=census-ruling-held-move-speed;basis=reads the entry's drainRelease flag under a.mu; for the drain's release calls the replica's FinishSnapshot (final sync, then a litestream snapshot at the final position, before the store's close) instead of Finish, and logs a snapshot failure naming rt.Host (+registry:Host, the supplied route); marker order, budgets and clean rule unchanged; no new read registry:Host@1403,registry:Host@2484,whole:Route@109,whole:Route@1505,whole:Route@1643,whole:Route@2393,whole:Route@267 7d5428b8024aa8f51ee187e08968beeb855f93cfa36c3acf014f279b289a7b35 |
| +@legacy cfff5550438de4518d4a46ad8db9b5aa8460e7a451f8b6d4fc86f15ae1b4e9b8 internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4;rev3=census-ruling-region-ha-p1b3b-t;basis=Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch unexpected lease loss before release and mark intentional release so ErrSpent alone is not treated as loss; no new read.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Cap Final, Finish and marker contexts by the shutdown deadline and reserves; keep calls synchronous and stop proof unchanged; record successful marker completion under the service mutex. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: records the written marker's clean flag on the entry (haReleaseClean) beside haReleased, for the drain report; no read added;rev3=census-ruling-held-move-speed;basis=reads the entry's drainRelease flag under a.mu; for the drain's release calls the replica's FinishSnapshot (final sync, then a litestream snapshot at the final position, before the store's close; the snapshot reader pipe is closed on every outcome) instead of Finish, and logs a snapshot failure naming rt.Host (+registry:Host, the supplied route); marker order, budgets and clean rule unchanged; no new read registry:Host@1403,registry:Host@2484,whole:Route@109,whole:Route@1505,whole:Route@1643,whole:Route@2393,whole:Route@267 7d5428b8024aa8f51ee187e08968beeb855f93cfa36c3acf014f279b289a7b35 |
| internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream end; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added d8e71373ba27185116b52624445629f307bfe57845bd0e88793308378441d4d5 |
| internal/activator/handover.go Service.BeginMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: Task 5 driver API; sets in-memory holding for an awake HA entry; refuses on a latched loss; no read. Fix round 1: records the awake entry's route (in memory) as the move's lifetime identity; no read added;rev3=census-ruling-held-move-speed;basis=also clears the host's in-memory moveStreams ending flag for the new move (moveStreams.reset); no read added whole:Route@331,whole:Route@489,whole:Route@498 580cc7aabf4b01e7e473070f48a5b9657e95dcf184e878989cd88a954c82aebf |
| -internal/edge/cookiescope.go Edge.responseModifier legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-3;basis=the ModifyResponse hook now also strips any asset cache header or trailer the app set (stripAssetResponseHeaders, stripAssetTrailers: X-Carlos-Asset-Fill, X-Carlos-Asset-Fill-Ack, X-Carlos-Asset-Expires, Carlos-Cache) between the purge channel and the cookie scoping; it deletes response headers only; read sites unchanged (2); no read added;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: strips an app-supplied X-Carlos-Holder (header, announced trailer name, trailer values at body close) so only the platform names a lease holder; same reads;rev3=census-ruling-edge-page-cache-1;basis=after the purge channel, records the app's Carlos-Page-Cache response header into the request's in-memory page mark holder (takePageMark, final responses only) and calls a nil-in-production test seam, before the existing scrub deletes the header; read sites unchanged (2); no read added;rev3=census-ruling-held-move-speed;basis=last, calls MarkMoveStream(resp): marks the request's in-memory StreamEnd when the response is a 101 or a text/event-stream, and wraps an SSE body in eventBoundaryBody so a move can end it at an event boundary; reads only the proxied response's status and Content-Type; read sites unchanged (2); no read added whole:Route@106,whole:Route@394 09c3267cab18b61a26c62594eb98d8eff228a896a2e348ce09b808cb315b5e3d |
| -internal/host/hadrain.go drainDriver.moveOne legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: one host's move (BeginMove, tickets and in-flight wait, DrainStop, take, SetMoveTaken or SetMoveLeft); reads the in-memory route Host; no read of its own; Task 5 fix 1: after SetMoveTaken, closes the host's edge-held streams on this edge at an event boundary (Edge.CloseHeldHost, memory only); no read added;rev3=census-ruling-held-move-speed;basis=right after BeginMove and before the ticket and in-flight wait, calls Service.EndMoveStreams(host) and Edge.CloseHeldHost(host) (memory only: ends the host's SSE streams at an event boundary, closes upgraded connections, closes edge-held streams); the later CloseHeldHost after SetMoveTaken is kept; no read added registry:Host@135,whole:Route@137 267945a579180574680077bd84ecfff059e2a1bc106365dcb73e8cbd4935a38f |
| -internal/edge/movestreams.go eventBoundaryBody.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-move-speed;basis=new: reads the proxied upstream SSE response body (an io.ReadCloser from the tenant reverse proxy, the same bytes the proxy already copies to the client) and ends it with io.EOF at an event boundary once a move asked; the two Read sites are that body, not a file; agent-side (carlos-edge as carlos), no root decision file:Read@230,file:Read@28 b68a9cc1b908a084bc05c13e22ee91bd8b5be07e061a6b884eb605ab88f08f81 |
| +internal/edge/cookiescope.go Edge.responseModifier legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-3;basis=the ModifyResponse hook now also strips any asset cache header or trailer the app set (stripAssetResponseHeaders, stripAssetTrailers: X-Carlos-Asset-Fill, X-Carlos-Asset-Fill-Ack, X-Carlos-Asset-Expires, Carlos-Cache) between the purge channel and the cookie scoping; it deletes response headers only; read sites unchanged (2); no read added;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: strips an app-supplied X-Carlos-Holder (header, announced trailer name, trailer values at body close) so only the platform names a lease holder; same reads;rev3=census-ruling-edge-page-cache-1;basis=after the purge channel, records the app's Carlos-Page-Cache response header into the request's in-memory page mark holder (takePageMark, final responses only) and calls a nil-in-production test seam, before the existing scrub deletes the header; read sites unchanged (2); no read added;rev3=census-ruling-held-move-speed;basis=last, calls MarkMoveStream(resp): marks the request's in-memory StreamEnd when the response is a 101, an encoded text/event-stream (both ended by cancelling the request's context) or an unencoded text/event-stream, whose body alone is wrapped in eventBoundaryBody so a move can end it at an event boundary; the wrapper closes the trailer-scrubbing bodies below it through one shared close-once (sync.Once plus a done channel) that the move's watcher and the proxy both wait on, so the scrubs run once, never concurrently, and complete before the proxy copies trailers (Astra r1 F1.1; race witness TestMoveStreamCloseIsSharedWithTheTrailerScrubs); reads only the proxied response's status, Content-Type and Content-Encoding; read sites unchanged (2); no read added whole:Route@106,whole:Route@394 09c3267cab18b61a26c62594eb98d8eff228a896a2e348ce09b808cb315b5e3d |
| +internal/host/hadrain.go drainDriver.moveOne legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: one host's move (BeginMove, tickets and in-flight wait, DrainStop, take, SetMoveTaken or SetMoveLeft); reads the in-memory route Host; no read of its own; Task 5 fix 1: after SetMoveTaken, closes the host's edge-held streams on this edge at an event boundary (Edge.CloseHeldHost, memory only); no read added;rev3=census-ruling-held-move-speed;basis=right after BeginMove and before the ticket and in-flight wait, calls Service.EndMoveStreams(host) and Edge.CloseHeldHost(host) (memory only: ends the host's SSE streams, closes upgraded connections and encoded streams, closes edge-held streams); the later CloseHeldHost after SetMoveTaken is kept; no read added registry:Host@135,whole:Route@137 267945a579180574680077bd84ecfff059e2a1bc106365dcb73e8cbd4935a38f |
| +internal/edge/movestreams.go eventBoundaryBody.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-move-speed;basis=new: reads the proxied upstream SSE response body (an io.ReadCloser from the tenant reverse proxy, the same bytes the proxy already copies to the client; unencoded text/event-stream only) and ends it with io.EOF at an event boundary once a move asked; the two Read sites are that body, not a file; agent-side (carlos-edge as carlos), no root decision file:Read@230,file:Read@28 b68a9cc1b908a084bc05c13e22ee91bd8b5be07e061a6b884eb605ab88f08f81 |
| 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;rev3=census-ruling-held-move-speed;basis=after begin succeeds, wraps r with an edge.StreamEnd and tracks it under rt.Host in the in-memory moveStreams until the request ends (+registry:Host: the supplied route's Host as the map key); no new kind of read, no root decision registry:Addr@1131,registry:Addr@1145,registry:Host@1056,registry:Host@1256,registry:Host@4002,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 fbdd029dbe4180c6138f2cdfe20428a55c6288d4f8081cc7a4846066f1195b71 |
| -internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4;rev3=census-ruling-region-ha-p1b3b-t;basis=Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch unexpected lease loss before release and mark intentional release so ErrSpent alone is not treated as loss; no new read.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Cap Final, Finish and marker contexts by the shutdown deadline and reserves; keep calls synchronous and stop proof unchanged; record successful marker completion under the service mutex. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: records the written marker's clean flag on the entry (haReleaseClean) beside haReleased, for the drain report; no read added;rev3=census-ruling-held-move-speed;basis=reads the entry's drainRelease flag under a.mu; for the drain's release calls the replica's FinishSnapshot (final sync, then a litestream snapshot at the final position, before the store's close) instead of Finish, and logs a snapshot failure naming rt.Host (+registry:Host, the supplied route); marker order, budgets and clean rule unchanged; no new read registry:Host@1403,registry:Host@2484,whole:Route@109,whole:Route@1505,whole:Route@1643,whole:Route@2393,whole:Route@267 7d5428b8024aa8f51ee187e08968beeb855f93cfa36c3acf014f279b289a7b35 |
| +internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4;rev3=census-ruling-region-ha-p1b3b-t;basis=Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch unexpected lease loss before release and mark intentional release so ErrSpent alone is not treated as loss; no new read.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Cap Final, Finish and marker contexts by the shutdown deadline and reserves; keep calls synchronous and stop proof unchanged; record successful marker completion under the service mutex. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: records the written marker's clean flag on the entry (haReleaseClean) beside haReleased, for the drain report; no read added;rev3=census-ruling-held-move-speed;basis=reads the entry's drainRelease flag under a.mu; for the drain's release calls the replica's FinishSnapshot (final sync, then a litestream snapshot at the final position, before the store's close; the snapshot reader pipe is closed on every outcome) instead of Finish, and logs a snapshot failure naming rt.Host (+registry:Host, the supplied route); marker order, budgets and clean rule unchanged; no new read registry:Host@1403,registry:Host@2484,whole:Route@109,whole:Route@1505,whole:Route@1643,whole:Route@2393,whole:Route@267 7d5428b8024aa8f51ee187e08968beeb855f93cfa36c3acf014f279b289a7b35 |
| @coverage internal/activator ba0b7f50814873c69635a8673174a4eee50cf55e8d8eb920232a21338612430d |
| -@coverage internal/edge 028cce0f8d3a51cd21d2287cf7764a487f2d75e3146be867abcb5df60aea94b4 |
| +@coverage internal/edge bf6b6c4589d5809ba6e110af6757497336151717314697b29a9e483664e41ec3 |
| @coverage internal/host b1ad7db55dc86fceee066db2806a461a5dfdc79f873c27a9a8f9a38a3afb205d |
| -@coverage internal/lease 34c056ec827799061d3c31f78e5e4b45eac3c68fb0c5a258fe2a65819220df92 |
| +@coverage internal/lease 0709201b86e84adc5d7a7072a533bdefe7f231e09c665a27a7cdeff77063ddb2 |