Repository navigation
Conversation
Add the @adcp/sdk/reporting/azure subpath with
createAzureBlobReportingRowObjectProviderV1({ client, clients }), backed by
the new optional peer @azure/storage-blob (type-only import; the host
injects BlobServiceClient instances).
- location { account, container }; the selected client must belong to the
bound account; endpoint and credentials come only from the client.
- putIfAbsent: block-blob upload with If-None-Match: *; 409
BlobAlreadyExists / 412 -> getProperties adopts the existing blob.
- nativeVersion: versionId when blob versioning is enabled, else the quoted
ETag; reads (ranged, byte-capped) and deletes pin it and only count a
response that echoes that exact version.
- delete: ETag-conditional, or for versions: confirm the version, delete the
base blob if it is still that version, then delete the version.
- probe: container exists, no anonymous access, and an empirical
create-only check with a probe blob under the prefix.
- Metadata names are stored as C# identifiers (adcp-intent -> adcp_intent).
An opt-in emulator test (REPORTING_AZURE_TEST_CONNECTION_STRING) runs the
conformance suite through the official client; verified locally against
Azurite.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Adds @adcp/sdk/reporting/azure Blob row-object provider (new src/lib/reporting/azure/index.ts), mirroring the vetted S3 provider and sharing row-storage-provider-io helpers.
What I checked:
- Changeset present and correct (
minor, additive new subpath) — satisfies changeset-vs-wire-impact. - Official
@azure/storage-blobclient only, injected by host; no custom HTTP/SSE reimplementation. - package.json exports/typesVersions dual-format wiring matches s3/gcs; tsup glob auto-includes the new file;
check-package-size.mjsbumped +4. - Operational readiness: every blob call forwards
abortSignal; errors mapped toPROVIDER_UNAVAILABLE; probe cleanup best-effort/abort-aware. - Correctness: version pinning refuses stores that ignore
versionid; versioned delete dance and create-only probe verified; ACCOUNT/CONTAINER regexes reject malformed inputs. - Witness-not-translator: no fabricated/normalized wire data.
No blocking or medium findings. No high-risk flag, no gated paths, no author team gate. Falls through to row 9.
bokelley
force-pushed
the
bokelley/reporting-s3-row-provider
branch
from
October 8, 2026 16:47
0016fe1 to
31f9bed
Compare
bokelley
force-pushed
the
bokelley/reporting-azure-row-provider
branch
from
October 8, 2026 16:49
7919df7 to
2f4bf27
Compare
bokelley
merged commit Oct 8, 2026
5bbe487
into
bokelley/reporting-s3-row-provider
3 of 4 checks passed
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — new @adcp/sdk/reporting/azure provider ports the approved S3 provider to Azure Blob with no blocking or medium findings.
What I checked:
- No findings of any severity from the reviewer (clean approve).
gated_paths: falseandreview_decision: APPROVED— no hard approval gate blocks this.high_risk: false; no no-auto-approve team match.- Changeset present (
.changeset/reporting-azure-row-provider.md), minor/additive, matching the new subpath export, typesVersions, package-size budget, and optional peer dep — satisfies changeset-vs-wire-impact. - Provider is a witness: create-only writes (
If-None-Match: *), version-pinned reads/deletes that require the store to echo the exact version, empty-range and version-ignoring-store paths fail closed to null — no fabrication/re-shaping. - Errors route through
runReportingRowProviderOperationwith secret-free codes and abort/deadline propagation; every I/O call carriesabortSignal. - Tests are comprehensive (versioned/unversioned conformance, byte caps, closed credential map, secret-free RestError mapping, abort propagation, emulator opt-in).
Prior decision was also approve on an earlier head; no new findings. Decision table: rows 1–8 do not fire → row 9 approve.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #3164 (S3 provider). Third of three cloud providers for the shared SDK persistence spec (adcontextprotocol/adcp#7996 §3.4).
What
New subpath
@adcp/sdk/reporting/azureexportingcreateAzureBlobReportingRowObjectProviderV1({ client, clients }), with a new optional peer@azure/storage-blob(^12.23.0). The provider only imports types from the SDK, because the host injectsBlobServiceClientinstances. Loading the subpath therefore never loads the Azure SDK. The devDependency is pinned to~12.32.0, the last line withengines.node >=20, since CI runs Node 20. The emulator test is the only place the SDK is loaded.{ account, container }; the account name and container name are validated. The client chosen bycredentialRefmust reportaccountName === location.account, elseUNSAFE_BINDING. The endpoint and credentials come only from the client.uploadwithconditions: { ifNoneMatch: '*' }, content type,no-store, and no content encoding. Metadata names are converted to C# identifiers (adcp-intent→adcp_intent) because Azure rejects hyphens. A 409BlobAlreadyExistsor a 412 triggersgetPropertiesand returnscreated: false.versionIdwhen blob versioning is enabled, else the quoted ETag.withVersion(versionId)orconditions.ifMatch, plusdownload(offset, count). ThecontentLengthcheck and the streaming cap both enforcemaxBytes. 404/412, and a 400 for a malformed version, read asnull. A response that does not echo the pinnedversionId/ETag also reads asnull. Azurite ignoresversionid, and this check is what made conformance pass against it. 416 →ROWS_INTEGRITY_FAILED.delete({ conditions: { ifMatch } }); 404/412 →absent.ifMatchon the current ETag, which turns it into a previous version.versionid, and repeat deletes are idempotent.UNSAFE_BINDING) and must not haveblobPublicAccessset. It then runs an empirical create-only check: upload a probe blob twice withIf-None-Match: *and require the second upload to fail with 409/412. The probe blob and its versions are cleaned up.abortSignalis passed on every call, and the shared helper settles on abort. RawRestErrors, whose URLs can carry SAS tokens, never escape.Tests
test/lib/reporting-azure-row-provider.test.js(12 tests) uses an in-memory fake of theBlobServiceClientsurface in both versioned and unversioned modes. The fake refuses to delete the current version by version ID, the conservative assumption. Tests cover:contentLength;versionidnever serves or deletes another version;credentialRefmap, endpoint/SAS fields rejected inlocation, secret-free errors, and deadline/abort.REPORTING_AZURE_TEST_CONNECTION_STRING=UseDevelopmentStorage=true node --test test/lib/reporting-azure-row-provider.test.js. Passed locally against Azurite 3.37 (azurite-blob --inMemoryPersistence).build:lib,typecheck,publint --strict, arethetypeswrong (no problems; coversreporting/gcs,reporting/s3andreporting/azure), andcheck-package-size(+4 files; bytes within the existing budget) all pass.Risks
🤖 Generated with Claude Code