Gastronomic comparison protocol
After M6, gastronomic_guided_development publishes a host-gated
DevelopmentOutcome. This guide records how to compare it fairly against the
unchanged guided_coding baseline.
Do not claim reliability improvement from one stochastic run or an unfair inference budget.
Arms
Arm |
Recipe |
Typical model |
|---|---|---|
A |
|
local Qwen (baseline) |
B |
|
same local Qwen |
C |
|
stronger model (capability control) |
D |
|
stronger model (optional) |
Use the sequential calc_cli suite (or an equivalently staged calculator
workspace) with the same acceptance checks, tools, and budgets for A vs B.
What to record
Use mechaharness.gastronomic_comparison.assemble_gastronomic_trial:
trial_id,arm,recipe_id,suite_iddevelopment_outcomewhen the gastronomic product finishesmetrics: stages passed/total, prior regressions, first failure class, model calls, prompt/completion tokens, tool calls, wall time, repair loops, guidance yields, repeat-failure loops, verified edits
model id/settings and budget limits
Aggregate with summarize_gastronomic_comparison. The summary never sets a
winner; hosts interpret under matched budgets.
Pass --budget-json to the recording script with the limits actually used by
the run, for example '{"tokens":8192,"repair_rounds":2,"wall_s":600}'.
The comparison summary requires matching model and budget records across arms.
Unknown model or budget data leaves comparable_ab false. Historical timing
logs without measured edit or token evidence can still be read; missing counters
remain null. The recorder counts changed files in verified bursts separately
from already-satisfied stages.
Offline vs live
Offline Fangore stories prove trial-record shape and arm/recipe pairing.
Suite
fangore_gastronomic_offline_e2ewalks verify → diagnose → revise → accept → comparison on a calculator fixture and records completed/failed trials without a live model.Live A/B runs are opt-in when the host has the configured endpoint. Mark not run rather than fabricating results.
Arm A (baseline): run sequential
calc_clilive against a local OpenAI-compat Completer, then record a trial from the suite run directory. LM Studio’s default listen address is already thelmstudioprofile (http://127.0.0.1:1234/v1). Use the served model id fromGET /v1/models(today’s local Qwen 3.x ~30B-class id isqwen/qwen3.6-35b-a3b). Reasoning models need a highMECHA_MAX_TOKENSso answer content is not truncated intoreasoning_contentonly.
# Smoke Completer (optional)
MECHA_BASE_URL=http://127.0.0.1:1234/v1 MECHA_API_KEY=lm-studio \
MECHA_MODEL=qwen/qwen3.6-35b-a3b MECHA_MAX_TOKENS=512 \
mechaharness run "Reply with exactly: ok" --backend lmstudio \
--family pass_through --model "$MECHA_MODEL"
# Arm A — guided_coding calc_cli (scripted guidance answers in the stages)
MECHA_STORY_BACKEND=live \
MECHA_BASE_URL=http://127.0.0.1:1234/v1 \
MECHA_API_KEY=lm-studio \
MECHA_MODEL=qwen/qwen3.6-35b-a3b \
MECHA_MAX_TOKENS=8192 \
pytest -s -q tests/stories/test_user_story_suites.py -k calc_cli
python scripts/record_gastronomic_comparison_trial.py \
--suite-run .mechaharness/suite_runs/$(cat .mechaharness/suite_runs/calc_cli.latest) \
--trial-id calc-a-lmstudio-1 --arm A --recipe guided_coding \
--model-id "$MECHA_MODEL"
Arm B: sequential suite
fangore_gastronomic_calcgrows the same six-stage calculator arc via gastronomicchange_executionCompleter propose → hard apply (notguided_codingtool-loop). Record after a static or live suite run (--stages-total 6):
pytest -s -q tests/stories/test_user_story_suites.py -k fangore_gastronomic_calc
# Live Completer propose (optional; same LM Studio knobs as arm A).
# Propose prompts prefix /no_think so thinking Completers emit JSON in content.
MECHA_STORY_BACKEND=live \
MECHA_BASE_URL=http://127.0.0.1:1234/v1 \
MECHA_API_KEY=lm-studio \
MECHA_MODEL=qwen/qwen3.6-35b-a3b \
MECHA_MAX_TOKENS=32768 \
pytest -s -q tests/stories/test_user_story_suites.py -k fangore_gastronomic_calc
python scripts/record_gastronomic_comparison_trial.py \
--suite-run .mechaharness/suite_runs/$(cat .mechaharness/suite_runs/fangore_gastronomic_calc.latest) \
--trial-id calc-b-lmstudio-1 --arm B --recipe gastronomic_guided_development \
--model-id "$MECHA_MODEL" --stages-total 6
Later stages raise propose max_tokens (up to 32768 for functions). Each stage
loads current calc.py via execution_load_workspace so Completer propose
extends prior grammar instead of rewriting from a cold prompt. After apply,
host verification_* runs the same CLI checks as the story run_python steps
(verify_runs with args / stdout_contains) and fails the graph before
trial assemble when Completer output is wrong.
Mark B not_run when that suite has not been executed for the batch —
never invent a trial.