Repository navigation
feat(api): resolve declares its payload limit, its latency and its metering (#1365) - #1431
Merged
Merged
Conversation
…tering (#1365) #529 left three parts of online resolve as a measurement or a contract choice. - Payload limit: one record per call, with a 413 for a serialized record over 32 KiB (checked before any lake or Postgres work) and a 413 from the extractor for a body over 64 KiB. The contract now lists 413. A PG-less router test covers both and the pass-through. - Latency, measured on er-dev at ~520k standardized records over 55 calls: p50 2092 ms, p95 2199 ms. It is per-request corpus setup, not scoring, and the optimisation is #1429. - Metering (decided in #529, written down here): resolve calls do not count toward the record allowance, because they write nothing. api-contract's launch-readiness records all three. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
The marketing preview was removed because this PR is closed or merged. |
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 10:41 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Closes #1365
What
#529's three leftovers for online resolve:
recordover 32 KiB is a 413 from the handler, checked before any lake or Postgres work. A body over 64 KiB is a 413 from the extractor. The contract now lists 413.All three are recorded in api-contract's launch-readiness.
Why
These needed a measurement or a contract choice, not just code. The latency points at per-request corpus setup, so the optimisation is its own ticket, #1429.
Proof
make checkexit 0. A PG-less router test,resolve_refuses_an_oversized_record_and_body, covers both 413s and the pass-through: the record limit sits below the body limit, so its 413 can only come from the handler. The latency is from 55 real calls on er-dev against p3live, after 5 warm-ups; all 60 returned 200. Regenerated the contract artifacts.Risk & rollback
A record over 32 KiB is now refused; real records are a few hundred bytes. Rollback:
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-29T11:24:11Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: — 4ed0767, rust 46253517047 + frontend 46253517007 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46253517043
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — the deploy of 99907d0 (46253933656), which contains 4ed0767, succeeded
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success on 4ed0767
Donethrough the automation rather than byhand, and the issue closed: — Resolve API: measure latency, declare a payload limit, record the metering decision #1365 CLOSED by feat(api): resolve declares its payload limit, its latency and its metering (#1365) #1431 via automation
(a skill, a reference, memory) — or nothing new was learned: — launch-readiness.md records resolve's limits, latency and metering
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
Measured with p3live resumed for the run and suspended straight after, so no job could hold the lake across a deploy.
🤖 Generated with Claude Code