Commit Graph

5467 Commits

Author SHA1 Message Date
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 de51886d6a test(grpc-data): A3b over-the-wire imported-condition methods (once + join, child Call gate, EventId/native Confirm unsent, N6 re-binding, L3 lock-freedom, mixed base.Call batch, timeout/outcome mapping) 2026-11-24 17:18:35 -05:00
Joseph Doherty 28098a8d32 feat(grpc-data): A3b consumer method port — per-caller AlarmAcknowledge/AlarmConfirm gate, mapping timeout, stream serving incarnation, lease condition methods, host wiring 2026-11-24 17:11:05 -05:00
Joseph Doherty c1be5725b9 feat(grpc-data): A3b ICallAsyncNodeManager — claim imported-condition calls, base.Call unchanged for the rest, lock-free remote dispatch, EventId registry gate + N6 re-binding 2026-11-24 17:11:05 -05:00
Joseph Doherty b5ab6e7cde docs(grpc-data): A3a evidence — progress, implementation, tests, mutation record, deviations, gates 2026-11-24 17:00:02 -05:00
Joseph Doherty 762b0fa15d test(grpc-data): A3 unit-phase manifest entry 2026-11-24 16:43:22 -05:00
Joseph Doherty bdc29ac25a test(grpc-data): A3 extends the recorded-v1-client gate — fake origin emits begin/total, info record, snapshot_complete, removed delta 2026-11-24 16:42:13 -05:00
Joseph Doherty 855f725660 test(grpc-data): A3a classifier guard across authorizer entry points + publish-time event rewriter 2026-11-24 16:40:43 -05:00
Joseph Doherty 4b74ac9cc2 test(grpc-data): A3a ProjectedConditionAccess runtime tests (capacity, barrier, host caps, 2000 conditions, version rule, lifetime, timeout, primary placement, gate, linger) 2026-11-24 16:38:57 -05:00
Joseph Doherty de381157cf test(grpc-data): A3a over-the-wire imported-condition events (exactly-once, identity, A3-SEC, child Read, N4, N7, resync, T2) + OwnsNamespace covers mapped/conditions 2026-11-24 16:35:01 -05:00
Joseph Doherty 8d6c94a3b3 feat(host): wire A3 ProjectedConditionAccess (DI, node-manager sink, host condition caps) 2026-11-24 16:30:03 -05:00
Joseph Doherty 4f6e26dd4e feat(grpc-data): A3 ProjectedConditionAccess — per-connection demand, snapshot barrier, condition budget, version rule, re-snapshot lifetime, mapping gate 2026-11-24 16:28:45 -05:00
Joseph Doherty 1ff18caa79 feat(opcua): A3 ProjectedConditionRegistry — mapped/conditions namespace, lazy symmetric notifier wiring, gated marked delivery, publish-time re-gating, refresh replay 2026-11-24 16:25:17 -05:00
Joseph Doherty a75ea95e25 refactor(opcua): share condition node factory + state-apply/delta gate (A3 §5.3 prerequisites) 2026-11-24 16:19:24 -05:00
Joseph Doherty e15bd7c9f9 feat(grpc-data): A3 IProjectedConditionAccess / IProjectedConditionSink contracts 2026-11-24 16:18:25 -05:00
Joseph Doherty 83c7e5863c Merge A2: origin condition streaming + remote condition methods (CallConditionMethod), review + security fixes, live conditions_smoke PASS
v2-ci / unit-tests (push) Failing after 3h2m15s
2026-11-24 16:08:45 -05:00
Joseph Doherty 83e607d437 docs(grpc-data): A2b security review fixes — findings, resolutions, red/green, gates, live conditions_smoke a2s1-cond-1 PASS 2026-11-24 16:08:07 -05:00
Joseph Doherty 91f1f72971 fix(grpc-data): A2b security review — outcome-unknown after dispatch, per-principal registry cap, audit category + sanitising, monotonic activation sequence, bounded Lock wait, consumer cancel = OutcomeUnknown 2026-11-24 15:41:24 -05:00
Joseph Doherty 16ae92258f docs(grpc-data): A2 review round 1 — live conditions_smoke a2r1-cond-1 PASS 2026-11-24 15:29:49 -05:00
Joseph Doherty 5d91d886df docs(grpc-data): A2 review round 1 evidence — findings, resolutions, red/green, A1 root cause, gates 2026-11-24 15:21:57 -05:00
Joseph Doherty 0b827a3f81 docs(grpc-data): plan §5.1/§5.5 — readiness is withheld snapshot_complete; a deploy ends the condition stream; removal/begin bypass the version gate; A3 removes an over-total item 2026-11-24 14:59:39 -05:00
Joseph Doherty c709fbc1c4 test(grpc-data): A2 review N5 — the waiter test counts condition-queue waits only (red on revert: 19 vs ≤ 1) 2026-11-24 14:59:01 -05:00
Joseph Doherty 20bf937259 fix(grpc-data): A2 review S2/S3/S4/S5/N1/N2/N4/N5/N6 — bounded, effective-named, fair condition streams
S2: one condition item per (stream, root) (InvalidArgument + diagnostic), SubscriptionSessionLimits
    .MaxConditionItems (32) per stream (LimitExceeded), each snapshot's estimated bytes charged against
    the principal's snapshot memory budget until its last chunk is delivered (refused ⇒ retried).
S3: a native condition in a UNS listing is named by its placement's browse name (effective name);
    a raw-derived message (raw name, raw leaf, RawPath) is replaced by it.
S4: the item limit rides ConditionItemScope and is re-read with every listing.
S5: chunk budget = min(256 KiB, MaxPendingBytes, MaxMessageBytes) − frame overhead; an oversized
    record's free text is truncated (no split surrogate); one that cannot fit resets with a diagnostic.
