Skip to content

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

Closed

Description

@admarble

Context

sequant ready <issue> shipped in #683 (PR #686) as the implementation + Layer-1 deterministic tests. Per the #683 rollout plan, it ships experimental — its loop-exit thresholds and the ac-vs-a-plus policy boundary are validated by unit tests, but its empirical recall/noise has not been measured. This issue tracks the remaining promotion path: produce the evidence, then graduate ready from experimental → documented default.

Not urgent — the command is already usable and inherently safe (defaults to conservative ac, never merges). This blocks promotion/advertising as a default, not use.

Scope

Layer 2 — Backtest against the 27-transcript corpus (offline)

Methodology, corpus, harness, and scoring rubric are already committed in docs/investigations/ready-gate-backtest.md. Execute it:

Layer 3 — Forward shadow dogfood (≥10 live issues)

Promotion gate

  • Graduate to documented default iff: Layer-2 real-bug recall ≥ 70% with acceptable noise, AND Layer-3 automated chain catches ≥ 80% of what the manual fresh QA catches across the cohort.
  • If it underperforms: keep it opt-in/experimental and refine (e.g. verdict thresholds, loop scoping), rather than promoting.

Acceptance Criteria

Non-goals

References

#683 (feature), PR #686, #608/#609 (gap signal-to-noise — the noise risk this measures), #534 (null-verdict guard), #640 (cohort stats).

Activity

  1. added
    documentation
    enhancement
    and removed
    documentation
    on Jun 1, 2026
  2. added 2 commits that reference this issue on Jun 1, 2026
  3. admarble commented on Jun 1, 2026

    @admarble
    ContributorAuthor

    Layer-2 backtest is blocked on a methodology redesign (found 2026-06-01)

    Built the backtest driver (scripts/analytics/ready-backtest.ts, PR #691) and tried to operationalize the --run. It surfaced that the documented harness ("git worktree add <pre-fix-sha> → run ready") can't produce valid recall — verified by git, before any live pass:

    1. Stale-branch gate blocks every replay. ready runs full-weight QA (SEQUANT_FULL_QA=1, AC-2), which runs the stale-branch check. Corpus pre-fix commits are far behind main (Prevent skill/CLI drift with phase vocabulary docs and optional smoke test #467 = 171, threshold 5) → STALE_BRANCH exit before review.
    2. No candidate diff. git diff origin/main...<pre-fix> = 0 files — a detached pre-fix checkout has the bug-era code but not the change under review.
    3. Clean control baseline wrong. chore: raise Node engine floor to >=22.12 (drop EOL Node 20), unblock commander 15 #677 needs the post-fix state, not pre-fix.

    Deeper cause: reconstructing the buggy diff the historical fresh QA reviewed is often impossible for squash-merged/deleted branches.

    Two redesigns (the actual decision)

    Full write-up + trade-offs table in docs/investigations/ready-gate-backtest.md (PR #692). Recommendation: B looks simpler and needs no new primitive — but it's a design call. Once chosen, AC-1 can proceed.

  4. added a commit that references this issue on Jun 1, 2026
  5. admarble commented on Jun 1, 2026

    @admarble
    ContributorAuthor

    Update — automated backtest abandoned as infeasible. Tested Approach B (revert-on-main) after A: git revert of the #573 fix conflicts immediately on skills/qa/SKILL.md. Survey: 7/10 derivable corpus fixes touch high-churn files (qa/run/skills) → reverts conflict; the other 3 are docs commits with no defect to revert. So both replay approaches fail for an automated run.

    Recommendation: descope AC-1 (historical backtest) — the #534/policy/guard mechanics are already CI-pinned by ready-gate.test.ts. Make AC-2 (Layer-3 forward shadow dogfood) the empirical validation path; the candidate diff exists by construction there, no archaeology. Full write-up in PR #692.

  6. added a commit that references this issue on Jun 1, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions