Repository navigation
fix(qstack): record verdict runs as K of N and apply four research corrections - #3
Conversation
|
PASS+NOTES This is an independent verdict from an agent that did not write this PR. I ran the checker and its tests the way the skills tell a QA agent to, from each plugin root, base against head. The machine runs Windows 11, PowerShell 5.1.26100, and Node v22.11.0.
The core change works as claimed, measured below. Every claim in the body holds except the byte-order mark wording in note 1. The notes are follow-ups, and none is a regression from base. Commands and results
FixturesExit codes come from base's checker, then head's.
The third row shows the old bug. Base matched "2 runs" anywhere in the section, so it passed a reproduction seen once. The last row shows the mismatch the token rename fixes. Head's skill text teaches Claims in the body
Notes
|
…d pass-to-fail Replace the fixed two-run rule with a run record. Each verdict states how many runs showed the broken state out of how many ran. Fix verification needs enough clean patched runs for the baseline rate, and cited evidence paths must exist. Rename the reproduce-issue tokens to Confirmed and Insufficient fix so they match the checker. Co-authored-by: Cursor <[email protected]>
…udge Mask regions that differ between two captures of the same baseline, then route every remaining delta to a person with the baseline, the capture, and the diff image. Pass, Fail, and Unproven follow that review, and regression-and-parity reads the visual parity outcome instead of a zero pixel count. Co-authored-by: Cursor <[email protected]>
Accepting a healed locator or repaired check, updating a baseline, judging an assistive-technology outcome, and setting a production blast radius each change what counts as correct. The agent finishes the work around them and presents each call with its evidence. Co-authored-by: Cursor <[email protected]>
…P defaults Act on accessibility snapshot refs, persist role or test-id locators instead of refs, and keep screenshots as evidence rather than action targets. Never call browser_run_code_unsafe, and turn off the Chrome DevTools MCP options that send trace URLs and usage data to Google. Co-authored-by: Cursor <[email protected]>
…ssertions A skipped check counts as failing. A repaired check that guards a known bug must still fail on a revision that has the bug. An assertion changes only when the expected behavior changed on purpose and a person accepts it, and regression-pin now states the same rule. automate-check routes every repair through that rule and a person's review. Co-authored-by: Cursor <[email protected]>
0371e6b to
e3e98ea
Compare
Why
The research review of #1 found five rules the evidence does not support. A fixed two-run rule cannot verify a fix for an intermittent bug. A zero-pixel rule fails on rendering noise. The plugin also had no safe browser-control defaults and no rule for repairing a broken check.
What changed
scripts/check-verdict.mjsvalidates a run record withSurface,Environment,Order,Runs: K of NorBaseline runsandPatched runs, andPass-to-fail. Each field appears once. A fix verdict needs enough clean patched runs for the baseline failure rate. Every cited evidence file must exist. The checker also requires ameasured,inferred, orguesslabel and ignores the byte-order mark that PowerShell writes by default.skills/qstack-mode/references/verdict-file.mddocuments the format. The tests run its examples and its patched run table against the checker.reproduce-issue,verify-existing-fix, and two playbooks teach the run record instead of "twice". The reproduce tokens becomeConfirmedandInsufficient fixto match the checker.visual-parity.mdmasks regions that differ between two baseline captures and routes each remaining delta to a person.principle-never-block-on-the-humanand theqstack-modeautonomy rules name the QA calls that wait for a person.control-adapter.mddrives browsers by snapshot ref and stores role or test-id locators. It forbidsbrowser_run_code_unsafeand starts Chrome DevTools MCP with--no-performance-crux,--no-usage-statistics, and--redact-network-headers.maintain-verification-skilllimits repairs to locators, waits, and data, andregression-pinstates the same assertion rule.Scope
Five corrections, one commit each. This PR builds no eval harness and no new playbook. Two links to a principle qstack does not ship are fixed in #2.
Tradeoffs
Blast Radius
reproduce-and-triageandverify-fix-and-retestwrite verdict files and now need the run record.regression-and-parityreads the visual parity outcome instead of a pixel count. No script other than the checker changes.Verification
node --testpasses 18 of 18 tests at the first commit and at the head. With the old checker restored, 15 fail. The 3 that pass cover behavior this PR keeps.