diff --git a/docs/Client.CLI.md b/docs/Client.CLI.md index ee488d32e..24cbe420f 100644 --- a/docs/Client.CLI.md +++ b/docs/Client.CLI.md @@ -121,6 +121,8 @@ otopcua-cli read -u opc.tcp://localhost:4840/OtOpcUa -n "ns=3;s=DEV.ScanState" - | Flag | Description | |------|-------------| | `-n` / `--node` | Node ID to read (required) | +| `--max-age` | Maximum cached value age in milliseconds (0–2147483647; default 0). Value attribute only | +| `-a` / `--attribute` | Attribute to read instead of the value (case-insensitive): `Value` (default), `Historizing`, `AccessLevel`, `UserAccessLevel`, `DataType`, `ValueRank`, `ArrayDimensions`, `MinimumSamplingInterval`, `NodeClass`, `BrowseName`, `DisplayName`, `EventNotifier`. The output gains an `Attribute:` line. Used by the #921 gate to show a projected variable's `Historizing` is False when its origin lacks the history feature | Output: diff --git a/scripts/validation/grpc-data/README.md b/scripts/validation/grpc-data/README.md index 8b94ee0b9..3f9cd6578 100644 --- a/scripts/validation/grpc-data/README.md +++ b/scripts/validation/grpc-data/README.md @@ -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 [--only A01,A02,A04,A05,A08]` runs the scenarios (results `evidence/A4S-.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--results.json`. +## Pinned pre-H2 SOURCE — H05 against a real v1 origin (#921, opt-in) + +`rig.py up --run-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-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