fix(870): state BOTH cost bounds, not just the healthy one
Executing the shipped walk against synthetic page sequences showed the cost sentence was telling half the truth: "20 requests per walk, measured at 2.6s" is the healthy path, but the per-page retry added in the previous commit makes the worst case 40 requests and 19 one-second sleeps. A reader sizing the change against the job's budget would have sized it against the better half. Measured by execution (the walk extracted from the YAML and run against scripted responses): a healthy walk is exactly 20 requests; an empty page 1 short-circuits at 1; a persistent failure stops at 2; a single blip costs 21. The retry's kind/raw correspondence holds on every path — a non-array first attempt followed by a failed second leaves the walk untrusted rather than parsing a stale body. Refs: #870 Decisions-Edit: yes Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1091,8 +1091,11 @@ jobs:
|
||||
# A `since`-bounded walk was considered and NOT taken on its own: it narrows the attack
|
||||
# to the run's own window but leaves the identical ambiguity inside it, and it would
|
||||
# cost the "a real page was actually read" property below, which depends on an empty
|
||||
# page 1 being anomalous. The cost of reading to the cap is 20 requests per walk,
|
||||
# measured at 2.6s against this instance.
|
||||
# page 1 being anomalous. COST, both bounds, because only one of them is the common
|
||||
# case: a healthy walk is exactly 20 requests, measured at 2.6s against this
|
||||
# instance; the worst case with the per-page retry below is 40 requests and 19
|
||||
# one-second sleeps, a page sleeping only when its first attempt yielded neither
|
||||
# an array nor null.
|
||||
#
|
||||
# WHAT REMAINS UNCOVERED — NOT CLOSED, NARROWED — stated because #803's whole point
|
||||
# is that a contract must not assert more than its code does. Pages 1-19 cover offsets
|
||||
|
||||
@@ -294,8 +294,10 @@ because what it leaves behind still bounds the fence.
|
||||
row-type filter, so the paged set and the serialized set cannot be made to agree. A
|
||||
`since`-bounded walk was considered and not taken on its own: it narrows the attack to the run's
|
||||
own window but leaves the identical ambiguity inside it, and it would cost the "a real page was
|
||||
actually read" property that an anomalous empty page 1 provides. The cost of reading to the cap is
|
||||
20 requests per walk, measured at 2.6s.
|
||||
actually read" property that an anomalous empty page 1 provides. The cost of reading to the cap has
|
||||
TWO bounds and both belong here: a healthy walk is exactly 20 requests, measured at 2.6s;
|
||||
the worst case, with the per-page retry added in the same change, is 40 requests plus 19
|
||||
one-second sleeps — a page sleeps only when its first attempt yielded neither array nor null.
|
||||
|
||||
**What is left — NARROWED, NOT CLOSED.** Pages 1-19 cover offsets 0..949 and page 20 covers
|
||||
950..999, so a timeline of more than 1000 rows that ALSO presents a fully-filtered block at
|
||||
|
||||
Reference in New Issue
Block a user