Skip to content

test(pstack): ban leftover spawn strings in the resource grep - #13

Open
shishiv wants to merge 1 commit into
mainfrom
feat/robust-port-grep-lever
Open

test(pstack): ban leftover spawn strings in the resource grep#13
shishiv wants to merge 1 commit into
mainfrom
feat/robust-port-grep-lever

Conversation

@shishiv

@shishiv shishiv commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Why

The resource corpus test is the leftover detector. This PR adds two tokens the skills can already make green, so main stays green while later phases grow the same list.

Scope

test/resources/resources.test.mjs now bans agent: "Comment Sicko" and subagent subagent. It also requires agent: "comment-sicko" in skills/no-comments/SKILL.md.

skills/how/SKILL.md drops the doubled subagent subagent at the two spawn sites.

skills/no-comments/SKILL.md spawns comment-sicko by agent id. The display name Comment Sicko stays in the description and prose. agents/comment-sicko.md is unchanged.

Out of scope: create-skill, control-ui, control-cli, and the $PI_SESSION_FILE leftover sentence. Those land in later phases on the same denylist.

Tradeoffs

The denylist grows by only the tokens this PR can green. Adding the rest now would fail main.

Blast Radius

Anyone who follows how or /skill:no-comments now sees Pi spawn ids. The heading # Comment Sicko still matches the character name. CI fails if those leftover strings return.

Verification

node --test test/resources/resources.test.mjs passed (4 tests). The denylist was added first and failed on Comment Sicko spawn before the skill edits.

npm run verify:deterministic passed (format, lint, typecheck, 79 tests, manifest).

Comment Sicko reported deletion count 0.

Made with Cursor

The corpus denylist now fails CI on a doubled subagent token and on spawning Comment Sicko by display name. how and no-comments already match the Pi agent id.

Co-authored-by: Cursor <cursoragent@cursor.com>
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