feat: expose mapped raw and uns data through grpc adapters

This commit is contained in:
Joseph Doherty
2026-11-16 20:43:15 -05:00
parent 47960a6d57
commit 8ad03e9c5d
118 changed files with 12645 additions and 227 deletions
+60 -1
View File
@@ -23,7 +23,7 @@ The [implementation plan](../../2026-11-15-grpc-data-connections-implementation-
| P05 | Mutation tickets/outcomes | Passed; Astra approved | Complete gate 910/910 passed `20261116T084759.594405Z-42a294fc7f4f` after three Astra regression corrections; source and candidate reconciliation approved |
| P06 | Streams/sharing/fair delivery | Passed | 347/347 applicable tests; Astra approved frozen source and evidence |
| P07 | TLS/provisioning/node+cluster clients | Passed; Astra approved | 393/393 applicable tests, zero failures/skips; final frozen run `20261116T160335.804917Z-5a4994c32d15` |
| P08 | Raw/UNS projection and adapter | Pending | |
| P08 | Raw/UNS projection and adapter | In progress | Cache/continuation, SDK adapter and shared provenance/write-generation packets; P07 committed `5ea64b4b6` |
| P09 | Authoring/diagnostics/docs | Pending | |
| P10 | Local Docker/CLI/probe integration | Pending | |
| P11 | Scaling/recovery measurements | Pending | |
@@ -216,3 +216,62 @@ After that final repair, frozen run `20261116T155343.945235Z-be0fbabc1a44` passe
The accepted ordering variance moves creation of Task 15's `GrpcDataTlsWireTests` and `GrpcDataListenerIsolationWireTests` to P10 with their actual TLS fixtures; both remain required integration classes/scenarios alongside the existing mesh auth/boundary selectors. No wire-test requirement is waived. P10 still requires actual TLS/listener isolation, Docker/CLI/probes, deployed credential rotation/restart/failover, and SQL migration/concurrency/rollback evidence. P11 measurements and the P12 full-solution/final Astra gate remain pending. P07 approval permits its commit and dependent P08 work, without claiming those later results.
Before commit, P08 preparation found that a Browse lease/continuation could outlive the original authenticated target credential. The commit was held. Actual RED `20261116T160304.904551Z-9a7e5ce79d56` passed 5/6 local-connection cases; the repair caps both durations by positive remaining original credential lifetime and denies expiry during completion. GetMetadata objects have no separate lease, so P08 must retain the Browse/request-start authority boundary. The superseding frozen full run `20261116T160335.804917Z-5a4994c32d15` passed **393/393**, zero failures/skips (H91/R220/C41/K20/P21). Astra independently reconciled all five TRXs, unchanged HEAD, tracked diff SHA-256 `55029f7b6c6323a87dd3d8b96a988928d1eaee5e3889e1f57c4b07e4bd5771ae`, and all 50 new source/test hashes before review-document edits, then reaffirmed P07 approval. This is the final approved P07 candidate; the later-phase obligations above remain unchanged.
## P08 execution notes
P07 was committed as `5ea64b4b6` following the superseding 393/393 approval. P08 uses three Terra/high owners: federated browse/cache/continuations, SDK/import adapter, and the coordinated response-provenance/write-generation prerequisite. Root owns disjoint identifier helpers, actual actor/DI wiring, test gates and commits. Astra reviewed the [shared contract directions](p08-contract-astra-review.md) before their implementation. No P08 implementation approval is implied.
Initial API REDs: Runtime `20261116T161350.550609Z-b289570bead9`, Commons `20261116T161401.268233Z-bec228e3d1f2`, Abstractions `20261116T161402.696381Z-217aeea97bc9`. The first Runtime compile also identified a fixture's invalid readonly modifier. After correction, `20261116T161848.889849Z-a552bdcdeca8` caught two direct test capability calls lacking the repository analyzer's invocation boundary; the lifetime-specific test now has a local documented suppression rather than changing production resilience policy. Commons and identifier-helper units passed in `161902` and `161906`.
Actual Runtime behavioral RED `20261116T162054.919610Z-b4b4c464db98` executed 59 cases, 55 passing and four expected failures: browse Serving was absent, an old peer without generation enforcement received a write attempt, a strict generation mismatch dispatched, and server admission claimed/dispatched a stale generation. The protocol owner repaired those paths after this evidence and added further intent/dedup coverage; that extended candidate has not yet passed a Runtime gate.
The following compilation checkpoints captured the new empty-page lease/local-authority snapshot API (`162527`), SDK selected-parent readiness callback (`162535`), and canonical projected dependency reference helper (`162540`). Only the required declarations were added for cache/SDK tests so their actual behavior can be tested before repair. Full P08 readiness, mapped publication and continuation integration remain incomplete. No P10 network/SQL/Docker/CLI or P12 full-solution gate has run.
Subsequent behavioral REDs covered expired empty-parent metadata and pinned retired capacity (`162731`), SDK pending/unavailable parent browsing (`163623`), strict endpoint discovery and operation-ID generation ABA (`165730`), and coalesced browse waiters plus old-peer write-capability masking (`170143`). Repairs preserve independent origin metadata and local placement, positive serving-generation write preconditions and nonretryable unknown outcomes for fingerprint conflicts. The typed import adapter buffers an initial snapshot until completion and carries original age/proof to the local actor path. SDK structural materialization rejects missing parents, collisions and unsupported multidimensional values. These component changes do not establish complete deployment or subscription-delivery integration.
Frozen candidate `20261116T173939.484558Z-8643fe4bed4a` passed **192/192** applicable P08 tests, zero failures/skips: Runtime77, SDK66, Commons19, Abstractions6, Host24. The two actual Host actor-routing tests also passed independently in `20261116T173854.399123Z-b8a29debfb68`; they verify immutable typed sample/age/proof delivery, exact canonical dependency keys and retirement ownership. This is a component checkpoint, not P08 completion or Astra implementation approval. Subsequent adversarial regressions and actual mapping activation, prepared-page application and Publish/Republish guards remain in progress.
The expanded frozen component run `20261116T174648.173110Z-a7493b3b99cc` passed **239/239**, zero failures/skips (Runtime107, SDK66, Commons35, Abstractions6, Host25). Astra independently verified those TRXs and recorded seven cache/resolver findings in the [component review](p08-component-astra-review.md). Their test-first repair packet includes expired-capacity reclamation, pinned renewal, complete key/authority byte charges, mapping-relative depth, aggregate mapping limits, retained canceled physical jobs, and indexed publication accounting. All Task17 regressions subsequently passed in the focused `20261116T205413.529548Z-51b69f23923e` run and the broader affected Runtime runs; independent re-review remains pending.
The deployed mapping lifecycle now uses the actual shared catalog parent/scope and closes at the next attempt. Actual DriverHost and standalone publisher artifact tests cover A-only placement, activation/removal, failed rebuild closure and a delayed notification overtaken by a new attempt. The SDK page-applier tests cover commit/rollback and current deferred sink binding. Namespace-classifier behavioral RED `20261116T210026.155857Z-1279e7ada45b` established that an opaque-looking local identifier was incorrectly treated as mapped; the repaired SDK gate includes the explicitly selected PhaseP03 mapped-subject class so this case cannot be omitted by a PhaseP08 trait filter.
Runtime `20261116T211515.808137Z-a386b1678e2c` executed 153 cases: **152 passed**, with one intentional failing BrowseNext controller declaration (Unavailable instead of Pending). This run includes passing demand pin/admission/materialization fencing, the repaired actual dependency consumer callback, all Task17 repairs and earlier adapter/write/lifecycle regressions. Read/write/stream registry operations and live SDK BrowseNext and delivery are not yet complete. Host `20261116T211611.741758Z-853745ec24f8` passed **28/28**, zero skips, including the composed services, typed actor value routing, physical sink byte ownership, coalesced retirement control and new-host activation recovery. These are component gates, not P08 approval or a full-solution test run.
An additional targeted SDK loopback service gate is being introduced under `wire/P08`, separate from unit results, to establish actual Publish/Republish guards before mapped monitored-item admission. It does not replace P10 Docker/CLI or the final P12 suite.
### P08 lifetime, delivery ownership and async input checkpoints
The actual SDK loopback delivery gate first passed eight cases, then expanded to expose stale-age, ambiguous equal-sample and aggregate candidate-pressure failures. These wire checks remain separate from unit selectors and do not replace P10 Docker/CLI validation. The current SDK unit checkpoint `20261116T225359.539290Z-9405383e3f48` passed **86/86**, including atomic materialization pin/retire, bounded node reclamation, same-placement renewal and candidate-budget tests. Actual async BrowseNext and mapped Write service coverage remain outstanding.
Astra's publisher follow-up identified unknown-upper-age acceptance, queued physical payload ownership and same-key replacement metadata escaping control-byte accounting. Behavioral RED `20261116T222720.282316Z-9388d6644958` established those defects. The repaired Host checkpoint `20261116T225508.244742Z-9156f4fc4faf` passed **36/36** with zero skips, including paused Host/SDK/mux/subscriber queue cases. This is a component gate, not overall P08 approval.
Async alarm evidence behavioral RED `20261116T224350.906936Z-be2190a3f70a` established that a later authorized input could revive an older evaluation and emitted events lost original evidence. Exact input capture and event evidence passed the applicable new and existing alarm gate `20261116T225200.651858Z-897fa6a2a544`. Physical retained-byte ownership through evaluator/worker timeout is being added, with guard missing-API RED `20261116T225719.244944Z-c016540ff99c`; its validation and the combined runtime/SDK integration gate are pending. No P08 completion, Docker scenario or full-solution result is claimed here.
The subsequent scoped Astra audit found four additional blockers: HashSet slot reuse could reorder pending values; recovery/command alarm templates interpolated transient remote inputs without captured authority; Shadow copied projected snapshots outside physical accounting; and VirtualTag/Calculation async paths erased proof or physical ownership. They are being repaired before overall phase approval. Publisher ordering had actual `[3,2]` versus `[2,3]` RED at both handoffs in `20261116T231506.771099Z-3ab79dfd1368`; monotonic enqueue ordering repairs passed with all **48/48 Host** cases in `20261116T232503.133922Z-add1a24bea07`. Local derived-output acceptance is documented in [the ownership contract](p08-derived-input-authority.md).
The alarm template/Shadow regressions first failed in `20261116T230615.393720Z-0e229df1ad7b` and passed **9/9** in `20261116T230755.693788Z-2dfbd331f185`. Broader alarm and guard checks passed in `20261116T231915.507171Z-98bf23158f9a` and `20261116T231926.535007Z-33dc90f4f50b`. The real process-freeze/worker-clock wire selector passed **14/14** in `20261116T230845.719415Z-worker-physical-wire`, including retention through transport timeout until actual worker response.
Runtime `20261116T232328.651999Z-148d1774bbf8` passed **220/221**: consumer/VT proof and ownership, subscribe-only fresh snapshot, SDK incarnation pin and aggregate interest transitions passed; the deliberately empty configured acquisition owner remained RED. Calculation's focused gate `20261116T232057.618152Z-e65220f5c66a` passed **18/18**. SDK units passed **86/86** in `20261116T232535.449662Z-0588b22716e7`; actual async Browse/Write service validation is separate and pending. Abstractions `20261116T232555.826300Z-f558d40d19d7` passed 8/9 and established the retained-input helper enumerated 100,002 inputs before rejecting rather than stopping at its entry bound. No partial checkpoint is overall P08 approval.
### P08 combined unit checkpoint and composed review obligations
The complete applicable unit checkpoint passed **525/525**, zero failures/skips, across Runtime227 (`20261116T235746.192492Z-847c5916c696`), SDK86 (`235433.692433Z-b374ae6b3bd7`), Commons35 (`235457.385910Z-212d2a872d40`), Abstractions9 (`235501.156297Z-5103100582e6`), Host64 including affected startup classes (`235906.607962Z-7c6d2dfff2af`), CoreAlarms64 (`235540.600462Z-39de665789e1`), Guard18 (`235549.638106Z-077eb660d915`) and Calculation22 (`235559.716791Z-2a26d00f7fc2`). Runtime's earlier failures were compilation errors in the new headless fixture, corrected before its successful rerun. This is a component checkpoint, not overall P08 approval.
The headless wire gate `20261117T000216.912451Z-configured-discovery-wire` passed **2/2** through real deployed placement, resolver/cache/applier, SDK node manager and configured subscription ownership, including forged locators, expiry/reacquisition and teardown. Its initial fixture is a root with immediate value children; it does not establish nested branches, mapped root leaves or an external SDK client's use of the real Browse authorization registry. Astra's combined review identified those missing composed behaviors, plus node-owned whole-page closures escaping per-node charges and quadratic repeated page guards. All five remain repair obligations before phase approval.
The new cursor-expiry wire regression produced actual behavioral RED in `20261117T000933.301106Z-sdk-cursor-expiry-red`: a token expiring during a blocked fetch still returned success. Earlier attempts were test-compilation failures, not behavioral evidence. Typed hierarchy/root-leaf API RED is `20261117T001126.915571Z-dcb1ecaa9e59`; the minimal default-false port then established **3/3 actual REDs** in `20261117T001344.375169Z-1c7fc329749b` (Raw hierarchy, UNS hierarchy, atomic root-leaf promotion). These repairs are in progress.
The publisher source-identity regression failed in `20261116T233727.834161Z-publisher-source-identity-red`; the current full Host checkpoint verifies the captured identity fence and old-witness retirement repair. An exploratory wiring check in `234719.874164Z-configured-wiring-red` encountered a stale prebuilt constructor and is not valid DI behavioral RED; the subsequent full-graph Host64 gate is the authoritative composition check.
P11 must additionally measure slow-client fairness: the current per-item fresh-snapshot request restarts its shared cohort. A per-registration rebind/snapshot or separately bounded recovery cohort is required if a slow subscriber's recovery interrupts otherwise healthy registrations. This is a recorded limitation pending the planned fairness experiment, not an advertised scaling result. No Docker/CLI workload or full-solution gate has run.
The superseding P08 applicable unit checkpoint `20261117T012625.071224Z-d57c015b4536` passed **542/542**, none skipped: Runtime239, SDK91, Commons35, Abstractions9, Host64, CoreAlarms64, Guard18, Calculation22. It includes typed Raw/UNS hierarchy, root-leaf renewal, structural array metadata and owned array read/subscribe/write conversion, independent retained read-source SDK pins, targeted source retirement, detached constant-work node/page guards, complete parent/child proof-size charges, retired configured-capability graph collection, and forced-retirement physical quota plus opposite-lock disposal regression. This is not overall P08 approval; actual composed wire behavior and mapped-MI periodic revalidation remain required.
SDK physical quota RED `20261117T011310.449174Z-0dc51b1fb85a` passed3/failed1 because a removed pinned root leaf freed capacity early. Runtime retained-source RED `20261117T012300.896375Z-90f143221646` passed16/failed1 because a retained read source did not hold its SDK incarnation. Both are repaired in the superseding checkpoint. Astra's subsequent source review closed the detached guard, primitive capability stamp, full proof-size estimator and lock-independent retired accounting findings, while identifying mapped monitored-item periodic revalidation as a separate open liveness defect.
The final P08 deltas add the affected local monitored-item revalidation classes: SDK **112/112** (`20261117T013314.505188Z-b855823bfb0f`), and Runtime **242/242** (`20261117T013927.511739Z-3a684df4cbce`). Together with the unchanged six project results from the 542 checkpoint, the current applicable phase evidence is **566 passed, zero failed/skipped**. Actual SDK wire Browse/delivery passed **28/28** (`20261117T013207.676008Z-sdk-projection-wire`), including the revalidation regression whose original behavioral RED is `20261117T012941.753385Z-sdk-revalidation-red`. The real composed Raw/UNS/local-ACL suite passed **6/6** in `20261117T013019.915593Z-composed-raw-uns-wire`; a final run against the latest Runtime source follows.
Astra's final source pass found invalidation control IDs accumulating without owned sources and a mapping-lock/publication-lock cycle. The bounded-queue regression reproduced **10001 pending instead of 1** (`20261117T013439.745777Z-6bc9df4d4d69`); a further attachment-race regression reproduced stranded pins (`20261117T013827.442802Z-e086385c96cd`). The final Runtime gate validates a separate nonblocking retirement gate, membership bounded to owned source buckets, exact generation filtering, correct disposal synchronization and attach-before-final-validation cleanup. These are actual behavioral REDs and repairs; the intermediate `013618` run failed test-analyzer compilation and is not behavioral evidence.
Final composed wire confirmation `20261117T014136.461398Z-final-p08-composed-wire` passed **6/6**, no skips, using the exact Runtime/SDK graph built by the final Runtime unit run. It verifies nested Raw pages/array metadata, UNS projection, local denied-sibling filtering, mapped root-leaf headless/read/monitor composition, deployment capability expiry/reuse and configured lifecycle acquisition. P10 six-process Docker/CLI scenarios, P11 workloads and P12 full-suite verification remain outstanding.
@@ -0,0 +1,62 @@
# P08 component review — open findings
Astra (`gpt-6-astra`, xhigh) independently verified the frozen component checkpoint `20261116T174648.173110Z-a7493b3b99cc`: 239 tests passed, none failed or skipped (Runtime107, SDK66, Commons35, Abstractions6, Host25). Later SDK and deployment-lifecycle edits are outside that checkpoint. This review does not approve P08 or the final implementation.
The shared write/provenance delta was reviewed: exact-match strict endpoint discovery, no strict retry after send, fingerprint Conflict/Stale reported as Unknown, and preservation of undispatched strict items when legacy retry metadata fails. No additional replay defect was found in that delta.
Task17 requires these repairs before approval:
1. **P1 — Physical work admission:** last-waiter cancellation removes a fetch from the coalescing dictionary before queued/running work and cleanup finish. Bound and retain physical work ownership independently of joinable waiters.
2. **P2 — Reclamation:** expired unpinned parents/nodes continue consuming capacity until mapping invalidation. Reclaim them without requiring deployment.
3. **P2 — Pinned renewal:** a pinned old node blocks replacement by a fresh same-placement proof after lease expiry. Permit bounded renewal without reviving the old lease or prematurely releasing old ownership charges.
4. **P2 — Mapping node limits:** enforce aggregate retained nodes across all pages and parents for each mapping, rather than only a per-page count.
5. **P2 — Projection depth:** measure remote depth from the configured mapping anchor, independently of existing local ancestry.
6. **P2 — Byte accounting:** include retained query/filter/cursor/caller and authority/ancestry metadata, or bound these fields conservatively before retention.
7. **P2 — Publication work:** replace full-cache byte recounts and scans of unrelated pages under the global lock with maintained accounting and appropriate sibling indexes.
Each finding needs a focused regression, repair, applicable gate and Astra re-review. Actual prepared-page SDK application, deployed DI/lifecycle behavior, and final Publish/Republish authorization remain separate required integration checks.
## Follow-up review
Astra source-verified the physical-job, renewal-version, aggregate mapping, relative-depth, byte-accounting and indexed-publication repairs against the frozen `212038` source hashes. The run had one unrelated intentional Read-registry failure. Reclamation remains partially open, and the controller review found these three P2 items:
1. `ProjectedBrowseAccess` returns cache `Unavailable` without scheduling renewal after a normal lease expiry. A controller-level ready → expiry → new physical fetch → ready regression is required; invalid cursors and denied callers must remain denied.
2. Cache reclamation runs only under global capacity pressure. A mapping at its own node limit must also reclaim expired unpinned nodes while global capacity remains available.
3. Controller authority guards call the external `Active` enumeration, which JSON-copies all mappings on each check. Add an indexed exact-placement/current-authority API; retain defensive copying at the external enumeration boundary.
These findings are assigned for test-first repair. No P08 approval has been given. SDK source renewal, automatic monitored-item recovery, original queued-sample guards and actual BrowseNext delivery remain in progress outside this scoped review.
## Final P08 phase reconciliation — 2026-11-17
This section supersedes the open dispositions above while preserving their checkpoint history. Astra (`gpt-6-astra`, xhigh) completed the independent P08 source and evidence review. **P08 is approved:** no material findings remain open in the reviewed P08 scope, and the final composed Raw/UNS wire rerun passed against the final Runtime graph. This is a phase approval, not the P12 final implementation approval.
The original seven Task17 findings and the controller follow-ups are closed: physical fetch ownership survives waiter cancellation; expired unpinned entries are reclaimed under both global and mapping pressure; renewal retains old pinned charges; aggregate node/depth/query-byte limits are enforced; and indexed accounting avoids unrelated-page scans. Controller renewal, exact invalid-continuation propagation, indexed placement checks, prepared cursor ownership and strict write provenance have been reviewed through their repairs.
The subsequent P08 integration findings are also closed in source:
- The actual registry authorizes Browse, and the SDK materializes typed branches, supported one-dimensional arrays and explicitly mapped root leaves. Root-leaf promotion and renewal preserve exact placement and lifetime ownership.
- Per-item materialization guards and parent-page version guards no longer retain sibling pages or repeatedly scan their contents. The shared `ProjectedProofSize` estimator includes both metadata views, stable IDs, serving fields and authority paths. Configured capabilities retain primitive mapping fields and an independent activation stamp, rather than old placement arrays.
- SDK retirement keeps bytes and node counts charged until physical pins drain. Drain callbacks use independent atomic accounting and acquire no SDK lock. Tombstoned monitored items clear their demand, definition and source-evidence references. Source states own exact SDK and cache pins, clear them on invalidation, and use an indexed mapping retirement path.
- Source invalidation callbacks do not acquire the Runtime admission lock while mapping activation owns its lock. Pending retirement work is restricted to owned source buckets; empty-bucket removal clears pending work. Source attachment publishes its bucket before a final validity check, so concurrent invalidation cannot strand pins.
- Periodic SDK revalidation uses current demand/definition authority independently of receiving an initial sample. Restoration resolves the actual projected SDK node. Final Publish/Republish checks retain original sample-age evidence and revoke stale authority without refreshing timestamps.
- Projected downstream consumers preserve the captured input proof through local derived-output acceptance. Physical script/calculation work retains its budget after logical timeout; alarm control/recovery paths do not adopt transient projected inputs, and unsupported projected Shadow execution is suppressed. These changes preserve the existing durable alarm command semantics and local-only behavior.
### Independently reconciled evidence
The reviewer read the run manifests and TRX counters; no builds or tests were executed by the reviewer.
| Evidence | Verified result | Scope |
| --- | --- | --- |
| `20261117T012625.071224Z-d57c015b4536` | 542/542, zero failed or skipped | Complete applicable P08 checkpoint: Runtime239, SDK91, Commons35, Abstractions9, Host64, ScriptedAlarms64, Scripting18, Calculation22. |
| `20261117T013314.505188Z-b855823bfb0f` | 112/112, zero failed or skipped | Final affected SDK unit row, including local Stage6 and stale monitored-node regressions; supersedes SDK91. |
| `20261117T013927.511739Z-3a684df4cbce` | 242/242, zero failed or skipped | Final applicable Runtime row, including all 20 projected-access cases; supersedes Runtime239. |
| `20261117T013207.676008Z-sdk-projection-wire` | 28/28, zero failed or skipped | Actual SDK browse, delivery and monitored-item revalidation wire tests. |
| `20261117T014136.461398Z-final-p08-composed-wire` | 6/6, zero failed or skipped | Actual SDK/Runtime/fixture-peer Raw and UNS composition on the final Runtime graph: configured acquisition/retirement, nested browse/array metadata, mapped root-leaf read/monitoring, caller filtering and capability reuse. Supersedes the earlier green composed run `20261117T013019.915593Z-composed-raw-uns-wire`. |
The reconciled unit selection is **566 passed**, using the final Runtime242 and SDK112 rows plus the six unchanged rows from the complete checkpoint. This is a reconciliation of applicable rows, not a claim that one command executed all 566 cases.
Behavioral failure evidence was also checked: SDK revalidation failed in `20261117T012941.753385Z-sdk-revalidation-red`; the source-attachment race failed in `20261117T013827.442802Z-e086385c96cd` (19 passed, one failed), then passed in the final Runtime row. The separate retirement-gate and bounded-queue packet passed 19/19 in `20261117T013717.014141Z-8c67752417ea`.
The complete checkpoint identifies HEAD `5ea64b4b6ced9b1927307bd90c2fdddef8fac087` with dirty-diff SHA-256 `90e8c58c6229e60eb2f6ef9ede2648a6003e2acabe4248e1b9134c584fb052cc`; its recorded untracked hashes matched the reviewed cache, applier, controller, proof estimator, capability and lifetime files. The final Runtime manifest identifies the same HEAD with dirty-diff SHA-256 `2f1da0c12d60dc71bab50f0190c91f1f89191fe7fa05e0d2d538e8bc382fd4d0`. Later independent P09/P10 work is outside this P08 review and is not covered by these results.
P10 actual TLS/HTTP ingress, Docker/SQL and CLI integration obligations remain required. P11 performance/fairness work, including cohort-refresh fairness, and P12 full-solution verification and final Astra review remain required. The SDK wire results above do not substitute for those gates.
@@ -0,0 +1,13 @@
# P08 shared contract checkpoint
This records Astra's read-only P08 contract review after P07 commit `5ea64b4b6`. It approves the directions below, not the incomplete implementation or SDK integration.
- Preserve exact ServingIdentity from the same verified Browse/Metadata response or immutable local catalog snapshot. Child metadata catalog revisions and branch lease epochs must agree with that identity. Never fetch capabilities later to fill missing provenance.
- Expose immutable stream-establishment Serving through an optional IDataSubscriptionProvenance interface. Forward it unchanged through the deployed lease wrapper; missing provenance remains unavailable.
- GetMetadata has no independent authority TTL. Cache it only under an active, exact-Serving Browse lease anchored before the original request and intersected with local/mapping/key authority. Browse leases and continuations already cap original target credential expiry in P07.
- Add optional ExpectedServingGeneration on WriteItem and protobuf tag 8, with an explicitly negotiated enforcement capability/minor. Reject supplied nonpositive/mismatching generations after authorization and before claiming or dispatching. Include presence and value in both mutation fingerprints.
- A caller-supplied generation is strict intent: preserve its complete view, catalog and incarnation through selection/retries. Refresh requires an intentional new attempt. Originally absent expectations retain explicitly unbound legacy behavior; only independently proven RejectedBeforeDispatch permits its existing per-item failover, with no success/Unknown/missing-response replay.
- Use distinct fixed mapped Raw/UNS namespace URIs. Unknown or retired IDs in those namespaces always deny, ahead of legacy ACL bypasses; no unbounded tombstone registry. Canonical dependency keys must additionally distinguish ordinary Raw paths, mapped Raw and mapped UNS.
- Default sharing to the same view within its configured connection/security scope. Full ServingGeneration belongs in keys and proofs. StableSourceId alone proves neither driver/virtual source-kind equivalence nor cross-view/export/principal equivalence.
SDK/import owners additionally identified implementation obligations: preserve original remote metadata separately from local mapped placement, perform remote page fetch outside SDK Lock, commit continuations only after successful guarded materialization, preserve original ingress-age bounds through imported publication, and gate queued Publish plus Republish in every redundancy mode before enabling mapped monitored-item creation. Actual SDK, array-shape, collision, lifetime, expiry and recovery evidence is still required.
@@ -0,0 +1,5 @@
# Projected input to derived local output
A virtual-tag or calculation run captures the imported sample's own authority and source identity. Before accepting a result into the local derived-output publish seam, the owner must recheck that captured sample and source. Revocation during a run, or replacement of its source, prevents the old run from being accepted as Good. After acceptance the result is a local computed sample; existing local publication and history semantics apply to that accepted sample.
Projected input payloads retained in caches, pending evaluations, and physical script execution are independently charged to a process-wide budget. Projected pending calculation work coalesces by calculation tag. A timeout or cancellation does not release an executing script's charge: the physical runner releases it only when the underlying execution actually ends. A consumer, evaluator, or external runner without the ownership contract fails closed for projected inputs.