docs(grpc-data): rig README for the pinned SOURCE / H05V1 gate and A09; CLI read --attribute (#921, #927)

This commit is contained in:
Joseph Doherty
2026-11-28 09:34:15 -05:00
parent a0901ddf39
commit cdbbe22a9d
2 changed files with 37 additions and 0 deletions
+35
View File
@@ -112,6 +112,9 @@ used) and seeds a SOURCE `OpcUaClient` driver `opcua` → device `opcplc` with a
principal `fixture-cli-nogrant` has no NodeAcl row. `python3 scripts/validation/grpc-data/conditions_scenarios.py --run-id <id>
[--only A01,A02,A04,A05,A08]` runs the scenarios (results `evidence/A4S-<id>.json`, `A4S-results.{json,md}`); see
`docs/plans/evidence/grpc-data-ext/A4.md` "Live scenarios (part 1)". `conditions_a3_smoke.py` still passes on this profile.
`--only A09` (#927) is the driver-failure ack revert: it `docker compose pause`s the run-owned `opcplc` just before a remote ack of
`EastTankYellow`, so the OpcUaClient driver's upstream Acknowledge times out and DriverHostActor reverts the condition; it
unpauses in its own `finally` (and again in the per-scenario restore). See `docs/plans/evidence/grpc-data-ext/A3-927.md`.
## H3 projected-history gate (opt-in)
@@ -139,6 +142,38 @@ primary. The continuation scenarios use the CLI's hand-paged mode (`--page-size`
(`originAccounting.historyOpenContinuations`). Every scenario restores the baseline. Results:
`evidence/H3-history-<backend>-results.json`.
## Pinned pre-H2 SOURCE — H05 against a real v1 origin (#921, opt-in)
`rig.py up --run-id <id> --history --source-revision 0c86edc1` builds the SOURCE pair from a pinned commit; CONTROL and
CONSUMER stay on this checkout. The revision must contain X0 (`a15912539`, tolerant readers — a pre-X0 node rejects the whole
data-connection snapshot once a newer bit is authored) and must not contain H2 (`ef938b435`); its `data_connection.proto` must
have no `HistoryRead` RPC. `0c86edc1` (the #918 merge, between H1 and H2) passes. The rig `git archive`s that commit into the
run folder (`pinned-source/`), copies in one rig file — `node-probe/WireTap.cs`, ASP.NET Core only — and builds it with the
pinned tree's own Dockerfile (`compose.source-pinned.yml`, image `otopcua-grpc-data-source-pinned:<run-id>`, run-labelled, removed
by `down`). The manifest records `source_pinned` (revision, export hash); `verify_candidate` checks the SOURCE stamps against it
and the export against its recorded hash, and everything else against this checkout.
The wire tap (`GRPC_DATA_WIRE_TAP=1`, set only by that overlay) appends to the node's restricted probe directory
(`probe/source-N/wire-tap.jsonl`) one line per data-listener request at arrival (gRPC path, `x-otopcua-data-features` value,
remote address) and one at completion (gRPC status). No credential or body is recorded.
```bash
python3 scripts/validation/grpc-data/rig.py up --run-id h05v1 --history --source-revision 0c86edc1 --timeout 1500
python3 scripts/validation/grpc-data/rig.py seed --run-id h05v1
sleep 75
python3 scripts/validation/grpc-data/rig.py deploy --run-id h05v1 --timeout 300
python3 scripts/validation/grpc-data/history_v1_origin_gate.py --run-id h05v1 # evidence/H05V1-results.json
python3 scripts/validation/grpc-data/rig.py down --run-id h05v1
```
`history_v1_origin_gate.py` asserts the plan §4.3 row "new consumer → v1 origin": projected `counter` (Raw and UNS)
`Historizing` False and no HistoryRead `AccessLevel` bit (`Client.CLI read --attribute`), `historyread` ⇒
`BadHistoryOperationUnsupported`, the consumer page "Negotiated features none (v1 behaviour) · origin history not advertised",
and — from the tap — no consumer call but the capability probe carries the feature header and no HistoryRead/CallConditionMethod
reaches the origin. Controls: the origin's own `counter` is historizing and its `historyread` returns rows; the consumer's v1 calls
are in the same tap window; the probe's `--scenario history-v1-origin` sends new-shape calls (capabilities with the header are
byte-identical to without; HistoryRead ⇒ `UNIMPLEMENTED`) and the tap records them.
## Scenario authoring and node probes
The seeder is available through `LocalRig.seed_helper(action, *arguments)`. Its