Skip to content

sync: Lauren's pstack 0.15.46 at 0b46ec3, /statechart runs on native Windows (2.5.2) - #86

Merged
chhoumann merged 2 commits into
mainfrom
sync/0b46ec3
Nov 20, 2026
Merged

chhoumann merged 2 commits into
mainfrom
sync/0b46ec3

Conversation

@chhoumann

@chhoumann chhoumann commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Why

This keeps t3-pstack on Lauren Tan's pstack. It moves the port to 0.15.46, where /statechart runs on native Windows. Stacked on #85 (2.5.1, pstack 0.15.45), so the base is sync/dd24b67.

What Lauren changed

cursor/plugins 0b46ec3 (#1292) bumps pstack to 0.15.46 and touches only the statechart skill. On native Windows, /statechart spawned /bin/sh to stop TLC's process group and to clean up after the check, and TLC prints \r\n line ends that the line readers split on \n alone, so the leftover \r hid a broken rule from the verdict.

  • The line readers split on \r?\n: the DOT parser, the reader of TLC's output files, and the reader of its piped output (splitLines in frontends/dot.ts).
  • The group kill moves out of run.ts into kill.ts. It runs taskkill /t /f on Windows and sends SIGKILL to the process group elsewhere.
  • The janitor that removes the scratch folders is now janitor.ts, run on the command's own runtime, instead of a /bin/sh loop. The command tells it when the worker exits. On Windows, where the group does not outlive the worker, the janitor and the command kill it only while it still runs, so they spare a pid Windows has reused.
  • java and mise start with windowsHide, the worker gets TEMP and TMP along with TMPDIR, and TLC runs with -Dstdout.encoding=UTF-8 and -Dstderr.encoding=UTF-8. The commit message leaves out the encoding flags.
  • SKILL.md says scripts/statechart is a POSIX shell script, and that on native Windows the command is node --disable-warning=ExperimentalWarning <skill dir>/scripts/statechart.ts on Node 22.18 to 22.x, or 23.6 or later.
  • New tests replay every corpus case with TLC's output in Windows line ends, and check that a \r\n verdict names the broken invariant as the \n one does.

cursor-team-kit and thermos have no change between dd24b67 and 0b46ec3, so their pins move with pstack's. The copies under harness/pstack/claude-code/ sit outside every synced component.

The T3 form

None needed. bun tools/sync.mjs pstack 0b46ec3 updated 6 files and added 2, all under skills/statechart, with no merge and no conflict. No substitution matches the new text (still 139 rules), and none of the 16 forked files changed. Each written file is byte-identical to upstream at 0b46ec3, compared with cmp against the GitHub contents API. The scripts' package.json keeps fast-check at 4.5.3, so the root bun.lock pin stays.

2.1.0's CHANGES entry says the skill does not run on native Windows, from reading the source. That no longer holds, though no Windows host ran this release either. README and the three NOTICE files name 0b46ec3 and v2.5.2.

Checks

On macOS 27.0, at the head of this PR:

  • bun tools/generate.mjs --check: ok: 14 generated files current, exit 0.
  • bun tools/sync.mjs <component> 0b46ec3 --dry-run: exit 0 for pstack (500 unchanged, 37 excluded, 16 forked, 21 port-only), cursor-team-kit (6 unchanged, 15 excluded) and thermos (5 unchanged, 5 excluded).
  • GIT_CONFIG_GLOBAL=/dev/null bun test tests/ --timeout 30000: 545 pass, 56 skip, 0 fail across 601 tests.
  • Skill script tests the way CI's skill-scripts job runs them (node --test plugins/pstack/skills/*/scripts/test/*.test.ts, Node 22.23.4, no TLC): 303 pass, 70 skip, 1 fail. The failure is the launcher symlink test, which fails the same way on the pre-sync tree, because macOS's os.tmpdir() sits under the /var symlink, and passes with a physical TMPDIR, as 2.1.0 recorded. With TMPDIR=/private/tmp/...: 304 pass, 70 skip, 0 fail. The 70 skips need TLC. With TLA2TOOLS and JAVA set to the mise-installed TLC 1.7.4 and Temurin 25, the versions the scripts pin: 407 of 407 pass.
  • On the 0.15.45 scripts, all 34 of Lauren's new Windows line-end tests fail: the old readers leave @!@!@ENDMSG markers in tlc.out, and the verdict loses the broken invariant NotOne. On 0.15.46's they pass.
  • T3_PSTACK_E2E=1 installer end-to-end test, Claude Code 2.1.328 and Codex 0.170.0: 18 pass, 0 fail.
  • node tools/validate-skills.mjs plugins/pstack/skills: ok: local markdown links stay inside plugins/pstack/skills.
  • markdownlint-cli2@0.18.1 on CHANGES.md and README.md: 0 errors.

Version

2.5.2 is a patch release: Lauren's fix, with no new skill, capability, or harness. No user has to act. Neither hooks file changes. On Codex, npx -y github:chhoumann/t3-pstack update as after every release.


Note

Low Risk
Patch release scoped to the statechart skill's local process/line-ending handling; no auth, hooks, or orchestration changes.

Overview
v2.5.2 syncs t3-pstack to Lauren Tan's pstack 0.15.46 (cursor/plugins 0b46ec3). Upstream pins, notices, and version strings move to 2.5.2; the only functional change is the statechart skill.

/statechart now runs on native Windows instead of relying on /bin/sh for cleanup and kill. Line parsers use splitLines (\r?\n) so TLC output with CRLF still surfaces broken invariants. Process teardown is kill.ts (taskkill on Windows, process-group SIGKILL elsewhere) and a Node janitor.ts replaces the old shell janitor, with Windows-aware logic so reused PIDs are not killed after the worker exits. TLC/Java/mise spawns use windowsHide, UTF-8 stdout/stderr JVM flags, and TEMP/TMP on the worker. SKILL.md documents the Windows Node invocation.

New tests replay the corpus with Windows line endings. No T3 substitution or fork changes—the synced statechart files match upstream byte-for-byte.

Reviewed by Cursor Bugbot for commit c5f1a7d. Bugbot is set up for automated code reviews on this repo. Configure here.

…Windows

Moves all three components to cursor/plugins 0b46ec3 (pstack #1292).
On native Windows, /statechart spawned /bin/sh, and TLC's \r\n line
ends hid broken rules from the verdict. Lauren's line readers now split
on \r?\n. The group kill moves to kill.ts (taskkill on Windows), the
janitor becomes janitor.ts on the command's own runtime instead of a
/bin/sh loop and spares a reused Windows pid, java and mise start with
windowsHide, and TLC prints UTF-8. SKILL.md gives the node command for
native Windows. cursor-team-kit and thermos have no upstream change in
this range.

The sync updated 6 files and added 2, all under skills/statechart, with
no merge and no conflict. No substitution or fork touches them, and each
is byte-identical to upstream.
Lauren's pstack 0.15.46 at 0b46ec3: /statechart runs on native Windows.
README and the notices name 0b46ec3 and v2.5.2.
@chhoumann
chhoumann changed the base branch from sync/dd24b67 to main November 20, 2026 10:15
@chhoumann
chhoumann merged commit 6584ddb into main Nov 20, 2026
12 checks passed
@chhoumann
chhoumann deleted the sync/0b46ec3 branch November 20, 2026 10:19
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