From 95d90c19339efeaba8aee44b484592245289f626 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 24 Nov 2026 14:35:06 -0500 Subject: [PATCH] docs(grpc-data): A2b live smoke a2b-cond-2 PASS (remote ack: one origin event, acked delta, audit), AdminUI editor driven live --- docs/plans/evidence/grpc-data-ext/A2.md | 44 ++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/docs/plans/evidence/grpc-data-ext/A2.md b/docs/plans/evidence/grpc-data-ext/A2.md index 6362e9c0f..618dbdd32 100644 --- a/docs/plans/evidence/grpc-data-ext/A2.md +++ b/docs/plans/evidence/grpc-data-ext/A2.md @@ -6,7 +6,8 @@ - `f6c9c9d7` consumer client call, validator/AdminUI bits + Galaxy checkbox, capacity warnings at the deploy gate. - Tests: NM, Runtime facade + client, codecs, F/P/U, both recorded-v1 gates, manifest — committed; mutation checks done. - Gates done (see "A2b — tests and gates"); X0 found one more test using 256 as "unknown" (fixed). -- Next: live smoke run `a2b-cond-1` (`conditions_smoke.py` remote ack), AdminUI drive, final notes. +- Live smoke PASS (run `a2b-cond-2`, build `90db1e68`), AdminUI editor driven live (save round-trips) — **A2b complete**, + pending review. Not merged, not pushed. ## A2b — what changed @@ -130,6 +131,47 @@ disabled ⇒ red. | OpcUaServer.Tests (same filter) | 1447 passed, 1 skipped | | AdminUI / Configuration / Commons / Core.Abstractions | 2703 / 339 / 512 / 860 passed | +## A2b — live smoke (rig) — run `a2b-cond-2`, PASS + +Standalone rig (OrbStack), build `90db1e68b` (clean tree, `source_tree_hash` `560a15cd4f0fe8ba…`), normal build-hash checks. + +```bash +python3 scripts/validation/grpc-data/rig.py up --run-id a2b-cond-2 --conditions --timeout 1200 +python3 scripts/validation/grpc-data/rig.py seed --run-id a2b-cond-2 +# ~85 s for CONTROL's ClusterNode contact refresh +python3 scripts/validation/grpc-data/rig.py deploy --run-id a2b-cond-2 --timeout 300 +python3 scripts/validation/grpc-data/conditions_smoke.py --run-id a2b-cond-2 +python3 scripts/validation/grpc-data/rig.py down --run-id a2b-cond-2 +``` + +The conditions profile now grants 64|128|256 on the SOURCE exports. The probe acknowledges the active scripted alarm through +`CallConditionMethod` (placement from the listing, the record's marker, the selected serving incarnation, `on_behalf_of` +carrying a BEL), repeats the same operation id, tries it header-less, waits for the acked delta, then clears the alarm. +`conditions_smoke.py` runs the CLI `alarms --refresh` against the SOURCE Primary's own OPC UA endpoint meanwhile. + +| Item | Observed | Result | +|---|---|---| +| Capabilities, Primary (source-1) | without header ops 31, no field 17; with `conditions` ops 479 (= 31+64+128+256), `{rootScopeItems, methods 7, maxConditions 1000}` | PASS | +| Capabilities, Secondary (source-2) | with header ops 87 (64 only — method bits stripped off-Primary), no methods mask | PASS | +| Remote ack (Primary, scripted ScalarHigh via its UNS placement `source-scalar-high`) | state 2 (applied), status Good; duplicate op id ⇒ identical answer; header-less ⇒ `FailedPrecondition` | PASS | +| Stream | snapshot v3 active/unacked (marker `0fa526c0:1`) → delta v4 active/**acked**, comment "A2b remote ack", ClientUserId `fixture-consumer` (the service principal) → v5 identical state-only record (the engine's re-projection; no event) → v6 inactive/acked; marker unchanged throughout; no RawPath | PASS | +| **Origin's own subscriber** (CLI `alarms` on source-1) | ScalarHigh events: Active/Unacknowledged (refresh), **exactly one Active/Acknowledged**, Inactive/Acknowledged, Active/Unacknowledged (the probe's restore) | PASS | +| Audit log (source-1 container) | `Data-connection condition method Acknowledge by fixture-consumer (key …) on Uns:…:source-scalar-high op a2b-ack-source-1-…: DriverConfirmedSuccess 0x00000000; on behalf of probeoperator` and the same line `(joined)` — BEL stripped | PASS | +| Secondary | `RejectedBeforeDispatch`, `BadInvalidState` "This server is not the redundancy Primary."; condition item `Unavailable` | PASS | +| Teardown | no run-labelled containers, volumes or networks left | — | + +Earlier attempt `a2b-cond-1` (kept as history): the remote ack, stream and origin count were already right (origin: exactly one +Active/Acknowledged), but the probe expected the NATIVE outcome (4) for the scripted alarm, required exactly one acked delta +(the engine's state-only re-projection makes two records, one event) and required the method bits on the Secondary; probe +fixed (harness only), the edit changed the image inputs, so the run was torn down and `a2b-cond-2` brought up fresh. + +**AdminUI driven live** (CONTROL admin port, login disabled, Chrome): `/clusters/SOURCE/data-connections` server-renders +the exports; the export editor shows AlarmSubscribe / **AlarmAcknowledge / AlarmConfirm** and **"Allow remote acknowledge of +Galaxy alarms"** with the seeded values. Save round-trip 1 (export-uns): Galaxy opt-in on, AlarmConfirm off, conditions per +subscription 777 ⇒ "Draft saved"; after a reload the editor shows exactly those values. Save round-trip 2 (CONSUMER map-uns): +condition method timeout 4321 ms ⇒ saved, reload shows 4321; the mapping editor lists the two method bits. (Drafts only; no +deploy of the edits.) + # A2a (condition streaming) — progress log and evidence Stage A2a of phase A2 in `docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md` (revision 7): condition items on