2.6 KiB
2.6 KiB
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.