Commit Graph

1608 Commits

Author SHA1 Message Date
Joseph Doherty 1bc6a17ba9 docs(grpc-data): A1-core evidence — tests, mutations, driver-agent seams, scripted decisions 2026-11-24 09:49:31 -05:00
Joseph Doherty 3ad6d7e8c7 docs(grpc-data): A1-core progress log — publish actor + driver signal done 2026-11-24 09:35:15 -05:00
Joseph Doherty f49e4e100b docs(grpc-data): A1-core progress log — NM + hub done 2026-11-24 09:24:43 -05:00
Joseph Doherty f7b0ff34d0 docs(grpc-data): A1-core progress log skeleton 2026-11-24 09:15:27 -05:00
Joseph Doherty 27d1501b69 docs(grpc-data): H4 evidence — review table, gates and live re-run after the review fixes 2026-11-24 09:08:52 -05:00
Joseph Doherty b5509dfc48 docs(grpc-data): H4 review 3 — origin history reads are counted per item per wire call 2026-11-24 08:37:58 -05:00
Joseph Doherty 005720bd02 fix(grpc-data): H4 review 2 — a fresh origin reports 'no peer traffic yet', not 'unavailable'
The origin services are composed on the first peer call (they need the driver host actor), so
CaptureOrigin returned null until then and a fresh H4 origin read like a pre-H4 build. The DI
singleton now probes the same deferred history port for backend availability and reports zeros
with PeerServicesStarted=false; the page says 'no peer has called since start'.
2026-11-24 08:37:38 -05:00
Joseph Doherty ce648523ab docs(grpc-data): H4 evidence — correct the live run window 2026-11-24 08:28:59 -05:00
Joseph Doherty 25b4fc5c45 docs(grpc-data): H4 evidence — diagnostics, metrics, live SqlServer gate, Gateway leg blocked (#923) 2026-11-24 08:28:54 -05:00
Joseph Doherty 1efe084833 docs(grpc-data): H4 remote history supported (SqlServer/QuestDB verified, Gateway pending #923), diagnostics and metrics, CLI projected-history note 2026-11-24 08:02:41 -05:00
Joseph Doherty 0afef26941 docs(grpc-data): H3 evidence — live H01-H06 re-runs after review rounds 2 and 3 2026-11-24 07:48:03 -05:00
Joseph Doherty 713cbfb212 docs(grpc-data): H3 evidence — review round 3 fixes and gates 2026-11-24 07:30:30 -05:00
Joseph Doherty 7aaa98751a fix(grpc-data): H3 review round 2 — no batch probe; budget stop; orphan tokens; lease-retired status
1: the separate capability probe is gone (through the unary path a cancelled
probe recorded an endpoint failure and put the connection into discovery
backoff). Projected calls split at the deployed connection's batch size;
GrpcDataConnection splits again at the origin's advertised MaxBatchItems from
the capabilities the history call already negotiated, sharing the assembly
budget across sub-batches. 3: once the connection reports the assembly budget
spent, no further origin call is made. 4: an answer that never became an
outcome (mismatch, exception mid-answer) releases its new origin token. 5: a
cancel that is neither the caller's nor the deadline (a lease retired by a
redeploy) is BadNoCommunication / BadContinuationPointInvalid, not BadTimeout.
Flush delay on the access's clock. Docs: the request deadline covers the local
half too; shared non-local slots; split. Red/green for each by mutation.
2026-11-24 06:25:19 -05:00
Joseph Doherty 022b297836 docs(grpc-data): H3 evidence — review fixes, gates and the H01-H06 re-run on both backends 2026-11-24 02:35:25 -05:00
Joseph Doherty 86c0934ad6 refactor(client): HistoryReadPageAsync is abstract; docs for the H3 review fixes
The page API is a required member of IOpcUaClientService / ISessionAdapter (the
fakes implement it). DataConnections.md: projected slot sub-limit, per-node
fault handling, request-order runs and sub-batches. Client.CLI.md: --aggregate
now asks for the server's default aggregate configuration.
2026-11-24 01:49:46 -05:00
Joseph Doherty 99c873e514 docs(grpc-data): H3 evidence — gates and H01-H06 live on SqlServer and QuestDB origins 2026-11-24 01:21:57 -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 b50019db9c feat(cli): historyread --held-marker-file for hand-paged reads 2026-11-24 00:42:46 -05:00
Joseph Doherty 3b630ab1a9 feat(cli): historyread --page-size/--pause-after-page/--abandon/--release and --at-time
Hand-paged raw reads in one session print each page's status and continuation
(a refused resume is printed, not thrown), can hold the session across a
failover (resume when a file appears, then one fresh read), abandon a point
to the session close or release it explicitly. --at-time reads AtTime and
prints value types. Backed by IOpcUaClientService.HistoryReadPageAsync
(default-throwing interface member so existing fakes compile). Used by the
gRPC data H3 live gate on projected nodes.
2026-11-24 00:36:47 -05:00
Joseph Doherty 180bd76578 docs(grpc-data): H2 live smoke on final HEAD (h2-history-smoke-final) 2026-11-23 23:46:50 -05:00
Joseph Doherty 99598637d5 docs(grpc-data): H2 evidence - second review pass and gates 2026-11-23 23:34:53 -05:00
Joseph Doherty f3f0af87a2 docs(grpc-data): missing export grant is PERMISSION_DENIED for the call; ACL-denied/unhistorized/unknown nodes are 0x80720000 2026-11-23 23:32:26 -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 1d824da124 docs(grpc-data): precise wording for history limit changes 2026-11-23 23:21:11 -05:00
Joseph Doherty 3c89a49fa1 docs(grpc-data): H2 review2-7b/f - limiter share at N=1, limit changes clear live history sessions 2026-11-23 23:21:01 -05:00
Joseph Doherty d8712b871c docs(grpc-data): H2 evidence - gate results after review fixes 2026-11-23 23:04:43 -05:00
Joseph Doherty a6ca919fb2 docs(grpc-data): H2 evidence - review fixes, flake check 2026-11-23 22:31:48 -05:00
Joseph Doherty 3c5cbea931 fix(grpc-data): H2 review 2/3/4/9 - readiness is Ready()'s job; client faults never escape
Origin advertises history whenever it has a historian, so a not-ready/demoted endpoint answers HistoryRead
Unavailable (ungranted: PermissionDenied) and the consumer fails over like v1 Read instead of 'unsupported'.
Client: malformed/undecodable answers are endpoint failures (fresh read moves on); a resumed item is
ContinuationPointInvalid while a fresh item of the same batch is BadNoCommunication; a fresh read tries the next
endpoint when one lacks history; discovery backoff honoured; origin Cancelled without a caller cancel is BadTimeout
(no RecordFailure); caller cancel throws. The deployment lease maps inner/scope faults to BadNoCommunication.
The UnaryTimeout cap is documented next to the AdminUI field and in DataConnections.md.
2026-11-23 22:04:23 -05:00
Joseph Doherty 6a621423f4 fix(grpc-data): H2 review 8 - history timeout rides the artifact, not the trust-scope fingerprint
DataConnectionScopeRevision covers consumer/connection/secret scope only; limits (TimeoutMilliseconds and now
HistoryTimeoutMilliseconds) reach DB-less nodes and the LocalDb cache in the artifact's entity JSON. Dropping the field
also avoids a one-time scope-version bump on upgrade. Plan 6 corrected.
2026-11-23 21:53:58 -05:00
Joseph Doherty e0956a55d6 docs(grpc-data): H2 evidence and docker-dev smoke recipe 2026-11-23 21:44:42 -05:00
Joseph Doherty 9bcdf92ff3 docs(grpc-data): remote history for runtime consumers; plan 4.1 probe-vs-RPC negotiation decision 2026-11-23 21:07:25 -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 4c29eaf266 docs(grpc-data): H1 evidence 2026-11-23 20:20:38 -05:00
Joseph Doherty 100dd5ca44 fix(grpc-data): H1 peer takes consume before verifying, scopes snapshot the incarnation per request, wiring faults are BadInternalError (verification 1-3, 7b)
- a take computes its expectation only after consuming the record, so a
  throwing incarnation source cannot leave a token replayable;
- a PeerHistoryContinuationScope is per request and reads the serving
  incarnation once, so a request straddling a failover binds its next
  token to the incarnation it started under (Save never answers null);
- a non-owner principal or a blank/throwing incarnation source raises
  PeerHistoryContinuationWiringException, answered BadInternalError (not
  BadHistoryOperationUnsupported); plan H2 note added;
- ConnectionIncarnation documented as identity only.
2026-11-23 20:09:01 -05:00
Joseph Doherty 6c70c93c62 docs(grpc-data): H1 review notes for H2/H3 (details resend, store lifecycle, off-thread port, IVT/facade, transport chunking) 2026-11-23 19:54:08 -05:00
Joseph Doherty 4ded3b004b docs(grpc-data): X0 evidence — final review round results, follow-ups #918 #919 2026-11-23 19:11:59 -05:00
Joseph Doherty ffa70287ac docs(grpc-data): X0 gate results on 981c60784 after review fixes 2026-11-23 18:55:55 -05:00
Joseph Doherty 981c60784c docs(grpc-data): X0 review - real vs faked layers of the v1 gate, extension rule, extra tolerance sites, drop counter semantics 2026-11-23 18:28:53 -05:00
Joseph Doherty 59a1654dfe docs(grpc-data): X0 gate results 2026-11-23 18:14:06 -05:00
Joseph Doherty d89bc86194 docs(grpc-data): X0 evidence (rev-4 investigations + scratch harness) and mixed-version rollout note 2026-11-23 17:52:54 -05:00
Joseph Doherty 2e4e4063fd docs(plans): history+alarms plan rev 6-7 (F1-F6, G1-G5); Fable fifth pass
v2-ci / unit-tests (push) Waiting to run
RefreshEnd as the OpcUaClient known-signal with SequentialPublishing; signals
ordered behind alarm events incl. the deploy-deferral queue; real poll/document
signals for FOCAS/AbCip/Heidenhain/MTConnect; per-device signal scope (G1);
never-arriving signal stays Uncertain; activation marker on any un-ack edge;
EventId behaviour across origin failover made explicit. Fifth Fable pass:
X0 + H approved, A approved with one change (G1, now folded in).
2026-11-23 16:58:45 -05:00
Joseph Doherty 9a977a74fa docs(plans): history+alarms plan rev 5 (T1-T3, m-T4..m-T7); Fable fourth pass
v2-ci / unit-tests (push) Has been cancelled
MarkConditionsKnown delta, input/driver-signal-based known state with
per-driver timer backstop, origin activation marker, cluster-wide condition
key. Fourth Fable pass: X0 + H approved; A approved with changes (F1-F2 Major,
F3-F6) — small A1 edits.
2026-11-23 16:50:22 -05:00
Joseph Doherty 310b42e3fc docs(plans): history+alarms plan rev 4 — settle B5, node budget, state_known; Fable third pass
v2-ci / unit-tests (push) Has been cancelled
B5 settled: OtOpcUaNodeManager implements ICallAsyncNodeManager.CallAsync for
imported conditions, awaiting the owner with no Lock (verified against SDK
2.0.1). 48-49 nodes / ~157 KiB per imported condition; budgets recomputed.
state_known mechanism named; live measurements L1-L5 listed (§9.3). Third
Fable pass: X0 + H approved; A approved with changes (T1-T3). Pre-existing v1
defects: #916, #917.
2026-11-23 16:37:49 -05:00
Joseph Doherty 10a18ebd77 docs(plans): history+alarms plan rev 3 — fold in second Fable pass (N1-N8), settle Q1/Q2
v2-ci / unit-tests (push) Has been cancelled
Owner snapshot from live conditions (not the event callback); root-scoped
condition subscription; realm-local placement with a keyed condition_key;
NodeIds keyed on (connection, condition_key) so re-homing never changes them;
dedicated condition budgets; sixth mask site; repeated v1-client gates.
Q1: condition streams run under the connection service principal, re-gated per
local caller. Q2: re-home is NodeId-stable; unavoidable changes are accepted
as remove+add+RefreshRequired. Pre-existing v1 stable_source_id leak: #916.
2026-11-23 16:23:14 -05:00
Joseph Doherty 274d629fb4 docs(plans): gRPC data connections remote history + alarm forwarding plan, with Fable review
v2-ci / unit-tests (push) Waiting to run
Multi-phase plan (X0 preflight, H1-H4 remote HistoryRead, A1-A4 alarm/condition
forwarding); relay deferred to a separate design (§8). Two Fable review passes:
history approved, alarms approved with changes (N1-N5 to fold in before A1).
The 14-day v1 soak (G0) is a deferred, non-blocking deploy gate: #915.
2026-11-23 15:38:35 -05:00
Joseph Doherty 649f2ecd22 docs(index): bring docs/README.md up to date
v2-ci / unit-tests (push) Waiting to run
Full driver list (all 13 driver docs + fixtures) instead of Galaxy only and
'eight shipped drivers'; Raw/UNS dual namespace, roles, cluster mesh, data
connections and pluggable historian in the platform overview; index the
previously unlisted Raw, Telemetry, Historian, ui-consistency-validation and
v2 component docs; v1 archive links grouped.
2026-11-23 12:27:39 -05:00
Joseph Doherty 1c3a500cd5 docs(plans): grpc data connections design status — merged 95c5e484, not deployed
v2-ci / unit-tests (push) Has been cancelled
2026-11-23 12:22:00 -05:00
Joseph Doherty 1efc15a786 docs: sequence gRPC validation and scope section replays 2026-11-23 09:55:04 -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