Commit Graph

61 Commits

Author SHA1 Message Date
Joseph Doherty 6ab7050c38 test(grpc-data): gateway overlay sends a placeholder key (the client refuses an empty one) (#923) 2026-11-28 11:22:02 -05:00
Joseph Doherty a6ae08146d test(grpc-data): Gateway origin backend for the history rig — read-only AVEVA bindings, reverse/end-only H07, strict-ceiling H08 (#923) 2026-11-28 09:23:45 -05:00
Joseph Doherty dc5ed011ce test(grpc-data): A03 phase 1 permits exactly one RefreshRequired after the held-set takeover (still forbids extra condition events); docs: the deploy hold settles on any completion, is bounded, reports held, and resyncs once
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-25 04:07:58 -05:00
Joseph Doherty 7425b4c4fe test(grpc-data): A03 native D7 probe uses AddComment (a forwarded native ack froze opc-plc's EastTankYellow at the origin for the rest of a4s-4) 2026-11-25 02:28:20 -05:00
Joseph Doherty 42e3800f2c test(grpc-data): A4 part 2 — A03 gap via pause+stop, origin watcher + re-assert mirror check, latest-EventId positive control; duplicate-transition checks (A03/A06/A07); docs: folder-first event item still refused BadNotSupported (workaround: i=2253 first) 2026-11-25 02:04:30 -05:00
Joseph Doherty 9ea50c11b2 test(grpc-data): A4 live scenarios part 2 harness — A03 origin failover (same-incarnation stream reset via mapping revision bump, clear-and-re-raise in the gap, RefreshRequired, BadEventIdUnknown, refreshed EventId acks), A06 consumer Primary change across both nodes + second CONSUMER principal fixture-cli-alt, A07 consumer restart refresh-vs-barrier; CLI alarms prints EventType (names RefreshStart/End/Required) 2026-11-25 01:44:58 -05:00
Joseph Doherty c82b8683b0 docs(grpc-data): A4 live scenarios part 1 — A01/A02/A04/A05/A08 PASS on a4s-2, observations, part-2 harness notes 2026-11-25 01:37:21 -05:00
Joseph Doherty 6bf7dc8930 test(grpc-data): A4 scenarios — native alarm on EastTank?Yellow (cycles live), condition mappings WriteThrough (DataMappingOperationsInvalid), folders subscribe after demand opens, ConfirmedState read, origin audit for A08 denial 2026-11-25 01:23:14 -05:00
Joseph Doherty 304e8b1b7d test(grpc-data): A4 live scenarios part 1 harness — run-owned opc-plc --alm, native alarm + 2 referencing equipment + 3 condition mappings, UNS-only origin principal, no-grant consumer principal; probe condition-records; node-probe alert-transitions; conditions_scenarios.py (A01/A02/A04/A05/A08) 2026-11-25 01:05:53 -05:00
Joseph Doherty 969f3d4645 test(grpc-data): A4 manifest entry; condition-access tests wait for the barrier's RefreshRequired, not the barrier count
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-24 23:11:39 -05:00
Joseph Doherty 4e6535ee1d test(grpc-data): A3 live smoke — conditions profile makes the CONSUMER condition-bearing; conditions_a3_smoke.py acknowledges the imported ScalarHigh through the consumer 2026-11-24 17:25:31 -05:00
Joseph Doherty 2d0147f9da test(grpc-data): A3b consumer method port runtime tests (per-caller gate with real policy, mapping bit + timeout, serving incarnation, connection down unsent, lease refusal) + A3 manifest 2026-11-24 17:20:50 -05:00
Joseph Doherty 762b0fa15d test(grpc-data): A3 unit-phase manifest entry 2026-11-24 16:43:22 -05:00
Joseph Doherty 90db1e68b7 test(grpc-data): A2b smoke probe — a fresh operation id per run 2026-11-24 14:25:54 -05:00
Joseph Doherty 97c639b556 test(grpc-data): A2b smoke probe — scripted outcome is applied (2), method bits Primary-only, record comment/ClientUserId/marker 2026-11-24 14:25:45 -05:00
Joseph Doherty d63884e624 test(grpc-data): A2b smoke — conditions profile grants the method bits; probe remote ack (+ duplicate, header-less, Secondary); origin CLI alarms watcher counts exactly one ack 2026-11-24 13:55:45 -05:00
Joseph Doherty 84836dd5e2 test(grpc-data): A2b manifest — method tests, OpcUaServer NM tests, unknown-bit tolerance 2026-11-24 13:51:08 -05:00
Joseph Doherty d3a4e70f6f test(grpc-data): A2a smoke — address the UNS export root by EquipmentId + subject; publish tools and set the scenario deadline 2026-11-24 13:05:40 -05:00
Joseph Doherty 45a3eee9c8 test(grpc-data): A2a — revocation test awaits the worker teardown; README conditions profile 2026-11-24 12:42:17 -05:00
Joseph Doherty 6572ee83bc test(grpc-data): A2a — rig --conditions overlay (AlarmSubscribe exports + ScalarHigh scripted alarm), probe conditions scenario, conditions_smoke.py; X0/H2 tests move the 'future' bit off 64 2026-11-24 12:29:19 -05:00
Joseph Doherty 06c8740f94 test(grpc-data): A2a — unit-phase manifest key A2; probe carries history,conditions; metadata never carries AlarmSubscribe 2026-11-24 12:21:18 -05:00
Joseph Doherty 27a59716aa Merge A1 review round 1 fixes 2026-11-24 11:03:44 -05:00
Joseph Doherty 6c94a2ec0e test(grpc-data): rig dev literal DataConnections__ConditionKeySecret on both source services 2026-11-24 10:37:02 -05:00
Joseph Doherty 141e4412d2 test(grpc-data): A1 — real-driver signal rig (StartRig over IDriver), FOCAS end-to-end; driver test classes in the A1 manifest 2026-11-24 10:25:47 -05:00
Joseph Doherty eb688a4ee0 Merge A1 keys/placements/ids into A1 core 2026-11-24 10:02:34 -05:00
Joseph Doherty 81ebdf4fb0 test(grpc-data): A1 unit-phase manifest key 2026-11-24 09:39:27 -05:00
Joseph Doherty 066372ce41 test(grpc-data): A1 — condition ids, condition_key (m-T6), secret validation, UNS-only no-RawPath property test; A1 manifest key 2026-11-24 09:23:06 -05:00
Joseph Doherty 7498f1ce82 test(grpc-data): H4 review 7 — diagnostics snapshot round-trips on the cluster serializer; old-shape payloads decode
Round-trips NodeDiagnosticsSnapshot (OriginHistory, HistoryVariants and the other H4 members) through
the serializer Akka picks for the fleet-diagnostics reply, and decodes payloads stripped of the H4
members. The origin flag is renamed NoPeerTrafficYet (default false): Akka's JSON serializer fills a
missing constructor argument with the CLR default, so a payload without it must never claim it.
2026-11-24 08:41:52 -05:00
Joseph Doherty e3f21cb86c feat(grpc-data): H4 remote-history diagnostics and metrics
Consumer and origin history evidence for data connections (plan §6):
- DataConnectionHistoryDiagnostics: otopcua.dataconn.history.reads{variant,status_class,side} and
  otopcua.dataconn.history.continuations.active{side} on the exported OtOpcUa meter (the H2 origin
  counter sat on a private meter the host never exported); the plan's unknown-bits counter is the
  existing X0 otopcua.dataconnection.unknown_operations_dropped, reused
- per-connection projected answers by status class and open consumer continuations (settled on
  resume claim or release); origin sessions, open continuations and answers by status class
- negotiated features and advertised history variants/aggregates per connection
- AdminUI data-connections page renders them plus the dropped unknown-operation bits (#919)
- H4 unit-phase manifest key
2026-11-24 08:01:57 -05:00
Joseph Doherty 60e594dddd test(grpc-data): H06 held legs start right after a deploy (idle projection authority lapses)
The review re-run showed a re-browse served from the cached page does not
renew an idle projected node's 15 s metadata lease (value Read is refused the
same way; pre-existing v1 projection behaviour). Each held H06 leg now starts
right after a baseline restore + re-browse.
2026-11-24 02:19:03 -05:00
Joseph Doherty 8f630bec98 test(grpc-data): H3 gate re-browses before held reads (projection authority lapses with the metadata lease)
Found on the review re-run (H06d, SqlServer): a projected node read more than
MetadataLeaseMilliseconds (15 s) after its last browse/renewal is
BadUserAccessDenied — the same for a value Read (pre-existing v1 projection
behaviour, confirmed in the Runtime harness), not an H3 defect. The gate now
re-browses before each held read.
2026-11-24 02:02:49 -05:00
Joseph Doherty f26b12085f test(grpc-data): H3 gate — Float32 legs in H01/H03, H06 origin refusal over the wire
Seed profile historizes a Float32 (registers 30..31) driven through two values;
H01/H03 compare its projected rows/types with the origin (Good Singles). H06(a)
also reads the denied and the unhistorized node through the consumer's deployed
connection (node probe) so the origin's per-item refusal itself is compared,
not only the metadata that drops the access bit.
2026-11-24 01:51:01 -05:00
Joseph Doherty af06183412 fix(grpc-data): projected Processed values keep their aggregate's type
Found by the H3 live gate (H02): a Double Average of a UInt16 node was decoded
against the node's catalog kind and came back null + BadTypeMismatch per
interval (the result status stayed Good, which is why the wire test missed
it). Raw/AtTime values are still checked against the catalog kind; Processed
values accept any scalar kind. The wire test now asserts the interval's value.
Gate: re-browse the projected leaves after every deploy (a deploy retires cold
projected nodes; the same opaque ids come back).
2026-11-24 01:04:04 -05:00
Joseph Doherty 763669562e docs(grpc-data): H3 OPC UA HistoryRead on projected nodes; rig H3 gate recipe 2026-11-24 00:44:04 -05:00
Joseph Doherty 8341c7f4ae test(grpc-data): H3 live gate harness (H01-H06, SqlServer and QuestDB origins)
rig.py up --history --history-backend questdb adds a run-owned QuestDB for the
SOURCE historian. History seed profile: mappings grant HistoryRead, the CLI
principal's CONSUMER HistoryRead comes only from mapping-scoped grants, text is
historized (per-type aggregate refusal), new acl_permissions mutation.
history_gate.py drives H01-H06 through the Client CLI on projected NodeIds
resolved by browse from the mapping anchor, compares with the origin, and
restores the baseline after every scenario. The node probe reports the
origin's open history continuations (LocalDataServices.HistoryOpenContinuations,
now public).
2026-11-24 00:42:46 -05:00
Joseph Doherty 07eeea2bd5 test(grpc-data): H3 manifest key and OI end-to-end projected history wire tests
A real consumer OPC UA session HistoryReads a projected variable whose
projected half is forwarded to a real origin node manager's history port:
mixed batch keeps slots, page-through to completion, single use, session
close returns the origin store count to 0, mapped grant with ACLs on and off.
Manifest key H3 (OpcUaServer.Tests + Runtime.Tests; OI runs separately — the
runner accepts unit projects only).
2026-11-24 00:28:36 -05:00
Joseph Doherty 1d3f172f83 test(grpc-data): H2 smoke asserts the no-grant capabilities shape (review fix 7a) 2026-11-23 23:35:41 -05:00
Joseph Doherty a3e2f13815 test(grpc-data): H2 live smoke on the standalone rig - denied-principal modes, pinned-build check, parity; evidence 2026-11-23 23:31:30 -05:00
Joseph Doherty eb29360d47 test(grpc-data): opt-in H2 history profile for the standalone rig (SqlServer historian overlay, history seed grants, probe HistoryRead, smoke runner) 2026-11-23 23:13:31 -05:00
Joseph Doherty b66ee52086 test(grpc-data): H2 manifest gains the review-fix test classes 2026-11-23 22:31:15 -05:00
Joseph Doherty 9b5bb29619 test(grpc-data): H2 manifest key and artifact projection of the history fields 2026-11-23 21:02:04 -05:00
Joseph Doherty 880cd89fe9 test(grpc-data): real-origin variant of the recorded-v1-client gate (#918)
Replays recorded v1 requests against the real DataConnectionGrpcService over the
real origin stack (LocalExportCatalog.Compile from a DraftSnapshot with Raw + UNS
exports, DataCapabilitiesProvider, PartitionedSampleHub, LocalDataServices,
DataWriteExecutor, LocalSubscriptionService/DataSubscriptionSession). Only the
physical driver write dispatch, upstream acquisition, transport and clock are
faked. Goldens captured on pre-H2 master 1086593a; nothing normalised.

Runtime gains InternalsVisibleTo Host.Tests for the Subscribe/Write seams.
Class added to the X0 manifest; X0.md section 2 records real vs faked,
determinism, the perturbation proof and the rule for H2/A2/A3.
2026-11-23 20:39:24 -05:00
Joseph Doherty cfc051de21 test(grpc-data): H1 port coverage for index mapping, modified paging, limiter, deadline/cancel and the real session store (review 7) 2026-11-23 19:53:41 -05:00
Joseph Doherty b68c0a9af1 test(grpc-data): H1 unit-phase manifest key (new classes + existing history classes) 2026-11-23 19:36:21 -05:00
Joseph Doherty 4d29d539d8 feat(grpc-data): X0 review - tolerate any unknown bit at the artifact/catalog seam; drop diagnostics for exports and mappings
- ValidateDeployed ignores every bit outside Understood (understood subset still validated); P02's two
  1<<30 rows become 'tolerated, grants nothing'.
- UnknownOperationDrops: Warning + counter tagged kind=connection|export|mapping, counted once per row per
  accepted artifact change; collected under each lock, logged after release. Mappings masked at Stage.
- Surfaced via DataConnectionDiagnosticsSnapshot (DroppedUnknownOperations, MappingsWithDroppedOperations)
  and NodeDiagnosticsSnapshot.DroppedExportOperations.
- End-to-end test: 1<<30 through parse -> catalog compile -> mapping stage -> runtime apply.
- DataConnectionProtoContract.Validate() now runs at AddOtOpcUaDataConnections.
2026-11-23 18:28:48 -05:00
Joseph Doherty f441549a9e test(grpc-data): X0 unit-phase manifest key 2026-11-23 17:52:54 -05:00
Joseph Doherty 9c8c1054fa test: complete grpc data solution validation 2026-11-23 09:55:04 -05:00
Joseph Doherty 4cf3acb1c5 perf: measure grpc fanout and recovery bounds 2026-11-23 09:55:04 -05:00
Joseph Doherty 29fec57fac test: validate grpc data connections with local docker and opcua cli 2026-11-23 09:55:04 -05:00
Joseph Doherty 1df29a3124 feat: author and inspect grpc data connections 2026-11-23 09:55:04 -05:00