5.5 KiB
#921 — H05 live gate against a real pre-H2 (v1) origin
The H3 gate replaced H05 ("v1 origin ⇒ unsupported") with an origin export that drops HistoryRead (H3.md "Not verified /
substitutions"). That removes Historizing before any wire call, so the plan §4.3 mixed-version row "new consumer → v1 origin"
was never exercised live. This gate runs it against a SOURCE pair built from a pinned pre-H2 commit.
Rig additions (scripts/validation/grpc-data/, README "Pinned pre-H2 SOURCE")
rig.py up --source-revision <sha>:resolve_pinned_source_revisionrequires X0a15912539to be an ancestor (a pre-X0 node rejects the whole snapshot once a newer bit is authored), H2ef938b435not to be one, and norpc HistoryReadin that revision'sdata_connection.proto.0c86edc19(the #918 merge, between H1 and H2 on master's first-parent line) passes; it is post-X0 (tolerant readers, feature header parsed withSupportedFeatures = None), itsLocalDataServices.Implemented()has no HistoryRead and its proto has no HistoryRead RPC — a genuine v1 origin.- The rig
git archives it into the run folder, adds one rig file (node-probe/WireTap.cs, ASP.NET Core only, compiled unchanged against the pinned tree) and builds the pinned tree's own Dockerfile (compose.source-pinned.yml). CONTROL and CONSUMER run this checkout.verify_candidatechecks SOURCE stamps against the pinned revision and export hash, the other four against this checkout. Unit tests:PinnedSourceRevisionTests(6, incl. the real0c86edc1/ H2 commits). - Wire tap (
GRPC_DATA_WIRE_TAP=1, only on the pinned SOURCE): per data-listener request, one line at arrival (gRPC path,x-otopcua-data-featuresvalue, remote address — before authentication) and one at completion (gRPC status). No credential or body. Client.CLI read --attribute <name>(new;Historizing,AccessLevel, …) for a real OPC UA attribute read.history_v1_origin_gate.py(H05V1) and probe--scenario history-v1-origin.
Result — run h05v1-1, 2026-11-28 15:20–15:26 UTC: PASS, 25/25 checks
rig.py up --history --source-revision 0c86edc1 --timeout 1500 → seed → 80 s → deploy --timeout 300 (all six nodes
applied the HEAD-built artifact, including the pinned SOURCE pair) → history_v1_origin_gate.py → down (0 containers,
0 volumes, 0 images left). SOURCE has a SqlServer historian and historizes counter (the --history overlay).
| Assertion | Observed |
|---|---|
| builds | source-1/2 stamp 0c86edc194bf… (pinned export hash 1111f654…); control-*, consumer-* stamp HEAD cdbbe22a9 |
projected Raw + UNS counter Historizing |
False (Good) on both; AccessLevel = 1 (CurrentRead, no HistoryRead bit) |
control: origin's own counter |
Historizing True, AccessLevel = 13 (HistoryRead bit set); projected value Read Good on both realms |
historyread on projected Raw / UNS counter |
HistoryRead of ns=4;s=p1.… failed: BadHistoryOperationUnsupported (0x80720000). (UNS ns=5 same) |
control: historyread on the origin's node |
Good, 30–31 rows in the window |
| diagnostics (CONSUMER page, prerendered) | Negotiated features none (v1 behaviour) · origin history not advertised · projected history reads good 0 · uncertain 0 · bad 0 |
| diagnostics (SOURCE page) | Exports with dropped unknown operation bits: export-raw: HistoryRead; export-uns: HistoryRead — this node's build is older than a feature authored here; the dropped bits grant nothing until the node is upgraded. |
| tap, consumer window (12 arrivals, all from the two consumer containers, no other remote) | methods GetCapabilities, Browse, GetMetadata, Read (control: the consumer's v1 traffic is there); no HistoryRead / CallConditionMethod; the only arrivals carrying the feature header are the capability probes (history,conditions, plan §4.1: the probe always asks) |
tap positive control (probe history-v1-origin, both origins) |
capabilities with history,conditions byte-identical to capabilities without (operations 31, no history, no conditions); a HistoryRead with header history arrives at the tap with that header and completes grpc-status 7 (PERMISSION_DENIED) |
Finding (harness expectation, not a product defect). The first pass (same run) failed two expectations of mine, both corrected in the harness and re-run green:
- A sent HistoryRead is refused PERMISSION_DENIED, not the UNIMPLEMENTED the issue/plan text guessed. At
0c86edc1,DataConnectionEndpointsadmits only its six v1 methods (GetCapabilities, Browse, GetMetadata, Read, Write, Subscribe) on the data listener and refuses any other path before gRPC routing. A current consumer never sends one (the tap shows it), so this only affects a hand-rolled caller; documented inDataConnections.md. - The first projected value Read answered
BadWaitingForInitialData; the gate now retries only that status (bounded 60 s), as every mapped positive read on this rig does (README).
The re-run used --pinned-build (harness and probe source edited after up; images unchanged, probe republished).
Evidence (run folder removed by down; copies taken before): evidence/H05V1-results.json, probe/source-1/wire-tap.jsonl.
Not covered
- Subscribe / Write from the consumer to the v1 origin did not occur in the window (the gate reads via the CLI); the H2/A2 recorded-v1-client gates cover the header-less shapes of those calls.
- Conditions against a v1 origin (
--conditionswith a pinned SOURCE) were not run.