N1: one queued v1 frame after every 8 condition frames.  N2: removal/snapshot-begin bypass rule documented.
N4: min(limit, DefaultMaxConditionsPerHold) per Lock hold.  N5: losing channel waits are reused.
N6: ConditionTestAssertions deleted; probe seams reduced to three primitives; class doc moved back.
S1 (tests): the fixture 'deploy' test renamed to what it is (a listing swap without an attempt);
    a real LocalCatalogCoordinator republish ends the stream.
2026-11-24 14:56:49 -05:00
Joseph Doherty 7694eb67b2 perf(grpc-data): A2 review N3 — a caught-up hub reader skips the partition scan
ConditionStateHub.Read scanned the whole partition under its gate on every tick even when the cursor
was at the tail. The partition now records its tail version; a reader at or past it returns empty.
2026-11-24 14:56:49 -05:00
Joseph Doherty 69014cc4f8 fix(grpc-data): A2 review B1 — a full condition queue back-pressures instead of resetting the stream
budget = Max(1, …) pulled a chunk on a full queue every 100 ms tick, TryWrite failed and the stream was
reset, so a backlog above MaxPendingFrames chunks never completed its snapshot. Max(0, …) produces
nothing until the consumer drains. Test: 25-chunk backlog, stalled sink, 20 ticks ⇒ no reset, snapshot
completes (red before).
2026-11-24 14:48:28 -05:00
Joseph Doherty fbf9f7b898 fix(grpc-data): a raised F5 diagnostic follows the pending set down after a late native transition
The A1 phase-run failure of A_native_transition_leaves_the_F5_pending_set was a real defect: when the
600 ms F5 window closed before the transition was processed (a loaded run), the diagnostic kept the
count from when it was raised (2) although the node manager held the condition established (1).
New deterministic test closes the window first; red before, green after.
2026-11-24 14:47:36 -05:00
Joseph Doherty 95d90c1933 docs(grpc-data): A2b live smoke a2b-cond-2 PASS (remote ack: one origin event, acked delta, audit), AdminUI editor driven live 2026-11-24 14:35:06 -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 3a2c426beb docs(grpc-data): A2b evidence — tests, mutation checks, gates 2026-11-24 14:18:21 -05:00
Joseph Doherty 73c9f974d7 test(grpc-data): A2b — X0 staging test's unknown bit moves off AlarmConfirm 2026-11-24 13:57:11 -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 e29d9559ad docs(grpc-data): A2b evidence — what changed, decisions, deviations 2026-11-24 13:53:49 -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 7dfe517ff6 test(grpc-data): A2b — pre-authorization bound to its own context (role-less local session denied); mutation-checked 2026-11-24 13:49:28 -05:00
Joseph Doherty 4e1d46fd65 test(grpc-data): A2b recorded-v1 gate (fake origin) — CallConditionMethod only with conditions; goldens unchanged 2026-11-24 13:46:50 -05:00
Joseph Doherty 92f51b8dbc test(grpc-data): A2b recorded-v1 gate (real origin) — method bits granted, header-less golden unchanged, CallConditionMethod FAILED_PRECONDITION without conditions 2026-11-24 13:45:41 -05:00
Joseph Doherty d8d5487b21 test(grpc-data): A2b P + tolerance — Galaxy opt-in rides the artifact; 'unknown' bits move off 128/256 2026-11-24 13:44:30 -05:00
Joseph Doherty a75d15ad5d test(grpc-data): A2b U — method bits authorable, shelve not, Galaxy opt-in default off 2026-11-24 13:43:28 -05:00
Joseph Doherty 8d5077c07d test(grpc-data): A2b F — method bits authorable, shelve reserved, Galaxy opt-in rule, deploy-gate capacity warning 2026-11-24 13:41:51 -05:00
Joseph Doherty 9444044540 test(grpc-data): A2b tolerance pins — method bits understood, AlarmShelve the only reserved bit 2026-11-24 13:40:23 -05:00
Joseph Doherty ef91b4d28f test(grpc-data): A2b codec pins — CallConditionMethod 8th RPC with §4.2 numbers, method codecs, method bits need field 17 2026-11-24 13:39:29 -05:00
Joseph Doherty 11b94ff2b2 test(grpc-data): A2b Runtime — origin facade (Primary, Galaxy opt-in, UNS subject, join, audit) and consumer client (no retry, OutcomeUnknown) 2026-11-24 13:38:36 -05:00
Joseph Doherty dcb9f8ccbd test(grpc-data): A2b NM — remote ack once, revert on origin+stream, AddComment stored, Primary/standby, T3 marker 2026-11-24 13:35:39 -05:00
Joseph Doherty d6f189ec6d docs(grpc-data): A2b progress log 2026-11-24 13:33:41 -05:00
Joseph Doherty f6c9c9d7fe feat(grpc-data): A2b — consumer CallConditionMethodAsync (no retry, OutcomeUnknown after send), validator + AdminUI method bits, Galaxy opt-in checkbox, capacity warnings at the deploy gate 2026-11-24 13:33:36 -05:00
Joseph Doherty 1e78c64b92 feat(grpc-data): A2b — CallConditionMethod RPC, origin TryExecuteConditionMethod through the wrapped SDK handler, bits 128/256 understood, Galaxy service-ack rule, operation registry + audit log 2026-11-24 13:31:03 -05:00
Joseph Doherty 81cee9b5e8 docs(grpc-data): A2a evidence — tests, mutation checks, gates, live smoke a2a-cond-2 PASS 2026-11-24 13:20:24 -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