Skip to content

[host01] Batch D1 reads within request-scoped limits - #12

Merged
FlyOverCoderKY merged 6 commits into
mainfrom
claude/d1-free-read-batching
Nov 9, 2026
Merged

FlyOverCoderKY merged 6 commits into
mainfrom
claude/d1-free-read-batching

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Adds opt-in, request-scoped batching for concurrent D1 keyed reads, defaulting to one with a configurable per-batch bound of 512. Concurrent public keyed reads can coalesce; writes and internal optimistic-concurrency reads retain their direct paths. Callers bound their read waves and Store lifetime because the queue has no total pending cap. This is the storage prerequisite for the Knowledge and AI plan on Workers Free.

Prepares the unpublished D1 0.4.6 candidate using the qualified DynamoDB 0.4.5 archive and genuine provenance. Historical fixtures keep their original three-package policy. New tests cover the modern failed-attempt physical writer, recovery attribution and D1-selected preparation; the fixture inventory documents the public evidence. Core remains pinned at 0.4.0.

Validation uses Node 22 and 24: formatting, types, the complete real Miniflare source suite, package-selection regressions and modern-writer regressions. Full current-head CI and an independent full review remain required. Separate isolated packed-D1 tests must run the entire copied suite with genuine registry Core 0.4.0 in both default and 512 modes, all adapter cases and public-type checks, with no skips. Published Core has fewer conformance cases than the workspace; the packed gate records actual counts from the complete pinned inputs. Merge and publication remain gated on that proof. No host activation or live Workers Free acceptance is claimed.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

OpenRouter review posted (clean). #12 (review)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T21:06:36.251028Z da9744b Manual request
🔒 Security Review ✅ Completed 2026-11-09T21:09:56.215461Z da9744b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 39a3d337b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 39a3d337b0

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenRouter pull-request review

Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: 39a3d337b0af12ad4ed9a669317dbdb89173f94d
Judge: openai/gpt-5.6-luna
Cost: $0.3660 (lanes $0.3619 + judge $0.0041) + at least $0.13 (incomplete)

Lanes

  • openai/gpt-6.1-sol: ok (1 finding(s), 89.6s, 464694+3015 tokens (359543 cached), 5 tool round(s), via Azure, $0.36)
  • z-ai/glm-5.3-flash: ok (6 finding(s), 933.9s, 2126674+52557 tokens (1743104 cached), 21 tool round(s), 1 retried request(s), salvaged finish, via Wafer, at least $0.13 (incomplete))

Findings

🔵 Issue 1 — Missing DynamoDB fixture source inventory

tests/fixtures/release-registry/README.md:11 · nit · identified by openai/gpt-6.1-sol

A maintainer auditing or refreshing the new DynamoDB fixtures cannot find their capture details in the fixture directory's source inventory. tests/fixtures/release-registry/README.md still documents only the three older Pegma archives and their attestations, leaving the new release evidence undocumented.

Add entries for:

  • storage-dynamodb-0.4.5.tgz, including its canonical URL, size, digest and license.
  • dynamodb045-slsa.json, including its canonical response URL, observation date and original complete-response digest, consistent with the existing attestation entries.
  • dynamodb045-original-run.json and dynamodb045-original-jobs.json, identifying their capture endpoints and explaining that the latest run metadata describes recovery attempt 2 while the jobs capture describes writer attempt 1.

I checked the directory inventory, its README, the reuse policy and modernWriterFixture(). The policy pins the archive and the tests explain the attempt distinction, but neither supplies the missing centralized fixture capture record. Updating the README would make these security-sensitive test inputs easier to independently trace and maintain.

🟠 Issue 2 — New release fixtures are absent from the fixtures provenance README, leaving a binary archive undocumented

tests/fixtures/release-registry/README.md:9 · risk · identified by z-ai/glm-5.3-flash

A reviewer or auditor enumerating tests/fixtures/release-registry/ after this PR finds a 14,618-byte binary archive (storage-dynamodb-0.4.5.tgz) plus three new JSON fixtures (dynamodb045-slsa.json, dynamodb045-original-run.json, dynamodb045-original-jobs.json) with no documented source URL or digest. The README that exists precisely to attest every fixture's origin (tests/fixtures/release-registry/README.md) still lists only the three historical archives and states "The three archives total 47126 bytes", which is now false. In a repository whose release posture depends on every fixture being traceable to the official registry (the README's own framing, and AGENTS.md's hard rules), an undocumented binary tarball that the new D1-selection tests treat as the "genuine qualified original" is exactly the kind of input the README exists to pin.

Evidence: the changed-path list contains the four new fixture files but not tests/fixtures/release-registry/README.md; its archive table (line ~9) and SLSA table (line ~20) enumerate only storage-core-0.4.0.tgz, storage-azure-tables-0.4.0.tgz, storage-cloudflare-d1-0.4.1.tgz, core040-slsa.json, azure040-slsa.json, d1041-slsa.json.

Repair: add rows for the new tarball (source URL https://registry.npmjs.org/@​pegma/storage-dynamodb/-/storage-dynamodb-0.4.5.tgz, SHA256 5bb9cbc1... from the policy entry) and the three JSON fixtures, and update or qualify the archive total.

🟠 Issue 3 — Reversed Cloudflare D1 quota-accounting claim (batch = one query) is now asserted as fact and underpins the feature's value proposition

packages/storage-cloudflare-d1/README.md:113 · risk · identified by z-ai/glm-5.3-flash

If the linked Cloudflare limits page does not actually say that one db.batch() counts as a single query against the per-invocation limit, the new documentation actively misleads Free-plan users: a 512-statement read batch or a 100-action transaction would still consume 50/100+ queries per invocation, and a host that adopts readBatchSize: 512 to stay inside the 50-query Free budget would instead be throttled mid-request.

This is not a neutral restatement: the code comment being edited asserted the exact opposite before this PR ("every statement inside a batch counts against the Worker invocation's D1 query budget"), and the whole rationale for MAX_TRANSACTION_ACTIONS = 100 was premised on that older understanding. The PR flips the claim in three places at once:

  • packages/storage-cloudflare-d1/src/index.ts MAX_TRANSACTION_ACTIONS comment (~line 32): "D1 counts a batch as one query against the invocation budget"
  • packages/storage-cloudflare-d1/README.md (~line 113): "one db.batch() counts as one query against that limit, not one per statement" and "50 queries per Free Worker invocation"
  • packages/storage-cloudflare-d1/README.md transaction section (~line 168): "Cloudflare counts the batch as one query against the invocation query budget"

I could not verify the external claim: the review environment has no network access, and no repository file or test pins the Cloudflare-documented accounting. Given the repository's own discipline of not asserting unqualified external facts, the claim should be re-verified against the linked page (and ideally pinned with a quoted excerpt and observation date, as tests/fixtures/release-registry/README.md does) before this text is published in the 0.4.6 package README.

🔵 Issue 4 — Packed-D1 proof instruction hardcodes the moving test count "141 cases"

docs/RELEASING.md:181 · nit · identified by z-ai/glm-5.3-flash

docs/RELEASING.md instructs the mandatory pre-publication packed proof to "run all 141 cases against real Miniflare". The number is correct for this commit (I verified it: 46 core conformance cases × 2 modes = 92, plus 36 new batching tests, plus 13 pre-existing D1-specific tests = 141), but it is a count of a suite this same PR grew by ~36 tests, and any later suite edit (one added conformance case, one new batching test) silently invalidates the instruction. A releaser following the doc verbatim against a future tagged commit would either run the wrong number of cases or, worse, treat a mismatch as a procedure failure and improvise.

Concrete cost: the doc is a release-gate procedure; a hardcoded count turns a routine suite change into an apparent gate violation or into a stale gate that under-covers the suite.

Evidence: the paragraph is newly added in this PR at docs/RELEASING.md line ~181; nothing else in the doc pins suite counts. Repair: say "the full D1 suite at the tagged commit" or have the release checklist derive the count from the suite run output.

🔵 Issue 5 — Read queue has no bound or backpressure; a Store shared across requests accumulates pending reads without limit

packages/storage-cloudflare-d1/src/index.ts:485 · nit · identified by z-ai/glm-5.3-flash

With readBatchSize > 1, queuedRead pushes a closure-plus-resolver onto pendingReads (index.ts ~line 485) for every concurrent get/getVersioned, and the drain loop only ever retires up to readBatchSize per real batch. There is no cap on queue length. Concrete failure scenario: a developer shares one createCloudflareD1Store(...) instance at module scope (the exact misuse the README warns about) under a burst of, say, 20,000 concurrent keyed reads — 512 drain per network round-trip, so ~39 sequential batch round-trips' worth of pending closures and their captured resolve/reject and key strings sit in memory at once on a Worker with a 128 MB limit, and every read's latency is serialized behind unrelated requests' reads. The docs warn "Use a request-scoped Store rather than sharing the queue across Worker requests", but the adapter does nothing to defend against it, whereas the direct path degrades only to normal per-call D1 behavior.

I checked whether any other guard bounds growth: scheduleReadBatch/drainReadBatches (packages/storage-cloudflare-d1/src/index.ts ~lines 526-563) contain no queue-size limit, no rejection-on-overflow, and no documented maximum. A cheap mitigation (reject once the queue exceeds some multiple of readBatchSize, or document that the queue is unbounded) would make the misuse fail loudly instead of degrading memory/latency silently.

🔵 Issue 6 — readForGet duplicates read's post-read mapping, so tombstone semantics can drift between direct and batched paths

packages/storage-cloudflare-d1/src/index.ts:608 · nit · identified by z-ai/glm-5.3-flash

readForGet (index.ts ~line 608) re-implements the exact body of the existing read helper (row null / deleted === 1 / record_json === null → null, else { record_json, version }). The two can drift: e.g., if tombstone handling or the RecordRow projection ever changes in read (which also serves insertIfAbsent's conflict fallback), the public get/getVersioned batched path silently keeps the old semantics, and the doubled conformance run may not catch it if the divergent behavior is only reachable via a path one helper no longer covers. Concrete cost: insertIfAbsent's fallback read and the public batched read disagreeing about a record_json: null non-deleted row after a future edit.

Evidence: read at index.ts ~line 480 and readForGet at ~line 608 contain character-identical return-mapping logic; nothing shares it. Repair: have readForGet call read when readBatchSize === 1 (or factor the mapping into one function used by both), keeping the direct path exercised through the shared code.

🔵 Issue 7 — Batched keyed reads validate row shape strictly while direct keyed reads do not, splitting behavior on readBatchSize

packages/storage-cloudflare-d1/src/index.ts:333 · nit · identified by z-ai/glm-5.3-flash

batchRows (index.ts ~line 333) rejects rows whose version is not a non-empty string, whose deleted is not exactly 0/1, or whose record_json is neither string nor null — with a StorageError. The direct path (readPhysical → .first<PhysicalRow>(), ~line 470) applies none of these checks and would happily return such a row, where get would then pass a numeric version into version-conditional statements or decode a non-string record_json with unpredictable results. So the same database row is a hard StorageError under readBatchSize: 512 and undefined-but-tolerated behavior under the default readBatchSize: 1.

Concrete failure scenario: an application against a non-conforming or corrupted binding (or a hand-rolled CloudflareD1Database test double) flips between the two modes as developers tune readBatchSize, turning previously "working" reads into rejections or vice versa — an operational surprise during the opt-in rollout this PR stages.

The new tests deliberately pin the strict behavior ("rejects %s results from the real backend rather than treating them as missing records"), so this is intentional hardening, not an oversight; the finding is that the hardening was applied only to the new path. Repair options: apply the same validation in readPhysical/read (making both paths strict), or document that shape validation is batch-mode-only. With the real schema (version is CAST(... AS TEXT), deleted is CHECK-constrained) the divergence is unreachable in production D1, which is why this is a nit rather than a bug.

Workflow run

There is no caching or same-key deduplication, and each caller decodes its
own value. A batch failure rejects all reads in that batch; later calls can
recover without an automatic fallback to individual requests.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Reversed Cloudflare D1 quota-accounting claim (batch = one query) is now asserted as fact and underpins the feature's value proposition (risk)

If the linked Cloudflare limits page does not actually say that one db.batch() counts as a single query against the per-invocation limit, the new documentation actively misleads Free-plan users: a 512-statement read batch or a 100-action transaction would still consume 50/100+ queries per invocation, and a host that adopts readBatchSize: 512 to stay inside the 50-query Free budget would instead be throttled mid-request.

This is not a neutral restatement: the code comment being edited asserted the exact opposite before this PR ("every statement inside a batch counts against the Worker invocation's D1 query budget"), and the whole rationale for MAX_TRANSACTION_ACTIONS = 100 was premised on that older understanding. The PR flips the claim in three places at once:

  • packages/storage-cloudflare-d1/src/index.ts MAX_TRANSACTION_ACTIONS comment (~line 32): "D1 counts a batch as one query against the invocation budget"
  • packages/storage-cloudflare-d1/README.md (~line 113): "one db.batch() counts as one query against that limit, not one per statement" and "50 queries per Free Worker invocation"
  • packages/storage-cloudflare-d1/README.md transaction section (~line 168): "Cloudflare counts the batch as one query against the invocation query budget"

I could not verify the external claim: the review environment has no network access, and no repository file or test pins the Cloudflare-documented accounting. Given the repository's own discipline of not asserting unqualified external facts, the claim should be re-verified against the linked page (and ideally pinned with a quoted excerpt and observation date, as tests/fixtures/release-registry/README.md does) before this text is published in the 0.4.6 package README.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current Cloudflare limits page explicitly documents this accounting rule. Under “Batch limits” it says: “a db.batch() call counts as a single query against it”. The same page lists 50 queries per Worker invocation on Free and 1,000 on Paid. See Cloudflare D1 limits, updated October 30, 2026.

The per-statement SQL limits still apply to each individual statement. Our README separates those limits from the adapter's configurable 1–512 statement batching bound. This PR makes no claim that a local test proves live Free CPU or daily usage acceptance.

The finding's conditional premise is therefore contradicted by the current primary documentation. I am retaining the correct accounting statement and leaving this thread visible with the supporting evidence.

Comment thread docs/RELEASING.md Resolved
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

Fixed r1-1 and r1-2 in 0b7f5e4: the fixture README now inventories the exact 0.4.5 archive, genuine SLSA statement and public run/job observations, with byte digests and explicit original failed physical-writer versus successful recovery attribution. Also addressed r1-4 through r1-7 in the same commit; their inline threads include the changes. Local format/types, package32, modern-writer7 and full real-D1 source141 pass on both Node 22 and 24. Fresh full current-head review, CI and complete isolated packed-SDK proof remain required. The conditional r1-3 concern is rebutted with the current primary Cloudflare limits documentation in its thread, which remains visible.

@FlyOverCoderKY FlyOverCoderKY reopened this Nov 9, 2026
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 3fffe5555a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 3fffe5555a

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenRouter pull-request review

Verdict: issues
Scope: latest-commit (commit-range)
Mode: verify
Commit: 3fffe5555af5fb948139fbbf74466658912915de
Judge: openai/gpt-5.6-luna
Cost: $0.0904 (lanes $0.0896 + judge $0.0008)

Lanes

  • openai/gpt-6.1-sol: ok (0 finding(s), 22.6s, 53989+915 tokens (33708 cached), 3 tool round(s), via Azure, $0.0695)
  • z-ai/glm-5.3-flash: ok (1 finding(s), 257.3s, 221088+18833 tokens (180736 cached), 7 tool round(s), via Modal, $0.0201)

Round 2 resolution

  • ✅ r1-2 fixed correctly — New release fixtures are absent from the fixtures provenance README, leaving a binary archive undocumented: The fixture README now inventories the DynamoDB 0.4.5 archive and all three JSON fixtures with public source URLs and SHA256 digests. It updates the archive totals and explains the original failed writer versus successful recovery attribution.

The archive identity, size, digest, source commit and original attempt agree with scripts/release-reuse-policy.json; the modern-writer tests consume thes…

  • 🤝 r1-3 disputed — Reversed Cloudflare D1 quota-accounting claim (batch = one query) is now asserted as fact and underpins the feature's value proposition: The author's technical rebuttal quotes the primary Cloudflare limits documentation explicitly stating that a db.batch() call counts as a single query against the invocation limit. That directly addresses the original finding's conditional premise, and no specific contrary evidence was found in the checkout.

The current README also distinguishes invocation accounting from individual statement co…

  • 5 nit finding(s) from earlier rounds retired (severity floor for follow-up rounds is risk).
  • Open findings after this round: 1 (0 bug-severity).

Findings

🟠 Issue 1 — docs/securityscan.md still asserts the per-statement batch accounting that this PR reversed elsewhere

docs/securityscan.md:94 · risk · identified by z-ai/glm-5.3-flash

An auditor reading the resolved D1 transaction-limit item in docs/securityscan.md gets the exact opposite quota model from the one the PR now claims. Item 3's evidence states that the invocation query budget is "1000 queries on Workers Paid, 50 on Free — and every statement inside a batch counts against it", while the corrected claims say the reverse: packages/storage-cloudflare-d1/README.md:123-125 ("one db.batch() counts as one query against that limit, not one per statement"), packages/storage-cloudflare-d1/README.md:173, and packages/storage-cloudflare-d1/src/index.ts:32 ("D1 counts a batch as one query against the invocation budget"). At least one of these documents is factually wrong about the platform limit the Free-plan read-batching value proposition depends on.

Mechanism: the PR rewrote the adapter comment and README accounting claims but did not touch the security-scan doc, whose item 3 still teaches the old per-statement model. The staleness is self-evident inside the doc: the item's resolution note says "The query-budget correction noted in the evidence is recorded in the adapter comment and the package README" — both of which now assert the opposite of the item's own evidence, so the doc's cross-reference no longer describes either file.

Checked: a repo-wide grep for batch-accounting wording finds exactly these two clusters (docs/securityscan.md:94 versus the README and source comment), so the contradiction is fully characterized. If the fixing agent's quote of the current Cloudflare "Batch limits" documentation is accurate, the repair is to update docs/securityscan.md:94 to the batch = one-query accounting; I could not verify the external page in this offline review, so this finding is stated as the contradiction itself rather than adjudicating which side is right.

Workflow run

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 3fffe5555a

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

Fixed r2-1 in da9744b. The historical security report now explicitly dates the November accounting correction, links the current primary Cloudflare limits, and distinguishes one batch invocation from per-statement SQL limits and the adapter parity cap. Both Node formatting gates pass. The complete packed SDK proof passed on both Nodes at 3fffe55 (127 cases each, zero skips, strict public types and canonical Core 0.4.0); this follow-up changes only the historical report outside every package. Current-head CI and the required complete-PR review remain gates. The automatic incremental synchronization review is being replaced by an unchanged-head full review; cancellation is not a passing review.

@FlyOverCoderKY FlyOverCoderKY reopened this Nov 9, 2026
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: da9744b672

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: da9744b672

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenRouter pull-request review

Verdict: clean
Scope: full-pr (full-pr)
Mode: verify
Commit: da9744b6723a7b9c81ecf931aa7078c1b3f6627c
Judge: openai/gpt-5.6-luna
Cost: $0.4447 (lanes $0.4445 + judge $0.0001)

Lanes

  • openai/gpt-6.1-sol: ok (0 finding(s), 49.6s, 474688+2282 tokens (371532 cached), 5 tool round(s), via Azure, $0.35)
  • z-ai/glm-5.3-flash: ok (0 finding(s), 639.0s, 2833584+48753 tokens (2511872 cached), 26 tool round(s), via StreamLake, $0.0949)

Round 3 resolution

  • ✅ r2-1 fixed correctly — docs/securityscan.md still asserts the per-statement batch accounting that this PR reversed elsewhere: docs/securityscan.md:94-100 now explicitly dates the accounting correction, retracts the per-statement invocation-budget claim, and links the Cloudflare limits documentation. It distinguishes batch invocation accounting from individual SQL limits and the adapter's transaction parity cap, consistent with the D1 README and source comment. The original documentation contradiction is fully resolved.
  • Open findings after this round: 0 (0 bug-severity).

No structured findings from the successful lane(s).

Workflow run

@FlyOverCoderKY
FlyOverCoderKY merged commit 35daa5e into main Nov 9, 2026
5 of 9 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the claude/d1-free-read-batching branch November 9, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant