Repository navigation
fix(bin): Cursor-Park unter Pi-Host ohne Cursor-Identität stilllegen - #3115
kunchenguid merged 4 commits into
Conversation
pi-cursor-sdk lädt .cursor/hooks.json in die Pi-Sitzung und parkte einen zweiten Watcher; das erzeugte rearm-resurface und brach laufende Rückfragen ab. Bei PI_CODING_AGENT=true beendet der Park sofort, native cursor-agent Primaries bleiben unverändert.
…gen. Stand-down gilt nur bei PI_CODING_AGENT=true ohne CURSOR_AGENT und ohne CURSOR_INVOKED_AS. Handgestartete cursor-agent Primaries mit geerbtem PI-Marker parken weiter.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "fix(bin): no-mistakes-Mindestversion auf..." | Re-trigger Greptile |
|
Speaking as Kun's firstmate: Reviewed HEAD Class: corrective. Pi+pi-cursor-sdk was dual-watching against VISION (per rule, inspected evidence):
First-time fork CI: after that full-diff review I approved workflow runs Not merging. Waiting on the author for a matching structured pipeline attestation on HEAD Merge-eligible: NO. |
|
Speaking as Kun's firstmate: Reviewed HEAD Class: corrective. Pi+pi-cursor-sdk loads project VISION (per rule, inspected evidence):
Forge CI on this HEAD is green (Lint, coverage, portable parallel/serial, Herdr, macOS snapshot, repo invariants). Require-no-mistakes failed: the body has the no-mistakes signature line but no Waiting on the author, not the captain: add a matching Merge-eligible: NO. |
Die PR-Attestierung verlangt ab 1.46.0 strukturierte Pipeline-Schritte; der Bootstrap-Floor blieb bei 1.31.2 und ließ zu alte Builds zu. Co-authored-by: Cursor <[email protected]>
|
Speaking as Kun's firstmate: this is merged. Thank you @thelad-dev — really appreciate you taking the time on this. Reviewed HEAD Class: corrective. Pi-host park stands down only when VISION (per rule, inspected evidence):
Forge CI green on this HEAD. |
|
Speaking as Kun's firstmate: Re-triaged HEAD Class: corrective. Cursor park stands down only when VISION (per rule, inspected evidence):
First-time fork CI: after that full-diff review I approved workflow runs Auto-merge gates met (corrective + green CI + matching attestation + safe review). Squash-merging. |
|
Speaking as Kun's firstmate: this is merged. Thank you @thelad-dev — really appreciate you taking the time on this. |
Intent
Ship the Cursor-park stand-down so Pi+pi-cursor-sdk sessions stop dual-watching. Stand-down only when PI_CODING_AGENT=true AND neither CURSOR_AGENT nor CURSOR_INVOKED_AS is set (Pi host with no Cursor identity). If either Cursor identity marker is present, park despite a leaked PI_CODING_AGENT (hand-started native cursor-agent). Keep regression: PI=true without Cursor identity is inert; PI=true with CURSOR_AGENT or CURSOR_INVOKED_AS still parks. fm-spawn clears PI; hand-started may inherit. Push only via fork/no-mistakes target never origin. PR against kunchenguid/firstmate. Gate agent stays pi + cursor/default (not agent: cursor).
What Changed
bin/fm-turnend-guard-cursor.shlegt den Cursor-Park still (Exit 0 ohne Arm), wennPI_CODING_AGENT=trueund wederCURSOR_AGENTnochCURSOR_INVOKED_ASgesetzt sind, damit Pi+pi-cursor-sdk-Sessions nicht gegenfm_watch_arm_pidual-watchen.PI_CODING_AGENTdurchsickert (handgestarteter cursor-agent).turnend-guard, Cursor-Protokoll, Watcher-Kontinuität) undtests/fm-cursor-primary.test.shdecken Stand-down sowie Leak-mit-Identität ab und räumenPI_CODING_AGENTin bestehenden Park-Fixtures.Risk Assessment
✅ Low: Bounded early exit matches the required PI-without-Cursor-identity stand-down and PI-with-Cursor-identity park carve-out, with behavioral regression coverage and no remaining source-verifiable dual-watch path under those criteria.
Testing
Ran the full Cursor primary suite plus a filtered Pi stand-down pair, then reproduced the four stop-hook env cases end-to-end (empty follow-up / no arm for Pi-only; watcher follow-up + arm when Cursor identity is present or PI is absent) and confirmed fm-spawn’s cursor launch clears PI_CODING_AGENT; all targeted checks passed.
Evidence: Full fm-cursor-primary suite log
Evidence: Filtered Pi stand-down suite transcript
ok - cursor park: inert when PI_CODING_AGENT marks a Pi host session ok - cursor park: parks when PI_CODING_AGENT leaks alongside Cursor identity EXIT:0Evidence: Live stop-hook park matrix (A–D)
Evidence: fm-spawn cursor launch clears PI_CODING_AGENT
env -u CLAUDECODE -u PI_CODING_AGENT -u GROK_AGENT -u FM_PI_HARNESS -u CURSOR_INVOKED_AS '.../cursor-agent' --trust --yolo ... PASS contains: -u PI_CODING_AGENTPipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-cursor-primary.test.shfiltered runner invokingtest_park_inert_under_pi_coding_agentandtest_park_still_parks_with_pi_leak_and_cursor_identitylive stop-hook matrix A–D (Pi host stand-down, PI+CURSOR_AGENT park, PI+CURSOR_INVOKED_AS park, no-PI baseline park)fm-spawncursor ship spawn capturing launch command and asserting-u PI_CODING_AGENT✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.