carlos / platform Public

census: re-pin internal/lease after the test seam (#1290)

The replica-wake-gap-ch overlay, re-proposed from a clean tree: the
internal/lease envelope now includes SetStoreMonitorsOffForTest. Unit
rows and seal unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 567c8c4705f399f4926afd66d80f3502c14413e2 parent dd6765d
1 file changed, +1 −1
  • internal/provision/testdata/plan14-root-reads-replica-wake-gap-ch.tsv +1 −1

CI passed — run details

diff --git a/internal/provision/testdata/plan14-root-reads-replica-wake-gap-ch.tsv b/internal/provision/testdata/plan14-root-reads-replica-wake-gap-ch.tsv
index 88cf8aa15..95bb8dcb7 100644
--- a/internal/provision/testdata/plan14-root-reads-replica-wake-gap-ch.tsv
+++ b/internal/provision/testdata/plan14-root-reads-replica-wake-gap-ch.tsv
@@ -8,4 +8,4 @@ internal/activator/replicatebeforestart.go Service.protectBeforeStart legacy acc
internal/lease/continuity.go Protection.pin legacy accepted-legacy accepted-legacy;rev3=census-ruling-replica-wake-gap;basis=Opens a SQLite read transaction on the route's database (agent, user carlos) after stat-ing its -wal and -shm, reading PRAGMA journal_mode and sqlite_master; creates nothing, changes no mode. The path is the activator's own route database path. No root involvement.;rev3=census-ruling-replica-wake-gap-ch;basis=QueryRow and Begin become QueryRowContext and BeginTx on a 30 s context (code health, db-no-context); the held transaction is begun without cancellation. Same reads of the same route database. file:Open@273,file:QueryRowContext@429,file:QueryRowContext@836,file:Stat@122 ca4ffcdadfbaf93a547c15b0f94c8618ee1b3aa50901c88634b9d1b73da96c5c
internal/activator/activator.go Service.doWakeOnce legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: The former doWake body, not deleted logic: refresh/admit/fence/layout checks remain. Select and verify the actual staged identity before serving Acquire; use canonical mode to call doStatelessWake. Keep SQLite acquire/restore/seed/marker/replicate only in the stateful arm, with the post-acquisition selection recheck and existing cleanup proofs. Fix 3a round 1 I1/I3a: admit config directly only for stateless and mark runtime ownership refusals. Stateful Acquire/Restore precede selection and pending publication; canonical mode inspection is separate, replan precedes settlement. Fix round 2 N2/N3: retain the original route/pin projection for post-lease declaration checks; reuse the unplanned capture so a live-link repoint cannot change the selected build. Stateful capture and changed-copy errors remain start failures after Acquire/Restore. A failed preliminary verification supplies no cached mode observation. No new file path or database authority. Final review C1/R26: unprojected stateful wakes capture and materialize the live link only after Acquire and Restore. Retain original route/generation/pin stateless evidence on the context across fallback, so missing stateless evidence cannot take stateful recovery inference. Known good stateful identity skips canonical declaration lookup. Existing pre-exec verification remains. R28 final fix 2: carry whether this wake has a plan in attempt-local context; no new read here; route, generation and pin stateless projection remains intact.;rev3=census-ruling-agent-start-demo-1;basis=Reads IsDemo and demo admission/capability state; chooses local lease retention, skips seed upload and sidecar selection. Existing stop and under-lease ordering retained.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: refuse tenant starts under the existing service lock before main's demoWakeRefusal, and recheck before backend Acquire. Retain main's demo refusal and all lease, restore and serialization checks. Two added whole Route uses feed the in-memory admission predicate; no new filesystem or store read.;rev3=census-ruling-stateless-replicas-2;basis=P14: after verified storage-mode selection, before clearing the projected hint or acquiring a database lease, a set row still on the stateful branch returns ErrFenced. Reads the existing route FleetBoxes field only. Verified stateless wakes take their existing branch; legacy rows remain unchanged. No new file, registry query or bucket read. merge of origin/main 9b8b2c50: retain wake-slot and HA duty logic alongside the replica stateful-start refusal; no gate removed. merge of origin/main 6be08467: Keep main demo lease, local database and KeepLocal path; never equate replication-disabled demos with stateless generations. Merge-only body/read-site change. merge of origin/main 7920cccf: Retain main tenant admission and startOwnedLocked gates alongside the replica stateful-start refusal; whole Route passed to main admission checks, no new path or store read.;rev3=census-ruling-agent-start-demo-3;basis=Route claim seeds through seed restore/admission; do not fall back to empty boot or ordinary import behavior. Census read-site delta: +registry:SeedSource, +whole:Route.;rev3=census-ruling-region-ha-g2-fixes;basis=Bound recovery Acquire by its attempt deadline; existing acquire/restore/start ordering remains; no new read.;rev3=census-ruling-g6-fence;basis=G6 F-C Task 3, the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): right after retainDatabase returns, attaches the write-fence watcher under a.mu (watchWriteFenceLocked, in memory). retainDatabase is called through a retainDB test seam that is nil in production. No read added; no root call; existing acquire, restore, publisher and cleanup order unchanged.;rev3=census-ruling-sr-followups;basis=#1061 Task 1, the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): a refused plan now returns planRefusal(host, plan) instead of the inline fmt.Errorf, the text is unchanged, and when the planner marked the plan Installing the error also matches errBuildNotInstalled (installRefusal, in memory). Same refusal at the same point before the lease, read sites unchanged, no read, file, store, bucket or root call added;rev3=census-ruling-replica-wake-gap;basis=Step 2c: before the seed and the spawn, asks the lease to ProtectStart(rt.DBPath), the route's own database path already used by Restore and retainDatabase; a refusal gives the lease back and starts nothing. Agent code (user carlos); no root call, no new store or file read here.;rev3=census-ruling-replica-wake-gap-ch;basis=Step 2c's body moved unchanged into protectBeforeStart (replicatebeforestart.go); doWakeOnce passes the whole Route it already holds and returns the error. No read added; the DBPath read moved with the body. registry:DBPath@2071,registry:DBPath@2087,registry:DBPath@2214,registry:DBPath@2225,registry:FleetBoxes@12030,registry:GoodVersion@18320,registry:Host@1900,registry:Host@1975,registry:Host@2053,registry:Host@2205,registry:Host@2539,registry:Host@4556,registry:Host@6813,registry:Host@949,registry:Replication@16947,registry:Replication@17076,registry:Replication@17095,registry:Replication@17176,registry:Replication@33548,registry:Seed@22232,registry:SeedSource@35008,registry:Socket@2100,registry:Socket@2116,registry:Socket@2239,registry:Socket@2250,registry:Stateless@10090,registry:Stateless@10376,registry:Stateless@11748,registry:Stateless@12078,registry:Stateless@20729,registry:Stateless@9633,registry:Stateless@9724,whole:Route@10162,whole:Route@10321,whole:Route@10700,whole:Route@10798,whole:Route@10889,whole:Route@11021,whole:Route@11144,whole:Route@11198,whole:Route@11470,whole:Route@11646,whole:Route@11650,whole:Route@12437,whole:Route@12712,whole:Route@13030,whole:Route@142,whole:Route@14491,whole:Route@15168,whole:Route@16049,whole:Route@16927,whole:Route@17178,whole:Route@18523,whole:Route@19114,whole:Route@19279,whole:Route@1998,whole:Route@20215,whole:Route@21011,whole:Route@21286,whole:Route@21482,whole:Route@22333,whole:Route@22404,whole:Route@2434,whole:Route@2439,whole:Route@24898,whole:Route@2493,whole:Route@2499,whole:Route@2565,whole:Route@2573,whole:Route@2629,whole:Route@26756,whole:Route@27402,whole:Route@28709,whole:Route@28863,whole:Route@29362,whole:Route@29432,whole:Route@30019,whole:Route@31104,whole:Route@31535,whole:Route@31743,whole:Route@31797,whole:Route@32726,whole:Route@32911,whole:Route@333,whole:Route@33711,whole:Route@33782,whole:Route@34500,whole:Route@34549,whole:Route@34943,whole:Route@35125,whole:Route@3591,whole:Route@36377,whole:Route@36472,whole:Route@3685,whole:Route@37313,whole:Route@3752,whole:Route@4446,whole:Route@6182,whole:Route@6441,whole:Route@6703,whole:Route@6708,whole:Route@6765,whole:Route@6771,whole:Route@6840,whole:Route@6848,whole:Route@7164,whole:Route@7225,whole:Route@729,whole:Route@7323,whole:Route@8288,whole:Route@9237,whole:Route@934,whole:Route@9461,whole:Route@9525,whole:Route@9569 7a5cc22f3e9b76abb17f3d26d72b5bfd41b7f19e2c645e2288953319d9bf5d08
@coverage internal/activator e4d8ec4b67ca247704e54bebe5d7101350aa1a1d11cbc0a8de1c3ba1b4e09b1e
-@coverage internal/lease 8aab77ec500ef4b7689c32769cb945972d6726e267b0a17b5ff8d190f21d64c5
+@coverage internal/lease 4f73e2cc9043b5b8ea0c8b81543a0e3a36a4bfc073af85366858350275ace090