Benchmark run hard-smoke-luna6-medium-20261011T105400Z
This page contains exactly the publishable benchmark observations recorded in run hard-smoke-luna6-medium-20261011T105400Z; it does not select or aggregate them. Return to the run index or view aggregate metrics.
Interactive browser
Rows are pre-aggregated by task, target, prompt variant, MCP-instruction mode, context, arm, and restriction. Numeric values show median (p50), IQR, p90, maximum, and sample count. Boolean checks show pass counts and success rates. Filters apply to these summary groups; per-run observations remain available on their run pages.
Loading benchmark results…
Baseline vs semedit
Comparison evaluates baseline and semedit values within each restriction policy, target, and context group. Negative changes mark improvements for these lower-is-better metrics; positive changes mark degradations.
Detailed observations
Empirical telemetry measuring wall-clock latency, token usage, tool turns, and compiler correctness when AI coding agents perform code modifications.
Every benchmark pairs Vanilla LLM (standard file editing tools) against Semedit MCP (deterministic AST compiler operations).
Benchmark Methodology & Transparency
- Reproducibility & Provenance: Self-contained txtar archives define test scenarios. Links below resolve to commit-anchored GitHub source files for published commits, or cryptographic SHA-256 fingerprints for uncommitted local fixtures.
- Model Cost: Tables report model-specific credit consumption where a target model has a declared schedule: (uncached input × input credits + cached input × cached credits + (reasoning + visible output) × output credits) / 1,000,000. Thinking tokens use the output rate. ADR-0043 defines the per-million-token credit rates.
- Multi-Level Correctness Oracle: Four validation levels evaluate each trial:
- Level 1 (Mutation Policy): Restricts file modifications strictly to authorized paths.
- Level 2 (AST Invariants): Compiler AST verification of required symbols, imports, and relative declaration ordering.
- Level 3 (Clean Build): Strict compilation validation with zero compiler or typecheck errors.
- Level 4 (Test Suite): Unit and integration test suite execution.
- Isolated Sandboxing: Each trial executes in an ephemeral directory with pristine git and module state.
Test case: task-09-composite-refactor
Target: codex/gpt-6-luna/medium
explicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | explicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | provider_transport=codex_app_server_v2 |
| Fixture | testdata/bench/task_09_composite_refactor.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert DefaultConfig() *Config returning Host localhost and ListenPort 8080, and clean up unused imports. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Initial Workspace State (Before Edit)
package config
import (
"archive/tar"
"fmt"
)
type Config struct {
Host string
Port int
}
func (c *Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
}| Metric | Vanilla (Small) | Semedit Explicit (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 10.62s | 34.28s | +222.9% | — | — | — |
| Process Start → First Event | 0.18s | 0.03s | — | — | — | — |
| First Event → First Tool Call | 4.04s | 19.37s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 2 | 4 | +100.0% | — | — | — |
| Initial Load / Discovery Turns | 1 | 0 | -100.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 2 | 4 | +100.0% | — | — | — |
| Output Tokens | 401 | 1060 | +164.3% | — | — | — |
| Reasoning / Thinking Tokens | 49 | 306 | +524.5% | — | — | — |
| Total Input Tokens | 62444 | 276584 | +342.9% | — | — | — |
| Cached Input Tokens | 42240 | 237312 | +461.8% | — | — | — |
| Uncached Input Tokens | 20204 | 39272 | +94.4% | — | — | — |
| Cost | 0.0667 | 0.1746 | +161.8% | — | — | — |
| Cached vs Uncached Token Ratio | 2.09:1 | 6.04:1 | +189.0% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Explicit in Small Context
- Vanilla (Baseline vs Semedit Explicit in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Explicit in Small Context) Edit: File config/config.go modified (15 lines -> 16 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 2 | file_change (✓ ✓) | semedit/semantic_lookup (✓ ✓) |
| 3 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | — | semedit/semantic_batch (✓ ✓) |
Semedit integration feedback (agent opinion, excluded from measurements):
Integration feedback unavailable: codex follow-up changed the original workspace, target, or arm
Baseline vs Semedit Explicit in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
implicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | implicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | provider_transport=codex_app_server_v2 |
| Fixture | testdata/bench/task_09_composite_refactor.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert DefaultConfig() *Config returning Host localhost and ListenPort 8080, and clean up unused imports. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert DefaultConfig() *Config returning Host localhost and ListenPort 8080, and clean up unused imports. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package config
import (
"archive/tar"
"fmt"
)
type Config struct {
Host string
Port int
}
func (c *Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 10.62s | 46.62s | +339.2% | — | — | — |
| Process Start → First Event | 0.18s | 0.02s | — | — | — | — |
| First Event → First Tool Call | 4.04s | 3.49s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 2 | 10 | +400.0% | — | — | — |
| Initial Load / Discovery Turns | 1 | 1 | 0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 2 | 10 | +400.0% | — | — | — |
| Output Tokens | 401 | 3215 | +701.7% | — | — | — |
| Reasoning / Thinking Tokens | 49 | 1485 | +2930.6% | — | — | — |
| Total Input Tokens | 62444 | 637777 | +921.4% | — | — | — |
| Cached Input Tokens | 42240 | 584960 | +1284.8% | — | — | — |
| Uncached Input Tokens | 20204 | 52817 | +161.4% | — | — | — |
| Cost | 0.0667 | 0.3370 | +405.3% | — | — | — |
| Cached vs Uncached Token Ratio | 2.09:1 | 11.08:1 | +429.7% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 18 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | file_change (✓ ✓) | semedit/semantic_batch (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"semantic_batch requires non-empty 'edits' list"} semantic_batch requires non-empty 'edits' list |
| 3 | — | semedit/semantic_outline (✓ ✓) |
| 4 | — | semedit/semantic_batch (✓ ✓) |
| 5 | — | semedit/semantic_batch (✓ ✓) |
| 6 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 7 | — | file_change (✓ ✓) |
| 8 | — | ✓ ✓ |
| 9 | — | ✓ ✓ |
| 10 | — | ✗ ?: # internal/msan compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/unsafeheader compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/asan compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/profilerecord compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/runtime/pprof/label compile: version "go1.27.2" does not match go tool version "go1.27.1" # unicode/utf8 compile: version "go1.27.2" does no |
Semedit integration feedback (agent opinion, excluded from measurements):
I’d ask my owner to add semedit: its semantic rename and insertion tools made the refactor straightforward, though I had to use a separate import organizer when automatic cleanup left an unused import.
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
Test case: task-11-mixed-sink-api-migration
Target: codex/gpt-6-luna/medium
explicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | explicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | provider_transport=codex_app_server_v2 |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Add the public audit.NormalizeKind(kind string) string function in audit/normalize.go to remove surrounding whitespace and lowercase the kind. Apply it in Dispatcher.Record before persistence, and classify normalized probe events as control traffic, like health. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | Semedit Explicit (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 23.93s | 31.60s | +32.0% | — | — | — |
| Process Start → First Event | 0.04s | 0.04s | — | — | — | — |
| First Event → First Tool Call | 3.38s | 17.06s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 8 | 8 | 0% | — | — | — |
| Initial Load / Discovery Turns | 2 | 0 | -100.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 8 | 8 | 0% | — | — | — |
| Output Tokens | 1285 | 1379 | +7.3% | — | — | — |
| Reasoning / Thinking Tokens | 341 | 374 | +9.7% | — | — | — |
| Total Input Tokens | 191378 | 294957 | +54.1% | — | — | — |
| Cached Input Tokens | 171776 | 228096 | +32.8% | — | — | — |
| Uncached Input Tokens | 19602 | 66861 | +241.1% | — | — | — |
| Cost | 0.1123 | 0.2461 | +119.2% | — | — | — |
| Cached vs Uncached Token Ratio | 8.76:1 | 3.41:1 | -61.1% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Explicit in Small Context
- Vanilla (Baseline vs Semedit Explicit in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
- Semedit MCP (Baseline vs Semedit Explicit in Small Context) Edit: File audit/normalize.go modified (2 lines -> 6 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 2 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_lookup (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"resolve NormalizeKind: symbol not found"} resolve NormalizeKind: symbol not found |
| 4 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 5 | file_change (✓ ✓) | semedit/semantic_inspect_symbol (✓ ✓) |
| 6 | ✗ ?: # internal/godebugs compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/trace/tracev2 compile: version "go1.27.2" does not match go tool version "go1.27.1" # unicode/utf8 compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/unsafeheader compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/goarch compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/profilerecord compile: version "go1.27.2" does no | semedit/semantic_inspect_symbol (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 8 | ✗ ?: // Package audit leaves room for normalization rules owned by the delivery boundary. package audit import "strings" func NormalizeKind(kind string) string { return strings.ToLower(strings.TrimSpace(kind)) } // Package audit groups delivery kinds for operational reporting. package audit func Classify(kind string) string { switch NormalizeKind(kind) { case "health", "probe": return "control" default: return "data" } } func NewDispatcher(sink audit.Sink) *Dispatcher { return &Dispatcher{sink: sink} } func (d * | semedit/semantic_batch (✓ ✓) |
Semedit integration feedback (agent opinion, excluded from measurements):
Integration feedback unavailable: codex follow-up changed the original workspace, target, or arm
Baseline vs Semedit Explicit in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
implicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | implicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | provider_transport=codex_app_server_v2 |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Add the public audit.NormalizeKind(kind string) string function in audit/normalize.go to remove surrounding whitespace and lowercase the kind. Apply it in Dispatcher.Record before persistence, and classify normalized probe events as control traffic, like health. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Add the public audit.NormalizeKind(kind string) string function in audit/normalize.go to remove surrounding whitespace and lowercase the kind. Apply it in Dispatcher.Record before persistence, and classify normalized probe events as control traffic, like health. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 23.93s | 46.76s | +95.4% | — | — | — |
| Process Start → First Event | 0.04s | 0.02s | — | — | — | — |
| First Event → First Tool Call | 3.38s | 3.96s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 8 | 17 | +112.5% | — | — | — |
| Initial Load / Discovery Turns | 2 | 3 | +50.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 8 | 17 | +112.5% | — | — | — |
| Output Tokens | 1285 | 2689 | +109.3% | — | — | — |
| Reasoning / Thinking Tokens | 341 | 1058 | +210.3% | — | — | — |
| Total Input Tokens | 191378 | 566873 | +196.2% | — | — | — |
| Cached Input Tokens | 171776 | 520448 | +203.0% | — | — | — |
| Uncached Input Tokens | 19602 | 46425 | +136.8% | — | — | — |
| Cost | 0.1123 | 0.2930 | +161.0% | — | — | — |
| Cached vs Uncached Token Ratio | 8.76:1 | 11.21:1 | +27.9% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | file_change (✓ ✓) | semedit/semantic_outline (✓ ✓) |
| 6 | ✗ ?: # internal/godebugs compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/trace/tracev2 compile: version "go1.27.2" does not match go tool version "go1.27.1" # unicode/utf8 compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/unsafeheader compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/goarch compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/profilerecord compile: version "go1.27.2" does no | ✓ ✓ |
| 7 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 8 | ✗ ?: // Package audit leaves room for normalization rules owned by the delivery boundary. package audit import "strings" func NormalizeKind(kind string) string { return strings.ToLower(strings.TrimSpace(kind)) } // Package audit groups delivery kinds for operational reporting. package audit func Classify(kind string) string { switch NormalizeKind(kind) { case "health", "probe": return "control" default: return "data" } } func NewDispatcher(sink audit.Sink) *Dispatcher { return &Dispatcher{sink: sink} } func (d * | semedit/semantic_inspect_symbol (✓ ✓) |
| 9 | — | semedit/semantic_insert_construct (✓ ✓) |
| 10 | — | ✓ ✓ |
| 11 | — | semedit/semantic_insert_construct (✓ ✓) |
| 12 | — | semedit/semantic_replace_construct (✓ ✓) |
| 13 | — | ✓ ✓ |
| 14 | — | ✗ ? |
| 15 | — | ✓ ✓ |
| 16 | — | ✓ ✓ |
| 17 | — | ✗ ?: ls: .scratch/go/mod/golang.org/toolchain@v0.0.1-go1.27.2.darwin-arm64/bin/go: No such file or directory |
Semedit integration feedback (agent opinion, excluded from measurements):
I’d ask my owner to add semedit’s tools: they let me make targeted Go changes through semantic operations, though I regret missing the chance to batch them and couldn’t verify the result because of a Go toolchain mismatch.
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
Test case: task-12-request-identity-migration
Target: codex/gpt-6-luna/medium
explicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-12-request-identity-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | explicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | provider_transport=codex_app_server_v2 |
| Fixture | testdata/bench/task_12_request_identity_migration.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Migrate the request identity API in this large multi-package Go service. Rename only Request.ID to Request.RequestID and update every semantic use across packages; Response.ID and Review.ID are separate identities and must remain unchanged, including the many syntactically identical r.ID expressions. Add a package sentinel ErrInvalidRequest and return it from Validate when the request ID is empty, preserving error wrapping and callers. Extract the normalization block from the existing exported request.Normalize function into an unexported normalizeKind helper and keep Normalize exported with the same behavior and signature. Preserve module metadata and existing tests. Verification differs by editing method: when making ordinary file edits, run the project build and tests and ensure both pass; when using semedit, treat clean compiler diagnostic deltas returned by its mutation commands as build-clean evidence and do not run a separate build or test command. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Initial Workspace State (Before Edit)
package request
import (
"errors"
"strings"
)
type Request struct {
ID string
Kind string
Payload []byte
}
func (r Request) Validate() error {
if r.ID == "" {
return errors.New("invalid request")
}
return nil
}
func Normalize(kind string) string {
kind = strings.TrimSpace(kind)
kind = strings.ToLower(kind)
return kind
}
func FindByID(requests []Request, id string) (Request, bool) {
for _, r := range requests {
if r.ID == id {
return r, true
}
}
return Request{}, false
}| Metric | Vanilla (Small) | Semedit Explicit (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 33.65s | 157.23s | +367.2% | — | — | — |
| Process Start → First Event | 0.05s | 0.05s | — | — | — | — |
| First Event → First Tool Call | 3.31s | 12.03s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 9 | 41 | +355.6% | — | — | — |
| Initial Load / Discovery Turns | 3 | 0 | -100.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 9 | 41 | +355.6% | — | — | — |
| Output Tokens | 2191 | 11104 | +406.8% | — | — | — |
| Reasoning / Thinking Tokens | 620 | 4963 | +700.5% | — | — | — |
| Total Input Tokens | 234933 | 2458723 | +946.6% | — | — | — |
| Cached Input Tokens | 208384 | 2335744 | +1020.9% | — | — | — |
| Uncached Input Tokens | 26549 | 122979 | +363.2% | — | — | — |
| Cost | 0.1536 | 1.0922 | +611.1% | — | — | — |
| Cached vs Uncached Token Ratio | 7.85:1 | 18.99:1 | +142.0% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Explicit in Small Context
- Vanilla (Baseline vs Semedit Explicit in Small Context) Edit: File request/request.go modified (34 lines -> 41 lines)
- Semedit MCP (Baseline vs Semedit Explicit in Small Context) Edit: File request/request.go modified (34 lines -> 41 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | file_change (✓ ✓) | semedit/semantic_find_references (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 6 | ✗ ?: # internal/byteorder compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/coverage/rtcov compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/goarch compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/godebugs compile: version "go1.27.2" does not match go tool version "go1.27.1" # math/bits compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/msan compile: version "go1.27.2" does not match go too | semedit/semantic_rename (✓ ✓) |
| 7 | ✗ ?: # internal/unsafeheader compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/coverage/rtcov compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/godebugs compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/byteorder compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/profilerecord compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/goos compile: version "go1.27.2" do | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"edit 1 params: unknown parameter \"source\" for \"semantic_replace_body\"; supported keys are [auto-organize-imports, auto_organize_imports, body, expected-revision, expected_revision, file, symbol] Required parameters: [body, file, symbol]","tool":"semantic_replace_body"}],"workspace_root":"/Users/alessand |
| 8 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"resolve ErrInvalidRequest in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_1791716151661946000/request/request.go: symbol not found"} resolve ErrInvalidRequest in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_1791716151661946000/request/request.go: symbol not fo |
| 9 | ✓ ✓ | ✓ ✓ |
| 10 | — | file_change (✓ ✓) |
| 11 | — | semedit/semantic_batch (✓ ✓) |
| 12 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"edit 0 params: unknown parameter \"name\" for \"semantic_extract_function\"; supported keys are [end-line, end_line, file, in-function, in_function, kind, start-line, start_line, symbol] Required parameters: [end_line, file, in_function, kind, start_line, symbol]","tool":"semantic_extract_function"}],"works |
| 13 | — | file_change (✓ ✓) |
| 14 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 15 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"line range 21-23 does not select a contiguous top-level statement region in Normalize","tool":"semantic_extract_function"}],"workspace_root":"/Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_1791716151661946000"}} { "s |
| 16 | — | file_change (✓ ✓) |
| 17 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"cannot extract Normalize: only one leading := declaration with matching named results is supported","tool":"semantic_extract_function"}],"workspace_root":"/Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_17917161516619 |
| 18 | — | file_change (✓ ✓) |
| 19 | — | semedit/semantic_batch (✓ ✓) |
| 20 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 21 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"cannot extract Normalize: selected statement on line 23 is not a call or supported local declaration","tool":"semantic_extract_function"}],"workspace_root":"/Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_179171615166 |
| 22 | — | file_change (✓ ✓) |
| 23 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"cannot extract Normalize: cannot infer a safe return type for local declaration expression \"strings.ToLower(strings.TrimSpace(kind))\"","tool":"semantic_extract_function"}],"workspace_root":"/Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-requ |
| 24 | — | file_change (✓ ✓) |
| 25 | — | semedit/semantic_batch (✓ ✓) |
| 26 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"cannot extract Normalize: selected statement on line 22 is not a call or supported local declaration","tool":"semantic_extract_function"}],"workspace_root":"/Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_179171615166 |
| 27 | — | file_change (✓ ✓) |
| 28 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 29 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"line range 20-20 does not select a contiguous top-level statement region in Normalize","tool":"semantic_extract_function"}],"workspace_root":"/Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_1791716151661946000"}} { "s |
| 30 | — | file_change (✓ ✓) |
| 31 | — | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"resolve extracted result types: load Go package for extraction: /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit-explicit_small-explicit_task-12-request-identity-migration_1791716151661946000/request/request.go:15:10: undefined: fmt","tool":"semantic_extract_function"}],"works |
| 32 | — | file_change (✓ ✓) |
| 33 | — | semedit/semantic_batch (✓ ✓) |
| 34 | — | semedit/semantic_batch (✓ ✓) |
| 35 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 36 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 37 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 38 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 39 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 40 | — | ✓ ✓ |
| 41 | — | semedit/semantic_find_references (✓ ✓) |
Semedit integration feedback (agent opinion, excluded from measurements):
Integration feedback unavailable: codex follow-up changed the original workspace, target, or arm
Baseline vs Semedit Explicit in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
implicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-12-request-identity-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | implicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | provider_transport=codex_app_server_v2 |
| Fixture | testdata/bench/task_12_request_identity_migration.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Migrate the request identity API in this large multi-package Go service. Rename only Request.ID to Request.RequestID and update every semantic use across packages; Response.ID and Review.ID are separate identities and must remain unchanged, including the many syntactically identical r.ID expressions. Add a package sentinel ErrInvalidRequest and return it from Validate when the request ID is empty, preserving error wrapping and callers. Extract the normalization block from the existing exported request.Normalize function into an unexported normalizeKind helper and keep Normalize exported with the same behavior and signature. Preserve module metadata and existing tests. Verification differs by editing method: when making ordinary file edits, run the project build and tests and ensure both pass; when using semedit, treat clean compiler diagnostic deltas returned by its mutation commands as build-clean evidence and do not run a separate build or test command. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Migrate the request identity API in this large multi-package Go service. Rename only Request.ID to Request.RequestID and update every semantic use across packages; Response.ID and Review.ID are separate identities and must remain unchanged, including the many syntactically identical r.ID expressions. Add a package sentinel ErrInvalidRequest and return it from Validate when the request ID is empty, preserving error wrapping and callers. Extract the normalization block from the existing exported request.Normalize function into an unexported normalizeKind helper and keep Normalize exported with the same behavior and signature. Preserve module metadata and existing tests. Verification differs by editing method: when making ordinary file edits, run the project build and tests and ensure both pass; when using semedit, treat clean compiler diagnostic deltas returned by its mutation commands as build-clean evidence and do not run a separate build or test command. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package request
import (
"errors"
"strings"
)
type Request struct {
ID string
Kind string
Payload []byte
}
func (r Request) Validate() error {
if r.ID == "" {
return errors.New("invalid request")
}
return nil
}
func Normalize(kind string) string {
kind = strings.TrimSpace(kind)
kind = strings.ToLower(kind)
return kind
}
func FindByID(requests []Request, id string) (Request, bool) {
for _, r := range requests {
if r.ID == id {
return r, true
}
}
return Request{}, false
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 33.65s | 47.29s | +40.5% | — | — | — |
| Process Start → First Event | 0.05s | 0.02s | — | — | — | — |
| First Event → First Tool Call | 3.31s | 8.32s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 9 | 10 | +11.1% | — | — | — |
| Initial Load / Discovery Turns | 3 | 3 | 0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 9 | 10 | +11.1% | — | — | — |
| Output Tokens | 2191 | 1846 | -15.7% | — | — | — |
| Reasoning / Thinking Tokens | 620 | 525 | -15.3% | — | — | — |
| Total Input Tokens | 234933 | 530110 | +125.6% | — | — | — |
| Cached Input Tokens | 208384 | 477184 | +129.0% | — | — | — |
| Uncached Input Tokens | 26549 | 52926 | +99.4% | — | — | — |
| Cost | 0.1536 | 0.2812 | +83.1% | — | — | — |
| Cached vs Uncached Token Ratio | 7.85:1 | 9.02:1 | +14.9% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File request/request.go modified (34 lines -> 41 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File request/request.go modified (34 lines -> 41 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | file_change (✓ ✓) | semedit/semantic_rename (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"error","application_state":"unknown","error":"edit 0 params: unknown parameter \"source\" for \"semantic_replace_body\"; supported keys are [auto-organize-imports, auto_organize_imports, body, expected-revision, expected_revision, file, symbol] Required parameters: [body, file, symbol]","tool":"semantic_replace_body"}],"workspace_root":"/Users/alessand |
| 6 | ✗ ?: # internal/byteorder compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/coverage/rtcov compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/goarch compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/godebugs compile: version "go1.27.2" does not match go tool version "go1.27.1" # math/bits compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/msan compile: version "go1.27.2" does not match go too | ✓ ✓ |
| 7 | ✗ ?: # internal/unsafeheader compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/coverage/rtcov compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/godebugs compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/byteorder compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/profilerecord compile: version "go1.27.2" does not match go tool version "go1.27.1" # internal/goos compile: version "go1.27.2" do | ✓ ✓ |
| 8 | ✓ ✓ | semedit/semantic_batch (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_batch (✓ ✓) |
| 10 | — | ✓ ✓ |
Semedit integration feedback (agent opinion, excluded from measurements):
Semedit’s semantic rename and edit tools gave me a clear, low-stress way to update request identities across packages while keeping response and review IDs intact, so I’d ask my owner to add them.
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |