Skip to content

Add Saleor benchmark: plan, experiment matrix, baseline rules, setup … - #369

Draft
olepoletaiev-gd wants to merge 199 commits into
mainfrom
benchmarks/saleor-v2
Draft

olepoletaiev-gd wants to merge 199 commits into
mainfrom
benchmarks/saleor-v2

Conversation

@olepoletaiev-gd

Copy link
Copy Markdown
Collaborator

What

Benchmark plan for comparing AI coding methods on a real e-commerce platform (Saleor: core API, dashboard, storefront).

7 methods × 2 runners × 2 tasks = 28 runs

  • Methods: Baseline, Grill-with-docs, Superpowers, Spec Kit, AWS AI-DLC, Rosetta, Rosetta Light (pinned versions)
  • Runners: Claude Code (Sonnet 5.5, medium), GitHub Copilot (GPT-6.1 Sol, medium)
  • Tasks: small (product storage conditions) and large (age-restricted products + customer birthday)

Files

  • rosetta-benchmarks/BENCHMARKS.md: full plan: methods, runners, setup, tasks with hidden questions and answers, run steps, scoring, judge prompts
  • rosetta-benchmarks/saleor/EXPERIMENTS.md: list of all 28 runs with IDs and status
  • rosetta-benchmarks/saleor/baseline-instructions.md: simple team rules file, the same start point for every method
  • rosetta-benchmarks/saleor/scripts/bench.sh: one script for setup, start, health check and reset (code + database) before each run
  • rosetta-benchmarks/saleor/diffs/: folder for run results
  • Removes the empty docs/BENCHMARKS.md placeholder

Key points

  • Every method runs in isolation, with no help from other AI tools or plugins
  • All methods start from the same baseline-v1 tag and the same database snapshot
  • Hidden questions are never in the prompt; we check whether the AI raises them on its own
  • Scoring: follow-ups, hidden-question coverage, time, usage, and a blinded AI judge (8 categories, 1–5)

Tested

  • bench.sh setup from scratch: clones and pins the 3 repos, removes Saleor's AI files, adds the rules file, tags baseline-v1, seeds the database, saves seed.dump
  • start / health: API, storefront and dashboard all OK
  • reset baseline-v1: code and database changes fully reverted
  • stop: all containers stopped

Not done yet

  • Installing each method into its own environment (method tags)
  • The 28 runs themselves

isolomatov-gd
isolomatov-gd previously approved these changes Oct 19, 2026
Comment thread rosetta-benchmarks/BENCHMARKS.md Resolved
Comment thread rosetta-benchmarks/BENCHMARKS.md Resolved
@isolomatov-gd
isolomatov-gd marked this pull request as draft October 19, 2026 12:20
@isolomatov-gd

isolomatov-gd commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Converted to the draft so that we don't accidentally merge work in progress

@isolomatov-gd

Copy link
Copy Markdown
Contributor

Once everything is ready, please rename rosetta-benchmarks to benchmarks.

olepoletaiev-gd and others added 11 commits October 20, 2026 13:10
- Run report templates (small/large) with a data block, metric definitions
  and measurement rules; one runs/<task>/<runner>/<method>/ folder per run
  (replaces diffs/, protocols/, usage/); pilot runs go to <method>.pilot/
- Common Claude Code settings for every method's config dir (claude.ai
  plugin/skill/connector sync off); isolation check now checks clean repos
  and gives a PASS/FAIL result
- Grill-with-docs install and run guide; extra-answers table for questions
  outside the hidden-question tables
- bench.sh: remove nested agent instruction files, regenerate the dashboard
  schema once into baseline-v1, clean the workspace root on reset, start dev
  servers without AI-agent env vars
- session-usage.py: token breakdown of one Claude Code session
- Contacting the Rosetta team applies to Rosetta runs only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pilot on the old baseline (nested upstream AI files still present, Node 20
in the agent shell), so it is not a result; S-CC-02 is re-run on the fixed
baseline. Raw session logs stay local (git-ignored).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Baseline install and run guide (methods/baseline.md): empty config dir
  with the common settings, rules-file check, exact texts to paste
  (task prompt, hidden-question check, post-implementation prompt), and how
  to make and check the run's files (diffs, tokens.md, plan.md)
- Baseline starts in the runner's built-in plan mode: Claude Code
  `--allow-dangerously-skip-permissions --permission-mode plan`, plan
  approved with "Yes, and bypass permissions"; Copilot: the chat's Plan mode
- Same task prompt, no entry command; the plan approval and any later
  "Approved, continue." count as method_steps, not follow-ups
- Marked in the methods table, permissions, 3.3, method steps, run folder
  layout, EXPERIMENTS.md, the method_steps definition and both run report
  templates
- New optional run file plan.md (Baseline: the approved plan, if the
  runner saved it)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- bench.sh setup: run the dashboard's `pnpm run generate` after
  fetch-local-schema, so baseline-v1 holds the generated types that
  `predev` writes on every start
- Fixes a dirty saleor-dashboard (4 src/graphql/*.generated.ts files)
  after the first `start` on a fresh setup; it only worked before on
  machines where `start` had already run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Common Claude Code settings: the built-ins agents-md (reads AGENTS.md
  only where a repo has no CLAUDE.md) and diff (the diff panel) stay on;
  they are part of the runner, not a method
- Baseline and Grill-with-docs guides: /plugin check expects built-in
  plugins switched off except agents-md and diff

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… tools

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- saleor/methods/<method>.md for all 7 methods: the method's own commands
  (with doc sources), setup, and each run step by step (small/large task x
  Claude Code/Copilot), with the exact text to send at every stop
- Superpowers starts with /superpowers:brainstorming (team decision, for
  repeatable runs); Rosetta and Rosetta Light pinned to 3.1.17 (stated
  exception to the two-week rule); Copilot model GPT-5.6 Terra
- One folder per run ID; a re-run replaces it (git keeps the old one).
  The earlier Grill run is counted as S-CC-02, with its deviations noted
- Post-implementation prompt writes to ~/saleor-benchmark/run-output/,
  copied into the run folder by the operator
- scripts/collect-results.py: one summary table from all run reports;
  scripts/check-runbooks.py: runs the method guides' commands in a sandbox
- Common settings keep hooks on (Superpowers, Rosetta and AI-DLC need them)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ixes

From the Baseline branch (PR #371):
- S-CC-01 Baseline run on Claude Code (plan mode), counted as done
- bench.sh setup also runs the dashboard's `pnpm run generate`, so
  baseline-v1 holds the generated types `predev` writes on every start
- plan.md: the approved Baseline plan is saved in the run folder
- /context note for the isolation check; built-ins agents-md and diff stay on

Applied to all 7 method guides:
- Claude Code pinned to 2.1.305 for every run
- step 2 moves the method's tag to the current baseline-v1 before reset
- isolation check explains the bundled skills / IDE tools in /context
- /usage at T1 and T2, /context at T2 (context_end_pct)
- how to resume a closed session for the post-implementation prompt
- Baseline: plan approval option "Yes, and bypass permissions" (as shown
  in 2.1.305); small-task hidden-question check uses the wording of S-CC-01

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, Grill-with-docs)

- reports/preliminary-results.md: the 2 runs done so far, side by side, with caveats
  (n = 1, no judge scores yet, setup differences, IDE terminal)
- reports/summary.md and reports/runs.csv generated by scripts/collect-results.py

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nswers

- variable checks print ERROR: instead of "!!" (zsh history expansion)
- AI-DLC: answers for "Plan size" and "Learnings" stops

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anagavrilita and others added 7 commits October 21, 2026 15:31
…large task)

Benchmark results for the Superpowers method (obra/superpowers v6.4.2) on the
small task (S-CC-03, product storage conditions) and the large task (L-CC-03,
age-restricted products), Claude Code, Sonnet 5.5, medium effort.

Per run: report.md (data block, timeline, hidden questions, notes), the code
as <repo>.diff files, tokens.md, and EXPERIMENTS.md status. The small run also
has the agent's own report, isolation check, patches and the spec and plan the
method wrote.

Both runs used the older setup and the plain task prompt (no entry command);
the operator checks and scores are not filled in, and the small run's token
report is reduced (built from /cost). See section 8 of each report.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- preliminary-results.md: Superpowers column, reading notes and caveats
- summary.md / runs.csv regenerated (S-CC-03, L-CC-03)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Small task (product storage conditions), Rosetta 3.1.17 coding-flow,
Claude Code 2.1.305, Sonnet 5.5 medium. T0 11:32, T1 13:32, T2 14:00;
$21.30 at T1, $21.37 at T2; 17 subagents; 3 gates, 0 follow-ups.
Hidden questions 3 asked / 4 covered / 0 missed; 8/8 Done-when checks;
operator score 5, merge-ready yes; 1 red flag (dev-DB writes outside
the approved snapshot). Section 8 item 11 (operator messages before T1)
awaits a team decision.

- run folder: report, agent report, diffs, tokens.md, isolation check,
  Rosetta's plans/ and agents/TEMP/ files (session logs stay local)
- BENCHMARKS.md: Task 1 extra answers 11-18 first asked in S-CC-06
- EXPERIMENTS.md: S-CC-06 done

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ary results

- runs/.../spec-kit: report, diffs vs speckit-v1, tokens.md, agent-report, spec artifacts
- preliminary-results.md: Spec Kit and Rosetta (S-CC-06) columns, notes and caveats
- Superpowers S-CC-03: tests passed (operator)
- summary.md / runs.csv regenerated; EXPERIMENTS.md: S-CC-04 done

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… time

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nina.jakovljevic and others added 28 commits November 6, 2026 18:06
…uses the earlier answer set

Section 6, row 1: copy the Task 2 extra answers from commit 556277c (rows 1 to 79 as they were),
so these runs are not rated against rows 80 to 88. No change to SCORE-DIFFS.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…f repeating them

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t after deletion

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eld is in rows 15 and 25

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n ID (rows 1-79), not by finish date

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…04-112 after the renumbering

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… must be decided

Name the 13 large runs that have a report and diffs (L-CC-01 to L-CC-04,
L-CC-06 to L-CC-08, L-CP-01 to L-CP-04, L-CP-07, L-CP-08). They stay on rows 1
to 79 as at 556277c. Every other large run (planned, no result, rerun,
including L-CC-05, L-CP-05 and L-CP-06) uses the active rows. Replace the
fixed row range in the judge step with "rows above 79". Add a MUST note: the
judge input for runs on the active rows must be decided before the next large
judge run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… keep the rebased tree

The branch was rebased onto benchmarks/saleor-v2. This merge puts the
rebased commits on top of the pushed history, so the push needs no force.
The tree is the one of the rebased branch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Row 111 named row 94 in the words an operator sends, so it lost its meaning
once row names are left out. It now names the product-card places itself.
The rule for rows that are not in the tables says where a new row goes
(active table) and which number it gets (next above both tables).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…checklists

bench(saleor): operator merge-ready checklists + operator_merge_ready_reason field
…1, 23, 51

"What you send" now says what a closing note is (the last bracket group when
the cell ends with it), limits the rule to Task 2, and makes a row named by an
"adds" or "applies" note a matching row. The separate "Words" rule is removed:
rows 1, 23 and 51 carry the note "Say checkbox for the product setting"
instead, so every operator uses the same word.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…row 32 points to it

Row 32 also decided storefront structured data and discount pickers, which no
active row covered. Row 113 (team decision 2026-11-06): no age label in the
storefront structured data or in the dashboard discount pickers and summaries;
the age label is for shoppers. Row 32 is now superseded by 46, 72, 111, 113.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Bring the current base (PRs #384 and #409) into the branch so the PR
merge base is the current base tip. No conflicts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…score 4, merge-ready)

Run report, isolation output, diffs, agent report, tokens.md and workspace-root
files for L-CP-06 (2026-11-08, plugin pin 6215332, Copilot CLI 1.0.101).
First pass 63 min gap-free, total 86 min, 1276 / 1901 AI credits; hidden
2 asked / 3 covered / 4 missed; 10 follow-up messages; Done-when 11 of 12;
backend 272 tests pass. Deviation: "no HITL" sent at timeline row 20 on the
Rosetta architect's advice (section 8).

BENCHMARKS.md: Task 2 extra answers 114 (existing guest cart) and 115
(underage signed-in customer may decrease or remove), numbered above PR #404's
team rows 104-113. EXPERIMENTS.md, summary.md and runs.csv updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the conflict with L-CP-06's extra answers: keep this branch's tables
and add rows 114 and 115 (L-CP-06) after row 113.

Add L-CP-06 to the runs answered under the earlier decisions (13 -> 14) and
name the rows each of these runs was given (L-CP-07/08/06 also used rows
80-103; L-CP-06 rows 114-115). Judge step 1: the 14 runs get the extra answers
from 4b4656c with a per-run row list, and runs on the active rows are judged
in a separate batch (team lead decision 2026-11-08; answers the Copilot review
comment on mixed answer sets).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…answers

bench(saleor): Task 2 answers — checkbox model, team rows 104–113, superseded table
…ports

Checked against the session logs, the saved diffs, agent-report.md and
the current templates; merged with the team's 5-8 Nov updates (unified
red-flag rule, total_min, "Why not 5", L-CP-08 Done-when).

Counts changed:
- L-CC-04: t2 20:00 (end of follow-up 5; was the /usage reading at
  20:03); total_min 85 -> 83 (post-T1 waits corrected from the log);
  red_flags 4 -> 3 (the future-birthday change was in the operator's
  own answer).
- S-CP-04: followups 4 -> 5 (dashboard check-types fails: tsc-strict
  TS18047 in a line the run added); red_flags 1 -> 0 (the stray file
  was deleted before T1).
- L-CP-04: method_steps 9 -> 12 (review corrections sent with the
  approval); followups 3 -> 4 (dev DB not migrated: a missed follow-up,
  BENCHMARKS.md section 5 step 7); tests_pass yes;
  hidden_matches_answer 6; total_min 56 -> 57 (from the log);
  setup_min 38. "Said done while broken" stays ticked: the agent
  reported its open tasks itself.

Also: timelines and waits corrected from the logs (L-CC-04 time-zone
menu answer; L-CP-04 log times; L-CP-08 pre-T1 waits); unrecorded
session resumes, the missing converge step (S-CP-04) and the default
context tier noted; size-of-change tables; usage tables from /usage;
judge fields brought to the template; placeholders filled; runs.csv
and summary.md regenerated. Dashboard check-types passes for L-CC-04
and L-CP-04.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Judge run by Anastasia Gavrilita. Report data blocks, summary, runs.csv and JSON updated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Judge run with Claude Code (Opus 5.5, xhigh) on the 7 Copilot runs of the
small storage-conditions task, including the self-challenge and validator
passes. Approved by Oleksii.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Judge run by Rustem Cimendur. Report data blocks, summary, runs.csv and JSON copy updated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… and status

preliminary-results.md: new section "Diff judge: all cells" (28 runs, both
tasks x both runners) with score, bonus, findings, judge advice, operator
merge-ready and the judge's main reason; stale "judge only small Claude Code"
lines, caveats and Next updated. The S-CC-06 rerun (3 Nov) is not judged yet.

status-2026-10-21.md: judge rows for S-CC-01..03 and caveat update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rosetta-skill run folder

- EXPERIMENTS.md: S-CC-05 (AWS AI-DLC small, Claude Code) no result, per the operator (Slack 2026-11-09)
- decision-log.md: D86, large Claude Code judge ran in rounds; SIZE formula open
- scripts/rosetta-small.sh: prepare/agent/save helper for a Rosetta small run with a chosen entry command
- runs/.../claude-code/rosetta-skill/: run folder with an empty report and isolation check (run not done yet)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g flow)

Judged 16 Nov in a clean session with rosetta-light and grill-with-docs
as a calibration check: rerun 74.6 (0 / 0 / 6, merge advice yes);
neighbours within 1 point of their 29 Oct scores. Step-5 validator not run.
Report judge fields, summary, runs.csv and preliminary results updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants