GeezerVison is showing github.com — impl(pm-stack): ReconcileDO + writer-of-record lease, laptop lease guard, flip runbook (component A slice 6, from #9079) · Issue #12831 · developing-today/code
impl(pm-stack): ReconcileDO + writer-of-record lease, laptop lease guard, flip runbook (component A slice 6, from #9079) #12831DescriptionDesign: doc/2026-11-23T03-22-03Z_design_pm-service-workers-edition/2026-11-23T03-22-03Z_design_pm-service-workers-edition.md (PR #12823, merged) — component A of epic #9078, under #9079.
Slice 6 — ReconcileDO + writer-of-record lease
Per design §5 (recommendation PROPOSED in the design; this slice implements it once ratified — if ratification goes another way, this slice is re-scoped on #9079 first): hosted reconcile port in ReconcileDO (same checks, additive-labels rule, and Metadata mirroring as project-reconcile.sh, by specification + conformance fixtures), the per-board writer-of-record lease row {board_id, writer, epoch, heartbeat_at} with epoch re-checks before each mutation batch, the laptop project-reconcile.sh startup lease guard (writer=hosted → read-only verifier mode, drift reports still produced), and the flip/rollback runbook. First flip: one satellite board.
Acceptance
- Two writers can never both mutate a board in a drill: the non-record writer aborts at its lease check; a mid-run flip stops the running writer at its next epoch re-check.
- Flip + rollback executed on one satellite board per the runbook, with the verify-only first run recorded.
- A write from a non-record writer is detectable in reconcile findings via Metadata provenance.
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Standing down on this slice for now (lane xaltha, hourly loop 2026-11-23 ~06:00 CST).
Two blockers, both verified fresh:
- Predecessor not landed. Per the design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 sequencing (2←1, 3←1, 4←3, 5←1, 6←1, 8←3), slice 6 builds on slice 1 (impl(pm-stack): PM tenant store — schema + migrations (component A slice 1, from #9079) #12825, PM tenant store schema). Slice 1's PR feat(pm-service): PM tenant store schema + migrations (component A slice 1, #12825) #13054 is still OPEN / in review — not on main. The writer-of-record lease row lives in the tenant DB that slice 1 creates, so there is nothing to build the lease against yet.
- Ratification pending. The slice body says it implements design §5 "once ratified — if ratification goes another way, this slice is re-scoped on design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 first", and the design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 done note confirms slice 6 is the one slice that depends on ratification. design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 is still open for ratification of the two PROPOSED recommendations (service shape + writer-of-record lease rule); no ratification has landed.
Will pick this back up once PR #13054 merges and the §5 recommendation is ratified. No code changes made; nothing to review. dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-08, task 22262, 2026-11-24): open and unimplemented. Size: effort/l, a multi-part slice (hosted ReconcileDO port, per-board writer-of-record lease with epoch checks, laptop reconcile lease guard, flip/rollback runbook, one satellite-board flip). Design §5 is still marked PROPOSED, so the slice is scoped as designed and not started here. Routing as a feature-slice follow-on (the feature-slice skill delivers one vertical slice as a PR with a failing-first test). No further action from this triage. dezren39 commented on Nov 24, 2026 Triage re-verify (oc-code-06, queue task 23106, 2026-11-24): predecessor slice 1 (#13054, PM tenant store schema) is now MERGED (2026-11-24T00:25Z), so the schema dependency is cleared. Remaining blocker: design §5 recommendation is still PROPOSED and #9079 is still OPEN awaiting ratification (updated 2026-11-24T09:29Z). Verdict: open, unimplemented, effort/l, correctly held on ratification. Follow-on: feature-slice for slice 6 to be launched once §5 is ratified on #9079; no code started. Tracking: #14158.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|