Skip to content

test(pi): qualify user-scope native removal on three OS - #1084

Merged
777genius merged 1 commit into
mainfrom
test/pi-user-native-removal-20261121
Nov 21, 2026
Merged

777genius merged 1 commit into
mainfrom
test/pi-user-native-removal-20261121

Conversation

@777genius

Copy link
Copy Markdown
Owner

Goal

Requalify existing Pi user-scope native E2E on a fresh exact SHA without reimplementing the already-merged #709/#718 support. Close the specific gap where user removal checked only disk state and not new Pi process discovery.

Change (test only)

  • After each default/custom PI_CODING_AGENT_DIR user-scope remove, start a new genuine pinned Pi v1.4.0 RPC process and assert the owned Skill is not discoverable.
  • Run fresh genuine pi mcp list --json and assert neither owned stdio nor HTTP server remains discoverable.
  • Record an explicit per-profile native-absence stage. Preserve previous foreign-entry and project-A/B safety tests.

No production adapter, installer, auth, trust, release, Directory or other-client modifications.

Acceptance

  • Exact-HEAD Pi Global and Project Native Runtime on Linux, macOS and Windows, including source-built public CLI scope tests, native stdio/HTTP tools/call, A/B isolation and the new native-removal checks.
  • Relevant Required/Core/CI jobs completed successfully, with explicit skip accounting.
  • Review/actionable comments resolved.
  • Squash-merge with guarded HEAD; verify postmerge main.

Evidence boundary

Native process evidence exercises a local scripted model with pinned Pi. It does not prove vendor-model login, future Pi versions or the separately published CLI 0.1.116 binary. The previous three-OS #718 native SUCCESS remains historical evidence only.

Scope / estimate

11 E2E Python lines, no new harness. Complexity 2/10, reliability 8/10, confidence 8/10. Reviewed failure mode: stale native discovery after file-only removal.

CLA

  • I agree to the Contributor License Agreement. Opening this PR is acceptance.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between cda28d6 and 952c675.

Files selected for processing: 1

  • scripts/pi_project_components_native_e2e.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@777genius
777genius marked this pull request as ready for review November 21, 2026 14:36
@strix-security

Copy link
Copy Markdown

Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here.

So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace.

Copy link
Copy Markdown
Owner Author

Pi User native E2E checkpoint (2026-11-21 14:47 UTC): current reviewed PR HEAD 952c6751c3b67b49eefe0b2f4d4c3f02cbeed219, one test file/11 added lines, no unresolved review threads. Genuine Pi 3-OS workflow 44914788050 has all three jobs QUEUED, not PASS; Required 44914788262, Coverage and CodeQL are also queued. Initial Draft skipped/cancelled checks are excluded. CodeRabbit reports OSS review limit and Strix reports trial expiration; neither constitutes a substantive approval nor an actionable code finding. No runner retry or merge has been attempted. Next: let actual jobs finish, inspect exact-HEAD native artifacts/logs and review, fix only confirmed failures, and SHA-guarded merge when qualified; verify postmerge main. No released CLI/vendor auth claim.

Copy link
Copy Markdown
Owner Author

CI update, 2026-11-21 ~15:10 UTC: without new PR commits or a synchronize event, ALL fresh #1084 workflow runs created 14:36 UTC were simultaneously marked CANCELLED at 15:08:36–15:08:43 UTC (native Pi 44914788050, Required 44914788262, Coverage, CodeQL, Docs, etc.). Three native Pi OS jobs were each cancelled before execution, so no new E2E PASS exists. At least one unrelated PR (#1056 Core fast 44914669298) was cancelled in the same few seconds; this appears repository-wide. Cancellation actor/reason is not exposed by available run/job API. No explicit user manual stop for this task was identified in available instructions, but UI-level cancellation cannot be ruled out. Do not silently count cancellations as success, force merge, or repeatedly re-dispatch while runner capacity is unknown. Keep #1084 exact HEAD; determine safe official recovery once scheduling resumes, then require fresh verified 3-OS E2E plus applicable CI and merge as planned.

Copy link
Copy Markdown
Owner Author

Recovery checkpoint, 2026-11-21 ~15:28 UTC: all previously queued PR workflows were externally mass-cancelled ~15:08 UTC before their Pi jobs executed (not PASS). As scheduling has resumed for other runs, one official GitHub retry was accepted for each cancelled applicable PR workflow on unchanged HEAD 952c6751c3b67b49eefe0b2f4d4c3f02cbeed219: Pi three-OS run 44914788050 attempt 2; Required 44914788262, Coverage 44914788151, CodeQL 44914788027, Dependency Review 44914771313, Docs/Skills/Terminal/Polyglot/Hermes/Authoring also in attempt 2. Currently QUEUED, not yet successful. No duplicate PR, commits or repeated retries. Official Pi docs confirm user profile MCP ~/.pi/agent/mcp.json (https://docs.pi.dev/latest/mcp) and user Skills (https://docs.pi.dev/latest/skills). Continue using these same attempts; inspect actual native evidence and applicable CI; merge only after all relevant green, then verify main.

Copy link
Copy Markdown
Owner Author

CI checkpoint 2026-11-21 ~15:35 UTC (PR HEAD 952c6751c3b67b49eefe0b2f4d4c3f02cbeed219 unchanged): the single official recovery attempt #2 of native Pi three-OS run 44914788050, Required 44914788262, Coverage, CodeQL and the other eligible workflows was mass-cancelled again at 15:34:29–15:34:39 UTC, before the three Pi jobs executed. The separate Dependency Review run 44914771313 had already ended startup_failure with zero jobs. More than one unrelated PR branch (including ci/macos-signing and fix/released-source-audit-0.1.115-20261121) had simultaneously cancelled runs, so this is not evidence of a Pi-specific test failure. No native evidence artifact exists for 44914788050. Exact SHA remains mergeable, but not qualified: cancelled/skipped/startup_failure are not PASS. Static review of the 11-line addition and the native workflow confirms it exercises fresh Pi Skills/MCP disappearance in both selected user profiles after remove; no actionable review threads. Do NOT rerun in a blind loop, change unrelated CI or force-merge. Need actual successful exact-HEAD Linux/macOS/Windows native jobs plus applicable CI before SHA-guarded squash merge and postmerge main verification.

Copy link
Copy Markdown
Owner Author

Focused CI recovery checkpoint — 2026-11-21 ~15:41 UTC (exact PR HEAD 952c6751c3b67b49eefe0b2f4d4c3f02cbeed219):

  • Both earlier Pi attempts were cancelled with runner_id=0, zero steps, no downloadable job logs; native run #44914788050 has zero artifacts. These are neither test failures nor PASS.
  • PR test(pi): qualify user-scope native removal on three OS #1084 has no new PR event since ready_for_review at 14:36 UTC. The in-repo cancel-closed-pr-checks.yml responds only to closed PRs (this PR stayed open); native and Required concurrency groups are PR-scoped. Therefore those in-repo supersession controls cannot explain cancellations across unrelated branches; the external cancellation actor is still unknown.
  • After repository release-rehearsal run #44919872225 completed SUCCESS at 15:38 UTC and SkillSpector #44919999584 was in progress, performed one narrowly targeted retry of the exact-HEAD Pi native workflow only: 44914788050 attempt 3. Linux, macOS and Windows are QUEUED, not PASS. No new commits, duplicate PRs, or mass retries.
  • Required #44914788262, Coverage #44914788151 and CodeQL #44914788027 still CANCELLED (attempt 2); Dependency Review #44914771313 remains startup_failure, zero jobs. They must have real applicable evidence before merge.

Next: do not retry while attempt 3 is queued/running. Inspect exact-HEAD Pi v1.4.0 evidence, then conservatively restore necessary CI when scheduling is stable. No merge until full green and review.

Copy link
Copy Markdown
Owner Author

Native Pi E2E recovery checkpoint (2026-11-21 ~16:57 UTC) on unchanged exact PR HEAD 952c6751c3b67b49eefe0b2f4d4c3f02cbeed219:

  • Pi native workflow #44914788050, attempt 3 SUCCESS on all 3 genuine runners: linux-amd64, darwin-arm64, windows-amd64. Each job completed the pinned native Pi project trust/A-B lifecycle, new source-built user global default/custom install/update/repair/remove, fresh-process post-remove Skill and MCP non-discovery, stdio/HTTP initialize/list/client-driven tools/call, and artifact upload.
  • Downloaded and inspected the three pi-project-components-{linux-amd64,darwin-arm64,windows-amd64} evidence archives. Each pi-project-components-evidence.json explicitly records status: "passed", matching sha, mcp_tools_call_qualified: true, and both default_Pi_global_native_absence_after_remove and custom_Pi_global_native_absence_after_remove stages. Workflow evidence is pinned Pi with scripted/local model; not vendor authentication or a separately released CLI claim.
  • Review threads are empty; the PR diff is still one Python test file / 11 added lines. Main advanced only by unrelated release-source-audit changes, and this PR remains mergeable in the live PR REST detail.
  • Since this is now a genuine 3-OS native PASS, official focused retries were accepted for previously cancelled Required #44914788262, Coverage #44914788151 and CodeQL #44914788027, all attempt 3 QUEUED; these are not yet PASS. Dependency Review #44914771313 remains startup_failure with zero jobs; the GitHub API rejects re-running failed jobs for this run as 403 This workflow run cannot be retried. This is a CI admission issue, not evidence of a dependency/test failure.

No duplicate PR, source changes, or merge; still require applicable green CI and a qualifying Dependency Review before SHA-guarded squash merge and postmerge verification.

@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.98%. Comparing base (4858d97) to head (952c675).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1084   +/-   ##
=======================================
  Coverage   63.98%   63.98%           
=======================================
  Files        2305     2305           
  Lines      139611   139611           
=======================================
+ Hits        89327    89335    +8     
+ Misses      37453    37447    -6     
+ Partials    12831    12829    -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@777genius 777genius closed this Nov 21, 2026
@777genius 777genius reopened this Nov 21, 2026
@777genius 777genius closed this Nov 21, 2026
@777genius 777genius reopened this Nov 21, 2026

777genius commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner Author

CI qualification checkpoint (2026-11-21 ~18:10 UTC), exact PR HEAD 952c6751c3b67b49eefe0b2f4d4c3f02cbeed219 unchanged:

  • SUCCESS: genuine pinned Pi v1.4.0 native 3-OS E2E 44914788050 attempt 3 with archived project+global default/custom Skills/MCP post-remove absence; Required 44914788262 attempt 3 (actual test + staged-hermetic PASS), Coverage 44914788151 attempt 3, CodeQL 44914788027 attempt 3, codecov project/patch green. Core Fast is path-inapplicable (test-only Python file).
  • Old Dependency Review 44914771313 is startup_failure with zero jobs; the official failed-job retry returns GitHub 403 This workflow run cannot be retried. To obtain same-SHA fresh PR-event evidence without dummy commits or scope changes, this PR was closed and immediately reopened at 18:06:56-18:06:57 UTC. A second close/reopen was recorded at 18:08:22-18:08:24 UTC (its initiating action has not been established), superseding the first event's 13 pending runs; latest Dependency Review 44933862907 and accompanying CI are currently QUEUED/PENDING, not PASS. No further PR state changes should be attempted. No evidence of any source change or new PR.
  • Do not send further PR state toggles, reruns or duplicate events while latest same-SHA checks wait. No merge until qualifying Dependency Review/other applicable gates complete and actionable reviews are resolved. Preserve already successful exact-HEAD Pi 3-OS artifact evidence.

@777genius
777genius merged commit 5f63d48 into main Nov 21, 2026
73 of 175 checks passed
@777genius
777genius deleted the test/pi-user-native-removal-20261121 branch November 21, 2026 18:35

Copy link
Copy Markdown
Owner Author

Final scoped Pi user-scope E2E verification — 2026-11-21

MERGED PR #1084 by SHA-guarded squash: 5f63d48bf4461600e6bb916a6e4997f9830545e1. Confirmed that main pointed to this exact commit and its scripts/pi_project_components_native_e2e.py contains the 11-line new fresh-process user removal assertions for both default/custom PI_CODING_AGENT_DIR.

Exact PR HEAD 952c6751c3b67b49eefe0b2f4d4c3f02cbeed219:

  • Native genuine Pi v1.4.0 three OS Linux/macOS/Windows E2E 44914788050 attempt 3: 3/3 SUCCESS. Skills, stdio and HTTP MCP initialize/list/client-driven tools/call, add/update/repair/remove and fresh-process removal non-discovery; disposable local scripted model, no vendor auth claim.
  • Required, Coverage, CodeQL, Dependency Review: all SUCCESS; no unresolved review threads.

Actual merged main SHA 5f63d48:

  • Pi Global and Project Native Runtime 44936332039 3/3 SUCCESS, independent of premerge evidence.
  • Dependency Review 44936331974, CodeQL 44936332062, Coverage 44936331934, Docs 44936332080, Skills picker 44936332075: SUCCESS.
  • Do not mislabel general postmerge Required green: Required 44936332077 is red/pending because full-file strict-lint found four pre-existing, unrelated complexity issues in clients/grok/project_skill_inspect.go and clients/windsurf/project_skill_completion.go. These exact two paths are already addressed by independent open #1025; the Pi-only test change did not touch either path. Additional general workflows may still be queued or fail independently. Hermes native workflow failure is separately unrelated (Linux upstream clone HTTP 403; Windows own native call failure).
  • Source-only Pi qualification does not assert released public CLI binary behavior, vendor login, or untested future Pi versions.

The bounded Pi user-scope E2E and merge objective is complete. Unrelated repository-wide lint/Hermes and general release qualification remain separate owners/scopes; no duplicate PR, security gate suppression or artificial green status.

Copy link
Copy Markdown
Owner Author

Pi user-scope E2E — final scoped verification (2026-11-21)

  • PR test(pi): qualify user-scope native removal on three OS #1084 squash-merged at 5f63d48bf4461600e6bb916a6e4997f9830545e1; live main is this exact SHA. The merged tree retains the 11-line native post-removal non-discovery assertions for default and custom user Pi profiles.
  • Final postmerge Pi Global and Project Native Runtime #44936332039 SUCCESS on Linux x64, macOS arm64 and Windows x64. Each job passed the real pinned Pi v1.4.0 lifecycle, project A/B isolation, source-built CLI and real Pi Skill discovery, stdio/HTTP MCP initialize/list/client-driven tools/call, and user-scope post-remove non-discovery. All six evidence artifacts were uploaded and are available under the run. This is native scripted-local-model evidence, not vendor account authentication.
  • Postmerge Dependency Review #44936331974, CodeQL #44936332062, Coverage #44936331934, Docs and Skills picker: SUCCESS. Premerge exact-head Required #44914788262 attempt 3 was SUCCESS.

Explicit repo-wide qualification boundary (not counted PASS): postmerge Required #44936332077 is FAILURE exclusively in unrelated Grok/Windsurf whole-module complexity lint (4 errors in clients/grok/project_skill_inspect.go and clients/windsurf/project_skill_completion.go), already owned by #1025. Postmerge Hermes native run #44936331930 also FAILED independently: Linux upstream Hermes clone HTTP 403 and Windows native lifecycle failure, owned separately by client qualification #931. Remaining queued Govulncheck modules are not PASS. None of these failures comes from the Pi change, and these separate client fixes were not duplicated into this scoped Pi PR. No new release/publication is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant