| index 63bb7df2d..d83d293f2 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-retry-after-503.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-retry-after-503.tsv |
| @@ -5,7 +5,7 @@ |
| @legacy 2fff3fc1a88412d0773eccae91dc35606bb66e6ce5913f1533fdfe76a434ff12 internal/activator/haforward.go Service.answerForwarded legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): writes the 503 Retry-After 1 with X-Carlos-Holder for a held lease on a verified HA hop; reads the route only to check HA; root never calls it;rev3=census-ruling-retry-after-503;basis=the held-lease 503 is written through edge.Unavailable (Retry-After 1 unchanged); X-Carlos-Holder unchanged; no read added whole:Route@131 2be3eb0e89caa5578f42a067a902e9bbbf3d2aa551392e64d1f93f29d82ed1f3 |
| @legacy f3874373de5c874de7b81ce35144df4afc2c90a5e01ea96bcfe598f8b1376b39 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;rev3=census-ruling-retry-after-503;basis=records four time.Now stamps and logs per-phase durations (files, sync, record, marker) on the existing marker log line; order, budgets and clean rule unchanged; no read added registry:Host@1584,registry:Host@2785,whole:Route@109,whole:Route@1710,whole:Route@1848,whole:Route@2624,whole:Route@267 39353c898133ea75aa2542d28ea6db1a81c868626aba4fc44dd43a4467a6054b |
| @legacy 988be30588cdde03e38aad634d536400a17439437e5e9ec6808b64e2094d5643 internal/edge/importgate.go Edge.importGateAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the import gate: a gated row admits only a GET carrying the verify token; anything else is a 503; serving only;rev3=census-ruling-agent-start-demo-3;basis=Keep demo-claim destinations gated until committed; verify exact host/seed capability before allowing console probes. Census read-site delta: +registry:Host, +registry:SeedSource.;rev3=census-ruling-retry-after-503;basis=the gate's 503 is written through Unavailable (adds Retry-After and answer/box headers); admission logic unchanged; no read added registry:Host@482,registry:Host@535,registry:Host@549,registry:ImportGate@274,registry:ImportGate@297,registry:ImportGate@609,registry:SeedSource@394,whole:Route@197,whole:Route@250,whole:Route@261 4dfc59d7f0702f867456fb45114518ee13cdd00bd3f3af0790b194b6be48fef1 |
| -@legacy 903f60097268d92ca1e672eec05e361459c15d139cecc5a2e74ff4dec64e33d2 internal/edge/plandisabled.go Edge.planDisabledAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), serving only: asks the plans turned-off hook (planDisabledFor, passed the row and the request host) and answers a turned-off route with a fixed 503 page rendered from constants, before the meter, gate, cache and activator; reads only the row's kind; echoes nothing from the request (plans 4d).;rev3=census-ruling-retry-after-503;basis=the fixed 503 page's status is written through UnavailableHeader (adds Retry-After 300 and answer/box headers); body and checks unchanged; no read added registry:Kind@156,whole:Route@185 06c803560228a95822b8bfdcf7202f0bc46f4940a950cd7631dbc88d8bfff560 |
| +@legacy 4cf7876eec44ead223526d45b8f846138e3b2eadb158476d99f8c94a7b50ea8e internal/edge/plandisabled.go Edge.planDisabledAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), serving only: asks the plans turned-off hook (planDisabledFor, passed the row and the request host) and answers a turned-off route with a fixed 503 page rendered from constants, before the meter, gate, cache and activator; reads only the row's kind; echoes nothing from the request (plans 4d).;rev3=census-ruling-retry-after-503;basis=the fixed 503 page status is written through UnavailableNoRetry (still no Retry-After; adds answer/box headers); body and checks unchanged; no read added registry:Kind@156,whole:Route@185 9c262814f06d3ee9c3d4a419936e3be7b033659c4b25c4601199a2098dd8ba1c |
| @legacy ec43384b0f0a176f0d0408082f3832e1563912e3463a993a527d376346ed5503 internal/edge/replicaconsole.go Edge.serveReplicaConsole legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-coordinator-route;basis=Reads existing in-memory route fields to select a unique accountless console.service local upstream; refuses missing or ambiguous console, tenant routes, remote and tunnel upstreams. Reuses proxy and version wrapper; leaves fleet identity authentication at console.;rev3=census-ruling-retry-after-503;basis=the missing/ambiguous-console 503s go through UnavailableHeader (adds Retry-After 2 and answer/box headers); selection unchanged; no read added registry:Account@237,registry:App@257,registry:Host@178,registry:Socket@355,registry:Unit@280,whole:Route@159 cd4066214c9abe0e393c0f57abf0adab3988e4916073649e1ce0231d95388906 |
| @legacy b3c3ab490d60a2ee9d0861e2e2c745b7c43c709c0bf23d8438f36c2ca3836089 internal/edge/replicaprobe.go Edge.serveReplicaProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 I4/F1: the dialled pathname comes from the serving Gen.Socket and, for shared/foreign layouts, can originate in the registry row Socket. Dial through unixdial.Checked: refuse the instance-control directory before connect and require getpeername to match the dialled path before sending HTTP, including symlink refusal. Existing Route reads unchanged. M5 handles request construction errors before RoundTrip; M2 uses the shared reason constant. Authenticated private landing, held-leg admission, one-second bound and post-response identity checks remain.;rev3=census-ruling-retry-after-503;basis=each refusal 503 goes through UnavailableHeader with its own site (adds Retry-After 2 and answer/box headers); dial and identity checks unchanged; no read added registry:FleetBoxes@390,registry:HA@459,registry:Hibernate@443,registry:Host@346,registry:Kind@365,whole:Route@1028,whole:Route@1218,whole:Route@2279,whole:Route@708 b17068d220c00949d08e47c6420f62508d3bada1b9996bcea3d8ada9e4f18d11 |
| internal/activator/activator.go Service.ServeScheduled legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-plans-4d-lapse;basis=answers a scheduled request to a route the turned-off hook names with the maintenance response before serve (plans 4d). One more whole-row read: the row handed to the hook (a.disabled), as the fence and maxRunFor are asked.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: wraps the proxy so that, after the wake, fillScheduledToken(r, rt) sets an HA host's tick bearer token from its restored env file; an error there logs (+registry:Host, rt.Host) and answers 503 with Retry-After: 5; a non-HA host's tick is left as the runner built it; +whole:Route is rt handed to fillScheduledToken; keeps legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned (a hibernating instance, or an instance with a runtime) instead of Kind and Hibernate inline; reads the same fields plus Runtime through the method;rev3=census-ruling-region-ha-p1b3b-t;basis=Run the local scheduled request under WithDuty and retain existing HTTP refusal text; add route arguments to background admission and error handling. No forwarding.;rev3=census-ruling-retry-after-503;basis=the scheduled-token 503 is written through edge.UnavailableHeader (Retry-After 5 unchanged, adds X-Carlos-Answer/X-Carlos-Box); no read added registry:Host@669,registry:Status@146,registry:Status@165,whole:Route@1108,whole:Route@248,whole:Route@600,whole:Route@848,whole:Route@929 a05c6cb48d8e39c41e3918a2e4ef7c11871d9afbe7eca725547b7a47250f40da |
| @@ -14,8 +14,8 @@ internal/activator/activator.go Service.serveWakeError diagnostic C,J4 rev3=PROP |
| internal/activator/haforward.go Service.answerForwarded legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): writes the 503 Retry-After 1 with X-Carlos-Holder for a held lease on a verified HA hop; reads the route only to check HA; root never calls it;rev3=census-ruling-retry-after-503;basis=the held-lease 503 is written through edge.Unavailable (Retry-After 1 unchanged); X-Carlos-Holder unchanged; no read added whole:Route@131 2be3eb0e89caa5578f42a067a902e9bbbf3d2aa551392e64d1f93f29d82ed1f3 |
| 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;rev3=census-ruling-retry-after-503;basis=records four time.Now stamps and logs per-phase durations (files, sync, record, marker) on the existing marker log line; order, budgets and clean rule unchanged; no read added registry:Host@1584,registry:Host@2785,whole:Route@109,whole:Route@1710,whole:Route@1848,whole:Route@2624,whole:Route@267 39353c898133ea75aa2542d28ea6db1a81c868626aba4fc44dd43a4467a6054b |
| internal/edge/importgate.go Edge.importGateAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the import gate: a gated row admits only a GET carrying the verify token; anything else is a 503; serving only;rev3=census-ruling-agent-start-demo-3;basis=Keep demo-claim destinations gated until committed; verify exact host/seed capability before allowing console probes. Census read-site delta: +registry:Host, +registry:SeedSource.;rev3=census-ruling-retry-after-503;basis=the gate's 503 is written through Unavailable (adds Retry-After and answer/box headers); admission logic unchanged; no read added registry:Host@482,registry:Host@535,registry:Host@549,registry:ImportGate@274,registry:ImportGate@297,registry:ImportGate@609,registry:SeedSource@394,whole:Route@197,whole:Route@250,whole:Route@261 4dfc59d7f0702f867456fb45114518ee13cdd00bd3f3af0790b194b6be48fef1 |
| -internal/edge/plandisabled.go Edge.planDisabledAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), serving only: asks the plans turned-off hook (planDisabledFor, passed the row and the request host) and answers a turned-off route with a fixed 503 page rendered from constants, before the meter, gate, cache and activator; reads only the row's kind; echoes nothing from the request (plans 4d).;rev3=census-ruling-retry-after-503;basis=the fixed 503 page's status is written through UnavailableHeader (adds Retry-After 300 and answer/box headers); body and checks unchanged; no read added registry:Kind@156,whole:Route@185 06c803560228a95822b8bfdcf7202f0bc46f4940a950cd7631dbc88d8bfff560 |
| +internal/edge/plandisabled.go Edge.planDisabledAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-4d-units;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), serving only: asks the plans turned-off hook (planDisabledFor, passed the row and the request host) and answers a turned-off route with a fixed 503 page rendered from constants, before the meter, gate, cache and activator; reads only the row's kind; echoes nothing from the request (plans 4d).;rev3=census-ruling-retry-after-503;basis=the fixed 503 page status is written through UnavailableNoRetry (still no Retry-After; adds answer/box headers); body and checks unchanged; no read added registry:Kind@156,whole:Route@185 9c262814f06d3ee9c3d4a419936e3be7b033659c4b25c4601199a2098dd8ba1c |
| internal/edge/replicaconsole.go Edge.serveReplicaConsole legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-coordinator-route;basis=Reads existing in-memory route fields to select a unique accountless console.service local upstream; refuses missing or ambiguous console, tenant routes, remote and tunnel upstreams. Reuses proxy and version wrapper; leaves fleet identity authentication at console.;rev3=census-ruling-retry-after-503;basis=the missing/ambiguous-console 503s go through UnavailableHeader (adds Retry-After 2 and answer/box headers); selection unchanged; no read added registry:Account@237,registry:App@257,registry:Host@178,registry:Socket@355,registry:Unit@280,whole:Route@159 cd4066214c9abe0e393c0f57abf0adab3988e4916073649e1ce0231d95388906 |
| internal/edge/replicaprobe.go Edge.serveReplicaProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 I4/F1: the dialled pathname comes from the serving Gen.Socket and, for shared/foreign layouts, can originate in the registry row Socket. Dial through unixdial.Checked: refuse the instance-control directory before connect and require getpeername to match the dialled path before sending HTTP, including symlink refusal. Existing Route reads unchanged. M5 handles request construction errors before RoundTrip; M2 uses the shared reason constant. Authenticated private landing, held-leg admission, one-second bound and post-response identity checks remain.;rev3=census-ruling-retry-after-503;basis=each refusal 503 goes through UnavailableHeader with its own site (adds Retry-After 2 and answer/box headers); dial and identity checks unchanged; no read added registry:FleetBoxes@390,registry:HA@459,registry:Hibernate@443,registry:Host@346,registry:Kind@365,whole:Route@1028,whole:Route@1218,whole:Route@2279,whole:Route@708 b17068d220c00949d08e47c6420f62508d3bada1b9996bcea3d8ada9e4f18d11 |
| @coverage internal/activator d6ce24a4b55dbf89771215c105acf2156e79b17659bbb4d21dc6628a13c8b609 |
| -@coverage internal/edge 3dc38982da0537483b436bcf6bcf9f537505c0df92426c62cbe272ec90a7271b |
| +@coverage internal/edge 3a80599eb7da7d390059130c0e008e76cd87a5a97596ed8191323342069c9b21 |