You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adopt Bun bootstrap guard and pointer-only platform mapping #18
michael-denyer/pstack-claude commit 342f0ea3b723b0654c1341a98667aede207d1db5 contains two small port-layer hardenings that are not part of Lauren Tan's canonical Cursor pstack 0.14.3 sync.
Open Pstack's bootstrap.ts uses Bun-only APIs such as import.meta.dir and Bun.spawnSync. Running it with Node currently fails with an opaque downstream error. The same commit also reduces no-comments' platform note to a pointer so codex-tools.md remains the sole owner of non-Claude dispatch mechanics. Open Pstack currently still has the duplicated inline dispatch wording.
Acceptance criteria
bootstrap.ts detects a missing Bun runtime before touching Bun-only APIs and exits non-zero with a concise installation message that names Bun and its official URL.
A focused test proves the Node failure message and exit status without relying on the old import.meta.dir crash.
The guard does not alter normal Bun bootstrap behavior or dependency freshness checks.
no-comments/SKILL.md uses a pointer-only platform note; concrete Codex dispatch mechanics remain in codex-tools.md.
The change is recorded as an Open Pstack port-layer adaptation, not a canonical Cursor pstack sync.
Bun tests, strict typecheck, static invariants, and plugin validation pass.
The exact packaged candidate is installed and the bootstrap entry point is exercised from the installed payload in Claude Code and Codex contexts.
The Bun guard improves a real, reproduced failure for direct bootstrap.ts and watch-pr Node invocations, and the no-comments note duplicates an existing Codex mapping. The work is useful and executable once its runtime claim is limited to the paths the guard can actually reach.
Context
At 74c5cb2110039d4e6cdd749a04a0988ba150ba9c, bootstrap.ts reads import.meta.dir before any runtime guard and later calls Bun.spawnSync. Under Node 22.23.2, direct bootstrap.ts and watch-pr execution fail with an opaque ERR_INVALID_ARG_TYPE. The proposed module-top check replaces that failure with a concise Bun requirement.
Separately, no-comments/SKILL.md repeats the comment-sicko Codex dispatch mechanic already owned by codex-tools.md. A pointer-only note removes that local duplication.
Why still real
Supported: direct node bootstrap.ts and node watch-pr/watch-pr reproduce an opaque path error before any Bun guidance.
Supported: a top-level typeof Bun === "undefined" check is the smallest correction for those two reachable paths.
Disproved: the guard covers all Node invocations. node orch/orch.ts fails while parsing a TypeScript parameter property in store.ts, before bootstrap.ts evaluates.
Supported: the comment-sicko mapping is duplicated between no-comments/SKILL.md and codex-tools.md; the pointer-only form preserves behavior.
Supported: this is an Open Pstack port adaptation from michael-denyer commit 342f0ea3b723b0654c1341a98667aede207d1db5, not a Cursor sync. Cursor 0.14.3 leaves both files untouched.
Unverified until implementation: the guard preserves normal Bun bootstrap/dependency behavior and is wired into the actual test gate.
Scope and non-goals
Add the early Bun diagnostic for direct bootstrap and watch-pr, wire focused Node tests into the existing Bun test command, and replace only the duplicated comment-sicko platform mechanics in no-comments/SKILL.md with a pointer to codex-tools.md. Record the divergence in the repository's port provenance, including the script-edit count where current provenance states it.
This ticket does not make Node a supported runtime, does not fix node orch/orch.ts, does not generalize every inline spawn_agent reference, and does not advance the Cursor sync point. It is independent of #17, #19, and #20.
node bootstrap.ts exits 1 with that message and without the current ERR_INVALID_ARG_TYPE stack.
A representative node watch-pr/watch-pr invocation reaches the imported guard and produces the same concise failure.
These focused tests are included in bun run test; the test path is not left outside the package script's explicit project list.
Normal Bun execution preserves dependency installation and freshness behavior and passes the existing bootstrap callers' tests.
no-comments/SKILL.md contains a pointer for the comment-sicko platform mapping and no longer repeats its concrete spawn_agent mechanics; codex-tools.md remains the concrete owner for that mechanic.
CHANGES.md, NOTICE.md, and any current adaptation accounting record this as an Open Pstack port-layer divergence without advancing the Cursor sync point.
The final packaged artifact demonstrates the claimed behavior in both harness contexts.
Open risks and unresolved questions
node orch/orch.ts remains uncovered and still fails during TypeScript parsing. Consequence: a broad "all Node invocations fail helpfully" claim would be false. Guard: make that path an explicit non-goal and test only the reachable direct-bootstrap and watch-pr boundaries.
Reviewer disagreement: Fable recommended Ready; Codex recommended Blocked because a module-local guard cannot cover orch. The corrected scope does not claim universal coverage, and no product decision is needed to accept the smaller demonstrated improvement, so the lead selects Ready.
Actual frequency of Node misuse is unknown. Consequence: this is small diagnostic hardening, not evidence of a high-priority production defect.
Verification
From plugins/pstack/skills/poteto-mode/scripts: bun install --frozen-lockfile, bun run test, and bun run typecheck.
Run focused subprocess assertions for node bootstrap.ts and node watch-pr/watch-pr: exit 1, Bun message and URL present, old path stack absent.
From the repository root: run the CI manifest JSON-parse and PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh.
Install the exact candidate in Claude Code and Codex contexts. From the installed payload, exercise the supported Bun bootstrap path and the two claimed Node failure paths; record installed version, surface, action, and observed result.
Current review fingerprint: the generated marker on the first line of this comment.
Premise review evidence
Outcome and decisive reason
Ready. Two small, independent defects are directly demonstrated, and the corrected scope no longer promises a universal Node preflight.
Grounded premise findings
Supported: opaque direct-bootstrap and watch-pr Node failure; consequence: add an early diagnostic.
Disproved: the guard reaches orch; consequence: exclude that path and avoid universal wording.
Supported: the no-comments platform mechanic is duplicated; consequence: replace it with the existing pointer pattern.
Supported: the source is a secondary port, not Cursor; consequence: record a local divergence without changing the sync point.
Unverified until completion: unchanged Bun behavior; consequence: focused and existing Bun tests plus installed proof.
Reviewers
claude:claude-fable-5@xhigh: completed; Status ISSUES; Recommendation READY; biggest risk was overstating the guard's coverage.
codex:gpt-5.6-sol@xhigh: completed; Status ISSUES; Recommendation BLOCKED; biggest risk was the same module-local versus runtime-wide ambiguity.
Disagreement and adjudication
Both reviewers agreed the two observed problems are real. Codex required a decision on a different executable-boundary solution if every entry point must fail helpfully. The canonical scope expressly limits the promise to direct bootstrap and watch-pr; this fully satisfies the demonstrated need without redesigning orch, so no product decision remains.
Rejected alternatives
Claiming Node is a supported runtime.
Claiming the guard covers node orch/orch.ts.
Adding a wrapper or compatibility layer solely to intercept every Node parse failure.
Broadly rewriting other skills that mention spawn_agent.
The remaining orch parse failure can confuse anyone who ignores the documented Bun runtime, but it cannot invalidate the narrower behavior this ticket owns.
Provider dropouts
None.
Prior triage
No prior valid triage comment existed at capture time.
Activity
ericlitman commentedon Aug 26, 2026
Triage decision
Outcome: Ready
The Bun guard improves a real, reproduced failure for direct
bootstrap.tsandwatch-prNode invocations, and theno-commentsnote duplicates an existing Codex mapping. The work is useful and executable once its runtime claim is limited to the paths the guard can actually reach.Context
At
74c5cb2110039d4e6cdd749a04a0988ba150ba9c,bootstrap.tsreadsimport.meta.dirbefore any runtime guard and later callsBun.spawnSync. Under Node 22.23.2, directbootstrap.tsandwatch-prexecution fail with an opaqueERR_INVALID_ARG_TYPE. The proposed module-top check replaces that failure with a concise Bun requirement.Separately,
no-comments/SKILL.mdrepeats the comment-sicko Codex dispatch mechanic already owned bycodex-tools.md. A pointer-only note removes that local duplication.Why still real
node bootstrap.tsandnode watch-pr/watch-prreproduce an opaque path error before any Bun guidance.typeof Bun === "undefined"check is the smallest correction for those two reachable paths.node orch/orch.tsfails while parsing a TypeScript parameter property instore.ts, beforebootstrap.tsevaluates.no-comments/SKILL.mdandcodex-tools.md; the pointer-only form preserves behavior.342f0ea3b723b0654c1341a98667aede207d1db5, not a Cursor sync. Cursor 0.14.3 leaves both files untouched.Scope and non-goals
Add the early Bun diagnostic for direct bootstrap and
watch-pr, wire focused Node tests into the existing Bun test command, and replace only the duplicated comment-sicko platform mechanics inno-comments/SKILL.mdwith a pointer tocodex-tools.md. Record the divergence in the repository's port provenance, including the script-edit count where current provenance states it.This ticket does not make Node a supported runtime, does not fix
node orch/orch.ts, does not generalize every inlinespawn_agentreference, and does not advance the Cursor sync point. It is independent of #17, #19, and #20.Acceptance criteria
import.meta.diror any other Bun-only API,bootstrap.tsdetects a missing Bun global, writes a concise message naming Bun and https://bun.sh, and exits non-zero.node bootstrap.tsexits 1 with that message and without the currentERR_INVALID_ARG_TYPEstack.node watch-pr/watch-prinvocation reaches the imported guard and produces the same concise failure.bun run test; the test path is not left outside the package script's explicit project list.no-comments/SKILL.mdcontains a pointer for the comment-sicko platform mapping and no longer repeats its concretespawn_agentmechanics;codex-tools.mdremains the concrete owner for that mechanic.CHANGES.md,NOTICE.md, and any current adaptation accounting record this as an Open Pstack port-layer divergence without advancing the Cursor sync point.Open risks and unresolved questions
node orch/orch.tsremains uncovered and still fails during TypeScript parsing. Consequence: a broad "all Node invocations fail helpfully" claim would be false. Guard: make that path an explicit non-goal and test only the reachable direct-bootstrap andwatch-prboundaries.orch. The corrected scope does not claim universal coverage, and no product decision is needed to accept the smaller demonstrated improvement, so the lead selects Ready.Verification
plugins/pstack/skills/poteto-mode/scripts:bun install --frozen-lockfile,bun run test, andbun run typecheck.node bootstrap.tsandnode watch-pr/watch-pr: exit 1, Bun message and URL present, old path stack absent.PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh.Source refs
5252399221; capturedupdated_at:2026-08-26T01:36:49Z; normalized body SHA-256:b79ea4c6dce4f9732fa43f84cabfbd1023e998647ed961f0912b493fcb35dbe6.74c5cb2110039d4e6cdd749a04a0988ba150ba9c;plugins/pstack/skills/poteto-mode/scripts/bootstrap.ts;plugins/pstack/skills/no-comments/SKILL.md;plugins/pstack/skills/poteto-mode/references/codex-tools.md;plugins/pstack/skills/poteto-mode/scripts/package.json;.github/workflows/ci.yml.watch-prfailures;orchpre-evaluation TypeScript parse failure.Premise review evidence
Outcome and decisive reason
Ready. Two small, independent defects are directly demonstrated, and the corrected scope no longer promises a universal Node preflight.
Grounded premise findings
watch-prNode failure; consequence: add an early diagnostic.orch; consequence: exclude that path and avoid universal wording.Reviewers
claude:claude-fable-5@xhigh: completed; StatusISSUES; RecommendationREADY; biggest risk was overstating the guard's coverage.codex:gpt-5.6-sol@xhigh: completed; StatusISSUES; RecommendationBLOCKED; biggest risk was the same module-local versus runtime-wide ambiguity.Disagreement and adjudication
Both reviewers agreed the two observed problems are real. Codex required a decision on a different executable-boundary solution if every entry point must fail helpfully. The canonical scope expressly limits the promise to direct bootstrap and
watch-pr; this fully satisfies the demonstrated need without redesigningorch, so no product decision remains.Rejected alternatives
node orch/orch.ts.spawn_agent.Residual risks
The remaining
orchparse failure can confuse anyone who ignores the documented Bun runtime, but it cannot invalidate the narrower behavior this ticket owns.Provider dropouts
None.
Prior triage
No prior valid triage comment existed at capture time.
release: Open Pstack 1.2.0 (#24)
release: Open Pstack 1.2.0 (ericlitman#24)