ScaffoldBench

RunSonnet 5.5repeat 2

Gated-execute on HTTP 301 vs 308

claude-sonnet-5-5__gated-execute__research-http-redirects__r2

Score

1.000

passed
design ran as designed
Cost
$0.103
+ $0.061 judging
Latency
26.0s
setup 0.0s, grading 4.4s
Turns
9
Tool calls
8
Subagents
0
Tokens in / out
59k / 3.5k
43,216 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.
  • Every state change was reviewed: heldgated-execute.reviewedEvery call that changed the world had been allowed by a review before it ran, counted from the world’s own journal.
  • Every decision was read: heldgated-execute.decisionsEvery review that ran to its end gave its decision through the schema; an unreadable one is a denial.
  • Each call was shown the right tools: heldgated-execute.toolsThe executor was shown the task’s full toolset and each reviewer the read-only tools.

Phases

Execute: 0.0s to 26.0s, finished, 8 tool calls, $0.103

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

PhaseDurationCostTurnsToolsModel
Execute26.0s$0.10398claude-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 gated-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. “**301 Moved Permanently** 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 E5, E12, E9. “A client following a 308 therefore resends the same method and 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. “For historical reasons, a client may change a POST to a GET when it follows the redirect.”

  • 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, E4. “Both are heuristically cacheable. That means a cache may store them without explicit freshness information, unless the method definition or explicit cache controls say otherwise.”

  • 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, E5. “308 was first defined in RFC 7538 (April 2015), which RFC 9110 now obsoletes.”

Penalties

No penalties were applied.

Scorer metadata

corpus
{"version":2,"snapshot":"2026-10-01","hash":"25fbed79c4f7f9e1b850436e0e4872f8e25dd80142f3177231c456f21817b817","documents":8}
opened documents
["rfc9110","mdn-status-308","rfc7538"]
opened by role
{"primary":["rfc9110"],"secondary":["mdn-status-308"],"superseded":["rfc7538"]}
displayed share
{"rfc9110":0.0409,"mdn-status-308":1,"rfc7538":0.782}
cited count
3
verified count
3
hallucinated count
0
citation integrity
1
hallucinated urls
[]
evidence block
true
evidence block repaired
false
evidence count
12
verified quote count
12
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, 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 client may change POST to GET; 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. If this behavior is undesired, the 308 (Permanent Redirect) status code can be used instead.","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"301 is heuristically cacheable","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 a new permanent URI has been assigned and is heuristically cacheable","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 and 307 were added to unambiguously indicate method-preserving redirects, while 301/302 were adjusted to allow POST to GET","quote":"307 (Temporary Redirect) and 308 (Permanent Redirect) [RFC7538] were later added to unambiguously indicate method-preserving redirects","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"308 is newer 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"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"When the method changes to GET or HEAD, the client removes content-specific header fields","quote":"If the request method has been changed to GET or HEAD, remove content-specific header fields, including (but not limited to)","verified":true,"document":"rfc9110"},{"url":"https://www.rfc-editor.org/rfc/rfc9110.html","claim":"RFC 9110 obsoletes RFC 7538 (and 7231), so it is the current specification of 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/rfc7538.html","claim":"RFC 7538 originally defined 308 as similar to 301 except that it does not allow changing POST to GET","quote":"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 said 308 was cacheable by default","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":"Deployment caveat: unknown 3xx codes are treated as 300, so 308 should be used only where clients are known to understand it","quote":"Therefore, the use of status code 308 is restricted to cases where the server has sufficient confidence in the client's understanding the new code or when a fallback to the semantics of status code 300 is not problematic.","verified":true,"document":"rfc7538"},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308","claim":"MDN says a client keeps the method and body unchanged on 308, and notes older clients mishandle 301","quote":"The request method and the body will not be modified by the client in the redirected request.","verified":true,"document":"mdn-status-308"}]
judge unverified quotes
0
judge verdicts
[{"names":{"status":"met","support":["E1"]},"method-preserved-308":{"status":"met","support":["E5","E12","E9"]},"method-change-301":{"status":"met","support":["E2"]},"cacheable":{"status":"met","support":["E3","E4"]},"specifications":{"status":"met","support":["E8","E5"]}},{"names":{"status":"met","support":["E1"]},"method-preserved-308":{"status":"met","support":["E5","E12","E9"]},"method-change-301":{"status":"met","support":["E2"]},"cacheable":{"status":"met","support":["E3","E4"]},"specifications":{"status":"met","support":["E8","E5"]}},{"names":{"status":"met","support":["E1"]},"method-preserved-308":{"status":"met","support":["E5","E12","E9"]},"method-change-301":{"status":"met","support":["E2"]},"cacheable":{"status":"met","support":["E3","E4"]},"specifications":{"status":"met","support":["E8","E5"]}}]
judge failures
0
grounded weight share
1

Final answer

I've finished gathering the evidence. I read RFC 9110, RFC 7538 and MDN, so I'm now writing the answer.

Short version: 301 and 308 both mean "this resource has a new permanent URI." They differ in what a client may do with the request method and body when it follows the redirect.

What each means

  • 301 Moved Permanently says the target resource has been assigned a new permanent URI, and future references should use it. The server should send a Location header, and the user agent may follow it automatically.
  • 308 Permanent Redirect carries the same meaning and the same Location rules. It is much newer (June 2014), so some clients may not recognise it. RFC 7538 (Section 4) adds that servers should use 308 only when they are confident the client understands it, because an unknown 3xx code is treated like 300.

Method and body

  • 301: For historical reasons, a client may change a POST to a GET when it follows the redirect. Early browsers split on this, and in practice most converged on switching to GET. If the method changes to GET or HEAD, the client drops the body and content-specific headers such as Content-Type and Content-Length.
  • 308: The method is not allowed to change from POST to GET. RFC 9110 says 308 was added, alongside 307, "to unambiguously indicate method-preserving redirects." A client following a 308 therefore resends the same method and the same body.
  • MDN's 308 page puts it as "The request method and the body will not be modified by the client in the redirected request."
  • MDN also says 301 "requires the request method and the body to remain unchanged… but this is incorrectly handled by older clients." That conflicts with RFC 9110, which explicitly permits POST→GET on a 301. I follow the RFC, since it is the specification.
  • If you want method preservation, use 308. If you're happy for POST to become GET, 301 is fine.

Cacheability

  • Both are heuristically cacheable. That means a cache may store them without explicit freshness information, unless the method definition or explicit cache controls say otherwise.
  • RFC 7538 used the older wording "cacheable by default," and RFC 9110 uses "heuristically cacheable." The meaning is effectively the same.

Where they are specified

  • Both are currently in RFC 9110 (HTTP Semantics, STD 97, 2022): 301 in Section 15.4.2 and 308 in Section 15.4.9.
  • 308 was first defined in RFC 7538 (April 2015), which RFC 9110 now obsoletes. RFC 7538 itself replaced the experimental RFC 7238.
  • RFC 9110 also obsoletes RFC 7231, which previously defined 301.

I read RFC 9110 and RFC 7538 directly. I did not open RFC 7231, and I did not open the RFC 7238 page, so the points about them rest on what RFC 9110 and RFC 7538 say about those documents.

{"evidence": [
{"claim": "301 means the target resource has been assigned 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 client may change POST to GET; 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.  If this behavior is undesired, the 308 (Permanent Redirect) status code can be used instead.", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "301 is heuristically cacheable", "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 a new permanent URI has been assigned and is heuristically cacheable", "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 and 307 were added to unambiguously indicate method-preserving redirects, while 301/302 were adjusted to allow POST to GET", "quote": "307 (Temporary Redirect) and 308 (Permanent Redirect) [RFC7538] were later added to unambiguously indicate method-preserving redirects", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "308 is newer 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"},
{"claim": "When the method changes to GET or HEAD, the client removes content-specific header fields", "quote": "If the request method has been changed to GET or HEAD, remove content-specific header fields, including (but not limited to)", "url": "https://www.rfc-editor.org/rfc/rfc9110.html"},
{"claim": "RFC 9110 obsoletes RFC 7538 (and 7231), so it is the current specification of 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": "RFC 7538 originally defined 308 as similar to 301 except that it does not allow changing POST to GET", "quote": "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 said 308 was cacheable by default", "quote": "A 308 response is cacheable by default; i.e., unless otherwise", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
{"claim": "Deployment caveat: unknown 3xx codes are treated as 300, so 308 should be used only where clients are known to understand it", "quote": "Therefore, the use of status code 308 is restricted to cases where the server has sufficient confidence in the client's understanding the new code or when a fallback to the semantics of status code 300 is not problematic.", "url": "https://www.rfc-editor.org/rfc/rfc7538.html"},
{"claim": "MDN says a client keeps the method and body unchanged on 308, and notes older clients mishandle 301", "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/Status/308"}
]}

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.