Repository navigation
fix(pstack): preload poteto-mode in Claude poteto-agent (#49) - #114
Conversation
Reapplies closed PR #50 by @RomiSinghio, approved 2026-09-08, on current main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Applies the non-blocking finding from the PR #50 review: under set -e a failing claude run aborted the script before check printed its output. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge Protections🟢 All 2 merge protections satisfied — ready to merge. Show 2 satisfied protections🟢 Queue ready pull requestsAutomatically queue non-draft pull requests targeting main after verify, Unfret, and live-gate pass on the head.
🟢 🚦 Auto-queueWhen all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
|
…reload # Conflicts: # CHANGES.md
…clitman#134) NOTICE.md, README-UPSTREAM.md and the two preserved upstream license files ship nowhere; both marketplaces ship only ./plugins/pstack. Unmapped, they blocked any PR or upstream sync that edits them (first seen on ericlitman#114). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…reload # Conflicts: # CHANGES.md
Live evidence: Open Pstack
|
✅ Accepted riskAccepted by ericlitman: GH-49 (authority 48fa77b) 🟡 Medium · Candidate run does not disable the installed pstack plugin Advisories (2)
DetailsRun: @unfret review · @unfret status · @unfret help |
There was a problem hiding this comment.
🛑 1 blocking finding
🟡 Medium · Candidate run does not disable the installed pstack plugin
Check
| preloaded_agent_output="$( | ||
| claude -p \ | ||
| 'Use the Agent tool once with subagent_type pstack:poteto-agent. Give it this task verbatim: "Without invoking Skill or reading files, reply with the first Core principle named in the preloaded poteto-mode skill." Return only the child response.' \ | ||
| --plugin-dir "$plugin" \ |
There was a problem hiding this comment.
🟡 Medium · Candidate run does not disable the installed pstack plugin
When the operator already has pstack@open-pstack enabled, this invocation loads the checkout with --plugin-dir without the required session-only setting that disables the installed copy. Claude may reject the duplicate namespace or resolve pstack:poteto-agent from the installed revision, causing the check either to fail spuriously or validate something other than the candidate.
|
Unfret waiver for head 0c1263b. Ticket
|
Merge Queue Status
This pull request spent 11 seconds in the queue, including 2 seconds running CI. Required conditions to merge
|
Closes #49
What changed
This PR lands the change from closed PR #50 by @RomiSinghio (approved 2026-09-08), rebased on current main. Romi Singh is the author of commit 653fb7f.
plugins/pstack/agents/poteto-agent.mdpreloadspstack:poteto-modethrough Claude Code'sskillsfrontmatter. The shared skill tree and the Codex path do not change.tests/skill-collision-repro.shadds a static invariant that fails if the preload binding disappears. It also adds a live check: the packagedpoteto-agentmust name the first Core principle (Laziness Protocol) withoutSkillor file reads.CHANGES.md,NOTICE.mdanddocs/reference.mdrecord the port edit, as in fix(pstack): preload poteto-mode in Claude agent #50.One addition to #50 (commit 39828ef): the live check's
claudecall ends in|| true. This applies the LOW finding from #50's review. Underset -e, a failing CLI aborted the script beforecheckprinted the error.Greptile review: P2 "Preload check can pass without preload" is not acted on. The point is valid: the child could read
SKILL.mdinstead of using the preload, and the marker check would still pass. #49's acceptance gate is the installed-candidate live run, and that run must show noReadorSkillcall in the child transcript. The script check stays as #50 wrote it.Verification
Local gate on 0c1263b (main merged in):
bun install --frozen-lockfile,bun run test,bun run typecheck, manifest JSON parse,PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh,claude plugin validate plugins/pstackandclaude plugin validate .all exit 0. Negative check: with- pstack:poteto-modedeleted, the static run printsFAIL: Claude poteto-agent does not preload poteto-mode.Live evidence: an agent ran
verify.sh run --pr 114 --feature claude:agent-preload:poteto-agentfrom this PR's head 0c1263b. That is the targeted check from #138 (PR #139). The verifier exited 0 and setlive-gate=successwith this evidence comment. It ran three sessions:claude/agent-preload:poteto-agent(Claude Code 2.1.289, candidate via--plugin-dir). The parent dispatchedpstack:poteto-agent. The child made no tool calls, and its own reply named Laziness Protocol. The assertions wereexit-0 agent-dispatched child-no-tools principle-named.project-skillin Claude Code and in Codex CLI 0.160.0. These are required because this PR editstests/skill-collision-repro.sh.Before #139 merged, the same check failed against main 2c19967, which has no preload. It failed with
principle-missing:Laziness Protocol: the child said poteto-mode was not preloaded.🤖 Generated with Claude Code