Commit Graph

1564 Commits

Author SHA1 Message Date
Joseph Doherty 923c2511a3 feat(grpc-data): A1 ConditionStateHub — bounded partitions, per-reader reset, snapshot_complete readiness, F5 diagnostic; wired to the node manager 2026-11-24 09:24:28 -05:00
Joseph Doherty 6836efaeb9 feat(grpc-data): A1 origin condition state in the node manager — delta callback, state_known, activation marker, sliced snapshot, MarkConditionsKnown sink seam, IAlarmInitialStateSignal 2026-11-24 09:22:08 -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 2fba036176 fix(grpc-data): H4 review 5+6 — AdminUI display: 'unavailable' without handshake evidence; every bit rendered
HistoryServed reads 'unavailable' when neither features nor variants were reported. Features()
and DroppedBits() render every set bit across all 32 (bit 31 included), named when known and hex
otherwise, so an unknown bit is never hidden beside a known one (#919).
2026-11-24 08:39:46 -05:00
Joseph Doherty 79cf50d50e fix(grpc-data): H4 review 4 — an origin chunk holding its page cursor is one open continuation, not two 2026-11-24 08:39:02 -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 2f11a9c609 fix(grpc-data): H4 review 1 — count every projected history answer where its status is set
The consumer reads counter was fed from the gateway's outcomes, so limiter refusals, a spent
deadline, a count mismatch and refusals before the gateway were never counted, and a serve-time
fault after the gateway returned counted Good. The node manager now reports each projected node
once with the status the client sees (IProjectedHistoryAccess.RecordAnswered); a fault that
escapes to the SDK counts every projected node of the request Bad. Variant gains 'modified'.
2026-11-24 08:35:55 -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 f1b23abcb4 fix(grpc-data): H3 review round 3 nits b/c/d — no origin cursor stranded on Bad, scope moves or a serve-time throw
- b: ProjectedHistoryAccess releases the prior origin cursor on any Bad answer
  to a resumed node (and on a mismatched answer) — an unsent refusal left it
  open at the origin; idempotent.
- c: DataConnectionDeploymentLease, when its scope moves while a history
  answer is in flight, releases the dropped answer's new continuations (best
  effort); resumed items are BadContinuationPointInvalid, fresh ones
  BadNoCommunication.
- d: ProjectedHistoryRead: a throw while serving outcome i (FromClr on an
  unconvertible value, a store fault) releases outcome i's cursor unless the
  store already owns it, and every later outcome's.

Each red on revert (mutation).
2026-11-24 07:15:16 -05:00
Joseph Doherty 30d66fdc7c fix(grpc-data): H3 review round 3 S5 — a cancel by redeploy/shutdown is not a timeout
GrpcDataConnection.ServeAsync mapped RpcException(Cancelled) without a caller
cancel to BadTimeout even when the linked channel-retired / scope / shutdown
token fired. That case is now BadNoCommunication (resumed:
BadContinuationPointInvalid), releases held chunk tokens and stops a split
request sending further sub-batches. ProjectedHistoryAccess's outer catch no
longer reads any escaped OperationCanceledException as a timeout: only the
caller's cancel or the deadline is BadTimeout, otherwise classified as
FailCancelled does. Red on revert (client test: scope moved mid-call); the
outer-catch change has no dedicated test (nothing reachable throws past
ReadGroupAsync's own catch).
2026-11-24 07:11:06 -05:00
Joseph Doherty 9c2d6273aa fix(grpc-data): H3 review round 3 S1/S2/S3/S6 — sub-batch split never strands tokens or breaks the origin's admission
GrpcDataConnection.ServeSplitAsync / ServeAsync:
- S2: each sub-batch carries at most one item per 256 B of the budget left
  (the origin's count <= MaxBytes/256 admission rule); the rest is
  BadTooManyOperations marked ConsumerBudgetRefused, unsent, and an unsent
  resumed item's origin token is released. Was: an RpcException, a recorded
  endpoint failure and BadNoCommunication.
- S3: a budget refusal inside a sub-batch's own assembly latches the budget
  spent; nothing more is sent.
- S1: anything escaping a later sub-batch (a caller cancel, a fault) disposes
  the collected answers and releases their new continuations.
- S6: an escape from the assembly (Verify failure, item mismatch) releases
  finished nodes' continuations, held chunk tokens and the rejected
  response's tokens; a later sub-batch's endpoint fault is RecordFailure'd,
  never swallowed.
- Nit a: after a sub-batch endpoint failure nothing more is sent to that
  endpoint; the rest is BadNoCommunication / BadContinuationPointInvalid.

Each test is red on revert of its fix (mutation).
2026-11-24 07:08:12 -05:00
Joseph Doherty 34e72de3d8 fix(grpc-data): H3 review round 3 S4 — budget stop keys on a typed consumer marker, not the diagnostic
ProjectedHistoryAccess stopped the request on any BadTooManyOperations whose
diagnostic contained "budget", which also matched the ORIGIN's "remainder
budget is full" refusal and then refused later nodes, including Good ones.
DataHistoryReadResult gains an internal ConsumerBudgetRefused flag (never on
the wire) set only by the gRPC connection's own assembly refusal. Red on
revert: the origin refusal of A refused B.
2026-11-24 07:01:28 -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 37cbeff480 fix(grpc-data): H3 review round 2 — one non-local history slot share; claim loop never leaks
Remote peers reading this node (OriginHistoryPort) and this node's projected
reads now draw on ONE N - max(1, N/4) semaphore, created together with the
N-slot batch limiter from the same N, so both together can never take the
last (local) slot (two independent first-use sizings could also disagree —
which made OriginHistoryLimiterTests order-dependent and hang the earlier
run). The projected claim loop releases every claimed cursor if anything
throws while the batch is assembled. Red/green: the shared-slot assertion
fails with a per-port semaphore.
2026-11-24 06:25:19 -05:00
Joseph Doherty 1237e9e6d1 fix(grpc-data): H3 review D1/D4/D6/D7 — probe cancel, sub-batches, flush wake-up, request-order budget
D1: a caller cancel (the projected deadline) during the connection's capability
probe escaped as RpcException(Cancelled) and faulted the whole HistoryRead; it
is now OperationCanceledException, the probe is capped by HistoryTimeout, and
ProjectedHistoryAccess fails any escaping fault per node (BadTimeout when the
deadline fired) and releases every cursor it owns. D4: calls are sub-batched at
min(the deployed connection's batch, the origin's advertised MaxBatchItems) and
at most one item per 256 B of the remaining assembly budget; a shortfall is
BadTooManyOperations per node, never an endpoint failure. D6: the release flush
is re-armed from a flag under its gate (no lost wake-up) and the stop source is
never disposed under a running flush. D7: calls are runs of consecutive request
positions read in request order, then the budget is charged in request order.
Float32 node over a Double-returning backend reads Good Singles end to end (no
KindMatches defect). Red/green for D1/D4/D7 by mutation; D6's race did not
reproduce red.
2026-11-24 01:48:12 -05:00
Joseph Doherty 585d5079eb fix(grpc-data): H3 review D2/D3/D5 — claimed cursors never leak; projected slot sub-limit
D2: Release() after TryClaimForResume() was a no-op, so a claimed cursor leaked
its origin continuation on every exit that never sent it (no gateway/identity,
deadline spent after the local half, limiter rejection, a gateway fault). New
ReleaseEvenIfClaimed() (at most once) on every post-claim exit; any exception
from the gateway now fails the projected half per node instead of escaping.
D3: projected reads hold at most N - max(1, N/4) of the N shared history batch
slots (OriginHistoryPort.RemoteSlots), Wait(0) => BadTooManyOperations for the
projected half, so a slow origin cannot starve local HistoryRead/HistoryUpdate.
D5: a Remote cursor presented to a local node (raw/modified/events take paths)
is released when it is taken. Red/green: each test fails with its fix reverted.
2026-11-24 01:40:18 -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 0a83c10ef6 fix(client): processed history reads ask for the server's aggregate defaults
Found by the H3 live gate (H02): Client.Shared sent the SDK's default
AggregateConfiguration (all false / 0), which the server refuses as a
non-default configuration (BadAggregateConfigurationRejected, #677) on local
and projected nodes alike, so CLI/UI --aggregate reads never worked against
it. Set UseServerCapabilitiesDefaults = true. OI regression test (red without
the fix) also covers HistoryReadPageAsync.
2026-11-24 00:55:52 -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 19b8163045 feat(grpc-data): H3 ProjectedHistoryAccess over deployed connections
Resolves, authorizes (HistoryRead demand: mapping bit + local grant on the
mapping scope, ACLs on or off) and pins each projected node, groups the batch
per connection / details / issuing endpoint and forwards through
IDataHistoryService. Remote cursors bind caller, mapping id+revision,
connection route, projection generation, origin view and serving identity, and
resend the ORIGINAL details; any change => BadContinuationPointInvalid with the
origin token released. Shared per-request assembly budget (min mapping
MaxHistoryAssemblyBytesPerRequest) => BadTooManyOperations for the remaining
nodes. Releases coalesce per connection. Replaces the H2 refusal pin with the
intended behaviour (granted => served, no grant => BadUserAccessDenied).
2026-11-24 00:28:17 -05:00
Joseph Doherty dc6cc7779d feat(grpc-data): H3 SDK side of projected history
Projected variables advertise Historizing + the HistoryRead access bit (never
HistoryWrite) only when the definition says so. The Raw/Processed/AtTime
overrides split authorized handles: local ones go to the H1 port unchanged,
projected ones to IProjectedHistoryAccess, each written back to its own slot;
nothing waits under Lock. HistoryCursorKind.Remote stores the projection's
cursor in the SDK session store; disposing the point (session close, eviction,
releaseContinuationPoints, faulted request) releases it at the origin. Mapped
HistoryRead is opened deliberately in DataPlaneAuthorizer; other mapped
operations outside the allowlist stay closed.
2026-11-24 00:27:51 -05:00
Joseph Doherty a4cd2a4b0e test(grpc-data): artifact projection test uses a response cap within the new 256 KiB minimum 2026-11-23 23:25:44 -05:00
Joseph Doherty 28de03783f fix(grpc-data): H2 review2-7d/e - caller cancel is OperationCanceledException; abandoned assembly releases chunk tokens
A caller cancel during a history call surfaced as RpcException(Cancelled); it now throws OperationCanceledException.
When an assembly is abandoned (timeout, communication failure, unsupported, cancel) after a follow-up, the origin chunk
tokens it carried are released best effort.
2026-11-23 23:20:53 -05:00
Joseph Doherty 808e1fe985 fix(grpc-data): H2 review2-7a - no aggregates or resolution for a peer without a HistoryRead grant
The history field still marks that the origin has a historian (negotiation rule unchanged), but a principal with no
HistoryRead export sees no aggregate names and resolution 0 (undisclosed).
2026-11-23 23:19:21 -05:00
Joseph Doherty fc8154289d fix(grpc-data): H2 review2-7c - MaxHistoryResponseBytes minimum 256 KiB (validator + AdminUI min)
Wire tests that relied on a 1-byte response cap now exercise chunking with wide string values at the minimum.
2026-11-23 23:18:08 -05:00
Joseph Doherty a3da73e1e7 fix(grpc-data): H2 review2-2..6 - byte-bounded pages, one deadline, no leaked cursors
Each node's Raw page is clamped from a per-value byte estimate of its catalog type (wide strings/arrays get small
pages plus a continuation) and sub-batches are sized by estimated bytes, so the in-flight read respects
MaxHistoryResponseBytes; AtTime/Processed whose values x estimate exceed the budget are refused per node with a
diagnostic. One deadline per request: nodes not started when it passes are deferred (transport) or BadTimeout
(direct). Every refusal releases the page cursor it was just given; releasing, invalidating or expiring a chunk
releases the page cursor behind it; results are disposed on the exception path. Chunk bindings use per-node details.
OpcUaServer IVT for Runtime.Tests/Host.Tests so tests can hold real page cursors.
2026-11-23 23:16:14 -05:00
Joseph Doherty abc6a1b068 fix(grpc-data): H2 review2-1 - a cancelled read never leaks its remote history slot
A pre-cancelled token throws before taking a slot, and the port delegate is dispatched with Task.Run(None) so its
finally always releases (a Task.Run on a cancelled token never runs the delegate).
2026-11-23 23:09:20 -05:00
Joseph Doherty 9a808ba218 test(grpc-data): H2 review 10 - real Kestrel HTTP/2 proves the connection-close hook clears the session
In-process loopback h2c host: IConnectionLifetimeFeature.ConnectionClosed is exposed on the HTTP/2 stream context,
two requests on one connection share one session, and disposing the client connection clears it.
2026-11-23 22:12:28 -05:00
Joseph Doherty 7e22601ee7 test(grpc-data): H2 review 7 - mapped HistoryRead on a projected node stays BadHistoryOperationUnsupported until H3
With the mapping HistoryRead bit and a local HistoryRead grant, a real SDK HistoryRead on a projected variable is
refused (no HistoryRead access-level bit on projected nodes) with no data and no continuation.
2026-11-23 22:11:28 -05:00
Joseph Doherty 54d49e6cb6 fix(grpc-data): H2 review 9 - remote peers cannot starve local HistoryRead
Remote reads hold at most N - max(1, N/4) of the node manager's N process-wide history batch slots
(MaxConcurrentHistoryReadBatches); past that a remote request is BadTooManyOperations unsent, so local OPC UA clients
always keep at least one slot.
2026-11-23 22:09:49 -05:00
Joseph Doherty 6f1faaeb0b perf(grpc-data): H2 review 6 - Implemented(target) once per node; history serving cached per source
Metadata no longer rebuilds the history view per node x operation (and checks the ACL before the tagname, the
ingress order); OriginHistoryPort caches its served-aggregate set per historian source instance.
2026-11-23 22:06:02 -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 53e3970f27 fix(grpc-data): H2 review 1/5/9 - bound origin history memory per request and per principal
Nodes are read in sub-batches sized to the response budget and no sub-batch starts once it is spent: the rest are
DEFERRED chunk tokens (transport; read on resume from their original continuation) or BadTooManyOperations (direct
consumer). Processed intervals and AtTime times above MaxHistoryValuesPerPage are refused unsent. Remainder bytes are
charged to a per-principal budget across sessions (concurrent reads x max(response budget, one page)); sizes come
from the encoded CalculateSize; a single value above the response budget is a per-item BadTooManyOperations.
Sessions are capped per principal (own LRU evicted first) and globally (the heaviest principal pays); a release never
creates a session; channel-close registrations are unregistered on clear.
2026-11-23 21:59:59 -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 6fd4c2b0b5 feat(grpc-data): H2 AdminUI HistoryRead checkbox, history limit fields, X0 banner
Connection/export/mapping editors offer HistoryRead (DataOperationAuthoring, never ahead of the validator) and the
HistoryTimeoutMilliseconds / MaxConcurrentHistoryReads / MaxHistoryValuesPerPage / MaxHistoryResponseBytes /
MaxHistoryAssemblyBytesPerRequest fields; an informational banner shows while a post-v1 bit is ticked (plan 4.3).
2026-11-23 20:59:32 -05:00
Joseph Doherty b36c8d8716 feat(grpc-data): H2 consumer history client and deployed-connection history
GrpcDataConnection implements IDataHistoryService (explicitly; ReadHistoryAsync/ReleaseHistoryAsync avoid an overload
clash with ReadAsync): the capabilities probe always asks for history, other calls send it only when the selected
endpoint advertised it; per-call deadline min(remaining, HistoryTimeoutMilliseconds); FAILED_PRECONDITION/UNIMPLEMENTED
=> BadHistoryOperationUnsupported; chunks assembled within the request budget (BadTooManyOperations past it); page
tokens wrapped with the issuing endpoint + serving incarnation so a resumed read never moves; release forwarded. The
deployment lease gates history on the row's HistoryRead bit and carries HistoryTimeout. Decoded capabilities drop
HistoryRead without the history field. X0 tests that used bit 32 as the unknown bit now use a still-reserved bit.
2026-11-23 20:57:35 -05:00
Joseph Doherty d0756bb78e test(grpc-data): H2 wire suite; both v1 gates extended with history-shaped data
Both recorded-v1-client gates now run against origins that grant HistoryRead, advertise history capabilities and
carry HistoryInfo; header-less bytes stay identical to the goldens (not re-recorded). GrpcDataHistoryWireTests: probe
shapes, FAILED_PRECONDITION without the feature, denied/unhistorized/unknown byte-identical with no backend call,
admission, cancel, wiring fault, chunking + lost chunk, release, direct runtime consumer. Endpoint allowlist gains
HistoryRead (the auth middleware rejected it).
2026-11-23 20:48:56 -05:00
Joseph Doherty 025e6a075a Merge master (#918 real-origin compatibility gate) into H2 2026-11-23 20:42:51 -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 9d194a7e97 feat(grpc-data): H2 SDK-free origin history facade over the H1 port
OriginHistoryPort (public, implements IOriginHistoryPort) keeps SDK types inside OpcUaServer instead of an
InternalsVisibleTo: runs the synchronous ReadHistory off the caller's thread, one PeerHistoryContinuationScope per
request, absent bounds -> port MinValue, miswired scope surfaced as WiringFault. Exposed through the SDK sink so
DeferredOriginHistoryPort resolves it after server start; aggregate wire table pinned to AggregateFunctionMap.
2026-11-23 20:36:02 -05:00
Joseph Doherty efea401915 test(grpc-data): H1 override paging over a real Session, override-path cross-kind refusal, deterministic limiter holder (verification 4-6, 7a) 2026-11-23 20:10:18 -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 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 111c9c3566 fix(grpc-data): H1 history logs keep {NodeId} a NodeId on the local path (review 5) 2026-11-23 19:51:06 -05:00
Joseph Doherty 19a7c7af01 fix(grpc-data): H1 cursors bind an opaque namespace/view tag besides (realm, identifier) (review 2)
The realm folds mapped/raw into Raw (and every other index into Uns), so
(realm, identifier) alone could resume a raw node's cursor on the same
identifier in a mapped namespace. Items and cursor state now carry a
binding tag: the SDK adapter (and the events path) passes the node's
namespace URI, restoring the pre-port namespace-qualified binding; a peer
passes its view tag. The peer key binds it too.
2026-11-23 19:49:59 -05:00
Joseph Doherty 1bacabb24f fix(grpc-data): H1 peer cursors bind the caller's principal and the live serving incarnation (review 3)
The store used to build the expected key from its own fields, so the
principal/incarnation check could never fail. The scope now supplies the
caller's principal and reads the serving incarnation at save and at take, so
an in-process failover on a still-open connection invalidates its tokens; a
save for a non-owner principal is refused.
2026-11-23 19:47:17 -05:00
Joseph Doherty e04a8b419e fix(grpc-data): H1 details hash formats every field invariant-culture (review 4) 2026-11-23 19:45:55 -05:00
Joseph Doherty 561e6de52b test(grpc-data): H1 port fuzz holds every page to NumValuesPerNode, bounds included (review 6) 2026-11-23 19:45:14 -05:00
Joseph Doherty 7f32edf036 fix(grpc-data): H1 port outcome Status passes GoodNoData through (review 1) 2026-11-23 19:44:52 -05:00
Joseph Doherty b530692abb test(grpc-data): H1 port-vs-override parity cases and 10k-seed paged-vs-unpaged port fuzz 2026-11-23 19:36:21 -05:00