Skip to content

fix: exclude grace-period ghosts from tree kill - #7

Merged
s1korrrr merged 1 commit into
mainfrom
feat/andrzej_tree_kill_live_only_canonical
Aug 4, 2026
Merged

fix: exclude grace-period ghosts from tree kill#7
s1korrrr merged 1 commit into
mainfrom
feat/andrzej_tree_kill_live_only_canonical

Conversation

@s1korrrr

@s1korrrr s1korrrr commented Aug 4, 2026

Copy link
Copy Markdown
Member

Outcome

TERM Tree / force-kill tree and family descendant counts now use live process rows only, so recently exited grace-period PIDs no longer cause false targetNotRunning failures or inflated tree counts. Approved-path authorization also correctly handles filesystem root (/) instead of building a broken // prefix.

Related issue

None — found during end-to-end audit. Companion private-fork PR: https://github.com/s1korrrr/devscope/pull/20 (blocked there by Actions budget).

Change type

  • Bug fix
  • Security or privacy hardening

Risk and boundaries

  • Destructive process signaling now plans against live PIDs only.
  • Path authorization remains fail-closed; root / handling corrected for latent helper correctness.
  • No secrets included.

Breaking-change impact

None. Adds ProcessPresentation.liveScopedTreeInputs (pre-1.0 unstable library surface).

Verification

  • Focused tests added
  • Local validation on equivalent private-fork tree: readiness + 673 tests + release build + sandbox/full bundle validate + build_and_run.sh --verify
  • CI Release Gates green on this public repo

Test plan

  • Confirm CI Release Gates (arm64 + x86_64) green
  • Confirm Secret Scan green
  • Merge only when checks pass

Stabilizer rows that have already exited were still included in TERM/KILL
tree planning and family counts, so ProcessKiller failed closed for ~2.5s
after any child exit. Also correct approved-root path checks when root is "/".
@cursor

cursor Bot commented Aug 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@s1korrrr
s1korrrr merged commit fca6ebd into main Aug 4, 2026
3 checks passed
@s1korrrr
s1korrrr deleted the feat/andrzej_tree_kill_live_only_canonical branch August 4, 2026 08:13
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