Repository navigation
fix(reproduce-issue): define settings, require recordings, drive web apps through the Playwright CLI - #4
Merged
Conversation
Owner
Author
|
PASS+NOTES This is an independent verification of #4. I did not write this PR.
Nothing blocks landing. Every claim in the PR body that I could run holds at head, and base shows the old behavior. The notes are follow-ups. Commands and results
Notes
The scripts and fixtures are in |
dotts-h
force-pushed
the
fix/qstack-research-corrections
branch
from
October 19, 2026 09:39
0371e6b to
e3e98ea
Compare
…apps through the Playwright CLI - Settings. qstack read control.skill_name, control.feature_map_path, and routing.map_path, but nothing said where they live. Define .cursor/qstack/settings.json with the key names pstack's configuration uses, and add scripts/check-settings.mjs. reproduce-issue is Blocked when the check fails. triage-defect routes nowhere and writes no ticket when it fails. - Recording. The reproduce-and-triage playbook accepted a screenshot or a recording, while reproduce-issue required both. A video, or a trace that holds a screencast, now counts as a recording. Screenshots alone do not. check-verdict.mjs rejects Reproduced, Confirmed, and Insufficient fix verdicts that cite no recording, and rejects empty evidence files. - Browser. Web apps are driven through the Playwright CLI. Cursor's built-in browser may explore a page, but it may not drive a repro run or a check, because its coordinate click fires on disabled controls and sends untrusted events. The Playwright MCP and Chrome DevTools MCP lines are removed. - README. Load the plugin from a real folder or a git worktree, because Cursor skips a symlink in the local plugin folder that points elsewhere. Co-authored-by: Cursor <[email protected]>
dotts-h
force-pushed
the
fix/qstack-adapter-gaps
branch
from
October 19, 2026 09:40
6daa771 to
6687834
Compare
dotts-h
added a commit
that referenced
this pull request
Oct 19, 2026
* test(check-markdown): run the markdown checker under node --test 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]> * fix(check-verdict): make the verdict reference, reproduce-issue, and 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]> * fix(triage-defect): file clearly broken states and add an Unclassified 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]> * fix(qstack-mode): define a black-box run and skip source steps in it 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]> * fix(reproduce-issue): let the parent run the reviewer a delegate cannot 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]> * fix(visual-parity): add a noise threshold, a repeat rule, and a behavior 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]> * fix(perf-gate): define the sides and the trace, and add delays only automation 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]> * feat(check-verdict): let a timing verdict cite timing data instead of 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]> * fix(control-adapter): open no window on the user's desktop 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]> --------- Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fixes the three gaps that blocked the first qstack test drive, where the strict outcome was
Blockedbefore any driving started.control.skill_name,control.feature_map_path, androuting.map_path, but nothing said where they live. They now live in.cursor/qstack/settings.jsonin the project under test, under the key names pstack's configuration template uses. The newscripts/check-settings.mjschecks the file.reproduce-issueisBlockedwhen the check fails.triage-defectstill writes the defect report, but routes nowhere and writes no ticket.reproduce-issuerequired both. A video now counts as a recording, and so does a trace that holds a screencast. Screenshots alone do not.check-verdict.mjsnow rejectsReproduced,Confirmed, andInsufficient fixverdicts that cite no recording, and it rejects empty evidence files.playwright-cli. Cursor's built-in browser may explore a page, but it may not drive a repro run or a check, and a verdict may not cite its captures.~/.cursor/plugins/localthat points elsewhere. A new section covers installing the Playwright CLI.Stacked on #3, which added the browser section this PR rewrites.
Why the browser rules changed
These results come from a click probe page with a disabled button, a disabled input button, and an enabled button. They were measured on 2026-10-19 on Windows 10.0.26200.
isTrustedfalseplaywright-cli0.1.22 with Chrome 155isTrustedtrueOn the TestSheepNZ calculator, the built-in browser's coordinate click ran Calculate while the button was disabled, so it can't judge enabled or disabled state. Its ref click also rejected each
<input type="button">it was given.The Playwright CLI covers every capability in the control-adapter contract, recording included. Two traps found on the way are now rules:
playwright-cli install-browser ffmpeginstalls it.video-start,video-stopstill prints a video path, though no file was written.Test plan
node --testfrom the plugin root: 29 of 29 pass. These are the 18 existing tests, as adjusted, 9 new settings tests, and 2 new evidence tests.reproduceandtriage, including one written with a byte-order mark. The first version of the checker printed two extra "is required" lines for a missing file. That bug is fixed, and a test now covers it.principle-guard-the-context-windowlinks that fix(qstack-mode): drop links to a principle qstack does not ship #2 fixes.Decisions to review
control.artifact_directory, captures go to aqstackfolder in the temporary directory. Withoutcontrol.artifact_retention_hours, cleanup deletes no capture.