Repository navigation
Description
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:
- Full skill — as shipped.
- 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.
- 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 (
Skilltool 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 2is 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.mdand which contains none of the marker strings the real skill emits (SEQUANT_QA_VERDICT,SEQUANT_QA_GAPS, the Trust-Boundary Check heading). Evidence:wc -con both files andgrep -cfor each marker in the placebo returning 0. - AC-3: Every arm runs ≥n times on the foundation fixture via
sequant run --phases qawith 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
firedcolumn 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
/qaskill 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
/qathis issue recommends versus full/qa, with its defects never read while choosing sections. Evidence: the doc's held-out table, andgit logshowing the fixture commit predates the first arm run
Out of scope
- Changing
/qabased on the results — that's perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515's job, with this as its input. - The
claude plugin evalharness. Not used here; see the foundation issue for why. The CI regression cases stay where they are. - Publishing. The finding feeds the research log (sequant-landing#126) through its redaction gate.
Notes
- Length-matching the placebo to a 176 KB skill means writing ~170 KB of plausible generic review guidance. That is the single most expensive artifact in this issue; if it proves impractical, the section leave-one-out arms alone still answer the perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515 question, and the headline placebo arm is dropped with a note — not replaced by the 8-line stub.
- Hold the model fixed across arms and record it. A roster change mid-study invalidates the comparison.
- Related: feat(evals): adopt claude plugin eval as the skill-level eval layer — Phase 0 validates enablement, graders, ablation, sandbox hooks, and cost before any case is authored #987 (eval harness phase-0, where the stub canary lives at
evals/results/qa-trust-boundary-stub-skill.json), perf(spec): prompt compression and tiered context — reduce spec skill token cost by ~60% #515 (prompt compression), feat(run): fresh-session QA — never resume the exec session into qa; expose run.fullQa (setting + --full-qa + MCP param) #982 (fresh-session QA).
Activity
docs(#1313): name the alias false-catch modes QA's probes found; #1068 …
feat(#1313): investigation(qa): recalibrate the #1067 seeded-defect g…