Repository navigation
fix(qstack): correct the rules that misfired on two real QA drives - #5
Conversation
Move the markdown link validator into scripts/check-markdown.mjs. It checks skill frontmatter, links, anchors, cited paths, long dashes, and curly quotes in every markdown file. node --test now fails when the plugin has any such problem, and a second test proves that the checker reports each kind. The README's bare SKILL.md mention now reads skills/<name>/SKILL.md, so the checker no longer needs a qstack-mode lookup base that let any file cite qstack-mode paths without their prefix. Co-authored-by: Cursor <[email protected]>
…the checker agree reproduce-issue required Fix artifact and Missing lines under Verdict, but the reference's Reproduction example left them out and the checker never read them. The checker now requires both lines on the six reproduce-issue outcomes. Confirmed and Insufficient fix need the fix URL, and Blocked must name what was missing. Gate and parity outcomes need neither line. The reference now says how to read the checker's summary line, where a triage report goes in a verdict file, and that a run counts when only its video shows the broken state. Co-authored-by: Cursor <[email protected]>
…d category On the drives, agents raised clear defects as questions because a reference build, a baseline account, or the page text seemed to allow them. Triage now files a clearly broken state as a Bug whatever the expected-state source says, and gives examples of a stuck state and a self-contradicting one. The playbooks that pick the source of an expected state point to that rule. The old "unclear" case told the agent not to pick a category, while the report template expects one. It is now the Unclassified category, which files nothing and maps to the other marker. Co-authored-by: Cursor <[email protected]>
Both drives ran against public sites with no source, while the playbooks asked for how and why traces, profiles, and the files that own a result. qstack-mode now defines a black-box run once. Each step that reads the source points to that definition and is marked skipped. Triage writes the cause trace as unavailable, and a timing limiter comes from counters with what runs inside it named unknown. The control adapter, the verdict Environment line, and the pull request rule in reproduce-issue no longer assume a repository, a seed, or a pull request. When a public page's expected behavior can be learned only by using it, the agent explores first and writes the feature map from what it saw. Co-authored-by: Cursor <[email protected]>
…ot spawn A qstack delegate does not own Task spawns, so it cannot run the separate read-only reviewer that confirms the evidence. On the calculator drive, the delegate reviewed its own screenshots instead. The delegate now says it could not spawn the reviewer and lists the evidence paths. The parent runs the reviewer before it accepts the verdict. Co-authored-by: Cursor <[email protected]>
…ior line On the Sauce Demo drive, visual parity compared accounts, not revisions. An invisible 4-level delta seen in 1 of 2 renders still forced Unproven, and a placeholder image on every product went to a person as a visual question instead of being filed. The playbook now defines the baseline for revisions, accounts, and environments, and takes full-page captures. A pixel differs only above 8 of 255 levels, which clears the measured 6-level noise between two baseline renders. A change must show in both of two fresh captures. Behavior changes such as image sources, text, and dialogs go to reproduce-and-triage and do not decide the visual outcome. Visual changes without a person go into one questions file. The control adapter says that a native dialog's evidence is the CLI's dialog record. Co-authored-by: Cursor <[email protected]>
…utomation sees The perf gate assumed one before-and-after number and never said what a trace is. On the Sauce Demo drive, the agent compared two accounts and exported the page's performance entries, because a Playwright trace would capture the site's scripts. The error_user wait came from a failing error-report request that held each click for about 3.4 s while the page kept responding. The playbook now names a baseline and a compared side, defines a trace, and says when to export performance entries instead. It adds a step that separates a delay a person sees from one only automation sees, and a step for the timing report. Co-authored-by: Cursor <[email protected]>
… a recording PR #4's checker rejected the two Sauce Demo timing verdicts, because their evidence is performance-timeline data and not a video or a trace. A verdict now declares itself a timing verdict with a Timing line in its run record, naming the clock that timed each run. Only then does a non-empty .json, .jsonl, .csv, .sqlite, .db, or .cpuprofile file count in place of a recording. Without the line, a data file does not count, so a screenshot-only verdict cannot pass by citing a JSON file. A placeholder such as "Timing: none" is rejected. scripts/fixtures/timing holds copies of the two real verdicts with the one Timing line added. The tests show that they pass with it and fail without it, and the markdown checker skips the fixtures folder because the fixtures cite paths from the drive. Co-authored-by: Cursor <[email protected]>
On Windows, each Playwright CLI video-start opened a visible console window for ffmpeg until video-stop (microsoft/playwright#43515). Agents that recorded every run opened windows every few seconds, and the user had to stop the drive. qstack-mode now forbids opening any window on the user's desktop, which means headless browsers, no Start-Process, and no viewers. On Windows, the control adapter records a trace instead of a video unless the CLI hides the ffmpeg window. When the run must not capture the page's scripts, which a trace holds, recording is missing and the outcome is Blocked. Co-authored-by: Cursor <[email protected]>
|
PASS+NOTES Independent verification of #5 at head An agent that follows the PR exactly gets no wrong result that base did not give. Every new Blocked or failing path fails closed, and an agent or the operator can recover from it. The notes are places where an agent can still trip. What held
Notes, by impact on a QA run
Body claims that did not reproduce as worded
MethodI used detached worktrees at base, at head, and at each commit. Scripts reran base and head checkers on the 36 real verdicts and on verdicts built from the docs' own examples. They also ran 36 single-line mutations against head, measured pixel levels on the drive's PNGs, and resolved every link and cited path on the added lines. The 36 real verdicts hash the same before and after. I opened no browser and no window, and ran |
* fix(check-verdict): report each problem once, with its real cause A malformed count no longer also reports a missing line, and a missing evidence file no longer also reports an uncited section. A lone space or a bare `:12` is not a citation. Bold labels count, an evidence path may hold a space, and the token message lists the allowed tokens. Co-authored-by: Cursor <[email protected]> * fix(check-verdict): report an unreadable or UTF-16 verdict in one line A missing path or a folder used to crash with a stack trace and exit 1, the code for "problems found". It now prints one line and exits 2. A UTF-16 file, which Windows PowerShell 5.1 writes with `>`, used to fail with five misleading problems. It is now one problem that names the encoding. Co-authored-by: Cursor <[email protected]> * fix(check-verdict): accept a service surface The router and the playbooks tell agents to drive the real UI, CLI, or service, but the checker rejected a service surface. Co-authored-by: Cursor <[email protected]> * fix(check-verdict): accept a commit SHA as the fix artifact reproduce-issue counts a commit or a pull request as a fix artifact, but a commit that exists only locally has no URL. The checker accepted only a URL, so such a commit needed an undocumented file:// URL. Co-authored-by: Cursor <[email protected]> * fix(check-verdict): count a .trace file only beside its screencast frames playwright-cli tracing writes a .trace file and keeps the frames in a screencast folder next to it, so a .trace file alone shows no screen. A frameless trace now gets its own message when it was the only recording. Co-authored-by: Cursor <[email protected]> * fix(check-settings): reject a folder map, a prototype use name, and UTF-16 A feature map or routing map path that named a folder passed. The use name `constructor` crashed with a TypeError instead of printing usage. A UTF-16 file failed as invalid JSON without naming the encoding. Co-authored-by: Cursor <[email protected]> * test(log): cover the phase log writer log.mjs was the only script without tests. The tests drive it through its command line and read the file back. Co-authored-by: Cursor <[email protected]> * fix(check-markdown): resolve paths from the base a file declares Playbooks say "paths are relative to `skills/qstack-mode/SKILL.md`", but the checker also tried each file's own folder, so four paths that resolve only from the playbook folder passed. A bare playbook name now resolves from the playbook folder only in a file that says playbooks sit in that folder. The four paths are fixed, one of them added by the visual-parity fix in PR #5. Co-authored-by: Cursor <[email protected]> * fix(setup-qstack): drop the seven role lines no skill reads Only the how and why skills read a line from qstack-models.mdc, and they read four. A re-run drops the retired lines from an existing rule and lists them, per step 2. Co-authored-by: Cursor <[email protected]> * fix(qstack): drop pointers to poteto-mode and the Laziness Protocol qstack ships neither. The how and why role lines already carry each subagent's reasoning level in the model slug. Co-authored-by: Cursor <[email protected]> * fix(principle-never-block-on-the-human): drop the production blast radius call No qstack text defines a production blast radius that a person sets. The blast-radius skill is work an agent does, so an agent could read the item as a reason to wait. Co-authored-by: Cursor <[email protected]> * fix(qstack-mode): state the merge ban once and keep the log out of the plugin folder The read-only rule made the merge ban read as conditional on a harness request. Autonomy already bans merging outright. A relative log path resolved from the plugin root, inside the install folder. The README now names the focused playbooks as the router does. Co-authored-by: Cursor <[email protected]> * fix(qstack-agent): drop the claim that the catalog hides qstack-mode qstack-mode does not set disable-model-invocation, so the skill catalog lists it. The sentence came from an agent whose skill is hidden. Co-authored-by: Cursor <[email protected]> * fix(regression-pin): select an existing fix instead of writing one Step 5 told the agent to make a production change, against the router's read-only rule and qstack-agent's "Never edit product source code". Without a fix artifact, the run now stops at the failing check and gives it to the operator. Co-authored-by: Cursor <[email protected]> * fix(automate-check): ask for a buggy-revision run only for a known bug maintain-verification-skill step 5 requires that run only when the repaired check guards a known bug, but the reply asked for it on every repair. Co-authored-by: Cursor <[email protected]> * fix(verify-fix-and-retest): check the settings before driving The reproduce path runs check-settings.mjs and blocks on a problem. The verify playbook went straight to the control adapter without it. reproduce-issue already checks the settings in section 2, before its verify mode. Co-authored-by: Cursor <[email protected]> * fix(verify-existing-fix): call a clean but short patched run Inconclusive When every patched run passed but too few ran to meet the patched run rule, neither Confirmed nor Insufficient fix applied, and no outcome named the case. The verify playbook says the same, and a test pins that the checker accepts it. Co-authored-by: Cursor <[email protected]> * fix(control-adapter): run playwright-cli from the artifact directory Unless a config sets outputDir, playwright-cli writes its output to a .playwright-cli folder in its working directory. Run from the workspace root, that left captures in the repository, which the contract forbids. The CLI's own installer adds the folder to .gitignore because it may hold credentials. Co-authored-by: Cursor <[email protected]> * fix(reproduce-issue): drop the repro budget no setting defines settings.md lists every key qstack reads, and none is a repro budget. A budget below two runs would also have contradicted the K of N rule that follows it. Co-authored-by: Cursor <[email protected]> * fix(control-adapter): accept a verification skill and its feature map create-verification-skill answers "make a control skill for this repo", and its launch, drive, evidence, and cleanup sections match the contract. But it wrote a features/ map that the contract did not accept and never asked for a recording, so setup-qstack copied a second map in another format. The generated skill now includes a recording recipe, the contract reads its features/README.md, and setup-qstack suggests it when it meets the contract. A web app control skill still drives the page through playwright-cli. Co-authored-by: Cursor <[email protected]> * fix(check-settings): report a settings path that is a folder A folder at the settings path crashed the checker with an EISDIR stack trace and no summary line. The UTF-16 check had moved the read out of the JSON error handling, which used to report the same path as invalid JSON. The checker now reports the folder in one line, as it reports a missing file. Co-authored-by: Cursor <[email protected]> * test(check-verdict): reject a placeholder Timing line The Timing test used only "none", so dropping the placeholder half of the rule passed every test. It now also writes "n/a" and "-", and each must fail with the clock message. Co-authored-by: Cursor <[email protected]> * test(check-markdown): skip paths inside fenced code No test held a fenced block, so checking fenced code passed every test. The new test puts a broken link, a missing path, and a long dash inside a backtick fence and a tilde fence, then the same path after them. Only the line after the fences is reported. Co-authored-by: Cursor <[email protected]> * fix(check-verdict): accept a fix artifact in backticks or a markdown link A Confirmed verdict whose Fix artifact held the pull request URL in backticks, or as a markdown link, failed with "write a URL, a commit SHA, or none". The checker now reads the URL or the SHA inside one pair of backticks, or the target of a leading link. A backticked name, or a link whose target is not a URL, still fails. Co-authored-by: Cursor <[email protected]> * fix(control-adapter): add control.recording, with traces as the Windows default An agent could not tell whether its playwright-cli build hides the ffmpeg window on Windows, and a probe that guessed wrong would open one on the user's desktop. The operator now states the recording in control.recording, and the settings checker accepts only "video" or "trace". Without it, a run records a trace on Windows and a video elsewhere. A run that must not capture page scripts, on a trace, now records nothing. A timing verdict cites its exported performance entries, which the verdict format already accepts in place of a recording. Any other run is Blocked, with the recording named in Missing. The setup check skips its recording step for that run, and docs that said video where any recording counts now say recording. Co-authored-by: Cursor <[email protected]> * fix(reproduce-issue): let a missing feature map send the run to explore On a product that is its own only spec, the settings check failed on the missing feature map, and both entry points emitted Blocked before an agent reached the explore-first paragraph at the end of the control adapter. Section 2 now runs the check, treats a missing map as the one problem that sends the run to explore, and has the agent write the map and run the check again. Reproduce-and-triage step 3 points there, and the intro no longer stops on a missing map. Co-authored-by: Cursor <[email protected]> * fix(visual-parity): say how a delta in one capture counts in Runs Visual parity never said what Runs counts, and a real drive wrote "1 of 2" for a delta that only one capture showed. Step 5 already says such a delta is not a change, but on a Pass the checker rejects any failing run. Step 8 now counts the change side's capture passes that show a visual change no person accepted, so that delta adds nothing. The README line now says the playbook routes visual changes to a person and sends behavior changes to reproduce and triage. Co-authored-by: Cursor <[email protected]> * fix(control-adapter): drop Cursor's built-in browser for exploring The control adapter let Cursor's built-in browser explore a page, while qstack-mode says to run browsers headless. The built-in browser is not headless, so the adapter now rules it out for exploring too. It keeps the measured reasons the browser must not drive a run. Co-authored-by: Cursor <[email protected]> * fix(diagnose): skip the source mapping step in a black-box run Diagnose-live step 6 and diagnose-trace step 7 map a finding to a source file with no black-box pointer. qstack-mode's blanket rule already skips every step that needs the source, so each step now says so, as reproduce-and-triage step 7 does. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]>
Why
Two qstack drives, a planted-bug eval on a calculator and a drive of every Sauce Demo account, showed rules that misfire. Agents raised clear defects as questions, asked for source they could not read, sent invisible pixel noise to a person, and could not cite timing data as evidence. On Windows, each video recording also opened a console window on the user's desktop (microsoft/playwright#43515).
What changed
Fix artifact:andMissing:lines that reproduce-issue already asked for. ATiming:line lets a timing verdict cite exported timing data instead of a recording. The markdown link validator moves intoscripts/check-markdown.mjsand runs undernode --test.Scope
scripts/fixtures/timingholds copies of the two timing verdicts with oneTiming:line added.cursor-team-kitplugin is not installed.Tradeoffs
Timing:line. Counting any JSON file would let a screenshot-only verdict pass.ConfirmedandInsufficient fixneed a URL inFix artifact:. A fix that exists only as a local patch needs afile://URL to it, and no doc says so yet.url, because the why skill's prompt that uses it is a byte-identical copy of the pstack prompt.Blast Radius
Fix artifact:andMissing:now fails the checker, and all 32 real reproduce verdicts already pass that rule.Timing:line that saysnoneor holds a placeholder now fails.node --testnow fails on any markdown problem in the plugin.Verification
node --testandnode scripts/check-markdown.mjs. The test count grows from 31 to 37 across them.Timing:line pass against the real evidence and fail without it.Timing:rule and the markdown checker's skip of code blocks. Both are noted for the follow-up PR.