Skip to content

About

Six models built the same distributed-systems feature three times each, under superpowers, archspec and OpenSpec. 18 runs, reviewed twice each by Claude Opus 4.8.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spec-driven microservices benchmark

Six models were given the same feature to build in the same Go microservice repo, three times each, under a different spec-driven process every time. That's 18 runs. Every run was reviewed twice by Claude Opus 4.8: once on the plan, once on the shipped code. This repo holds those reviews, the screenshots taken while the runs happened, and a map of which git branch belongs to which run.

The code itself lives in a separate repo: krus210/freelance-marketplace. One branch per run.

Result

flowchart LR
    SP["A · superpowers<br/>one-shot plan<br/><br/>plan 6.25 · code 4.75<br/>checklist 65.7%<br/>reaches the user 1 of 6"]
    OS["C · OpenSpec<br/>explore, propose, apply<br/><br/>plan 7.25 · code 5.83<br/>checklist 80.2%<br/>reaches the user 2 of 6"]
    AS["B · archspec<br/>live contract + plan review<br/><br/>plan 7.92 · code 6.00<br/>checklist 88.3%<br/>reaches the user 3 of 6"]

    SP -->|"+1.00 plan · +1.08 code · +14.5 pp"| OS
    OS -->|"+0.67 plan · +0.17 code · +8.2 pp"| AS

    style SP stroke:#8a8a99,stroke-width:3px
    style OS stroke:#2f9e8f,stroke-width:3px
    style AS stroke:#7a5af0,stroke-width:3px
Loading

Both spec-driven processes beat the one-shot baseline on every average. archspec finished ahead of OpenSpec on all four, with its biggest margin on the architecture checklist.

The gap between the two spec-driven runs is smaller than it looks, though, and it isn't a clean A/B test. The OpenSpec series ran three weeks later, on a newer opencode build, in stricter isolation. See limits.

Scoreboard

Plan and code are scored out of 10 by Claude Opus 4.8. Checklist is the share of 21 architecture-conformance points the implementation satisfies. "Reaches the user" means the reject → rematch → notify chain actually completes. The per-series tally counts a partial completion as a hit, so 3 of 6 for archspec is one full chain plus two partial ones, not three working features.

A. superpowers (baseline)

Model Plan Plan checklist Code Code checklist Reaches the user Branch
Sonnet 4.6 6.0 64% 6.0 64% no task_1
Codex 5.4 7.0 ~76% 7.0 79% yes task1_with_gpt_5_4
GLM 5.0 6.5 ~74% 5.5 79% no task_1_glm
MiniMax 2.7 6.5 ~76% 3.5 69% no task_1_with_minimax
Qwen 3.6 6.0 ~64% 3.5 55% no task1_with_qwen_3_6
Gemini Flash 3.5 5.5 ~60% 3.0 48% no task1_with_gemini_flash_3_5
average 6.25 69.0% 4.75 65.7% 1/6

Yandex GPT 5.1 also ran but produced no commits, so it got neither a plan review nor a code review and stays out of both averages.

B. archspec

Model Plan Plan checklist Code Code checklist Reaches the user Branch
Sonnet 4.6 9.0 ~98% 8.0 93% partly task_3
GLM 5.0 8.5 ~98% 7.0 95% partly task_3_with_glm_5_0
Codex 5.4 8.0 93% 5.5 88% no task_3_with_codex_5_4
Qwen 3.6 7.5 ~86% 6.5 86% yes task_3_with_qwen_3_6
MiniMax 2.7 7.5 ~90% 5.0 83% no task_3_with_minimax_2_7
Gemini Flash 3.5 7.0 88% 4.0 85% does not compile task_3_with_gemini_3_5_flash
average 7.92 92.2% 6.00 88.3% 3/6

C. OpenSpec

Model Plan Plan checklist Code Code checklist Reaches the user Branch
Codex 5.4 7.5 86% 8.5 90% yes task_4_with_codex_5_4
Sonnet 4.6 8.0 ~89% 6.0 79% no task_4_with_sonnet_4_6
GLM 5.0 7.5 79% 6.0 83% partly task_4_with_glm_5_0
MiniMax 2.7 8.0 90% 5.0 86% no task_4_with_minimax_2_7
Qwen 3.6 6.5 ~71% 5.0 67% no task_4_with_qwen_3_6
Gemini Flash 3.5 6.0 81% 4.5 76% no task_4_with_gemini_flash_3_5
average 7.25 82.7% 5.83 80.2% 2/6

Machine-readable copy: results/scores.csv.

The visual write-up

docs/index.html is the v4 comparison page these scores come from: the ladder, all 18 runs side by side, per-model defect breakdowns, and the two bugs that survived every process. It is a single self-contained file with no external assets, and it is in Russian.

