ScaffoldBench

RunSonnet 5.5repeat 2

Plan-execute-verify on HTTP 301 vs 308

claude-sonnet-5-5__plan-execute-verify__research-http-redirects__r2

Score

1.000

passed
design ran as designed
Cost
$0.246
+ $0.081 judging
Latency
1m 1s
setup 0.0s, grading 4.5s
Turns
22
Tool calls
17
Subagents
0
Tokens in / out
137k / 7.4k
93,713 read from cache

Did the design run?

every check held
  • Run completed: heldharness.run-completedThe environment was built, the architecture returned and grading finished, none of them throwing.
  • No API failures: heldharness.apiNo model call failed at the API.
  • Every call ended: heldharness.calls-endedEvery call ended with a result, or was stopped by the run's own limits.
  • No harness tool denied: heldharness.harness-toolsThe sandbox guard never denied a harness tool, nor a tool the session itself offered.
  • Tool servers connected: heldharness.mcp-connectedEvery tool server the harness gave a call was connected when the session started.
  • No foreign tool servers: heldharness.mcp-hermeticNo call loaded a tool server the harness did not give it.
  • Builtin tools: heldharness.builtin-toolsA check recorded with the run.
  • Structured replies arrived: heldharness.structured-outputEvery call that asked for structured output and ran to the end got it.
  • No silent fallbacks: heldharness.not-degradedNo phase fell back on a default (an empty plan, a default winner) instead of its output.
  • Judge answered: heldharness.judgeAt least one grading call returned a usable verdict.
  • The plan was a plan: heldplan-execute-verify.planThe planner’s reply was read through its schema and held at least one step.
  • Every verdict was read: heldplan-execute-verify.verdictsEvery review round ended with a verdict read from the schema reply, not a default.
  • The loop did what its verdicts said: heldplan-execute-verify.loopEvery verdict that called for a revision got one, and nothing was revised without such a verdict.
  • Each call was shown the right tools: heldplan-execute-verify.toolsThe planner was shown no tools, the verifier the read-only ones, and the executor and reviser the full toolset.

Phases

Plan: 0.0s to 13.2s, finished, 0 tool calls, $0.017
Execute: 13.2s to 44.5s, finished, 10 tool calls, $0.128
Verify: 44.5s to 1m 1s, finished, 7 tool calls, $0.101

Drawn from the phase records: timing and cost per call, no tool calls or messages.

PhaseDurationCostTurnsToolsModel
Plan13.2s$0.01720claude-sonnet-5-5
Execute31.3s$0.1281110claude-sonnet-5-5
Verify16.9s$0.10197claude-sonnet-5-5

The call-by-call replay is not published for this run. Traces are large, so the repository keeps 9 of this run set’s 900 and leaves the rest out; the score, phases and final answer on this page come from the committed run record.

Runs you can replay

Record this cell yourself: npm run bench -- run --strategies plan-execute-verify --tasks research-http-redirects --models claude-sonnet-5-5 --repeats 1

Score breakdown

  • passStates that 301 is "Moved Permanently" and 308 is "Permanent Redirect", and that both indicate the target resource has been assigned a new permanent URI.
    1.00weight 0.17

    met, backed by verified evidence E1, E4. “RFC 9110 defines both with the same wording. The response says the target resource "has been assigned a new permanent URI”

  • passStates that a client following a 308 must not change the request method: a POST is repeated as a POST, with its body.
    1.00weight 0.25

    met, backed by verified evidence E6, E8. “A 308 client should therefore resend the same method (POST stays POST) with the same body.”

  • passStates that when following a 301 a user agent MAY change the request method from POST to GET (for historical reasons), which is the behaviour 308 exists to rule out.
    1.00weight 0.25

    met, backed by verified evidence E2, E6. “A user agent MAY change the request method from POST to GET for the follow-up request.”

  • passStates that both 301 and 308 responses are heuristically cacheable, i.e. a cache may reuse them by default unless the method definition or explicit cache controls say otherwise.
    1.00weight 0.17

    met, backed by verified evidence E3, E5. “RFC 9110 says each is "heuristically cacheable," meaning cacheable unless the method definition or explicit cache controls”

  • passStates that both codes are currently specified in RFC 9110 (HTTP Semantics), and that 308 was originally defined in RFC 7538, which RFC 9110 obsoletes.
    1.00weight 0.17

    met, backed by verified evidence E10, E6. “RFC 7231 (which defined 301) and RFC 7538 (which defined 308) are both obsolete.”

Penalties

No penalties were applied.

Scorer metadata

corpus
{"version":2,"snapshot":"2026-10-01","hash":"25fbed79c4f7f9e1b850436e0e4872f8e25dd80142f3177231c456f21817b817","documents":8}
opened documents
["rfc9110","rfc7538"]
opened by role
{"primary":["rfc9110"],"superseded":["rfc7538"]}
displayed share
{"rfc9110":0.0488,"rfc7538":0.782,"rfc9111":0.0029,"rfc7231":0.0013}
cited count
2
verified count
2
hallucinated count
0
citation integrity
1
hallucinated urls
[]
evidence block
true
evidence block repaired
false
evidence count
11
verified quote count
11
verified quote rate
1
evidence
[{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"301 means the target resource has been assigned a new permanent URI (RFC 9110 section 15.4.2)","quote":"The 301 (Moved Permanently) status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"For 301, a user agent may change POST to GET, and 308 is the alternative if that is undesired","quote":"For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request.","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"301 responses are cacheable (heuristically) in RFC 9110","quote":"A 301 response is heuristically cacheable; i.e., unless otherwise indicated by the method definition or explicit cache controls (see","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"308 means the target resource has been assigned a new permanent URI (RFC 9110 section 15.4.9)","quote":"The 308 (Permanent Redirect) status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"308 responses are cacheable (heuristically) in RFC 9110","quote":"A 308 response is heuristically cacheable; i.e., unless otherwise indicated by the method definition or explicit cache controls (see","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"308 was added to unambiguously indicate method-preserving redirects, while 301 was adjusted to allow POST to be redirected as GET","quote":"307 (Temporary Redirect) and 308 (Permanent Redirect) [RFC7538] were later added to unambiguously indicate method-preserving redirects, and status codes 301 and 302 have been adjusted to allow a POST request to be redirected as GET.","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"When the method becomes GET or HEAD, content-specific headers are removed when following a redirect","quote":"If the request method has been changed to GET or HEAD, remove content-specific header fields, including (but not limited to) Content-Encoding, Content-Language, Content-Location, Content-Type, Content-Length, Digest, Last-Modified.","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"RFC 7538 (original 308 spec) says 308 is like 301 but disallows changing POST to GET","quote":"Note: This status code is similar to 301 (Moved Permanently) ([RFC7231], Section 6.4.2), except that it does not allow changing the request method from POST to GET.","verified":true,"document":"rfc7538"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"RFC 7538 described 308 as cacheable by default","quote":"A 308 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see","verified":true,"document":"rfc7538"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"RFC 9110 obsoletes RFC 7231 (which defined 301) and RFC 7538 (which defined 308)","quote":"This document updates RFC 3864 and obsoletes RFCs 2818, 7231, 7232, 7233, 7235, 7538, 7615, 7694, and portions of 7230.","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"308 is newer than other redirect codes and may not be recognized everywhere","quote":"This status code is much younger (June 2014) than its sibling codes and thus might not be recognized everywhere.","verified":true,"document":"rfc9110"}]
judge unverified quotes
0
judge verdicts
[{"names":{"status":"met","support":["E1","E4"]},"method-preserved-308":{"status":"met","support":["E6","E8"]},"method-change-301":{"status":"met","support":["E2","E6"]},"cacheable":{"status":"met","support":["E3","E5"]},"specifications":{"status":"met","support":["E10","E6"]}},{"names":{"status":"met","support":["E1","E4"]},"method-preserved-308":{"status":"met","support":["E6","E8"]},"method-change-301":{"status":"met","support":["E2","E6"]},"cacheable":{"status":"met","support":["E3","E5"]},"specifications":{"status":"met","support":["E10","E6"]}},{"names":{"status":"met","support":["E1","E4"]},"method-preserved-308":{"status":"met","support":["E8","E6"]},"method-change-301":{"status":"met","support":["E2","E6"]},"cacheable":{"status":"met","support":["E3","E5"]},"specifications":{"status":"met","support":["E10","E6"]}}]
judge failures
0
grounded weight share
1

Final answer

Short version: 301 and 308 both mean "this resource has permanently moved." They differ in what a client may do with the request method and body when it follows the redirect. With 301 a client may turn a POST into a GET. With 308 it may not.

What each means. RFC 9110 defines both with the same wording. The response says the target resource "has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs." The server should send a Location header with the preferred new URI, and the client may follow it automatically (https://www.rfc-editor.org/rfc/rfc9110.html). Both sections also say a link-editing client can permanently replace references to the old URI. They add that this suggestion is usually ignored unless the client is actively editing content, the connection is secured, and the server is a trusted authority.

Method and body handling.

  • 301: RFC 9110 keeps a historical loophole. A user agent MAY change the request method from POST to GET for the follow-up request. Its section 15.4 explains why. HTTP/1.0 defined 301 and 302 as method-preserving, but early clients split on whether to redirect a POST as POST or as GET. Practice eventually converged on GET, so 301 and 302 "have been adjusted to allow a POST request to be redirected as GET."
  • 308: It was added to be the unambiguous method-preserving permanent redirect. RFC 7538 says it is like 301 "except that it does not allow changing the request method from POST to GET." RFC 9110 says 307 and 308 were added "to unambiguously indicate method-preserving redirects." It also points to 308 as the fix when POST-to-GET rewriting is undesired. A 308 client should therefore resend the same method (POST stays POST) with the same body.
  • Body: RFC 9110's general redirect rules say that when the method has been changed to GET or HEAD, the client removes content-specific headers such as Content-Type and Content-Length. In practice, a 301 that becomes a GET drops the body. A 308 keeps the method, so the body is resent.
  • Wording caveat: RFC 9110's own 308 section does not repeat the explicit "does not allow changing the method" sentence. The 307 section does state it as "MUST NOT change the request method." For 308, the method-preservation guarantee comes from RFC 7538's note plus RFC 9110's notes in the 301 section and section 15.4. I did not open MDN or any other secondary source, so the browser behaviour above comes only from the RFCs.

Cacheability. Both are cacheable. The wording differs between RFCs:

  • RFC 9110 says each is "heuristically cacheable," meaning cacheable unless the method definition or explicit cache controls (such as Cache-Control or Expires) say otherwise.
  • RFC 7538, the older 308 spec, says "cacheable by default," which is the same idea in older terms.

Where each is specified.

  • Current spec: RFC 9110 (HTTP Semantics, June 2022), section 15.4.2 for 301 and section 15.4.9 for 308.
  • Superseded specs: RFC 9110's header lists "Obsoletes: 2818, 7230, 7231, 7232, 7233, 7235, 7538, 7615, 7694" and the abstract confirms it. That means RFC 7231 (which defined 301) and RFC 7538 (which defined 308) are both obsolete. RFC 7538, from April 2015, was a standalone document for 308, and it in turn obsoleted the experimental RFC 7238.
  • Still current: A search for anything obsoleting RFC 9110 turned up nothing, but I did not check the RFC index directly. I could not open the RFC Editor info page for RFC 7538 (it returned 404), so my obsolescence claim rests on RFC 9110's own header text.
  • Deployment: RFC 9110 notes that 308 is much younger than its sibling codes and "might not be recognized everywhere." Section 4 of RFC 7538 covers this, so a server should be confident its clients understand 308.

Practical guidance. Use 308 when a permanent move must preserve the method and body, for example for API endpoints that take POST, PUT, or DELETE. 301 is fine for GET-only moves such as page URLs. Use 307 for a temporary method-preserving redirect.

A correction to my starting plan. The plan assumed RFC 9110 says "cacheable by default" and states "MUST NOT change the method" in the 308 section. Neither is in that section, so I followed the text I retrieved.

{"evidence": [
{"claim": "301 means the target resource has been assigned a new permanent URI (RFC 9110 section 15.4.2)", "quote": "The 301 (Moved Permanently) status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "For 301, a user agent may change POST to GET, and 308 is the alternative if that is undesired", "quote": "For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "301 responses are cacheable (heuristically) in RFC 9110", "quote": "A 301 response is heuristically cacheable; i.e., unless otherwise indicated by the method definition or explicit cache controls (see", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "308 means the target resource has been assigned a new permanent URI (RFC 9110 section 15.4.9)", "quote": "The 308 (Permanent Redirect) status code indicates that the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "308 responses are cacheable (heuristically) in RFC 9110", "quote": "A 308 response is heuristically cacheable; i.e., unless otherwise indicated by the method definition or explicit cache controls (see", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "308 was added to unambiguously indicate method-preserving redirects, while 301 was adjusted to allow POST to be redirected as GET", "quote": "307 (Temporary Redirect) and 308 (Permanent Redirect) [RFC7538] were later added to unambiguously indicate method-preserving redirects, and status codes 301 and 302 have been adjusted to allow a POST request to be redirected as GET.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "When the method becomes GET or HEAD, content-specific headers are removed when following a redirect", "quote": "If the request method has been changed to GET or HEAD, remove content-specific header fields, including (but not limited to) Content-Encoding, Content-Language, Content-Location, Content-Type, Content-Length, Digest, Last-Modified.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "RFC 7538 (original 308 spec) says 308 is like 301 but disallows changing POST to GET", "quote": "Note: This status code is similar to 301 (Moved Permanently) ([RFC7231], Section 6.4.2), except that it does not allow changing the request method from POST to GET.", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
{"claim": "RFC 7538 described 308 as cacheable by default", "quote": "A 308 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
{"claim": "RFC 9110 obsoletes RFC 7231 (which defined 301) and RFC 7538 (which defined 308)", "quote": "This document updates RFC 3864 and obsoletes RFCs 2818, 7231, 7232, 7233, 7235, 7538, 7615, 7694, and portions of 7230.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "308 is newer than other redirect codes and may not be recognized everywhere", "quote": "This status code is much younger (June 2014) than its sibling codes and thus might not be recognized everywhere.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"}
]}

Provenance of the numbers on this page

run set
scaffold-or-scale-v1
models
Haiku 4.5, Sonnet 5.5, Opus 5.5
effort
high
repeats
2
fixtures
replay
runs
900 / 900
strategy cost
$354.44
judge cost
$9.19
wall clock
9h 48m
git
fce5807b2d

Cost excludes judge calls, which are tracked separately so a scoring model never flatters or penalises an architecture. Every figure on this site is read from results/ at build time.