GeezerVison is showing github.com — id: spill v2 phase 2 — read replicas with position-watermark staleness contract (#5787) · Issue #7573 · developing-today/code
id: spill v2 phase 2 — read replicas with position-watermark staleness contract (#5787) #7573DescriptionSummary
Implement spill v2 phase 2 from the #5787 design (doc/2026-11-08_design_id5787.md, §3): read replicas for a spilled world with an explicit staleness contract.
Scope
- Replica read service over the authoritative journal stream: every read response carries the journal position it was served at (the replica's replay watermark).
- Bounded service: a replica beyond the configured lag bound refuses with retryable
replica-behind instead of serving silently old state.
- Read-your-writes / monotonic reads: a client presenting its last acknowledged position is served only at a watermark ≥ that position (bounded wait or redirect to holder/DO).
- Presence rules: replicas may serve and originate only explicitly ephemeral, TTL'd, unjournaled presence data; session traffic that mutates goes to the holder and the append gate, always; no replica acknowledgment before the gate's durable receipt.
Trigger / gating
Do not start until trigger T2 fires: the first production spill, or read load on a spilled world measurably served stale / refused at the holder. Design: #5787. Depends on: #3805, and on F1's pool/replica join (the phase-1 follow-on filed with the #5787 design).
Acceptance
- Watermark, staleness-bound, and read-your-writes behaviours covered by deterministic tests, including the design §7 "replica serves during failover" case.
- No code path lets a replica acknowledge a mutation or promote presence data to durable state.
Activitydeveloping-today commented on Nov 8, 2026 dezren39 commented on Nov 8, 2026 Intake review
- Related: design issue id: design: spill v2 — native spill pools, lease failover and multi-holder fencing (extends #2819) #5787 (design doc PR docs(id): spill v2 design — spill pools, lease failover, multi-holder fencing (#5787) #7576, §3); depends on issue id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 and on phase 1 (issue id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572, pool/replica join); sibling phase 3 is issue id: spill v2 phase 3 — multi-world spill admission control and fairness budgets (#5787) #7574.
- Still live: filed 2026-11-08 from the merged spill v2 design; no merged PR implements replica reads or the watermark contract. Not solved.
- Acceptance criteria: present in substance under the body's
## Acceptance checklist (watermark/staleness/read-your-writes tests, no replica mutation acknowledgment) — no duplicate section appended.
- Notes / risks: TRIGGER-GATED — do not start until T2 fires (first production spill, or measured stale/refused reads at the holder). The presence-data carve-out (ephemeral, TTL'd, unjournaled only) is the boundary most likely to erode silently; the checklist's second item guards it.
- Suggested approach: when T2 fires, build the watermark-carrying read path and the
replica-behind refusal first; presence rules last, behind tests.
- Monitor labels: priority/low + status/waiting-dependency (trigger-gated), effort/l.
— fleet monitor intake (repo-fleet-monitor), 2026-11-08 developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 9, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026 🤖 Agent note · blocked
- Agent: queue worker (repo-worker-code), lane code-v
- Session / ID: task 14318
- Found via: queue claim
- Task: task 14318 (small_fix, issue id: spill v2 phase 2 — read replicas with position-watermark staleness contract (#5787) #7573 — spill v2 phase 2, read replicas). Revalidated fresh 2026-11-10T23:50Z: issue id: spill v2 phase 2 — read replicas with position-watermark staleness contract (#5787) #7573 OPEN, no hard-stop labels, already triaged (priority/low, effort/l, kind/enhancement). Both named dependencies still OPEN: issue id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572 (spill v2 phase 1, contains F1's pool/replica join) and issue id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 (lease protocol phase 3). The issue body is explicit: "Do not start until trigger T2 fires" (first production spill), and T2 cannot fire before phase 1 exists. Same verdict as the lane code-d triage note of 2026-11-10T22:02Z.
- Expectation: task 14318 is now dep-blocked on issue id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572 + issue id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 (broker rechecks; it returns to the pool automatically when both close, max TTL 7d). Whoever claims it then re-checks T2 before starting. This replaces the repeated park/handoff cycle this task has been through.
- Links: issue id: spill v2 phase 2 — read replicas with position-watermark staleness contract (#5787) #7573, issue id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572, issue id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805, task 14318
dezren39 commented on Nov 17, 2026
Agent note — triage revalidation (lane code-j, task 14318)
State: triaged and dependency-gated — #7573 is OPEN and already marked status/blocked, queue/blocked, and status/waiting-dependency. No hard-stop labels are present; the current issue labels accurately reflect the gate.
Fresh checks (2026-11-17):
Routing: retain #7573 as dependency-blocked, with the existing T2 resume condition; re-check the prerequisites and T2 before any implementation. This confirms rather than changes the prior disposition. No code changed. dezren39 commented on Nov 23, 2026 🤖 Agent note — triage, lane any-n (task 18524)
- Fresh state (2026-11-23): id: spill v2 phase 2 — read replicas with position-watermark staleness contract (#5787) #7573 OPEN, correctly gated. Design id: design: spill v2 — native spill pools, lease failover and multi-holder fencing (extends #2819) #5787 is closed; trigger T2 (first production spill) has not fired.
- Dependencies: id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572 (spill v2 phase 1, pool roster and failover) is still OPEN, so phase 2 cannot start. id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 (lease protocol phase 3) is now CLOSED, so only id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572 gates this issue.
- Verdict: DEFERRED pending id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572. Nothing is closed and no follow-on packet is filed.
- Resume: when id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572 closes and trigger T2 is in view, re-triage this issue.
dezren39 commented on Nov 23, 2026 agent-note:v1 — triage verdict (task 18524, lane oc-code-06, 2026-11-23)
dezren39 commented on Nov 23, 2026 Triage (task 21365, lane any-n, 2026-11-23)
Verdict: DEFERRED — still trigger-gated, blocked on phase 1. No implementation.
Fresh checks:
Ordering stands: #7572 lands -> T2 fires in production -> #7573 phase-2 work starts. Resume: when #7572 closes and T2 is in view, re-triage before any implementation. No code changed.
developing-today-fleet commented on Nov 25, 2026 Graph hygiene (#14863 slice 8): fresh gate check. The body's named issue dependency #3805 is now CLOSED — satisfied. The remaining gates are unchanged and real: trigger T2 (first production spill, or measured stale/refused reads at the holder — an event, not an issue) and phase 1's pool/replica join (#7572, in flight). No edge applies to an event gate. Verified-blocked: status/blocked + queue/blocked stay until T2 fires and phase 1 lands. Refs #14863 dezren39 commented on Nov 26, 2026 🤖 Agent note · triage revalidation — parked, dependency-gated (queue task 21365, lane DJ, 2026-11-26)
- Fresh state: id: spill v2 phase 2 — read replicas with position-watermark staleness contract (#5787) #7573 OPEN; labels
status/blocked, queue/blocked, status/waiting-dependency, priority/low, effort/l — no hard-stop labels (held / user / do-not). All comments read.
- Dependencies: id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 CLOSED (satisfied). id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572 (spill v2 phase 1) still OPEN — verified today: all five implementation slices merged (PRs fix(id): require successor replay at spill admission #14749, feat(id): authenticate spill cursor through the host controller #14991, test(id-worlds): Q2 failover measurements for spill v2 (#7572) #15045, test(id): pin the remaining spill §7 oracle cases (#7572) #15122, feat(id): concrete Ed25519 spill cursor authenticator (#7572) #15273), sole remainder is Q2 evidence (b), a real/game-day holder-death failover timeline gated on a deployed game-day environment (lane VE note, 2026-11-26). That remainder is not workable from a sandbox/queue lane, so the blocker was assessed, not duplicated.
- Trigger T2: not fired — no first production spill / measured stale-or-refused holder reads recorded; with phase 1's Q2(b) still outstanding, phase 2 cannot start.
- Verdict: DEFERRED, unchanged from the 2026-11-23 triage (issuecomment-7108617840) and the 2026-11-25 graph-hygiene gate check. No code changed, nothing closed, no follow-on packet filed.
- Queue action: task 21365 parked with ready condition
issue_closed: developing-today/code#7572 (non-person). Resume: when id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572 closes and T2 is in view, re-triage before any implementation.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|