GitHub will not render it in the file view. Three ways to read it:

  • Turn on GitHub Pages for this repo (Settings, Pages, source main branch and /docs folder). The page then lives at https://<user>.github.io/<repo>/.
  • Clone or download the repo and open docs/index.html in a browser.
  • Paste the file's raw URL into https://htmlpreview.github.io/?<raw-url>.

Everything the page asserts is reproduced in English across this README and the run folders, so you lose nothing by skipping it. It is nicer to look at.

Two of its cells differ from the tables above. The page prints an 88% code checklist for archspec Gemini Flash 3.5 and 81% for superpowers Codex 5.4; this repo uses 85% and 79%, which is what those runs' own code reviews say. results/README.md explains the discrepancy. The page is kept exactly as published.

The task

Reassign a freelancer without breaking the invariants of a distributed system.

A client declines an offer. The system picks the next candidate out of the pool it already selected, up to three times. On the fourth decline the task goes to failed and the client gets notified. The logic fits on two screens. Underneath it sit eight distributed-systems traps: facade boundaries, denormalised data, idempotency keys, transactional outbox, N+1, dependency cycles, event ordering, state ownership.

Full statement and the eight traps: docs/task.md.

The three processes

Every model got the same repo, the same prompt, and the same 21-point checklist. Only the process around them changed.

  • superpowers writes one design doc and goes straight to code. Nothing reviews the plan, and no service contract is consulted.
  • OpenSpec splits the work into explore, propose, apply. The plan becomes capability specs plus a task list, committed before any code.
  • archspec keeps a live SERVICE_MAP.yaml per service and makes the model quote it: Contract Slice, Fan-Out Trace, State-Ownership Map, plus a mandatory self-review and plan-review before implementation.

How each run was set up and graded: docs/methodology.md.

Repo layout

docs/
  index.html           the v4 comparison page, self-contained, Russian
  task.md              what the models were asked to build, and the eight traps
  methodology.md       how runs were set up, isolated, and scored
  prompts/             the two reviewer prompts, verbatim, plus a README
runs/
  README.md            branch map for all 18 runs
  superpowers/
    README.md          series scoreboard and what it established
    <model>/           plan-review.md, code-review.md, evidence/
  archspec/
    README.md          same
    <model>/           same
    setup/             screenshots from the archspec:init bootstrap
  openspec/
    README.md          same
    <model>/           same
    run-stats.ru.md    tokens, cost and diff size for the series
    results.ru.md      the original Russian summary
results/
  README.md            what each column means, and which blanks are gaps
  scores.csv           every score in one file

Each run folder has its own README with the branch, the commits, and a short account of what worked and what broke.

The reviews under runs/ are the originals and are in Russian. Some have an English translation next to them as code-review.en.md. Everything written for this repo is in English.

How runs were scored

Two reviews per run, both by Claude Opus 4.8 with the prompts in docs/prompts/: the plan on reasoning effort high, the implementation on xhigh. The reviewer compared each run against a reference solution and a 21-point checklist that are deliberately not published here, so the benchmark stays replayable on new models.

Two Sonnet 4.6 runs anchor the scale and were graded first: the superpowers run at 6/10 and the archspec run at 9/10. Every later run was scored against those two.

Codex also reviewed the first two series as a second opinion. Those reviews are not in this repo.

What this does not prove

  • The OpenSpec series ran on 3 and 4 August 2026, three weeks after the other two. opencode had shipped 0.9.9 → 1.18.11 in between.
  • Isolation differed. superpowers and archspec ran as branches in one repo, where git branch -a shows the other models' answers. OpenSpec ran in single-branch clones with origin removed.
  • Effort settings for the four models behind the OpenCode Zen gateway were never recorded. That's a hole in the data, not a measurement.
  • Tokens and cost exist only for OpenSpec (runs/openspec/run-stats.ru.md). Cache accounting differs across the three CLIs anyway, so the columns don't add up across rows.
  • One task, one repo, one grader. Six models is a small sample and the scores are one reviewer's judgement, not a test suite.

The ordering of the averages holds across all four measures. Attributing the whole gap to methodology alone does not.

Two bugs nobody fixed

Some defects survived both spec-driven processes.

city_id never got pinned down as a contract. In the baseline and archspec series every one of the 12 runs got it wrong. Under OpenSpec five models passed a city name into geo-service where an ID was expected; Codex worked around it with a runtime lookup but still didn't persist city_id on the task. The distance tie-breaker is the single most reliable place for these runs to fail.

Idempotency keeps coming back under a new name. One match_id shared across all attempts broke four baseline runs. archspec cut that down, then the same shared dedup key reappeared in Codex's and GLM's code. Under OpenSpec the collision stayed with Gemini, while GLM, MiniMax and Qwen picked up different redelivery bugs instead. Naming an invariant in a spec artifact is not the same as enforcing it in code.

About

Six models built the same distributed-systems feature three times each, under superpowers, archspec and OpenSpec. 18 runs, reviewed twice each by Claude Opus 4.8.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors