Repository navigation
#2473: 0.1.2 HR: the Cursor CLI harness row on the local driver (cursor) - #2778
Open
jparker2006 wants to merge 8 commits into
Open
jparker2006 wants to merge 8 commits into
jparker2006 wants to merge 8 commits into
Conversation
6 tasks
The failing check is T3 on the pull request body: the self-check line embedded a home-folder path inside a search pattern. That sentence now describes the search without the path. A rerun would reuse the old event, so this commit publishes a new head for a fresh scan. The tree is unchanged. Co-authored-by: Jake Parker <jparker2006@users.noreply.github.com>
The parent row's changelog file is on main, so this pull request's diff is only the cursor harness row. The changelog check requires this ticket's own line for that product change. Co-authored-by: Jake Parker <jparker2006@users.noreply.github.com>
Member
Author
Review #2778 at cab32b6
Checked the repository standards, #2473, spec #2427, the owned paths, and the full diff. The local harness runner, all 21 Cursor row cases, and the local driver suite passed on fixtures. The empty-row check reproduced the expected exit 1, and the comment checker passed. The live merge gate is #2478. VERDICT: CHANGES at cab32b6 |
- Drop the un-enforced allowlist mode from adapters/local/harnesses/cursor/row.json so owners must explicitly approve force rather than getting Run Everything from effective Cursor config under allowlist, and document why in README.md. - Validate -H / --header values in adapters/local/harnesses/cursor/fake as non-empty Name: Value headers (exiting 2 on malformed syntax). - Add tests for both fixes in adapters/local/harnesses/cursor/test_row.py and refresh evidence/green.txt.
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.
Closes #2473
Stacked: this pull request stacks on #2608 (HR1, #2431) at
3f486e077adf1531550b7475bb3c67283d4ef7af, so its diff againstmainalso shows HR1's commits; this ticket's own change is onlyadapters/local/harnesses/cursor/(git diff 3f486e077adf1531550b7475bb3c67283d4ef7af...HEAD). It merges only after #2608, and only after this row's live check, #2478, records 5 of 5 at this pull request's approved head. If #2608 merges first,mainis merged in here (no rebase, no force-push).Summary
The
cursorharness row: Cursor CLI (agent) runs as a builder on the local driver through the user's own sign-in. One new folder,adapters/local/harnesses/cursor/, withrow.json, itsfake,README.md,test_row.pyandevidence/. No driver, contract, CI or shared file changes.The census check is resolved:
-pand--resume <chatId>work together (README, with links to Cursor's docs and the CLI's source at 2026.11.22-e9042b2).Evidence
adapters/local/harnesses/cursor/evidence/red.txt, commitab86d5e2): an empty row ({}) fails the runner:fail cursor: row.json effort: it has no effort form; give an effort map or "none: <one line why>", exit 1.evidence/green.txt, at this head):pass cursor: the contract, the folder, the kit's five checks, and the session, env, background process and effort checks, the planted rows and driver checks unchanged, exit 0;test_row.pypasses its 21 cases, exit 0.Self-check
python3 -I adapters/local/test_harnesses.py --rows <copy with row.json = {}>printedfail cursor: row.json effort: it has no effort form(the committed red run,evidence/red.txt)--trustfrom start and wake:python3 -I adapters/local/test_harnesses.py --rows /tmp/probeprintedfail cursor: test_row.py: it failed (exit 1)(the kit's modeforcetrusts the workspace, as the real CLI does;test_row.pycatches theallowlistlines)sessionId):python3 -I adapters/local/test_harnesses.py --rows /tmp/probeprintedfail cursor: kit: fail wake: run run-<id> has no session id from its first turn yet; nothing was startedpython3 -I adapters/local/test_harnesses.py --rows /tmp/probeprintedfail cursor: daemon: the row declares a background process, but its fake started none--continueinstead of--resume {session}:python3 -I adapters/local/test_harnesses.py --rows /tmp/probeprintedfail cursor: kit: fail wake: the wake posted another builder note; a run keeps one--effortflag the CLI lacks:python3 -I adapters/local/test_harnesses.py --rows /tmp/probeprintedfail cursor: folder: its README needs one line "Effort: none", ...; and the fake exits 2 on--effort(test_row.py:pass an unknown option: exit 2)python3 -I adapters/local/harnesses/cursor/test_row.pyprinted 11exit 2passes, 5exit 3passes,pass an untrusted workspace: exit 1and 4reaches the turnpasses, exit 0python3 -I adapters/local/test_harnesses.pyprinted every planted row's expected fail and everypass driver:line unchanged, exit 0git diff 3f486e077adf1531550b7475bb3c67283d4ef7af...HEADfor thread ids, email addresses and home-folder paths printed nothing; the fake prints only synthetic values (/synthetic/workspace,fake-<hex>ids)python3 -I tools/comment-check/check.py diff --base 3f486e077adf1531550b7475bb3c67283d4ef7afprintedcomment-check: okticket.py scope openwizdev/OpenWiz 2473 --base 3f486e077adf1531550b7475bb3c67283d4ef7afprintedscope: okMerge danger
Door: two-way. Blast radius: one-row.
Rulings
--output-format stream-json, not the census'sjson. Why:jsonprintssession_idonly in the one object at the end of a successful run, so a wake during a long first turn (the kit wakes as soon as the builder note appears) would get "no session id";stream-json'ssystem/initline carries it at once. Cost if wrong: low: one argument inrow.json.--trust. Why: print mode exits 1 withWorkspace Trust Requiredin a folder the user hasn't trusted, and the driver's clone is new each run;--trustis the documented headless switch for it. Cost if wrong: low: one argument.none. Why: Cursor CLI 2026.11.22-e9042b2 has no effort flag or environment setting; effort exists only inside a parameterized model id ('claude-opus-4-8[effort=high]'), which a fixed argument can't add and which the driver's model field can't hold, and models without that parameter can't take it (J318: declare none rather than claim an ignored value). Cost if wrong: low: a later row change maps it once Cursor adds a flag.force(--force) andallowlist(no arguments), firstforce. Why: they are print mode's two documented approval behaviours; the owner approves one. Cost if wrong: low: modes are data.--model <model>too. Why: the run keeps the model the user chose on every turn;--modelis a global option with no conflict with--resume. Cost if wrong: low: drop two arguments.daemon='tree'. Why: the CLI'sshell-execmodule spawns each command withdetached: true, and print mode keeps background shells after the last message; declaring it makes the runner prove stop ends it. Cost if wrong: low: it only adds a check.signed_outaddsplease run '(?:agent|cursor-agent) login', withlogin_commandagent login. Why: the CLI's second signed-out form (a server message, thenPlease run 'agent login' to authenticate.) isn't one of the driver's own diagnostics. Cost if wrong: low: one pattern.--api-key, a non-stream-jsonrun). Why: exit 2 means "the docs don't allow this"; those lines are allowed, just outside the fake. Cost if wrong: low: the runner fails either way.Facts
room/2473-cursor-row, from3f486e077adf1531550b7475bb3c67283d4ef7af(the approved head of #2431: 0.1.2 HR1: the harness-row contract, the local driver's row loader and the kit check for rows #2608)ddc057228e02ff76e65579291fe25e83ee5febc3; Tree:684e53d8a889432886a2f143740e923062c938a3adapters/local/harnesses/cursor/row.json,fake,README.md,test_row.py,evidence/red.txt,evidence/green.txt(all new, owned). No supporting edits.python3 -I adapters/local/test_harnesses.py(the runner: contract, folder, kit's five checks, session, env, background process, signed_out, effort, andtest_row.py);python3 -I adapters/local/harnesses/cursor/test_row.py(new, 65 lines; catches: a fake that accepts a command line the docs don't allow, or a row line it would refuse). Test budget: under 400.ab86d5e2,evidence/red.txt.env -u OPENWIZ_GITHUB_APP_KEY <command>.--helptext and source read statically fromhttps://downloads.cursor.com/lab/2026.11.22-e9042b2/linux/x64/agent-cli-package.tar.gz(sha2567663b1c5d1b56e095ef8e23bef38d66df6cfd665c4873470214e0e411f0f97b3), never executed.--harness cursorat this pull request's approved head, approvingforceorallowlist. 0.1.2 spec: Effort everywhere: every driver passes the user's effort, or says plainly it can't #2471'seffortstart field: this row refuses any effort with the fixednext.changes/2473.md:changes/is outside this ticket's owned paths; the spec's changelog headline covers all nine rows.ticket.py push).Built with Cloudroom