Repository navigation
feat(qstack): build v1 QA playbooks, skills, principles, and host tools - #1
Conversation
Add scripts/log.mjs for formula-safe TSV decision logs and scripts/check-verdict.mjs to enforce verdict sections and two-run evidence. Add agents/qstack-agent.md and skills/setup-qstack/SKILL.md. Co-authored-by: Cursor <[email protected]>
Port the 10 QA verification and execution principles from pstack and resolve all cross-links within qstack v1. Co-authored-by: Cursor <[email protected]>
Promote reproduce-issue and triage-defect into standalone QA skills and add how, why, in-your-own-words, blast-radius, create-verification-skill, maintain-verification-skill, regression-pin, and unslop. Co-authored-by: Cursor <[email protected]>
Add skills/qstack-mode/SKILL.md with 6 core and 7 specialist QA playbooks and document the full v1 layout in README.md. Co-authored-by: Cursor <[email protected]>
|
PASS+NOTES I verified this PR independently under step 1 of the shipping playbook, and I did not write this change. This verdict covers base The plugin loads in Cursor, both scripts behave as the PR body says, and every relative markdown link resolves at head. The notes are contradictions between skill files, and between the skills and Commands and results
PR body claims
Notes
#3 and #4 change |
* 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
QA workflows in Cursor need a dedicated router, two-run reproduction rules, and fail-closed verdict checks instead of developer playbooks that author code and merge pull requests. This change builds the Part 1 (
qstackv1) components adapted frompstack.What changed
skills/qstack-mode/SKILL.mdwith 6 core QA playbooks and 7 specialist playbooks underskills/qstack-mode/playbooks/.reproduce-issue,triage-defect,in-your-own-words,how,why,blast-radius,create-verification-skill,maintain-verification-skill,regression-pin,unslop),setup-qstack, and 10principle-*skills underskills/.agents/qstack-agent.md,scripts/log.mjs, andscripts/check-verdict.mjs, and document the v1 catalog inREADME.md.Scope
README.mdacross playbooks, skills, principles, and host tools.swarm,interrogate,show-me-your-work,hillclimb) and cuts all dev-only coding and PR-merge playbooks.Tradeoffs
pstackverification playbooks into 6 primary QA entry routes while keeping the 7 focused forensic and gate playbooks as linked leaves so common QA tasks have a six-way choice.Blast Radius
skills/,agents/, andscripts/and updatesREADME.md. Existing.cursor-plugin/plugin.jsonmetadata is unchanged.Verification
principle-guard-the-context-window, which qstack does not ship, still dangle. fix(qstack-mode): drop links to a principle qstack does not ship #2 removes them.node scripts/log.mjsand verified TSV header creation, row append, and spreadsheet formula escaping ('=cmd(),'+artifact).node scripts/check-verdict.mjsagainst passing and failing fixtures (0problems on valid two-run verdict, exit code1with 3 flagged lines on single-run long-dash fixture).