From 2d54d9d671a022a2755770cda8819fcf92a3fdb9 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sat, 28 Nov 2026 12:18:02 -0500 Subject: [PATCH] =?UTF-8?q?docs(evidence):=20#937=20review=20round=201=20?= =?UTF-8?q?=E2=80=94=20outcomes,=20red/green,=20300-ack=20measurement,=20g?= =?UTF-8?q?ates,=20live=20fu937-3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- docs/plans/evidence/followups/937.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/plans/evidence/followups/937.md b/docs/plans/evidence/followups/937.md index 3391548c3..8c13bbd65 100644 --- a/docs/plans/evidence/followups/937.md +++ b/docs/plans/evidence/followups/937.md @@ -62,3 +62,28 @@ origin `ack` ⇒ `Acknowledge successful` (positive control). | `fu937-1` | `4d41e6185` | F937 functional checks all PASS (one check failed on a wrong log needle — the engine's "loaded" line rides the script-log topic; fixed to the host's re-assert line, rerun PASS). Regression A01/A04/A05/A08 PASS, **A02 FAIL `comment_good`**: a NATIVE condition's AddComment shares `HandleAlarmCommand` and was sent to the scripted host ⇒ `BadInvalidState`. Fixed in `e45012b69` (native AddComment skips the pre-check and the ask) + wire test `A_native_AddComment_is_not_subject_to_the_scripted_verdict` (red with the fix reverted). | | `fu937-2` | `e45012b69` | **F937 + A01, A02, A04, A05, A08: 6/6 PASS**; rig down. | + +## Review round 1 + +| # | Finding | Outcome | Red on revert | +|---|---|---|---| +| 1 | A post-dispatch NotApplied only rewrote the status: the SDK had applied + reported the change (in-flight load, host restart window, no host, removed alarm, blank comment, batch Confirm after a refused Ack) | **Fixed.** `ReportAfterMethod` captures the pre-call state inside a verdict slot; a refusal re-takes `Lock` and restores it with one corrective event (skipped if the node changed since — newer truth wins), mirroring #760. Blank scripted AddComment ⇒ `BadInvalidArgument` in the handler, before the SDK. (A plan-disabled alarm has no condition node — `AddressSpaceApplier` skips it — so the Part 9 Enable case cannot arise.) | `A_command_the_engine_refuses_returns_BadInvalidState` (now 8 methods, asserts the corrective event restores Acked/Confirmed/Enabled/Shelving/Comment/Retain) + `A_mixed_batch_…`: 9 red with the revert disabled | +| 2 | Broadcast BEFORE the local ask: the peer could apply what the caller was told failed (LWW brings it back) | **Fixed.** `ScriptedAlarmCommandDispatch.AskThenBroadcastAsync`: local verdict first; broadcast only on Applied / OutcomeUnknown (an unknown may still apply locally, so the peer must not be left behind). A refusal reached no engine ⇒ the revert and the definite failure are true pair-wide. | `ScriptedAlarmCommandDispatchTests` (4, new seam) | +| 3 | `EnsureLoaded()` before `_evalGate` ⇒ a command racing the first load threw InvalidOperationException ⇒ OutcomeUnknown | **Fixed.** The check is gone; under the gate `!_generationComplete` covers never-loaded (definite `ScriptedAlarmCommandRejectedException`), and a command racing the first load queues behind it and applies. | `A_command_racing_the_first_load_applies_after_it`: red with a pre-gate not-loaded throw restored | +| 4 | One host mailbox + SQLite per command; ack-all tail past 5 s; no in-flight cap | **Fixed + measured.** SDK 2.0.1 `StandardServer.CallAsync` awaits `MasterNodeManager.CallAsync` (decompiled state machine `d__123`), so no request thread is held. One Call's requests are settled sequentially; each request's bound starts when its ask is sent; ≤ 64 asks in flight node-wide, else `BadTooManyOperations` before anything applies. `ScriptedAlarmCommandThroughputTests` (one host, production LocalDb store with replication capture): **300 sequential acks 59 ms total (p50 0.1 ms, max 11.3 ms); 300 AddComments with 64 outstanding 49 ms total (p50 9.2 ms, max 24.3 ms)** — 200× inside the bound. | `Past_the_in_flight_cap_and_for_a_blank_comment_…` | +| 5 | Mixed-batch wire test | **Added** `A_mixed_batch_gets_per_item_status_in_order`: scripted Ack (refused) + native Ack + imported Ack + scripted AddComment (applied) + `Server.GetMonitoredItems` (core manager): statuses `[BadInvalidState, Good, Good, Good, BadSubscriptionIdInvalid]` in order, scripted asks in order with max concurrency 1, refused Ack reverted, native stands, in-flight 0. | — | +| L6 | Readiness inferred "failed" from the task fault | **Fixed.** `ScriptedAlarmEngine.HasCompleteGeneration` (volatile) is published on a load fault. | — | +| L7 | AsyncLocal slot captured by SDK timers | **Fixed** without `SuppressFlow` (which would also strip Activity/log scopes from SDK work): the slot is `Closed` the moment its SDK call returns, so a captured copy can never park an ask. | — | +| L10 | Remote bound floor stretched past `RemainingBudget` | **Fixed.** A budget below the 250 ms dispatch floor is refused unsent (`BadTimeout`, not dispatched). | — | + +### Gates (at `6004a5a56`) + +| Gate | Result | +|---|---| +| `dotnet build -c Release` | 0 warnings / 0 errors | +| OpcUaServer.Tests | 1460 passed, 2 skipped | +| OpcUaServer.IntegrationTests | 439 passed, 39 skipped (a first run concurrent with the live rig build failed 1 unrelated `ProjectedEventDeliveryWireTests` case — event delivery, no Call path; it passed in isolation 3/3 and in the full rerun; cause NOT established) | +| Runtime.Tests | 2121 passed, 3 skipped (a first run concurrent with the live rig build failed 1 unrelated `GrpcDataConfiguredDiscoveryWireTests` case — data-read failover, no condition-method path; it passed 2/2 class reruns and the full rerun; cause NOT established) | +| Host.Tests (incl. `GrpcDataV1CompatibilityTests`) | 503 passed | +| Commons.Tests / Core.ScriptedAlarms.Tests | 513 / 147 passed | +| Live `fu937-3` (`6004a5a56`) | F937 + A01 + A02 3/3 PASS; rig down |