Skip to content

bench: replay outcome-distribution smoke for roster/policy changes (descoped from A/B ranking — phase-0) #916

Open

Description

@admarble

SCOPE UPDATE (2026-08-30, phase-0 gate decision — see the phase-0 results comment):
The measurement below ran (18 runs, haiku-vs-sonnet exec arms, 3 replayed issues). Diff-size ratio — this design's primary overcomplexity proxy — does not separate model tiers above its own noise floor at feasible N. Verdict distribution, wall time, guard-failure rate, and file-set Jaccard do separate cleanly at cheap-tier overnight cost.
This issue's scope therefore shrinks from A/B policy ranking to an outcome-distribution SMOKE instrument for roster/policy changes: same replay harness, scoring = verdict mix (discharge-verified where NEEDS_VERIFICATION), wall time, guard failures, file Jaccard — no diff-ratio ranking, no LLM judge. #944 (the consumer) is re-scoped accordingly on its thread; roster updates stay human-triaged. Phase-0 artifacts are the baseline dataset (retained locally; table in the results comment). Original design kept below for record.

Depends on #914. Deferred by design: build only if passive dogfood metrics from #914 leave the quality question ambiguous. Successor to the closed #437 (data-driven workflow optimization) for the specific claim "phase model/effort splitting reduces overcomplexity without hurting correctness."

Motivation

Once #914 ships, "does medium-effort/Sonnet exec hurt or help?" should be answered with data, not vibes. Naively re-running a live issue before/after the knob is methodologically broken:

  • Single runs per arm are noise — agentic run variance requires ~3 runs per arm per issue before a difference means anything.
  • Re-running the same live issue contaminates arm B: sequant posts spec/QA comments on the issue and the spec parser reads them, so the second arm sees the first arm's plan.
  • Model-side drift over time confounds sequential comparison — arms must run interleaved in the same time window.

The cheap insight that makes a bench viable: for past merged issues, the human-approved diff is free ground truth. Overthinking manifests as bigger diffs, extra abstraction, more files touched — all mechanically measurable against the reference PR. No LLM judge in v1 (structured LLM review biases positive on clean-looking code, and an LLM judging overcomplexity is circular).

Design (weekend-sized script, not an eval platform)

  • Corpus: 5–10 past merged sequant issues with clean reference PRs, replayed in a fixture fork (issue bodies copied, no comment history), base commit pinned per issue.
  • Arms: A = current defaults (inherit), B = a candidate policy (e.g. exec=sonnet,effort=medium), configured via feat(run): per-phase model and effort configuration for the claude-code driver #914's flags. 3 runs per arm per issue, arms interleaved.
  • Scoring per run, all mechanical:
    • diff-size ratio vs. the merged reference PR (primary overcomplexity proxy)
    • file-set overlap with the reference (Jaccard over touched paths)
    • first-pass QA verdict + loop iteration count (already computed by sequant)
    • tokens and wall time per phase (already in run metrics)
  • Output: one comparison table per policy pair; outliers flagged for human review.
  • Operational constraints (from prior incidents):

Acceptance Criteria

  • A documented corpus manifest lists the replayed issues with their pinned base commits and reference PR numbers
  • The bench script runs N configurable repetitions per arm per issue against the fixture fork, interleaving arms, and never posts to the real repository
  • Each run's diff-size ratio and file-set overlap vs. the reference PR are computed and persisted alongside the run's existing metrics
  • First-pass QA verdict, loop iterations, tokens, and wall time are extracted from run metrics per run
  • The script emits a per-policy comparison table (mean ± spread per metric per arm) suitable for pasting into an issue or README
  • Runs that fail for infrastructure reasons (rate limit, timeout) are excluded from scoring and reported separately, not silently dropped
  • README section or docs/ page explains the methodology, its limits (small N, one repo), and the no-LLM-judge rationale

Activity

  1. added
    enhancement
    backlog
    on Aug 8, 2026
  2. admarble commented on Aug 8, 2026

    @admarble
    ContributorAuthor

    Complexity: Standard (7 ACs, ~3 directories)

    ⛔ Blocked + conditionally-deferred. This issue depends on #914 (feat(run): per-phase model and effort configuration), which is OPEN / not merged. Per the issue body it is "Deferred by design: build only if passive dogfood metrics from #914 leave the quality question ambiguous." Do not enter /exec until both gates clear: (1) #914 is merged, and (2) #914's passive dogfood metrics have actually left the "does medium-effort/Sonnet exec help or hurt?" question ambiguous. If #914's own metrics answer the question, this bench should be closed as not-needed rather than built. The plan below is ready to execute the moment those gates are met.

    AC Quality Check

    All 7 ACs are measurable and scenario-shaped — good quality. Two minor notes (warnings only, non-blocking):

    • AC-1 "clean reference PRs" — "clean" is a corpus-selection judgement, not a runtime criterion; fine, but the manifest should record why each issue qualifies (single-PR, human-approved, no follow-up reverts) so selection is reproducible.
    • AC-5 "mean ± spread" — "spread" is unspecified. Recommend standard deviation (or IQR) and state the choice in the docs (AC-7) so the table is interpretable. Flagging for a concrete threshold, not blocking.

    Scope Assessment

    Non-Goals: The body implicitly bounds scope well ("weekend-sized script, not an eval platform"; "No LLM judge in v1"). No explicit ## Non-Goals heading. ⚠️ Consider adding one: no LLM judge, no eval platform/UI, no CI gating, single-repo corpus only.

    Metric Value Status
    Feature count 1 (bench script + manifest + docs) ✅
    AC items 7 ⚠️ (yellow ≥6)
    Directory spread ~3 (scripts/analytics/, src/lib/workflow/, docs/) ⚠️ (yellow ≥3)

    Verdict: ⚠️ SCOPE_WARNING — auto-enables the quality loop. Cohesive single deliverable; no split recommended.


    Acceptance Criteria

    AC-1: Documented corpus manifest (issues + pinned base commits + reference PR numbers)

    Verification: Unit Test
    Scenario: Given the committed manifest → When a loader parses it → Then every entry has {issue, baseCommit (full SHA), referencePR}, each baseCommit resolves in-repo (git cat-file -e), and 5–10 entries are present.
    Assumptions: Reference PRs are single-PR, human-approved, no revert follow-ups (record the selection rationale per entry).

    AC-2: Bench runs N configurable reps per arm per issue against a fixture fork, interleaving arms, never posts to the real repo

    Verification: Integration Test
    Scenario: Given a fixture fork + manifest + --reps N → When the bench runs → Then execution order is A,B,A,B… (interleaved, not A,A,A then B,B,B), exactly N runs occur per arm per issue, and no gh issue comment / PR / label write targets the real admarble/sequant repo (assert via a stubbed platform client / dry-run guard that fails the test if any real-repo write is attempted).
    Assumptions: #914's flags expose per-phase model/effort so arm B is configurable; a fixture fork with issue bodies copied (no comment history) is available.

    AC-3: Per-run diff-size ratio + file-set overlap (Jaccard) vs the reference PR, persisted with existing metrics

    Verification: Unit Test
    Scenario: Given a run diff and a reference-PR diff → When scored → Then diffSizeRatio = run_changed_lines / reference_changed_lines and jaccard = |A∩B| / |A∪B| over touched paths are computed and written alongside the run's existing metrics record.
    Assumptions: Reference-PR diff is fetchable (via gh pr diff <PR> or git diff base...merge); "changed lines" definition (added+deleted vs added-only) is fixed and documented.

    AC-4: Extract first-pass QA verdict, loop iterations, tokens, wall time per run

    Verification: Unit Test
    Scenario: Given a run's structured log fixture → When extracted → Then first-pass verdict (from run-log-schema.ts phase record verdict), qaIterations, tokensUsed, and per-run duration are pulled from existing run metrics/logs — no new instrumentation, just extraction.
    Assumptions: These already exist — metrics-schema.ts carries qaIterations/tokensUsed/duration; run-log-schema.ts phase records carry verdict. "First-pass" = the verdict of the first qa phase record before any loop iteration.

    AC-5: Per-policy comparison table (mean ± spread per metric per arm), paste-ready

    Verification: Unit Test
    Scenario: Given the scored runs for a policy pair → When the formatter runs → Then it emits a Markdown table with one row per metric and mean ± <stddev|IQR> per arm, valid to paste into an issue/README.
    Assumptions: Spread statistic chosen and documented (recommend stddev). Table format is LLM-friendly (labeled headers, no box-drawing).

    AC-6: Infra-failed runs (rate limit / timeout) excluded from scoring and reported separately, not silently dropped

    Verification: Unit Test
    Scenario: Given a run set containing rate-limit/timeout failures → When scoring → Then those runs are excluded from mean/spread AND listed in a distinct "Excluded (infrastructure)" section with reason + count; total runs = scored + excluded (no silent loss).
    Assumptions: Infra failures are classifiable via failureCategory (error-classifier.ts ERROR_CATEGORIES) — reuse it, don't invent a parallel taxonomy.

    AC-7: README/docs page explaining methodology, limits (small N, one repo), and no-LLM-judge rationale

    Verification: Manual Test (docs content coverage)
    Scenario: Given the docs page → When reviewed → Then it covers: replay methodology, why ~3 reps/arm, why interleaving, why merged-PR ground truth, small-N + single-repo limits, and the no-LLM-judge rationale.
    Assumptions: Content-coverage check (not file-existence) — verify each required topic is present.


    Implementation Plan

    Phase 1: Scoring & extraction primitives (pure, testable first)

    1. Add scoring helpers (pure functions): diffSizeRatio(runDiff, refDiff) and jaccard(pathsA, pathsB) — new module under src/lib/workflow/ (e.g. bench-scoring.ts) so they get unit coverage independent of the driver.
    2. Add a run-metrics extractor that reads existing metrics.json + structured run logs (run-log-schema.ts) and returns {firstPassVerdict, qaIterations, tokensUsed, duration} per run. Reuse existing schemas — no new instrumentation.
    3. Add an infra-failure classifier wrapper over error-classifier.ts ERROR_CATEGORIES to partition runs into scored vs excluded(reason).

    Phase 2: Corpus manifest

    1. Create the corpus manifest (e.g. scripts/analytics/replay-bench-corpus.json or .jsonc) with 5–10 merged issues: {issue, baseCommit, referencePR, rationale}. Add a loader/validator (zod) that resolves each baseCommit in-repo. Pattern precedent: scripts/analytics/ready-backtest.ts BacktestCase.

    Phase 3: Bench driver

    1. Create scripts/analytics/replay-bench.ts (CLI, JSON/Markdown out): loads manifest, builds arms (A=inherit defaults, B=candidate policy via feat(run): per-phase model and effort configuration for the claude-code driver #914 flags), runs --reps N per arm per issue interleaved, one isolated worktree per run (reuse worktree-isolation.ts; arms must NOT share a worktree — reuse force-destroys stale trees, chore(types): reuseWorktrees is a declared-but-unconsumed RunOptions field #810). Targets a fixture fork, with a hard dry-run guard that refuses any write to the real repo (AC-2).
    2. Wire scoring (Phase 1) into each completed run; persist scores alongside the run's metrics.

    Phase 4: Reporting + docs

    1. Emit the per-policy comparison table (mean ± stddev per metric per arm) plus a separate "Excluded (infrastructure)" section (AC-5, AC-6). Write the methodology docs page (AC-7).

    Parallelizable: Phase 1 (three independent pure modules) and Phase 2 (manifest) can proceed concurrently; Phase 3 depends on both; Phase 4 depends on Phase 3.


    Design Review

    1. Where does this logic belong? Pure scoring/extraction → src/lib/workflow/ (unit-tested, reused). The orchestration driver → scripts/analytics/replay-bench.ts, matching the existing analyze-runs.ts / ready-backtest.ts / gap-signal.ts family. Keep I/O and worktree orchestration out of the pure modules.
    2. What's the simplest correct approach? Reuse existing infra end-to-end: worktree-isolation.ts for per-run isolation, metrics-schema.ts + run-log-schema.ts for metric extraction, error-classifier.ts for infra-failure partitioning, ready-backtest.ts for the arm/worktree/scoring skeleton. New code is only: scoring math, the manifest, the interleaving driver, the table formatter, docs. Rejected: a standalone eval platform / DB / LLM judge (explicit non-goals).
    3. What existing pattern does this follow? scripts/analytics/ready-backtest.ts — worktree setup per case, policy arms, score() — is the direct template.
    4. What would a senior reviewer challenge? (a) "Is arm B contaminated by arm A?" → fixture fork with no comment history + interleaving + per-run worktree answer this; call it out in tests. (b) "Is diff-size ratio a fair overcomplexity proxy?" → document it as a proxy, not truth; that's why outliers are human-reviewed. (c) "Does 'first-pass QA verdict' already exist?" → yes, run-log-schema.ts verdict; extraction only.

    Feature Quality Planning

    All standard checks pass. Notable items:

    • Safety-critical AC-2 guard: the "never posts to the real repo" guarantee must be a hard, test-enforced invariant (stubbed platform client that throws on any real-repo write), not a convention. This is the highest-risk failure mode (contaminating live issues, Data-driven workflow optimization: systematic analysis of run logs and conversation data #437-class problem).
    • Determinism of scoring: fix and document the "changed lines" definition (added+deleted vs added-only) and the spread statistic — otherwise AC-3/AC-5 numbers aren't comparable across runs.
    • Reference-PR fetch cost/flakiness: fetching N reference diffs over gh can rate-limit; cache reference diffs locally per manifest entry.

    Derived ACs (if any)

    Source Derived AC Priority
    Safety (AC-2) DA-1: A test asserts the dry-run guard throws if any write targets the real repo (mutation-verified per repo testing policy) High
    Determinism (AC-3/5) DA-2: "Changed-lines" definition and spread statistic are fixed constants, documented in AC-7 docs Medium

    Open Questions

    1. Is the deferral gate met? — Recommendation: do not build until feat(run): per-phase model and effort configuration for the claude-code driver #914 is merged AND its passive metrics leave the quality question ambiguous. Impact if wrong: weeks of bench work that feat(run): per-phase model and effort configuration for the claude-code driver #914's own data made unnecessary. This is the single most important gate.
    2. Fixture fork mechanism — a real GitHub fork vs a local bare-repo "fork" with issue bodies replayed from JSON? Recommendation: local fixture (no network writes possible by construction — strengthens AC-2). Impact: a real fork risks accidental live writes and rate limits.
    3. Reps default (N) — Recommendation: default 3 per the body's variance argument, --reps overridable. Impact: too few → noise dominates; too many → cost.
    4. Spread statistic — Recommendation: stddev. Impact: interpretability of AC-5 table.

    Recommended Workflow

    Phases: spec → testgen → exec → qa
    Quality Loop: enabled (SCOPE_WARNING auto-enables it; safety-critical AC-2 warrants it)
    Reasoning: ACs are dominated by Unit/Integration verification (scoring math, extraction, interleaving/no-write guard) → testgen stubs first. No UI → no test phase. Not security-sensitive in the auth/payments sense → no security-review (though AC-2's "never write to real repo" is treated as a hard test gate).
    ⚠️ Do not dispatch /exec until the #914 dependency + deferral gate clear (Open Question 1).


    Label Review

    Current: enhancement, backlog
    Recommended: add planned; keep backlog until the #914 gate clears; consider blocked to make the dependency explicit
    Reason: Planning complete, but real work is gated on #914 (open) and the deferral condition.
    Quality Loop: Will auto-enable (SCOPE_WARNING).

    → gh issue edit 916 --add-label planned


    --- DRAFT GITHUB ISSUE COMMENT (PLAN) ---

    Plan (Standard, 7 ACs) — BLOCKED on #914 + deferral gate

    Build only once #914 is merged AND its passive dogfood metrics leave "does medium-effort/Sonnet exec help or hurt?" ambiguous. Otherwise close as not-needed.

    • AC-1 Corpus manifest (5–10 merged issues: issue, pinned base SHA, reference PR, selection rationale) — Unit Test
    • AC-2 Bench runs --reps N per arm per issue against a fixture fork, interleaved, with a hard guard that never writes to the real repo — Integration Test (safety-critical)
    • AC-3 Per-run diff-size ratio + Jaccard file-set overlap vs reference PR, persisted with existing metrics — Unit Test
    • AC-4 Extract first-pass QA verdict, loop iterations, tokens, wall time from existing run logs/metrics — Unit Test
    • AC-5 Per-policy comparison table (mean ± stddev per metric per arm), paste-ready — Unit Test
    • AC-6 Infra failures (rate limit/timeout) excluded from scoring + reported separately (no silent drop), via error-classifier categories — Unit Test
    • AC-7 Docs page: methodology, limits (small N, one repo), no-LLM-judge rationale — Docs review

    Approach: Reuse existing infra — worktree-isolation.ts (per-run isolation; arms must not share worktrees), metrics-schema.ts/run-log-schema.ts (extraction, no new instrumentation), error-classifier.ts (infra partition). Template: scripts/analytics/ready-backtest.ts. New code = scoring math + manifest + interleaving driver (scripts/analytics/replay-bench.ts) + table formatter + docs.

    Operational guardrails: plain script/cron, never a backgrounded sequant run in a Claude session (#856); copy .sequant/ evidence out immediately (rotates at 100 files); local fixture recommended so real-repo writes are impossible by construction.

    Workflow: spec → testgen → exec → qa, quality loop on. Do not start exec until the #914 gate clears.

  3. added
    planned
    on Aug 8, 2026
  4. admarble commented on Aug 8, 2026

    @admarble
    ContributorAuthor

    #916 — bench: replay benchmark — A/B phase model/effort policies against merged reference PRs
    Open · enhancement, backlog
    ────────────────────────────────────────────────────────────────

    → PARK — Deferred by design — build only if #914 dogfood metrics leave the quality question ambiguous
    Resume after: #914 ships and passive dogfood metrics leave the overcomplexity question ambiguous
    ────────────────────────────────────────────────────────────────
    ⚠ An in-flight spec-only run includes this issue — the spec output is fine to keep, but exec stays parked per the issue's own deferral
    ────────────────────────────────────────────────────────────────

  5. admarble commented on Aug 9, 2026

    @admarble
    ContributorAuthor

    #916 — bench: replay benchmark — A/B phase model/effort policies against merged reference PRs
    OPEN · enhancement, planned, backlog
    ────────────────────────────────────────────────────────────────

    Supersedes prior assess from 2026-08-08 (PARK)

    → PARK — Deferred by design — build only if #914 dogfood metrics leave the quality question ambiguous
    Resume after: #914 dogfood metrics leave the overcomplexity question ambiguous (no data yet — #914 just merged)
    ────────────────────────────────────────────────────────────────

  6. admarble commented on Aug 13, 2026

    @admarble
    ContributorAuthor

    Spec addendum (2026-08-13) — re-check of the 2026-08-08 plan; the plan itself is unchanged and still authoritative.

    Gate status update:

    Plan freshness check (all references verified on main @ 2026-08-13): src/lib/worktree-isolation.ts, src/lib/workflow/metrics-schema.ts (extended by #914 with phase-policy fields — extraction in AC-4 gets richer for free), src/lib/workflow/run-log-schema.ts, src/lib/workflow/error-classifier.ts, and template scripts/analytics/ready-backtest.ts all exist unchanged in role.

    Marker correction: the 2026-08-08 spec comment omitted the machine-readable phase marker, so sequant run would fall back to fragile prose parsing and could silently drop the testgen phase (#921/#925). Supplying it here:

    Phases: testgen → exec → qa
    Quality Loop: enabled (SCOPE_WARNING)

  7. admarble commented on Aug 13, 2026

    @admarble
    ContributorAuthor

    Status update (2026-08-13) — deferral gate re-characterized, not cleared.

    While reviewing model-cost options this week, I re-checked #914's passive dogfood data across every dogfood project on this machine (this repo, ad-motion, matcha-maps, job-scout, workout, sequant-landing, portfolio-2025, pm-projects, sequant-demo-video). Findings:

    Action taken: as of today, this repo's .sequant/settings.json opts into per-phase policy (spec=fable, exec=sonnet@medium, qa=sonnet, testgen=sonnet), so real phasePolicies runs will start accumulating in .sequant/metrics.json going forward. A release bump is also planned shortly, which will put --models/--efforts in front of the broader install base — the fastest path to real signal, not just this one repo.

    Revised recommendation: stay parked. Re-check after roughly 10–15 non-default runs have accumulated (locally and/or post-release across other projects). At that point:

    No change to the plan itself (still valid — see the 2026-08-08 comment). This only updates the gate-status read.

  8. admarble commented on Aug 28, 2026

    @admarble
    ContributorAuthor

    Proposed phase 0: prove discriminating power before any consumer is wired to this benchmark

    Two consumers are now queued behind this instrument — #944 (adopt cheaper defaults from its results) and the roster-evolution loop sketched in #975 (new model release → replay → role-map update). Before either is designed against it, the benchmark should pass the same test this repo has applied to gates before: can it distinguish the things it claims to rank, above its own noise floor, at a cost that permits routine re-runs? The prior here is the spec-citation-grounding gate, measured at ~0.31% true-positive against an 8:1 noise ratio and rejected (#922/#928) — a benchmark that can't separate haiku from sonnet on real reference PRs would be the same class of instrument, with more machinery attached.

    Minimal measurement

    • 3–5 merged reference PRs (small, already-specced issues with executable ACs), replayed at two models known to differ (haiku vs sonnet), N≥3 runs per cell to estimate within-model variance.
    • Report: per-cell outcome distribution (verdict, iterations, AC pass rate, wall/dollar cost), and whether the between-model gap exceeds the within-model spread.
    • Cost cap stated up front, since routine-rerun viability is part of the question.

    Decision gate

    One design nudge from the same spike set: record the resolved concrete model ID per run (available from the SDK result's modelUsage keys, per #975's AC-4), not the alias — sonnet re-resolves across releases, and benchmark rows keyed only by alias become incomparable over exactly the time horizon this benchmark exists to serve.

  9. admarble commented on Aug 29, 2026

    @admarble
    ContributorAuthor

    Phase-0 run plan: discriminating-power measurement (prepared 2026-08-29)

    Concrete instantiation of the phase-0 proposal above. Nothing has been run — this is the corpus, protocol, and cost cap for a go/no-go decision.

    Corpus manifest (4 issues, all merged with executable ACs)

    Issue Reference PR Ref diff size Replay base commit AC evidence style Why included
    #973 #976 78 lines b8fedc40bde2 3 ACs, all named unit tests smallest; single-file driver fix; crisp pass/fail
    #946 #950 235 lines f81f85ef93f4 4 ACs, npm test -- ac-parser word-boundary regex fix; mechanical evidence
    #947 #951 342 lines b0bb088ded98 3 ACs, npm test -- ac-parser + verbatim fixture parser fix whose issue body contains a fenced trap AC — a built-in care-of-reading probe
    #920 #924 363 lines 76fc911e73f6 8 ACs, each naming its test densest member; multi-path guard logic

    Excluded: #909/PR #918 (no AC checkboxes — prose ACs fail the executability bar this measurement depends on).

    Protocol

    • Fixture fork, private: issue bodies copied verbatim (no comment history — spec comments on the real issues would contaminate arm B), one branch per (issue × run) pinned to the base commit above. Runs never post to the real repo.
    • Arms: exec model haiku (A) vs sonnet (B); spec=sonnet and qa=opus held constant in both arms so the measured variable is the exec knob feat(run): adopt cheaper per-phase model/effort defaults from #916 benchmark results — testgen, docs, assess candidates #944 actually wants to turn. 3 reps per cell, arms interleaved in the same time window.
    • 24 runs total (4 issues × 2 arms × 3 reps). Launched by a plain script/cron against the fork — never a backgrounded sequant run in a Claude session (Nested phase claude that hangs after its turn is killed at ~106s, taking down the parent sequant run #856); worktree per run, no reuse across arms.
    • Per-run record (copied out of .sequant/ immediately — 100-file rotation): first-pass verdict, loop iterations, AC pass rate from the orchestrator actually executing each AC's named test, diff-size ratio vs the reference PR, file-set Jaccard vs reference, wall time, tokens, and the resolved concrete model ID from modelUsage (not the alias).

    Cost cap (stated up front, per the proposal)

    Wave-1 reference: a full spec/exec/qa pipeline on this repo ran 14–26 min wall. Estimate 24 runs at concurrency 3 ≈ 3–4 h wall, token cost ballpark $60–150 (haiku arm materially cheaper). Hard caps: abort the measurement if projected spend exceeds $150 or if ≥3 runs fail for infrastructure reasons (rate limit, timeout, worktree env) before completing a full cell — an instrument this noisy at collection time already answers the routine-rerun-viability question negatively.

    Decision gate (unchanged from the proposal)

    Between-model gap exceeds within-model spread at acceptable cost → #944/#975-evolution get designed against the bench and these numbers become its baseline. No separation (or prohibitive cost) → adoption loop descoped explicitly; roster updates stay human-triaged; #916 shrinks to gross-regression smoke. Either outcome is recorded as a result.

  10. admarble commented on Aug 30, 2026

    @admarble
    ContributorAuthor

    Phase-0 results: discriminating-power measurement (run overnight 2026-08-29→30)

    18/18 runs completed (3 sources × haiku|sonnet exec arms × 3 reps, interleaved, sequential, ~4.9h wall; spec+qa pinned to sonnet in both arms; fixture forks, --no-pr; abort cap never fired). Per-cell results, mean±sd over scoreable runs:

    source arm n verdicts diff-ratio vs ref file Jaccard vs ref wall s infra
    #946 haiku 3/3 NOT_MET, A−, A− 0.62±0.18 0.61±0.10 1027±232 0
    #946 sonnet 3/3 NV, NV, NV 0.69±0.35 1.00±0.00 1348±138 0
    #947 haiku 3/3 NOT_MET, A−, A− 0.49±0.10 0.28±0.09 836±39 0
    #947 sonnet 3/3 NV, A−, NOT_MET 0.46±0.06 0.40±0.09 1062±59 0
    #973 haiku 3/3 A−, A−, A− 1.21±0.15 1.00±0.00 801±184 0
    #973 sonnet 1/3 NV + 2 infra 1.38 0.50 942 2

    (A− = AC_MET_BUT_NOT_A_PLUS, NV = NEEDS_VERIFICATION. The 2 infra failures are both sonnet "exec left files uncommitted, made no commits" — the #534/#879 guard.)

    What separates above noise — and what doesn't

    Separates clearly:

    Does NOT separate: diff-size ratio — the primary overcomplexity proxy the bench was designed around. Every cell pair overlaps within 1 sd (0.62±0.18 vs 0.69±0.35; 0.49±0.10 vs 0.46±0.06; 1.21 vs 1.38). At N=3 on small issues, diff-ratio is noise.

    Confounds that block reading this as a model ranking

    1. Judge identity: QA was sonnet in both arms (cost call) — the 5 sonnet-arm NEEDS_VERIFICATION verdicts are a sonnet judge reviewing sonnet exec. Per the vid-gen trust data, NV verdicts are claims (they hid real bugs 4/4 when discharged); none were discharged here.
    2. Instrument drift: feat(config): model roles — semantic indirection between phase policy/ladders and concrete model strings #975 merged mid-bench and the npm-linked dist rebuilt under the run (~01:30 CDT), so the last ~2 runs used newer sequant code. Behaviorally inert for these runs (config-resolver/metrics only; no modelRoles in bench settings, raw strings pass through per AC-3), but noted.
    3. Resolved-model ground truth was not captured: per-run metrics.json (which now carries resolvedModel post-feat(config): model roles — semantic indirection between phase policy/ladders and concrete model strings #975) lived in the deleted run clones; only .sequant/logs were collected, which carry no model IDs. Cells are keyed by alias only — the exact failure mode the recording nudge exists to prevent. A future rerun must collect metrics.json per run.

    Gate decision (per the decision gate above)

    Partial separation → the adoption loop is NOT justified as designed, and this issue's scope should shrink to what the data supports:

    Raw per-run artifacts retained at ~/Projects/sequant-bench/results/ (branch diffs, run logs, stdout); these numbers are the baseline if the smoke-scope bench proceeds.

  11. changed the title [-]bench: replay benchmark — A/B phase model/effort policies against merged reference PRs[/-] [+]bench: replay outcome-distribution smoke for roster/policy changes (descoped from A/B ranking — phase-0)[/+] on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogenhancementplanned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions