ScaffoldBench

RunHaiku 4.5repeat 2

Propose-select on HTTP 301 vs 308

claude-haiku-4-5-20251001__propose-select__research-http-redirects__r2

Score

0.917

wrong answer
design ran as designed
Cost
$0.247
+ $0.061 judging
Latency
1m 22s
setup 0.0s, grading 4.5s
Turns
45
Tool calls
40
Subagents
3
Tokens in / out
295k / 17k
215,530 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.
  • All three proposers ran: heldpropose-select.proposalsThree proposers ran in parallel, each from its own angle, and none was starved while another ran.
  • The selector chose: heldpropose-select.selectionThe selector picked a proposal by a valid number, read from its schema reply and not a default.
  • Each call was shown the right tools: heldpropose-select.toolsEach proposer was shown the read-only tools, the selector none, and the executor the full toolset.

Phases

Proposal 1 (policy-first): 0.0s to 38.6s, finished, 13 tool calls, $0.070
Proposal 2 (state-first): 0.0s to 36.9s, finished, 14 tool calls, $0.065
Proposal 3 (outcome-first): 0.0s to 30.6s, finished, 13 tool calls, $0.066
Select: 38.6s to 1m 22s, finished, 0 tool calls, $0.046

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

PhaseDurationCostTurnsToolsModel
Proposal 1 (policy-first)38.6s$0.0701413claude-haiku-4-5-20251001
Proposal 2 (state-first)36.9s$0.0651514claude-haiku-4-5-20251001
Proposal 3 (outcome-first)30.6s$0.0661413claude-haiku-4-5-20251001
Select43.9s$0.04620claude-haiku-4-5-20251001

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 propose-select --tasks research-http-redirects --models claude-haiku-4-5-20251001 --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, E2. “HTTP status code 301 (Moved Permanently) indicates that a requested resource has been permanently relocated to a new 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 E5. “it must resend the request to the new location using 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 E3. “"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 E6, E7. “The more recent RFC 9110 uses the term "heuristically cacheable" for both, which conveys similar semantics.”

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

    partial, backed by verified evidence E8, E9. “It is also referenced in RFC 9110, Section 15.4.9, which is the current standard.”

Penalties

No penalties were applied.

Scorer metadata

corpus
{"version":2,"snapshot":"2026-10-01","hash":"25fbed79c4f7f9e1b850436e0e4872f8e25dd80142f3177231c456f21817b817","documents":8}
opened documents
["rfc7231","mdn-status-301","mdn-status-308","rfc7538","rfc9110","mdn-redirections"]
opened by role
{"superseded":["rfc7231","rfc7538"],"secondary":["mdn-status-301","mdn-status-308","mdn-redirections"],"primary":["rfc9110"]}
displayed share
{"mdn-status-308":1,"rfc7538":0.782,"rfc9110":0.0494,"mdn-status-301":1,"rfc7231":0.045,"mdn-redirections":0.6857,"rfc9111":0.0032}
cited count
4
verified count
4
hallucinated count
0
citation integrity
1
hallucinated urls
[]
evidence block
true
evidence block repaired
false
evidence count
10
verified quote count
9
verified quote rate
0.9 (90%)
evidence
[{"url":"https://www.rfc-editor.org/rfc/rfc7231.html","claim":"301 indicates the target resource has been assigned a new permanent URI","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":"rfc7231"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"308 indicates that the target resource has been assigned a new permanent URI","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":"rfc7538"},{"url":"https://www.rfc-editor.org/rfc/rfc7231.html","claim":"301 allows user agents to change POST to GET for historical reasons","quote":"For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request.","verified":true,"document":"rfc7231"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"308 does not allow changing the request method from POST to GET","quote":"This status code is similar to 301 (Moved Permanently), except that it does not allow changing the request method from POST to GET.","verified":false,"document":"rfc7538","failure":"the quote does not occur in the page"},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/308","claim":"308 requires the request method and body to not be modified","quote":"The request method and the body will not be modified by the client in the redirected request.","verified":true,"document":"mdn-status-308"},{"url":"https://www.rfc-editor.org/rfc/rfc7231.html","claim":"301 is cacheable by default","quote":"A 301 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see Section 4.2.2 of [RFC7234]).","verified":true,"document":"rfc7231"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"308 is 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 [RFC7234], Section 4.2.2).","verified":true,"document":"rfc7538"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"301 is currently specified in RFC 9110","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/rfc7538.html","claim":"308 is specified in RFC 7538","quote":"This document specifies the additional Hypertext Transfer Protocol (HTTP) status code 308 (Permanent Redirect).","verified":true,"document":"rfc7538"},{"url":"https://www.rfc-editor.org/rfc/rfc7538.html","claim":"308 was created to fill a gap as the permanent variant of 307","quote":"Section 6.4.7 of [RFC7231] states that it does not define a permanent variant of status code 307; this specification adds the status code 308, defining this missing variant (Section 3).","verified":true,"document":"rfc7538"}]
judge unverified quotes
0
judge verdicts
[{"names":{"status":"met","support":["E1","E2"]},"method-preserved-308":{"status":"met","support":["E4","E5"]},"method-change-301":{"status":"met","support":["E3","E4"]},"cacheable":{"status":"met","support":["E6","E7"]},"specifications":{"status":"partial","support":["E8","E9"]}},{"names":{"status":"met","support":["E1","E2"]},"method-preserved-308":{"status":"met","support":["E4","E5"]},"method-change-301":{"status":"met","support":["E3","E4"]},"cacheable":{"status":"met","support":["E6","E7"]},"specifications":{"status":"partial","support":["E8","E9"]}},{"names":{"status":"met","support":["E1","E2"]},"method-preserved-308":{"status":"met","support":["E4","E5"]},"method-change-301":{"status":"met","support":["E3","E4"]},"cacheable":{"status":"met","support":["E6","E7"]},"specifications":{"status":"partial","support":["E8","E9"]}}]
judge failures
0
grounded weight share
1

Final answer

HTTP Status Codes 301 and 308: Differences and Specifications

What Each Code Means

HTTP status code 301 (Moved Permanently) indicates that a requested resource has been permanently relocated to a new URI. According to RFC 7231, "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."

HTTP status code 308 (Permanent Redirect) serves a similar purpose. RFC 7538 states that "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."

Request Method and Body Handling

The critical difference between these codes lies in how clients should treat the request method and body when following the redirect.

For 301 responses, RFC 7231 explicitly notes: "For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request." This means if a client receives a 301 response to a POST request, it is permitted (though not required) to convert the subsequent request to GET, and the request body would typically be discarded in this conversion. This behavior was historically problematic because it could inadvertently convert state-changing operations (POST requests with bodies) into idempotent GET requests, potentially causing unintended side effects.

For 308 responses, the specification is stricter. RFC 7538 notes: "This status code is similar to 301 (Moved Permanently), except that it does not allow changing the request method from POST to GET." This means if a client receives a 308 response to a POST request, it must resend the request to the new location using POST with the same body. The request method and body remain unchanged in the redirected request, ensuring the request semantics remain consistent.

The 308 code was specifically created to provide a permanent redirect variant that maintains request method consistency, similar to how 307 (Temporary Redirect) works for temporary redirects. As RFC 7538 explains, this specification was designed to "add the status code 308, defining this missing variant" as a permanent analog to 307.

Cacheability

Both status codes are cacheable by default. RFC 7231 states: "A 301 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see Section 4.2.2 of [RFC7234])." Similarly, RFC 7538 specifies: "A 308 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see [RFC7234], Section 4.2.2)." The more recent RFC 9110 uses the term "heuristically cacheable" for both, which conveys similar semantics. In both cases, these responses can be reused by a cache without requiring validation from the origin server unless explicitly indicated otherwise.

Current Specifications

The 301 status code is currently specified in RFC 9110 (HTTP Semantics), Section 15.4.2, which was published in June 2022 and supersedes RFC 7231. The RFC 9110 specification maintains the historical permission for method changes: "For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request."

The 308 status code is specified in RFC 7538 (published April 2015), which obsoleted the earlier experimental RFC 7238. It is also referenced in RFC 9110, Section 15.4.9, which is the current standard. RFC 9110 represents the definitive current specification for both status codes.

In summary: 301 permits (but doesn't mandate) method conversion from POST to GET for backwards compatibility with older clients, while 308 strictly prohibits any method or body modification, making it the safer choice when you need to preserve the exact request semantics across permanent redirects.

{"evidence": [
  {"claim": "301 indicates the target resource has been assigned a new permanent URI", "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/rfc7231.html"},
  {"claim": "308 indicates that the target resource has been assigned a new permanent URI", "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/rfc7538.html"},
  {"claim": "301 allows user agents to change POST to GET for historical reasons", "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/rfc7231.html"},
  {"claim": "308 does not allow changing the request method from POST to GET", "quote": "This status code is similar to 301 (Moved Permanently), except that it does not allow changing the request method from POST to GET.", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
  {"claim": "308 requires the request method and body to not be modified", "quote": "The request method and the body will not be modified by the client in the redirected request.", "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/308"},
  {"claim": "301 is cacheable by default", "quote": "A 301 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls (see Section 4.2.2 of [RFC7234]).", "url": "https://www.rfc-editor.org/rfc/rfc7231.html"},
  {"claim": "308 is 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 [RFC7234], Section 4.2.2).", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
  {"claim": "301 is currently specified in RFC 9110", "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": "308 is specified in RFC 7538", "quote": "This document specifies the additional Hypertext Transfer Protocol (HTTP) status code 308 (Permanent Redirect).", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
  {"claim": "308 was created to fill a gap as the permanent variant of 307", "quote": "Section 6.4.7 of [RFC7231] states that it does not define a permanent variant of status code 307; this specification adds the status code 308, defining this missing variant (Section 3).", "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.