ScaffoldBench

RunSonnet 5.5repeat 2

Plan-execute on HTTP 301 vs 308

claude-sonnet-5-5__plan-execute__research-http-redirects__r2

Score

0.875

wrong answer
design ran as designed
Cost
$0.132
+ $0.063 judging
Latency
39.6s
setup 0.0s, grading 4.6s
Turns
10
Tool calls
7
Subagents
0
Tokens in / out
50k / 5.0k
28,236 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.planThe planner’s reply was read through its schema and held at least one step.
  • Each call was shown the right tools: heldplan-execute.toolsThe planner was shown no tools and the executor the task’s full toolset.

Phases

Plan: 0.0s to 13.6s, finished, 0 tool calls, $0.024
Execute: 13.6s to 39.6s, finished, 7 tool calls, $0.108

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

PhaseDurationCostTurnsToolsModel
Plan13.6s$0.02420claude-sonnet-5-5
Execute26.1s$0.10887claude-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 --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. “**301 (Moved Permanently):** RFC 9110 §15.4.2 says the code "indicates that the target resource has been assigned a new permanent URI”

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

    partial, backed by verified evidence E12. “A client that follows a 308 should resend the original request with the same method.”

  • 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. “For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent 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 "A 301 response is heuristically cacheable" and "A 308 response is heuristically cacheable".”

  • 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 E8, E10. “RFC 9110 (HTTP Semantics), §15.4.2 for 301 and §15.4.9 for 308. It obsoletes RFC 7231, which previously defined 301, and RFC 7538.”

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.0494,"rfc7538":0.782,"mdn-status-308":0.1256,"mdn-status-301":0.131,"mdn-redirections":0.0204}
cited count
2
verified count
2
hallucinated count
0
citation integrity
1
hallucinated urls
[]
evidence block
true
evidence block repaired
false
evidence count
12
verified quote count
11
verified quote rate
0.9166666666666666 (92%)
evidence
[{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"301 means the target resource has a new permanent URI and future references should use it.","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":"*Note:* For historical reasons, a user agent MAY change the","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"301 responses are heuristically cacheable.","quote":"A 301 response is heuristically cacheable; i.e., unless otherwise","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"308 has the same permanent-move meaning as 301 and is defined in RFC 9110 section 15.4.9.","quote":"The 308 (Permanent Redirect) status code indicates that the target","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"308 responses are heuristically cacheable.","quote":"A 308 response is heuristically cacheable; i.e., unless otherwise","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"Historically, practice converged on changing POST to GET for 301/302, and 307/308 were added to unambiguously preserve the method.","quote":"Prevailing practice","verified":false,"document":"rfc9110","failure":"the quote has fewer than 6 consecutive words"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"Content-specific headers are removed only when the redirect changes the method to GET or HEAD, which is why a method-preserving redirect keeps the body.","quote":"If the request method has been changed to GET or HEAD, remove","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"RFC 9110 obsoletes RFC 7538 (and RFC 7231), making it the current specification for both codes.","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 younger than its sibling codes and may not be recognized everywhere.","quote":"This status code is much younger (June 2014) than its","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"RFC 7538 defines 308 as the missing permanent variant of 307.","quote":"this specification adds the status code\n 308, defining this missing variant (Section 3).","verified":true,"document":"rfc7538"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"308 is cacheable by default per RFC 7538.","quote":"A 308 response is cacheable by default; i.e., unless otherwise","verified":true,"document":"rfc7538"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"308 is like 301 except that it does not allow changing the method from POST to GET.","quote":"except that it does not allow changing","verified":true,"document":"rfc7538"}]
judge unverified quotes
0
judge verdicts
[{"names":{"status":"met","support":["E1","E4"]},"method-preserved-308":{"status":"partial","support":["E12"]},"method-change-301":{"status":"met","support":["E2","E6"]},"cacheable":{"status":"met","support":["E3","E5"]},"specifications":{"status":"met","support":["E8","E10"]}},{"names":{"status":"met","support":["E1","E4"]},"method-preserved-308":{"status":"partial","support":["E12"]},"method-change-301":{"status":"met","support":["E2","E6"]},"cacheable":{"status":"met","support":["E3","E5"]},"specifications":{"status":"met","support":["E8","E10"]}},{"names":{"status":"met","support":["E1","E4"]},"method-preserved-308":{"status":"partial","support":["E12"]},"method-change-301":{"status":"met","support":["E2","E6"]},"cacheable":{"status":"met","support":["E3","E5"]},"specifications":{"status":"met","support":["E8","E10"]}}]
judge failures
0
grounded weight share
1

Final answer

Short version: 301 and 308 both mean "this resource has moved permanently". They differ in method handling. With 301, a client may turn a POST into a GET. With 308, the method and body stay the same. Both are specified in RFC 9110, and 308 first appeared in RFC 7538.

1. What each means

  • 301 (Moved Permanently): RFC 9110 §15.4.2 says the 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." The server should send a Location header with the new URI, and the user agent "MAY use the Location field value for automatic redirection." (https://www.rfc-editor.org/rfc/rfc9110.html)
  • 308 (Permanent Redirect): The semantics are the same, "permanent" and "new URI". RFC 9110 §15.4.9 uses the same wording as 301, and RFC 7538 §3 does too. (https://www.rfc-editor.org/rfc/rfc9110.html, https://www.rfc-editor.org/rfc/rfc7538.html)

2. Method and body handling

  • 301: RFC 9110 says "For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request." It adds that if this is undesired, 308 can be used instead.
  • Why 301 is ambiguous: HTTP/1.0 defined 301 as method-preserving. Early user agents split on whether to redirect POST as POST or as GET. "Prevailing practice eventually converged on changing the method to GET."
  • 308: 307 and 308 "were later added to unambiguously indicate method-preserving redirects." RFC 7538 says 308 is "similar to 301 (Moved Permanently) … except that it does not allow changing the request method from POST to GET." RFC 7538 was written to add the missing permanent counterpart of 307. (https://www.rfc-editor.org/rfc/rfc7538.html)
  • Body: A client that follows a 308 should resend the original request with the same method. Under the general redirect procedure in RFC 9110 §15.4, the client changes the method "according to the redirecting status code's semantics, if applicable." It removes content-specific headers such as Content-Type and Content-Length only "If the request method has been changed to GET or HEAD." That rule is why a 301 that turns POST into GET drops the body, while a 308 keeps the method and so keeps the body. This is my inference from those rules. RFC 9110 doesn't spell out "body preserved" for 308 in so many words.
  • Wording: RFC 9110's 308 section doesn't repeat the "MUST NOT change the method" wording that its 307 section has. The method-preserving behavior for 308 comes from the §15.4 note and from RFC 7538.

3. Cacheability
Both are cacheable by default. RFC 9110 says "A 301 response is heuristically cacheable" and "A 308 response is heuristically cacheable". In each case this holds "unless otherwise indicated by the method definition or explicit cache controls." RFC 7538 had said "A 308 response is cacheable by default", and RFC 9110 now uses the term "heuristically cacheable."

4. Where each is specified

  • Current specification: RFC 9110 (HTTP Semantics), §15.4.2 for 301 and §15.4.9 for 308. It obsoletes RFC 7231, which previously defined 301, and RFC 7538. (https://www.rfc-editor.org/rfc/rfc9110.html)
  • Origin of 308: RFC 7538 (April 2015, Standards Track) introduced it. It "obsoletes" the earlier Experimental RFC 7238, with no technical changes.
  • Obsolescence is stated in RFC 9110: The RFC 7538 page as I fetched it has no "Obsoleted by" line in its header. The obsoletion comes from RFC 9110's own header, so RFC 9110 is the authoritative source today.
  • Deployment note: RFC 9110 says 308 is "much younger (June 2014) than its sibling codes and thus might not be recognized everywhere." RFC 7538 §4 explains that a client that doesn't understand 308 treats it like 300, so it may not redirect automatically.

I didn't consult MDN or other secondary sources, so everything above rests on the two RFCs.

{"evidence": [
{"claim": "301 means the target resource has a new permanent URI and future references should use it.", "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": "*Note:* For historical reasons, a user agent MAY change the", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "301 responses are heuristically cacheable.", "quote": "A 301 response is heuristically cacheable; i.e., unless otherwise", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "308 has the same permanent-move meaning as 301 and is defined in RFC 9110 section 15.4.9.", "quote": "The 308 (Permanent Redirect) status code indicates that the target", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "308 responses are heuristically cacheable.", "quote": "A 308 response is heuristically cacheable; i.e., unless otherwise", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "Historically, practice converged on changing POST to GET for 301/302, and 307/308 were added to unambiguously preserve the method.", "quote": "Prevailing practice", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "Content-specific headers are removed only when the redirect changes the method to GET or HEAD, which is why a method-preserving redirect keeps the body.", "quote": "If the request method has been changed to GET or HEAD, remove", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "RFC 9110 obsoletes RFC 7538 (and RFC 7231), making it the current specification for both codes.", "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 younger than its sibling codes and may not be recognized everywhere.", "quote": "This status code is much younger (June 2014) than its", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "RFC 7538 defines 308 as the missing permanent variant of 307.", "quote": "this specification adds the status code\n   308, defining this missing variant (Section 3).", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
{"claim": "308 is cacheable by default per RFC 7538.", "quote": "A 308 response is cacheable by default; i.e., unless otherwise", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
{"claim": "308 is like 301 except that it does not allow changing the method from POST to GET.", "quote": "except that it does not allow changing", "url": "https://www.rfc-editor.org/rfc/rfc7538.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.