Repository navigation
docs: specify shared reporting persistence layout and pluggable row storage - #7996
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — adds one non-normative proposal document with no blocking findings.
This PR adds a single file, specs/shared-sdk-persistence-proposal.md (268 additions, 0 deletions). It touches no published protocol surface — no static/schemas/source/**, no docs/reference/**, no release scripts, no dist/** — so no changeset is required and no schema↔docs coherence, oneOf discriminator, or artifact-immutability rules apply. The doc self-classifies as a non-normative proposal, cites DR-0021 accurately as status: proposed without ratifying it, links an existing security.mdx, and respects naming/character conventions.
Gate checks:
- No no-auto-approve team match.
gated_paths: false, so row 2 does not apply despitereview_decision: REVIEW_REQUIRED.high_risk: false; no deleted/modified high-risk files.- No breaking-class protocol change — this is a proposal doc, not a wire/schema edit.
- Reviewer surfaced zero Critical/High/Medium findings.
With no blocking findings, no escalation trigger, and no team gate, this falls through to row 9 of the decision table.
Rework the shared SDK persistence proposal into a concrete spec: canonical PostgreSQL layout decisions for both SDKs, canonical JSONL row chunks with segment and manifest digests verified against PostgreSQL, object-storage row bindings (GCS, S3, Azure Blob, filesystem), a derived BigQuery warehouse sink, protocol-aligned retention, safe intent sweeps, and a staged adoption plan starting with JS row storage. Incorporates protocol, JS, Python, data-platform and security reviews. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass on a single new design proposal.
This PR adds one 895-line file, specs/shared-sdk-persistence-proposal.md, a reference-SDK persistence layout design doc. No protocol/wire change, so changeset, schema↔docs coherence, oneOf discriminator, and dist-immutability rules do not engage. Reviewer verified load-bearing claims: DR-0021 and security.mdx links resolve, DR-0021 is cited accurately as proposed-not-ratified, and the §3.1 canonical envelope key ordering is consistent with the §2.4 binding preimage under JCS lexical sort. No real-brand misnaming or invented characters in the fictional scenarios.
No critical/high/medium findings. high_risk is false; gated_paths is false (so the REVIEW_REQUIRED status does not trigger row 2). No no-auto-approve team match. Prior decision was approve. No decision-table trigger fires → row 9 approve.
| - **Configuring a shorter window.** A deployment that needs less pulse history | ||
| advertises a shorter `status_retention_days`. A row retention shorter than the | ||
| advertised window is non-conformant, and the SDK refuses it. | ||
| - **Unchanged pulses.** When a pulse's canonical rows are byte-identical to the current |
There was a problem hiding this comment.
Skipping an unchanged pulse keeps observed_at and data_through at the leaf's values. A buy that has stopped delivering produces identical rows every pulse, so its freshness freezes, and a consumer can't tell "stopped delivering" from "nobody checked". Pacing and delivery-health consumers need exactly that distinction.
Suggest minting a header-only revision instead: new observed_at/data_through, pointing at the leaf's existing chunks, within the same feed only and never across consumers. The wire stays accurate and no rows are stored again.
There was a problem hiding this comment.
Agreed. Skipping would freeze freshness, and the protocol has no other way to advance observed_at/data_through. Done in 3f0ab49 (§4.2): an unchanged pulse now mints a normal snapshot revision with a new ID, revision_number, observed_at, data_through and revision_content_sha256. It shares the previous revision's chunks instead of storing them again.
- "Unchanged" means
row_manifest_sha256matches. The producer still has the rows it just pulled, so it computes the new envelope digest normally and only skips the upload. - Sharing is limited to one obligation (one account and configuration generation), so never across consumers. The header records
rows_shared_from_reporting_revision_id. - Postgres bodies are now content-addressed per obligation, and pruning only deletes bytes that no non-pruned chunk row still references (§3.2, §4.3).
- I dropped the separate "observations" concept. The repeated header-only revisions are themselves the evidence
stabilizedfinality needs.
| for exact bytes, and `row JSON` for cheap field access. | ||
| - The sink also writes commit metadata: revision ID, obligation, finality, supersession | ||
| and period. | ||
| - The sink ships a reference **`current_rows` view** that keeps only each obligation's |
There was a problem hiding this comment.
Could the store expose a cheap "current leaf per obligation for period P" read and a stable host-facing changesAfter cursor? In-process consumers (pacing, alerts) need both, and the warehouse sink's current_rows can't be used for serving.
There was a problem hiding this comment.
Yes, added §3.7 (host reads, not buyer surfaces):
- Current revision. The obligation row carries
current_reporting_revision_id, updated in the revision's commit transaction.getCurrentRevision({account_id, reporting_obligation_id})is one index lookup, andlistCurrentRevisions({account_id, delivery_config_id?, period range, cursor})pages through a period range. Both return headers; rows come from the verified paged reader. changesAfter({cursor, account_id?, kinds?, limit})reads the shared change table, so cursors are opaque, versioned and stable across restarts and SDKs.- Account-scoped feeds order by
seq. They are gap-free becausenextvalis taken under the account lock. - Deployment-wide feeds order by
(xid, seq)and return only rows below the reading snapshot'spg_snapshot_xmin, so a slow lower-seqcommit can't be skipped. A long-running transaction delays that feed but never makes it lose a record.
- Account-scoped feeds order by
- An expired cursor gets
CURSOR_EXPIRED, and the consumer resyncs fromlistCurrentRevisions. Named consumers (the warehouse sink among them) can register to hold back change-table pruning, up tomax_feed_hold_days.
| receipt, consumer status, adjustment or live materialization still names the | ||
| revision. | ||
| - **After expiry.** The period's records leave the protocol projection together, and | ||
| `ledger_retained_from` advances. Headers may persist longer for internal audit, but |
There was a problem hiding this comment.
Is there a retention bound for headers, the change table and unchanged-pulse observations, or are they kept forever by design?
There was a problem hiding this comment.
Not by design; it was a gap. §4.2 now gives every record a bound:
- Row bytes: the protocol window plus holds, then pruned.
- Period records (headers, manifests, statuses, receipts, issues, transitions, lifecycle state):
ledger_record_retention_daysafter the period expires (default and minimumstatus_retention_days). They are deleted together in one period-aligned transaction under the account lock. - Per-obligation tombstone (about 200 bytes: final revision ID, digests, revision count): kept indefinitely, so replays can't resurrect pruned IDs and the audit conclusion survives.
- Change table:
change_retention_days(default 30, never below the protocol checkpoint TTL), extended by registered consumers up to a cap. Older cursors getCURSOR_EXPIRED. - Idempotency replay rows: their 30-day window. JS's current lifetime per-consumer caps become active-window caps.
- Unchanged-pulse observations no longer exist; header-only revisions follow normal revision retention.
- Define the contract format: contract.json, JSON Schema 2020-12 payload schemas, normative CONTRACT.md, fixtures and declarative conformance cases. - Replace skipped unchanged pulses with header-only revisions that share the previous revision's chunks within one obligation, so freshness keeps advancing; content-address PostgreSQL bodies and reference-check deletion. - Add host reads: current-revision pointer, listCurrentRevisions, and a durable changesAfter cursor (account feeds by seq, deployment-wide feeds by (xid, seq) under the snapshot xmin), with registered feed consumers. - Bound retention for headers, change-table rows and replay rows, with period-aligned deletion and per-obligation tombstones. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Thanks @rachitm022. On the shape of
Fixtures are validated against the schemas. Conformance cases are declarative YAML (setup, operation, expected state or error) run by a thin harness in each SDK, with concurrency and crash cases named in the contract and implemented per SDK. It's the protocol's existing toolchain, so no new IDL. |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass.
This PR adds a single new proposal document, specs/shared-sdk-persistence-proposal.md (+1034, 0 deletions). It is reference-SDK persistence design carrying no new protocol requirements. It touches no static/schemas/source/**, docs/reference/**, dist/**, or changeset surface, and is based on main (not 3.1.x), so the schema-drift, changeset, oneOf-discriminator, immutability, and 3.1.x-patch gates do not fire.
Reviewer verified: all references resolve (DR-0021, L1 security docs); protocol claims in the open questions are accurate (REPORTING_REVISION_NOT_FOUND / REFERENCE_NOT_FOUND status matches the enums; superseded-snapshot readability matches reporting-revision.json); and the JCS envelope key order at L372 is correct by codepoint, so the cross-SDK byte-identical digest claim holds.
No Critical/High/Medium findings. high_risk is false, gated_paths is false, no no-auto-approve team match, and this is a new file only. Prior decision was also approve. Decision table rows 1–8 do not fire → row 9 approve.
#3145) Add contract-fixed canonical JSONL encoding for reporting revision rows (shared SDK persistence spec, adcontextprotocol/adcp#7996 §3.1): 500-row segments, 10,000-row / 8 MiB chunks, segment/chunk/manifest digests, ranged verified segment decoding, and streaming hashers that reproduce revision_content_sha256 and the rows_v1 profile from stored bytes without parsing rows. Includes golden vectors shared with the Python SDK. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Add optional listRevisionMetadata/listAdjustmentMetadata to ReportingLedgerStore, implemented in PostgreSQL with `data - 'rows'`. The producer, lifecycle reconciler and status ingest prefer them and fall back to the full listings with rows dropped, so custom stores keep working. Managed Delivery planning selects revision ids instead of whole revision documents. Stage 1 PR 2 of the shared persistence spec (adcontextprotocol/adcp#7996). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Add optional getRevisionMetadata/readRevisionRows to ReportingLedgerStore; PostgreSQL slices rows with jsonb_path_query_array. The delivery handler reads only the requested page and the status revision view inlines rows only up to 10,000 rows. Stage 1 PR 3 of the shared persistence spec (adcontextprotocol/adcp#7996). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Add REPORTING_ROW_STORAGE_MIGRATION (installation identity, row bindings, row sets, chunk manifests, content-addressed PostgreSQL bodies, write intents) with immutability triggers and a schema probe. Stage 1 PR 4 of the shared persistence spec (adcontextprotocol/adcp#7996). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Opt-in `rowStorage` on PostgresReportingLedgerStore (and the production service) writes revision and adjustment rows as canonical JSONL chunks with committed segment/chunk/manifest digests instead of inline ledger JSON. Reads verify before release, delivery pages read only the needed segments, bodies are content-addressed per obligation, legacy inline revisions keep working, and Managed Delivery claims hydrate chunked rows. Every PostgreSQL reporting suite now also runs with REPORTING_ROW_STORAGE=chunked. Stage 1 PR 5 (and 6) of the shared persistence spec (adcontextprotocol/adcp#7996). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
KonstantinMirin
left a comment
There was a problem hiding this comment.
Sorry for the delay on this review.
Summary
I recommend not merging this document in its current form, and not building Stage 3 on it.
The document specifies a custom storage engine: a row format with three digest levels, a fencing protocol with write intents and sweeps, a change feed, and a warehouse loader. Established standards and maintained libraries already solve each of these. Every custom primitive is code that both SDKs must build, keep identical, and secure, in two languages. The code shipped for Stages 1 and 2 already shows that cost. The two SDKs take different account locks, and the cross-SDK acceptance test has never run in CI. The stored values also drift from the AdCP fields they correspond to.
AdCP needs far less than this. The protocol already defines what a seller owes: immutable revisions, exact reads by revision ID with paging, the RFC 8785 digest, retention, and the error codes. The compliance vector in reporting-reconciliation/ already pins the digest, typed control totals included. Everything else is storage, which existing tools already handle.
What I suggest instead
Make the following changes before Stage 3:
- Replace each custom component with the standard or library that already provides it. The table in the next section maps each one.
- Reduce the shared SDK surface to three things: the digest computation and verification, exact-read paging, and a narrow storage interface. The interface writes the rows of a revision, reads rows by revision ID and page, and retires a period. Ship one reference implementation, a PostgreSQL table with
UPDATEandDELETErevoked. Adopters plug their own storage, usually their warehouse, behind the interface. - Store every value in the format AdCP already defines for it. The format section lists the mismatches.
- Don't publish an
adcontextprotocol.org/schemas/persistence/namespace. A storage contract between two SDKs isn't protocol, and the values that do have AdCP schemas are referenced, not re-declared. - Keep this document as a short design record for the storage interface and the digest code the SDKs share, not as a storage-engine specification.
Replace the custom components
Each component in the document has an existing counterpart:
| Component in #7996 | Existing standard or library | What it removes |
|---|---|---|
| §3.1 canonical JSONL in 500-row segments and 10,000-row / 8 MiB chunks, with segment, chunk, and manifest digests | A PostgreSQL table with UPDATE and DELETE revoked. At scale, an open table format with immutable snapshots: Apache Iceberg (pyiceberg) or Delta Lake (deltalake). The protocol digest is computed from JCS rows at write time and stored in the revision header, as it is today. |
The custom row format, its three digest levels, and its byte-pinned cross-SDK fixtures |
| §3.4 three object-store providers plus filesystem | obstore (Python bindings for the Rust object_store crate): create-only put(..., mode="create") and version-pinned reads across S3, GCS, Azure, local, and memory |
Three provider modules with one skeleton |
| §3.2 and §4.3 write intents, owner tokens, lease expiry, sweeps, and the listing backstop | Native create-only writes, which the document already relies on, plus a lifecycle rule for abandoned uploads. Where retention must be enforced: S3 Object Lock, a locked GCS retention policy, or Azure immutable blob storage. | The fencing protocol and the class of bug where a sweep deletes live rows |
| §2.1 object lifetime lock and the re-verification inside the commit | Unique object keys. The JS SDK already refuses templates without {revision_key} when compaction is on (row-storage.ts:273-289); require it always. |
The lock, the re-download inside the commit transaction, and the scoped delete |
§2.1 and §3.7 change table with seq, xid8, registered consumers, and CURSOR_EXPIRED |
The transactional outbox pattern, or PostgreSQL logical replication | A custom change feed shared between SDKs |
§3.6 BigQuery load-job sink and current_rows view |
BigQuery reads Iceberg and Delta Lake tables in Cloud Storage as external tables | A custom loader |
Buyers may need proof of authorship or of history beyond the digest. Standards cover that too: a JWS or COSE signature over the same JCS digest, and a transparency-log profile by reference (C2SP tlog, or SCITT with COSE Receipts). That belongs in a protocol profile, not in SDK storage.
Why change direction now
Stages 1 and 2 have shipped, and Stage 3 puts the shared Core layout, the migration runners, the dual-key locks, and the idempotency store on top of this layer. Every stage added makes the custom layer harder to replace. The shipped code shows the problems a hand-built layer brings:
- The SDKs disagree on the account lock. §2.1 defines one lock. JS locks
hashtextextended('adcp-reporting-account:' || account_id, 0)(postgres.ts:5196). Python lockshashtext('adcp.reporting:' || account_id)(pg.py:721-725). §5 still says the layout "is qualified for concurrent mixed-SDK writers". - The cross-SDK acceptance gate has never run. §7's gate is "JS-written chunks verify in Python and vice versa, against one database and one bucket".
test_one_database_and_one_bucket_in_both_directionsskips unlessADCP_JS_SDK_DIRis set, and no workflow sets it. - The Python half needs sixteen follow-up fixes. They include an error code chosen by substring match on a message, and a
FOR SHARElock that one of two paths doesn't hold. Another is a 17 MiB re-download inside the commit transaction, under the account lock. Most of them disappear with the custom layer. - The stored formats drift from AdCP, as the next section shows.
Store values in their AdCP format
Every stored value that has an AdCP counterpart must use that counterpart's name, type, pattern, and bound, defined once in the protocol schema and referenced. The document and the shipped tables differ from AdCP in these places:
| Value | AdCP definition | #7996 and the SDK tables |
|---|---|---|
| Object key | object_ref: decoded, destination-relative, 1 to 1024 characters (reporting-file-object-ref.json) |
object_key TEXT, no bound |
| Native version | native_version_ref: decoded, 1 to 1024 characters (reporting-native-version-ref.json) |
native_version TEXT, no bound |
| Object size and list | size_bytes, and files[]: {object_ref, native_version_ref, size_bytes, sha256, row_count} (reporting-file-manifest.json) |
byte_count, physical_byte_count, canonical_byte_count, and a separate chunk manifest shape |
| Period date | YYYY-MM-DD in the period's source_timezone |
{period_date:yyyy/MM/dd}, rendered in UTC by both SDKs (row_storage_object.py:226, row-storage-object.ts:179) |
| Platform and destination | ReportingCloud (aws, gcp, azure) and {provider, location, access_mode} (reporting-write-destination.json) |
gcs, s3, azure_blob, filesystem, and per-provider identity_config schemas |
| Page size | max_results from 1 to 100 (pagination-request.json) |
Segments sized for "a 500-row delivery page" (§3.1) |
| Format token | format: jsonl, with algorithm: adcp_jcs_rows_v1 |
encoding = 'adcp_canonical_jsonl_v1' |
The reporting_revision_id pattern, the hex digests, the control-total shape, the currency check, RFC 3339 timestamps, and the wire error codes already match. Keep them exactly as they are.
What carries over
The work has parts worth keeping in any design:
- The protocol goal: immutable revisions that a buyer can read exactly and verify.
- RFC 8785 as the single encoding primitive, and the digest code in
row-encoding.tsandrow_encoding.py, which the golden fixtures pin to each other. - The correct use of native create-only writes on all three providers.
- The typed-control-totals fix, which the compliance vector confirms.
- Exact-read paging, the wire mapping in §3.5, and the protocol error codes in §10.
- The one-database interop test from #1470, retargeted at the storage interface.
I can open the Stage 2 follow-ups as separate issues, with file and line evidence, and I'm happy to help define the storage interface and the replacement plan.
|
Thanks, @KonstantinMirin. This is the review the document needed, and most of it lands. Here's where we're taking it. What we're changing
What stays supported as the JS implementationNarrowing the cross-language contract is right. That doesn't demote the JS implementation to example code. The adopter's managed delivery, notifications and dashboard copy are built on these pieces, so they stay supported SDK code behind the storage interface:
Demoting them would push every adopter into owning a fork. That's the outcome a reference SDK exists to prevent. Where we see it differently
What carries overAgreed on your list: immutable, exactly readable revisions; RFC 8785 as the single encoding primitive, with the shared digest code and its golden fixtures; native create-only writes; typed control totals; exact-read paging and the §3.5 wire mapping; the protocol error codes; and the one-database interop test, retargeted at the interface. We'll revise the document along these lines. We'd welcome your help defining the storage interface. 🤖 Generated with Claude Code |
…esign record Rewrite specs/shared-sdk-persistence-proposal.md after the review on this PR. The document now leads with the narrow storage interface (write a revision's rows, read rows by revision ID and page, retire a period) and the shared RFC 8785 digest code with its golden fixtures. Dropped: Stage 3, the shared Core layout, dual-key locks, the shared idempotency store, the persistence/ contract namespace and catalog-manifest runners, and the adcontextprotocol.org/schemas/persistence/ namespace. Added: one writer SDK per ledger database as an explicit constraint, with the reproduced seq skip as the reason; the supported JS implementation behind the interface; the change feed as the transactional outbox; stored values under their AdCP names; and an adoption table that records what shipped in adcp-client and adcp-client-python. Co-Authored-By: Claude Sonnet <[email protected]>
|
Pushed b21051a: the proposal is rewritten to match the direction in our reply, @KonstantinMirin and @rachitm022. It goes from 1110 lines to 381. Now a short design record. It leads with the narrow storage interface (write a revision's rows, read rows by revision ID and page, retire a period) and the shared RFC 8785 digest code with its golden fixtures. Dropped, with the reason in the document and a link to the review: Stage 3, the shared Core layout, dual-key locks, the shared idempotency store, the Added or changed:
Two things I would like checked. §8 extends the one-writer constraint to any idempotency store both SDKs would write, which is my inference. §6 keeps a paragraph on Python's 🤖 Generated with Claude Code |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean design-record addition, no blocking or medium findings.
This PR adds one new file, specs/shared-sdk-persistence-proposal.md (381 lines), an explicitly non-protocol reference-SDK persistence design record ("no new protocol requirements"). It touches no static/schemas/source/**, no docs/reference/**, and no dist/** artifacts, so no changeset is required and none is missing.
Checks performed by the reviewer: all five cited AdCP schema names in §2 resolve; §1.2's control_totals shape matches reporting-control-total.json exactly (no spec drift); cited DR-0021 and the L1 security doc exist with resolving links; naming is clean (AdCP, fictional examples only). Substantially revised since the prior approve in response to KonstantinMirin's review.
Decision-table walk: no critical/high findings (row 1 n/a); gated_paths is false (row 2 n/a); not high-risk and no deletions (rows 3/5 n/a); no medium data-loss/schema/infra findings (row 4 n/a); prior decision was approve, not escalate (row 6 n/a); no no-auto-approve team match (row 7 n/a); fewer than three medium findings — zero in fact (row 8 n/a). Falls through to row 9: approve.
Note: review_decision is CHANGES_REQUESTED, but that only forces escalate under row 2 when gated_paths is true; here it is false, so the gate does not apply. No breaking-class protocol change is present (design record only), so the breaking-change hard gate does not apply either.
|
§8: one writer and the idempotency storeNo shared idempotency store exists, and Stage 4 keeps it that way. The sentence is still true, for a reason the lock argument does not give: both SDKs create a table named §6: Python's
|
Section 6: replace the Python-specific protected paragraph with the generic rule that an SDK's own append-only records can stop phase 3 and leave the period retiring with a cause after its bytes are freed. Section 8: ground the one-database fact in the adcp_idempotency table that both SDKs create by default with incompatible layouts. Section 9: record plain partitioned rows (rejected, with a local measurement of exact paged reads and of STORAGE EXTERNAL) and a separately published storage package (alternative considered). Section 1.2 and 7: describe the 500-row segment as the verification and range unit, with pages of at most 100 rows served from within segments. Section 2: qualify the pattern-and-bound claim for row_binding_id. Sections 3.2, 4.2 and 5: link the tracking issues for the BigQuery revision metadata load, the listing collector, removing the object lock and the (xid, seq) account feed. Co-Authored-By: Claude Sonnet <[email protected]>
|
Thanks.
Measurement (§9). JavaScript SDK
The chunk format is 15 to 20 times a plain read when warm and 6 to 9 times when cold, so it is not justified on PostgreSQL speed. §9 says that, and keeps the format for object-store verification and one shared shape. A plain table can also reproduce the revision digest by a full ordered scan (0.26 s against 1.65 s for the verified chunked read), so the entry does not claim that as a reason. On Where your description did not match what I found:
The packaging and row-format positions are argued in the issues, as you proposed (#3286 and #1510 for packaging). I have not resolved your review. 🤖 Generated with Claude Code |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass on a documentation-only addition.
This PR adds one new 482-line design record, specs/shared-sdk-persistence-proposal.md, covering reference-SDK persistence only. It does not touch the published protocol surface (static/schemas/source/**, docs/reference/**, task definitions, release scripts, or dist/**), so changeset, oneOf, dist-immutability, and breaking-class concerns do not apply.
The reviewer verified the doc's load-bearing protocol claims against the actual schemas: L87 revision_content_sha256 matches reporting-revision.json digest_requirement; L90 control_totals shape matches reporting-control-total.json; L130 adcp_jcs_rows_v1 matches reporting-canonicalization-contract.json; all referenced schema files exist; storage JSONL form kept distinct from the protocol array-digest form. L409 correctly notes DR-0021 is still proposed and not ratified here — proper governance hygiene.
No critical/high/medium findings. Not gated (gated_paths: false), high_risk false, no author-team gate. Despite review_decision: CHANGES_REQUESTED, row 2 only fires when gated_paths is true — it is false here, so no escalation trigger applies. Falls through to row 9: approve. Consistent with the prior clean approve.
|
@KonstantinMirin, could you take another look?
Since then, the storage split you proposed has shipped on both sides: 🤖 Generated with Claude Code |
Dismissed by the PR owner after the conditions in KonstantinMirin's 2026-10-15 comment were met in d18aab7: the §6 correction, §8 grounded in the adcp_idempotency collision, the §9 plain-partitioned-rows entry with a measurement, and tracking issues adcp-client#3281-#3286 linked from the document. The packaging proposal he raised has since shipped on both SDKs (@adcp/reporting-storage; adcp-client-python#1557). No reply after a follow-up on 2026-10-24.
Turns the shared-persistence proposal into a concrete spec for (1) one PostgreSQL layout for Reliable Reporting shared by the JS and Python SDKs and (2) storing revision rows outside PostgreSQL, with a derived BigQuery warehouse copy for analytics.
What it specifies
adcp_reporting_*tables,COLLATE "C"identifiers, transaction-level account locks with one shared key (and a dual-key transition for rolling upgrades), a sequence-based change feed, startup catalog fingerprints, and a decision table resolving every JS/Python Core divergence.postgres(default) and object storage (GCS, S3, Azure Blob, filesystem), written create-only, with a host allowlist for bindings, hashed key templates, and fenced write intents so a sweep can never delete adopted or committed bytes.current_rowsview. The sink is never read for serving or verification. Recommended GCP shape: GCS row store plus BigQuery sink.status_retention_days. Unchanged pulses may skip minting a revision. Includes a wire mapping for expired, unavailable and corrupt rows.Considered and deferred: BigQuery as the ledger database or as the authoritative row store, and pointing at rows already sitting in an adopter's warehouse. Reasons are in §9.
Upstream protocol follow-ups listed in §10:
REPORTING_REVISION_NOT_FOUNDis used byget_media_buy_deliverybut missing from the error-code enum.Review. Protocol, JS SDK, Python SDK, data-platform and security reviews have been folded in. The canonical JSONL envelope reconstruction was checked against the JS canonicalizer: Unicode, numeric edge cases, and 20 chunk/row-set combinations all match.
Validation: links resolve, fenced blocks balance,
git diff --checkis clean, and the local pre-commit suite passed (unit tests, dynamic-import/identity guards, typecheck).🤖 Generated with Claude Code