Skip to content

investigation(qa): section leave-one-out ablation of /qa SKILL.md — which of 3,754 lines are load-bearing, measured on the seeded-defect fixture #1068

Open

Description

@admarble

Why

Sequant's /qa skill is 3,754 lines. Nobody knows which of those lines are load-bearing. The only evidence is the stub-skill canary from the eval phase-0, which showed that an 8-line stub loses on format graders — i.e. it doesn't emit sequant's markers — which says nothing about whether it does worse QA. Prompt compression (#515) has no feedback signal, so it is guesswork. And the product's premise — that structure adds value beyond the model — gets harder to hold every roster bump and has never been tested.

This issue is the measurement. It is blocked by the foundation issue: without the seeded-defect fixture and calibrated recall/precision graders, any number here is one nobody should believe.

Blocked by: #1067

Design

Treatment: the /qa SKILL.md text. Everything else — hooks, worktree, orchestrator, model, effort, fixture — is held constant across arms, so it cancels. The experiment isolates the skill text by control, not by stripping the deployment context.

Arms:

  1. Full skill — as shipped.
  2. Section leave-one-out — full skill with exactly one section removed, one arm per candidate section (§6d Adversarial Re-Read, the trust-boundary check, the gap-findings marker block, the AC-walk, …). This is the per-component attribution that perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515 needs, and it needs no placebo.
  3. Placebo — a single extra arm for the headline: a skill of comparable length that instructs a generic careful review with none of sequant's specific mechanisms. Length-matched to within 10% so instruction volume is not the variable.

Metrics: recall and precision from the foundation graders; pass^k (all k runs name the defect) rather than pass@k, because a gate is only useful if it catches the defect every time.

Analysis rules, fixed before the first run:

  • Intention-to-treat. A run where the skill did not fire (Skill tool never invoked) counts as a failure in its arm. It is not excluded.
  • n from the pilot. The foundation issue reports run-to-run spread. n per arm is chosen so the design can detect a recall difference of 0.2 at that spread; state the calculation. --runs 2 is a smoke test, not a study.
  • Pre-registered null result. If full-skill recall does not beat placebo by the detectable margin, the finding is written up as such, and the next action is a prompt-compression pass (perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515) guided by the per-section results — not a re-run with a different fixture until it passes.

Acceptance Criteria

  • AC-1: The investigation doc states, before any run, the arms, the sections to be ablated, n per arm with its derivation from the foundation pilot's spread, and the null-result plan. Evidence: a dated "Pre-registration" section that precedes the results section in the doc's git history.
  • AC-2: A placebo skill exists whose byte length is within 10% of qa/SKILL.md and which contains none of the marker strings the real skill emits (SEQUANT_QA_VERDICT, SEQUANT_QA_GAPS, the Trust-Boundary Check heading). Evidence: wc -c on both files and grep -c for each marker in the placebo returning 0.
  • AC-3: Every arm runs ≥n times on the foundation fixture via sequant run --phases qa with the skill swapped, and every run's verdict is captured. Evidence: a results directory with one verdict per (arm, run) and a count matching arms × n.
  • AC-4: Skill-fired is recorded per run, and runs where it did not fire are counted as failures in their arm, not dropped. Evidence: a fired column in the results table and the recall calculation over all rows.
  • AC-5: The results table reports recall, precision, and pass^k per arm, and a per-section delta table for the leave-one-out arms. Evidence: both tables present, per-section deltas sum-checked against full-skill recall.
  • AC-6: The finding is stated in one sentence with effect size, n, and spread, and is scoped to "the /qa skill text on this fixture" — not to the product. Evidence: the sentence exists and contains all four elements.
  • AC-7: If the pre-registered null condition is met, the doc says so and links a filed perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515 follow-up naming the sections with the smallest deltas. Evidence: conditional on the result; the doc's "Outcome" section states which branch was taken.
  • AC-8: Cost per arm is reported from sequant stats, and total spend is under the ceiling stated in AC-1. Evidence: a cost row per arm and a total.
  • AC-9: The investigation(qa): decision rules for the /qa ablation — noise floor from #1067's spread, a held-out fixture, excluded truncated runs, headroom check #1272 held-out fixture is scored once, after sections are chosen: the slimmed /qa this issue recommends versus full /qa, with its defects never read while choosing sections. Evidence: the doc's held-out table, and git log showing the fixture commit predates the first arm run

Out of scope

Notes

Activity

  1. added
    qa
    backlog
    on Sep 16, 2026
  2. added 2 commits that reference this issue on Oct 5, 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

    backlogqa

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions