Files
lmxopcua/docs/plans/evidence/grpc-data

gRPC data implementation execution ledger

Implementation authorized by the user after plan review. Work starts at 5dbdee1ea3ad1f0b98cd4ae15bcf14f9b114c21b on branch codex/grpc-data-connections in the managed isolated worktree. Unrelated AB CIP fixture edits remain in the original checkout.

The implementation plan and design define scope. Only the applicable test selectors run per phase; the unfiltered whole-solution run is reserved for P12. No throughput claim is inferred from correctness tests.

Preflight

  • Host: macOS arm64; .NET SDK 10.0.403 (repository rolls forward from 10.0.100); Python 3.14.3.
  • Docker context: orbstack, local Unix socket; daemon architecture aarch64, approximately 15.7 GiB RAM. No fixture/container changes during initial inspection.
  • Managed worktree was clean at creation; feature branch is based on the committed design/plan/reviews.
  • Source feed/mapping/protocol work cannot begin before P00 focused test isolation passes. Tests remain coordinator-controlled.

Phase status

Phase Scope Status Evidence
P00 Unit discovery isolation and execution controls Passed 22 Python runner units after Astra correction; 2 C# guard units, zero failures/skips; clean phase run 20261116T020813.843515Z-2ebe0fbcb7d2
P01 Domain/protobuf contracts Passed; Astra freeze approved 15 domain + 36 wire tests, zero failures/skips; run 20261116T024814.318745Z-3a06bbb5af5e
P02 Schema/artifact/consumer projection In progress Schema/validator worker next; artifact projection follows entity freeze
P03 Shared authorization and leases Pending
P04 Immutable publication, hub and local ports Pending
P05 Mutation tickets/outcomes Pending
P06 Streams/sharing/fair delivery Pending
P07 TLS/provisioning/node+cluster clients Pending
P08 Raw/UNS projection and adapter Pending
P09 Authoring/diagnostics/docs Pending
P10 Local Docker/CLI/probe integration Pending
P11 Scaling/recovery measurements Pending
P12 Full suite and final Astra review Pending

Requirement-to-verification ledger

Design requirement / review finding Implementation phases Required evidence
H1 write replay/incarnation and per-item failover P01/P05/P07 Registry/outcome units; deterministic D08 effect ledger
H2 dispatch gate, rich outcomes and late observation P05 Queue/demotion/revocation/late-driver units; D04/D08
H3 coherent served catalog without revocation rollback P02/P03/P04 Empty/failed apply activation units; D06
H4 mapped scopes ahead of legacy ACL bypass P03/P08 Raw and UNS mapped policy/cache/SDK tests; D06
H5 bounded metadata authority freshness P03/P07/P08 Request-start lease tests and quiet-mount D06
H6 explicit consumer-node execution scope P02/P07/P08 Artifact/manager scope units and D02/D10/D12
H7 pinned-cache and authorization isolation P04/P06/P07 Sharing/provenance units; target-mode matrix
H8 immutable producer ownership P01/P04 Reused arrays/bytes, snapshot/pool lifetime tests
H9 safe filter superset and writer baseline P06 Aggregate settings/baseline/commit tests
M1 snapshot/command ordering P04/P06 Watermark/epoch/removal-barrier units and probe
M2 original timestamp fidelity P01/P04 Codec/source-feed timestamp tests
M3 bounded per-parent browse readiness P08/P10 SDK BrowseNext and CLI projection tests
M4 bounded ingress/source dirty fairness P04/P06/P11 Overflow readiness, nonstarvation and workload evidence
Plan H1 concrete local/mount-free service P04/P10 LocalDataConnection tests and D01a caller-node probe
Plan H2 discovery isolation P00 Real counting C# probe/reaper test and sanitized runner units
Plan H3 run-owned local fixtures P10/P12 Fake-process ownership units and local context/manifest
Plan H4 local secret/trust lifecycle P07/P10 Provision/rotation/retirement units and D14
Plan M1 topology/realm/operation coverage P10 Full scenario matrix, real caller DI and CLI/probe evidence
Plan M2 compile/EF prerequisites P00/P02 Focused baseline build/discovery; local-only migration

Runtime artifacts belong under ignored artifacts/grpc-data/; this tracked ledger indexes redacted outcomes only. It must never contain private keys, bearer values, credential-bearing manifests or a claim that pending phases passed.

P00 verification

The runner tests first failed as expected while run-unit-phase.py was absent. After initial implementation, 18 fake-subprocess Python units passed. Astra found required existing regression classes were not enforced as strictly as new classes; four added regression tests failed before the correction. The final 22 Python tests passed, with red/green logs in artifacts/grpc-data/p00-runner-regressions/. The real P00 discovery/execution runner passed both counting-probe/reaper C# tests with no skips; the starting production graph compiled successfully. No solution test run or Docker mutation occurred. Raw TRX/commands/discovery identities remain in ignored artifacts. The runner validates discovery AND executed results for every required new class, retains parameterized class filters, and sanitizes both child environments. Astra approved P00 after the required-existing-class correction; see checkpoint review.

P03 preparation obligations

Read-only security preparation confirmed that caller-supplied DataView.Subject is a claim, never an ACL authority. P03 resolves subject/provenance against the active deployed catalog before either Raw/UNS fallback or cache lookup, and strictly caller-bound facades carry authenticated principal/key/version/original expiry. Revalidate the current key principal and credential version as well as expiry even without an authority-generation change. Deep-copy mutable authority inputs before publishing security snapshots. Failed desired-authority staging must close new mapped/data access rather than retain stale permissions. These obligations supplement the planned spoofed-subject, queued expiry, same-ID credential replacement, deep-copy mutation, and failed/empty apply tests; they are not yet implemented.

P01 verification and frozen contracts

Test-first domain/protocol changes and targeted review regressions produced recorded failures before correction. Final P01 run 20261116T024814.318745Z-3a06bbb5af5e passed 15 Core.Abstractions and 36 Commons tests, including named existing protocol regressions, with no failures or skips. No broad unit or integration suite was run. Astra checkpoint approves P01 freeze only after cluster identity, original credential identity, array metadata, receiver-owned aggregate decoding, per-value element limits, pinned stream provenance, additive negotiation and structural/descriptor corrections.

The frozen facade is caller-bound through IDataConnectionFactory and DataAuthenticatedContext; no authenticated identity comes from protobuf claims. DataWriteAdmission retains original key/version/expiry. Capabilities carry cluster identity and independently advertised array-element limits. Compact and fallback stream decoding require expected serving identity. Array/byte storage uses defensive managed copies and separate disposable leases; pooling is deferred. Post-parse budget checks do not substitute for the P07 transport parse/decompression or P11 measured-memory gates.