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 | Passed; Astra approved | 72 F + 31 P + 106 R, no failures/skips; final run 20261116T034337.311145Z-cd97a339f340 |
| P03 | Shared authorization and leases | Passed; Astra approved | 77 K + 89 O + 53 R + 19 H, no failures/skips; final run 20261116T034150.797719Z-8f107e03d8d5 |
| 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.
P02/P03 execution notes
P02 configuration expected missing-type RED was recorded in run 20261116T025514.238285Z-0bf94bfed2ac; the configuration class passed after implementation in 20261116T030638.024513Z-33f85cfb6582. Existing ACL-scope regressions passed 61 tests in 20261116T031441.427791Z-5bb7ca84cb53 (the runner accepts one --case; repeated arguments select only the last). The artifact facade expected missing-API RED is 20261116T030553.410191Z-8f8f4b4ccf8c. The final complete P02 gate passed 200 tests in 20261116T032931.523374Z-3193b02872a9 after cross-cluster root, null topology, null logical-ID and rollback SQL regressions. EF 10.0.7 generated migration 20261116030721_AddGrpcDataConnections using only a nonconnecting loopback design-time connection; no database update was run. The migration adds three scoped tables and widens ACL scope storage to 32 characters. Down removes the new tables but intentionally retains the additive wider ACL column: retained mapping grants have a 22-character scope name and cannot safely be narrowed to 16. Disable the feature before rolling binaries back; disposable SQL apply/reapply/backward-disable validation remains P10.
P03 Core and SDK expected missing-API RED runs are 20261116T030857.315836Z-8e4d976e1036 and 20261116T030939.707449Z-d4e6daf64857. Runtime lease/activation tests also produced missing-class compilation RED in 20261116T031033.611505Z-6b121246eb2e; this temporarily blocked P02 Runtime tests, so no artifact assertion failure is inferred from that run. Metadata leases use monotonic request-start time and an application-owned lease object, never a caller-provided expiry. Ordinary SDK subscriptions have an internally queued delivery path; P03 rejects mapped subscription admission until P08 supplies and verifies an SDK publish-time gate. This is an explicit incomplete integration requirement, not completed subscription support.
Final Astra P02/P03 review closes all five findings against the final source hashes and complete gates. P02 finished with 209 passes after JSON alias/shadow regressions (actual RED: seven failures/59 passes in 20261116T033408.997103Z-68c99377553c) and empty-array local compatibility correction. P03 finished with 238 passes. Parsed revocations now survive topology-planning and mapping/eligibility projection failures; invalid topology suppresses new data readiness. Mapped proofs require an exact active local catalog token and matching local authority generation, independently of the remote lease's exact serving identity. A new catalog Begin invalidates the token even on a same-authority no-op rebuild. Runtime actor and projection tests exercise these boundaries. P03 additionally runs the existing Stage6, off-thread/deferred actor and Host authentication classes because their credential/publication paths changed. Stage6 dedup assertions compare measured warm single-node cost with same-node/distinct-node passes, preserving required credential-expiry checks.
P10 harness preparation
Independent Python helpers for local-context validation, fixture endpoint/manifest isolation, ownership-only cleanup, atomic secret files, bounded/redacted processes, deployment outcome polling and CLI result validation have test-first preparation evidence: initial discovery failed on missing modules; the focused combined run subsequently passed 44 tests. This is not the P10 gate. Concrete Compose, SQL/device/seeder, TLS/provisioning, runtime observation, CLI/probe scenarios and actual Docker integration remain pending. No containers or databases have been modified.
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.