Skip to content

docs(#689): backtest infeasible (both approaches fail) — recommend descope to Layer-3 - #692

Merged
admarble merged 2 commits into
mainfrom
feature/689-backtest-methodology-blocker
Jun 1, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/689-backtest-methodology-blocker

Conversation

@admarble

@admarble admarble commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Captures the outcome of trying to operationalize the Layer-2 backtest (#689 / #683 AC-7): the automated historical backtest is infeasible, with evidence for both candidate approaches.

Approach A (checkout pre-fix, run ready) — blocked: full-weight QA's stale-branch gate fires on every old commit (#467 is 171 behind, threshold 5), and git diff origin/main...<pre-fix> is empty (no candidate diff).

Approach B (revert-the-fix on current main) — also blocked: git revert conflicts on high-churn files. 7/10 derivable corpus fixes touch qa/SKILL.md/run.ts/skills/; the other 3 are docs commits with no defect to revert.

Recommendation: descope AC-7's "measured historical recall" to Layer-3 forward shadow dogfood (the candidate diff exists by construction there). The guarantees AC-7 cares about are already CI-pinned by ready-gate.test.ts. This doc is retained as the record of why backtest-against-history was abandoned.

Doc-only; does NOT close #689 (Layer-3 dogfood + promotion call remain).

🤖 Generated with Claude Code

Operationalizing scripts/analytics/ready-backtest.ts --run surfaced that the
documented "checkout pre-fix-sha, run ready" harness is invalid:

1. Full-weight QA's stale-branch gate (#683 AC-2) blocks every replay — corpus
   pre-fix commits are far behind main (#467 = 171, threshold 5) → STALE_BRANCH
   exit before review.
2. A detached pre-fix checkout has no candidate diff (git diff
   origin/main...<pre-fix> = 0 files) — the change under review isn't present.
3. The clean control (#677) needs the post-fix state, not pre-fix.

Documents two candidate redesigns — (A) `ready --base <sha>` replaying fix on
the era base; (B) revert-the-fix on current main (no new feature) — with
trade-offs, and flips Execution status to "blocked on redesign." Adds a --run
warning in the driver so nobody burns a known-broken run.

Entire-Checkpoint: b027dd27f8bb
…yer-3

Tested the revert-on-main approach (B) on #573 — git revert conflicts
immediately on skills/qa/SKILL.md (high-churn). Survey: 7/10 derivable corpus
fixes touch high-churn files (qa/run/skills/batch-executor/phase-executor) so
their reverts conflict; the other 3 are the low-confidence docs commits with no
code defect to revert. So BOTH replay approaches are non-viable for an
automated run (A: stale-gate/empty-diff; B: revert conflicts on drift).

Conclusion: automated historical backtest isn't cost-effective. The guarantees
AC-7 cares about are already pinned by ready-gate.test.ts in CI; the realistic
validation is Layer-3 forward shadow dogfood (candidate diff exists by
construction). Recommend descoping AC-7 to the forward cohort. Also dedupes a
repeated Scoring-rubric block.

Entire-Checkpoint: 38c4e0cf8db2
@admarble admarble changed the title docs(#689): backtest methodology blocker + redesign options docs(#689): backtest infeasible (both approaches fail) — recommend descope to Layer-3 Jun 1, 2026
@admarble
admarble merged commit d4327d1 into main Jun 1, 2026
4 checks passed
@admarble
admarble deleted the feature/689-backtest-methodology-blocker branch June 1, 2026 05:59
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.

Promote sequant ready from experimental: Layer-2 backtest + Layer-3 shadow dogfood, meet promotion gate (#683 follow-up)

1 participant