Benchmark run hard-smoke-saluki-20261011T203354Z
This page contains exactly the publishable benchmark observations recorded in run hard-smoke-saluki-20261011T203354Z; 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: opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest
explicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest |
| Prompt variant | explicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | fixture_dependency_preparation=go-list-readonly-deps-test,local_model_context_tokens=212992,local_model_limits_source=llama.cpp-props,local_model_output_tokens=8192,provider_transport=opencode_attached_server_v1 |
| 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 | 28.54s | 86.66s | +203.6% | — | — | — |
| Process Start → First Event | 8.08s | 23.93s | — | — | — | — |
| First Event → First Tool Call | 2.17s | 2.61s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 4 | 10 | +150.0% | — | — | — |
| Initial Load / Discovery Turns | 2 | 1 | -50.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 4 | 10 | +150.0% | — | — | — |
| Output Tokens | 580 | 2268 | +291.0% | — | — | — |
| Reasoning / Thinking Tokens | 0 | 0 | — | — | — | — |
| Total Input Tokens | 36522 | 259769 | +611.3% | — | — | — |
| Cached Input Tokens | 29312 | 233097 | +695.2% | — | — | — |
| Uncached Input Tokens | 7210 | 26672 | +269.9% | — | — | — |
| Cost | — | — | — | — | — | — |
| Cached vs Uncached Token Ratio | 4.07:1 | 8.74:1 | +115.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 | read (✓ ✓) | read (✓ ✓) |
| 2 | grep (✓ ✓) | semedit_semantic_lookup (✓ ✓) |
| 3 | write (✓ ✓) | semedit_semantic_inspect_symbol (✓ ✓) |
| 4 | bash (✓ ✓) | 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 \"kind\" for \"semantic_insert_function\"; supported keys are [access, access_modifier, auto-organize-imports, auto_organize_imports, file, placement, source, target, target_symbol] Required parameters: [file, source]","tool":"semantic_insert_function"}],"workspace_root":"/U |
| 5 | — | read (✓ ✓) |
| 6 | — | 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 Port in config/config.go: symbol not found","tool":"semantic_rename"}],"workspace_root":"/Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_opencode_semedit-explicit_small-explicit_task-09-composite-refactor_1791751301150588000"}} { "status": "error", "workspace_root": "/Users/alessan |
| 7 | — | semedit_semantic_rename (✓ ✓) |
| 8 | — | semedit_semantic_insert_construct (✓ ✓) |
| 9 | — | semedit_semantic_verify (✓ ✓) |
| 10 | — | read (✓ ✓) |
Semedit integration feedback (agent opinion, excluded from measurements):
Integration feedback unavailable: OpenCode session workspace, target, or arm changed
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 | opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest |
| Prompt variant | implicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | fixture_dependency_preparation=go-list-readonly-deps-test,local_model_context_tokens=212992,local_model_limits_source=llama.cpp-props,local_model_output_tokens=8192,provider_transport=opencode_attached_server_v1 |
| 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)
}Test case: task-11-mixed-sink-api-migration
Target: opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest
explicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest |
| Prompt variant | explicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | fixture_dependency_preparation=go-list-readonly-deps-test,local_model_context_tokens=212992,local_model_limits_source=llama.cpp-props,local_model_output_tokens=8192,provider_transport=opencode_attached_server_v1 |
| 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 | 126.17s | 69.77s | -44.7% | — | — | — |
| Process Start → First Event | 8.12s | 23.57s | — | — | — | — |
| First Event → First Tool Call | 1.21s | 1.32s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 24 | 8 | -66.7% | — | — | — |
| Initial Load / Discovery Turns | 18 | 0 | -100.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 24 | 8 | -66.7% | — | — | — |
| Output Tokens | 3316 | 1433 | -56.8% | — | — | — |
| Reasoning / Thinking Tokens | 0 | 0 | — | — | — | — |
| Total Input Tokens | 359981 | 152222 | -57.7% | — | — | — |
| Cached Input Tokens | 322541 | 124730 | -61.3% | — | — | — |
| Uncached Input Tokens | 37440 | 27492 | -26.6% | — | — | — |
| Cost | — | — | — | — | — | — |
| Cached vs Uncached Token Ratio | 8.61:1 | 4.54:1 | -47.3% | — | — | — |
| 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 | bash (✓ ✓) | semedit_semantic_lookup (✓ ✓) |
| 2 | glob (✓ ✓) | semedit_semantic_lookup (✓ ✓) |
| 3 | bash (✓ ✓) | read (✓ ✓) |
| 4 | read (✓ ✓) | read (✓ ✓) |
| 5 | read (✓ ✓) | read (✓ ✓) |
| 6 | read (✓ ✓) | read (✓ ✓) |
| 7 | read (✓ ✓) | semedit_semantic_batch (✓ ✓) |
| 8 | read (✓ ✓) | bash (✓ ✓) |
| 9 | read (✓ ✓) | — |
| 10 | read (✓ ✓) | — |
| 11 | read (✓ ✓) | — |
| 12 | read (✓ ✓) | — |
| 13 | read (✓ ✓) | — |
| 14 | read (✓ ✓) | — |
| 15 | read (✓ ✓) | — |
| 16 | read (✓ ✓) | — |
| 17 | read (✓ ✓) | — |
| 18 | read (✓ ✓) | — |
| 19 | write (✓ ✓) | — |
| 20 | edit (✓ ✓) | — |
| 21 | edit (✓ ✓) | — |
| 22 | bash (✓ ✓) | — |
| 23 | bash (✓ ✓) | — |
| 24 | bash (✓ ✓) | — |
Semedit integration feedback (agent opinion, excluded from measurements):
Integration feedback unavailable: OpenCode session workspace, target, or arm changed
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 | opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest |
| Prompt variant | implicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | fixture_dependency_preparation=go-list-readonly-deps-test,local_model_context_tokens=212992,local_model_limits_source=llama.cpp-props,local_model_output_tokens=8192,provider_transport=opencode_attached_server_v1 |
| 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 | 126.17s | 219.94s | +74.3% | — | — | — |
| Process Start → First Event | 8.12s | 23.75s | — | — | — | — |
| First Event → First Tool Call | 1.21s | 2.74s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 24 | 36 | +50.0% | — | — | — |
| Initial Load / Discovery Turns | 18 | 17 | -5.6% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 24 | 36 | +50.0% | — | — | — |
| Output Tokens | 3316 | 7245 | +118.5% | — | — | — |
| Reasoning / Thinking Tokens | 0 | 0 | — | — | — | — |
| Total Input Tokens | 359981 | 799227 | +122.0% | — | — | — |
| Cached Input Tokens | 322541 | 766625 | +137.7% | — | — | — |
| Uncached Input Tokens | 37440 | 32602 | -12.9% | — | — | — |
| Cost | — | — | — | — | — | — |
| Cached vs Uncached Token Ratio | 8.61:1 | 23.51:1 | +173.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 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 | bash (✓ ✓) | bash (✓ ✓) |
| 2 | glob (✓ ✓) | bash (✓ ✓) |
| 3 | bash (✓ ✓) | read (✓ ✓) |
| 4 | read (✓ ✓) | read (✓ ✓) |
| 5 | read (✓ ✓) | read (✓ ✓) |
| 6 | read (✓ ✓) | read (✓ ✓) |
| 7 | read (✓ ✓) | read (✓ ✓) |
| 8 | read (✓ ✓) | read (✓ ✓) |
| 9 | read (✓ ✓) | read (✓ ✓) |
| 10 | read (✓ ✓) | read (✓ ✓) |
| 11 | read (✓ ✓) | read (✓ ✓) |
| 12 | read (✓ ✓) | read (✓ ✓) |
| 13 | read (✓ ✓) | read (✓ ✓) |
| 14 | read (✓ ✓) | bash (✓ ✓) |
| 15 | read (✓ ✓) | read (✓ ✓) |
| 16 | read (✓ ✓) | read (✓ ✓) |
| 17 | read (✓ ✓) | read (✓ ✓) |
| 18 | read (✓ ✓) | semedit_semantic_batch (✓ ✗): Batch child results are intermediate and do not provide final continuation targets. Critical result (JSON): {"result":{"status":"error","results":[{"status":"ok","diagnostic_status":"deferred","file":"audit/normalize.go","symbol":"NormalizeKind","tool":"semantic_insert_construct"},{"status":"ok","diagnostic_status":"deferred","file":"audit/summary.go","symbol":"Classify","tool":"semantic_replace_construct"},{"status":"error","application_state":"unknown","error":"replacement must preserve the selected funct |
| 19 | write (✓ ✓) | semedit_semantic_replace_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"replacement must preserve the selected function symbol \"Record\""} replacement must preserve the selected function symbol "Record" |
| 20 | edit (✓ ✓) | semedit_semantic_replace_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"replacement must preserve the selected function symbol \"(*Dispatcher).Record\""} replacement must preserve the selected function symbol "(*Dispatcher).Record" |
| 21 | edit (✓ ✓) | semedit_semantic_replace_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"symbol is required for kind=function"} symbol is required for kind=function |
| 22 | bash (✓ ✓) | semedit_semantic_replace_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"replacement must preserve the selected function symbol \"Record\""} replacement must preserve the selected function symbol "Record" |
| 23 | bash (✓ ✓) | semedit_semantic_replace_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"symbol is required for kind=function"} symbol is required for kind=function |
| 24 | bash (✓ ✓) | semedit_semantic_replace_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"replacement must preserve the selected function symbol \"Record\""} replacement must preserve the selected function symbol "Record" |
| 25 | — | semedit_semantic_replace_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"replacement must preserve the selected function symbol \"Record\""} replacement must preserve the selected function symbol "Record" |
| 26 | — | semedit_semantic_insert_construct (✓ ✗): Critical result (JSON): {"application_state":"unknown","error":"plan statement insertion: function \"Record\" not found"} plan statement insertion: function "Record" not found |
| 27 | — | semedit_semantic_insert_construct (✓ ✓) |
| 28 | — | read (✓ ✓) |
| 29 | — | bash (✓ ✓) |
| 30 | — | semedit_semantic_insert_construct (✓ ✓) |
| 31 | — | bash (✓ ✓) |
| 32 | — | read (✓ ✓) |
| 33 | — | read (✓ ✓) |
| 34 | — | bash (✓ ✓) |
| 35 | — | bash (✓ ✓) |
| 36 | — | bash (✓ ✓) |
Semedit integration feedback (agent opinion, excluded from measurements):
I'd definitely ask my owner to add semedit's tools — the structured edits and built-in diagnostics genuinely made adding `NormalizeKind` and rewriting `Classify` feel safe and verifiable — though I was a little frustrated that method replacement kept failing on `Dispatcher.Record` and I had to fall back to statement insertion to finish the job.
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
Test case: task-12-request-identity-migration
Target: opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest
explicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-12-request-identity-migration |
| Target | opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest |
| Prompt variant | explicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | fixture_dependency_preparation=go-list-readonly-deps-test,local_model_context_tokens=212992,local_model_limits_source=llama.cpp-props,local_model_output_tokens=8192,provider_transport=opencode_attached_server_v1 |
| 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
}implicit prompt · prescriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-12-request-identity-migration |
| Target | opencode/amdbeast/Kujira/Underdog-Saluki-27B-1.0-MTP-GGUF:latest |
| Prompt variant | implicit |
| MCP server instructions | prescriptive |
| Semedit arm restriction | write |
| Run provenance | fixture_dependency_preparation=go-list-readonly-deps-test,local_model_context_tokens=212992,local_model_limits_source=llama.cpp-props,local_model_output_tokens=8192,provider_transport=opencode_attached_server_v1 |
| 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
}