From 922021c476a313e2b1e80c51cd4f920b562efc3e Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 3 Dec 2026 12:27:43 -0500 Subject: [PATCH] docs(plans): record follow-up decisions and outcome of the 2026-12-02 review remediation --- .../2026-12-02-full-code-review-remediation.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/plans/2026-12-02-full-code-review-remediation.md b/docs/plans/2026-12-02-full-code-review-remediation.md index d76f34dc..43944c29 100644 --- a/docs/plans/2026-12-02-full-code-review-remediation.md +++ b/docs/plans/2026-12-02-full-code-review-remediation.md @@ -29,6 +29,10 @@ These were already single choices and are confirmed: - **4.2:** a standby site node refuses stream subscriptions; picking the start node from heartbeats was rejected. - **5.1:** a NoTracking default on the circuit context, not a per-page `Reset()`. +Follow-up decisions taken after the WPs landed (2026-12-03, recommended options): +- **Bundle `schemaVersion` 1.2 → 1.3** for the additive `AreaPath` (TRN-8). Acceptance is unchanged: the importer checks only `bundleFormatVersion` (still 1), so older bundles import and older importers ignore `AreaPath`. +- **Store-and-forward immediate delivery no longer overtakes a buffered lane.** `EnqueueAsync`, `ExternalSystem.CachedCall` and `Database.CachedWrite` check for a pending row in the `(category, target)` lane (index `idx_sf_messages_lane`) and, if one exists, buffer the new message behind it instead of attempting it immediately. Extends SF-1 from the sweep to the enqueue path. + --- ## WP1: Trust boundary and audit durability (P0) @@ -139,3 +143,12 @@ Each task needs a micro-benchmark or a query plan (`EXPLAIN QUERY PLAN`, or `sql - WP4: `DRILL_MODE=active bash docker/failover-drill.sh` plus a NodeA-restart stream check. - WP5: Playwright. - **QA (vq03/vq04) and DEV (vd03):** deploying there is the user's call. These fixes do not deploy them. + +## Outcome (2026-12-03) + +All seven WPs landed on `main` (branches `review/wp1`..`wp7`, merged via `review/integration`, then `review/decisions` and `review/playwright`). Partial: 6.7 (TRN-11 — the importer's per-row lookups in the main apply loops and `DependencyResolver`'s per-id loads) and 6.8 (UI-12 — Data Connections health page still re-reads every 10 s); both are tracked on the WP6 issue. + +- **Migrations:** `WidenSystemArtifactPerSiteStatus` (2.9), `AddKpiRollupBackfillState` (4.10 — a persisted backfill marker), `AuditLogChannelOccurredIndex` (6.5), each with a `docs/plans/sql/` script. 1.8 needed no EF migration: a startup backfill (`DeploymentConfigSecretUpgrade`) re-protects plaintext rows, because Data Protection keys are not reachable from SQL. **Both central nodes must be upgraded together** — older binaries cannot read the encrypted config. +- **Rig gate (local docker, main):** health + migrations PASS; deployed snapshots 10/10 encrypted and a redeploy fetches them PASS; config-audit rows for disable/enable/artifact deploy/API key PASS; partial `site update` PASS; `DRILL_MODE=active` failover drill PASS (takeover 25 s); site NodeA restart → standby refuses streams with `Unavailable`, central streams from the active node PASS; parked-call retry SKIPPED (no live parked row). Playwright: only the 11 expected role-negatives fail, after the stale 2026-11-13 selectors were fixed. +- **QA (vq03/vq04) and DEV (vd03):** not deployed. +