Skip to content

feat(pstack): add Lean 4 proof compilation to /statechart - #1366

Merged
poteto merged 1 commit into
mainfrom
pstack-statechart-lean-f1cc
Nov 29, 2026
Merged

poteto merged 1 commit into
mainfrom
pstack-statechart-lean-f1cc

Conversation

@poteto

@poteto poteto commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Adds Lean 4 proof compilation support to /statechart (pstack 0.15.49) and updates the generated harness files.

  • Supports statechart FILE.lean THEOREM to emit lemma dependency charts, proof trees, and audit reports.
  • Adds --view and --tactics options, Mermaid styling updates, docs, and self-contained tests.

@poteto
poteto merged commit 4d5593e into main Nov 29, 2026
1 check passed
@poteto
poteto deleted the pstack-statechart-lean-f1cc branch November 29, 2026 05:18
SmailG added a commit to SmailG/claude-cursor-plugins that referenced this pull request Nov 29, 2026
…ilation to /statechart (cursor#1366)

chore: sync with cursor/plugins — feat(pstack): add Lean 4 proof compilation to /statechart (cursor#1366)
mdsmithaustin added a commit to mdsmithaustin/pstack that referenced this pull request Dec 2, 2026
…echart)

Ports cursor/plugins 4d5593ed, "feat(pstack): add Lean 4 proof compilation
to /statechart" (cursor/plugins#1366):

- skills/statechart: the Lean compiler under scripts/lean/, the TLA+/Lean
  dispatch in statechart.ts and worker.ts, SKILL.md, and render.md. SKILL.md
  keeps the port's agents/openai.yaml in place of disable-model-invocation.
- tests/skills/statechart: the lean-* tests and lean-corpus/, with relative
  paths pointed at the shipped scripts, and the pipeline.test.ts additions.
- poteto-help, README, and guide page 6: the new /statechart wording.
- Promise ledger: classify the new guide sentence under
  statechart-compiles-lean-proofs, and move eight quotes to the reworded
  skill text.
- Trigger row: anchor on the new statechart description.

The upstream plugin version bumps have no port counterpart.
mdsmithaustin added a commit to mdsmithaustin/pstack that referenced this pull request Dec 2, 2026
…echart)

Ports cursor/plugins 4d5593ed, "feat(pstack): add Lean 4 proof compilation
to /statechart" (cursor/plugins#1366):

- skills/statechart: the Lean compiler under scripts/lean/, the TLA+/Lean
  dispatch in statechart.ts and worker.ts, SKILL.md, and render.md. SKILL.md
  keeps the port's agents/openai.yaml in place of disable-model-invocation.
- tests/skills/statechart: the lean-* tests and lean-corpus/, with relative
  paths pointed at the shipped scripts, and the pipeline.test.ts additions.
- poteto-help, README, and guide page 6: the new /statechart wording.
- Promise ledger: classify the new guide sentence under
  statechart-compiles-lean-proofs, and move eight quotes to the reworded
  skill text.
- Trigger row: anchor on the new statechart description.

