Mock the response, not the conclusion
Use when
An
agent
tests
retry
logic,
parsers,
or
adapters
using
hand-built
dependency
outputs.
Pocock
issue
#1299
reports
review
accepting
a
529
retry
test
that
manufactured
InternalServerError;
the
canonical
SDK
instead
produces
OverloadedError.
Action
Add this to the existing review brief: “For each verified criterion, name the check, tested revision, and what it proves. Validate behavior-controlling stand-ins against the actual dependency; otherwise mark coverage partial.”
For
this
case,
inject
HTTP
529
through
an
offline
mocked
transport,
letting
the
pinned
SDK
construct
the
exception
before
the
real
polling
caller
handles
it.
Use
max_retries=0
only
in
the
fixture
isolating
application
retries;
separately
check
the
configured
combined
budget.
Do
not
add
another
review
agent
merely
to
repeat
the
same
assumption.
Acceptance check
In
separately
authorized
offline
fixtures,
exercise
both
affected
pollers:
529
followed
by
valid
success
must
reach
the
application
as
OverloadedError,
trigger
the
expected
retry,
and
return
the
result.
Persistent
529
must
stop
at
the
declared
bound;
401
must
not
enter
the
transient
loop.
The old class-only predicate must fail the 529 behavioral check; the repair must pass the unchanged oracle. Cover the deployed sync/async and provider variants. Retain versions, response fixtures, actual exception classes, attempt counts, and outcomes—not just a green suite total.
Evidence
The
report
includes
the
criterion,
predicate,
wrong
fixture,
and
builder’s
review
summary.
Independently
inspectable
SDK
source
at
02c93c1
maps
529
before
generic
5xx
handling;
OverloadedError
directly
inherits
APIStatusError,
not
InternalServerError.
Upstream
tests
show
mapping-parity
and
mock-transport
patterns,
but
parity
alone
cannot
prove
the
correct
class
or
your
application’s
behavior.
Caveat
This is one locally modified workflow, without public application code or raw reviewer transcripts. The independent probe also needed an assertion correction. No model ranking, shipped skill repair, or runtime validation is claimed here. These checks remain unexecuted. Provider mappings can differ; retry eligibility does not authorize replaying an effectful operation whose outcome is unknown.