The upstream plugin version bumps have no port counterpart.
mdsmithaustin added a commit to mdsmithaustin/pstack that referenced this pull request Dec 2, 2026
…echart) (#622)

Port upstream 4d5593ed (cursor/plugins#1366): /statechart compiles
Lean 4 proofs as well as TLA+ models. Lean compiler under
scripts/lean/, tests moved to tests/skills/statechart/, guide and
poteto-help rows updated, ledger quotes follow the reworded SKILL.md,
and CONTRIBUTING notes that live Lean tests need LEAN_SYSROOT.
.github/upstream-sha records 4d5593ed. Follow-ups in #627.
y2gcoder added a commit to y2gcoder/mstack that referenced this pull request Dec 2, 2026
* feat(mstack): expose workflows and verify projects in both runtimes

* fix(setup-mstack): stabilize recommended judge candidates

* fix(mstack): use installed skills in verification handoffs

* feat(statechart): backport Lean 4 proof charts and audit

Keep the pstack 0.15.36 TLA+ runner and import the Lean compiler, CLI routing, and Lean regression corpus from cursor/plugins#1366 and #1389.

* feat(mstack): backport reframe and align native delegation

Bring over the worker kickoff, effort presets, and Reframe from pstack. Route native PR checks through revision-bound evidence and document the local Codex and Claude Code rehearsals for #15.

* fix(statechart): reject replay from a different theorem namespace

Match replayed Lean results by exact name or namespace suffix, as live extraction does. Refs #15.
shiro-el added a commit to shiro-el/pstack-shiro that referenced this pull request Dec 4, 2026
Release 0.15.50-shiro.43. Adopt /reframe skill (cursor#1324, cursor#1326) and Lean 4 proof compilation for /statechart (cursor#1366, cursor#1389), and regenerate harness/pstack/claude-code.
CFBR pushed a commit to CFBR/xPstack-skills that referenced this pull request Dec 4, 2026
y2gcoder added a commit to y2gcoder/mstack that referenced this pull request Dec 4, 2026
* fix(mstack): benchmark-checklist가 없는 PR 규칙을 가리키지 않게 한다

pstack 0.15.51(cursor/plugins#1249)의 benchmark-checklist를 그대로 가져온다. 번들의 Opening a PR은 #32에서 짧게 바뀌어 "PR 본문의 대표 수치는 하나" 규칙이 없다. 원본도 같은 이유로 이 참조를 지웠다.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(mstack): Why 설명이 하지 않는 MCP 일괄 조회를 약속하지 않게 한다

#29에서 Why 본문은 기록에서 답하는 한 파일로 바뀌었지만 description은 0.15.36의 "MCP를 찾아 증거 범주마다 병렬로 조회한다"를 그대로 두었다. pstack 0.15.51(cursor/plugins#1236)의 description으로 맞춘다. 본문은 바꾸지 않는다.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(mstack): 번들 도움말이 이미 흡수한 Lean, Reframe, Why를 바르게 안내하게 한다

pstack 0.15.51의 poteto-help에서 번들이 이미 가진 기능에 맞는 부분만 가져온다.

- Statechart 행: TLA+ 모델과 Lean 4 증명을 모두 다룬다고 쓴다(cursor/plugins#1366). 번들은 0.4.0부터 Lean 경로를 포함한다.
- 다른 도구 안내: 한 파일이 된 Why를 하위 에이전트를 띄우는 스킬 목록에서 뺀다(cursor/plugins#1236).
- 프롬프트 예시: `/reframe` 예시를 더한다(cursor/plugins#1422).

Orchestrate, 건너뛴 단계의 `skip:` 표시, Architect의 "with checkpoint" 문장은 번들에 남아 있으므로 그 줄을 지운 원본 변경은 가져오지 않는다.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(mstack): 에이전트용 문서를 감사하고 줄이는 no-prose를 번들에 더한다

pstack 0.15.51(cursor/plugins#1422)의 `no-prose` 스킬을 그대로 가져온다. 저장소의 에이전트용 문서에서 코드·타입·린트로 강제할 수 있는 규칙을 옮기고, 남은 문장은 블라인드 제거 실험으로 효과를 확인한 것만 남긴다. `disable-model-invocation: true`이므로 사용자가 부를 때만 실행된다.

- 호출: `moonpa-mode`에서 no-prose를 이름으로 부르면 번들 스킬을 연다. `mstack:help`가 읽는 번들 도움말에 행과 예시를 더한다.
- 런타임 대응: 두 어댑터에 행을 더한다. `.cursor/rules/`, `.cursor/skills/` 목록은 각 런타임의 지침 파일로 넓히고, 원본 Eval 플레이북 링크와 다른 회사 모델 판정자는 mstack Eval을 따른다.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: pstack 0.15.51까지의 원본 변경 검토 결과를 기록한다

0.15.36(`bb68f23`)과 0.15.51(`8bfaf67`) 사이에서 번들이 따라가지 않은 파일 85개를 흡수 5, 건너뜀 41, 보류 39로 나눈 기록을 `docs/pstack-0.15.51.md`에 둔다. 비교 재현 방법, 흡수 전후의 분류별 개수, `poteto-mode` 개정에 대한 권장을 함께 적는다. 번들의 기준은 0.15.36으로 둔다.

ADR-0002의 채택하지 않은 목록에 이번에 정한 것을 더하고, README가 새 기록도 가리키게 한다.

Refs #45

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(adr): 원본 PR 번호가 이 저장소의 이슈로 연결되지 않게 한다

Co-Authored-By: Claude Fable 5.2 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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