Repository navigation
Feat(formal-verification): port statechart compiler and formal verification skills - #24
Merged
Merged
Conversation
Owner
Author
Verification Verdict: CLEAN at
|
Owner
Author
Independent PR Verification Verdict: PASS+NOTES
Diff & Invariant Review
Verification Commands & Results
Notes
|
…cation skills Restore upstream create-formal-verification-skill rigor and add maintain-formal-verification-skill targeting Antigravity Brain Artifact formal_verification_report.md. Port the upstream TLA+ statechart compiler and offline test suite into skills/statechart/scripts, integrate dual-mode Brain Artifact rendering and Pele SVG export, exclude test fixtures from release zips in scripts/package-plugin.sh, add make test-statechart, and index the new skill in README.md.
jtaroreh
force-pushed
the
feat/agystack-pr2-formal-verification
branch
from
November 23, 2026 00:48
bc5e91a to
73428c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
agystack stripped formal verification upkeep and replaced
statechartwith hand-written diagrams. That dropped code-to-model traceability, scratch-break mutation proofs, and TLC model checking. Porting the upstream formal verification skills and TLA+ statechart compiler restores those checks while rendering results natively in Antigravity Brain Artifacts.Scope
skills/maintain-formal-verification-skill/SKILL.mdwith four outcomes (in sync,updated,bug,blocked), verification-only edit scope, six-step sync-commit diff pass, mandatory scratch-break mutation proof, and output toformal_verification_report.md.skills/create-formal-verification-skill/SKILL.mdto keep agystack's four-domain applicability quick selector andformal_verification_report.mdartifact output while restoring code-to-model traceability, indivisible-step fidelity, scratch-break proof, anti-weakening guard (findings stay findings), coverage map plus sync-commit SHA, and links to/statechartand/maintain-formal-verification-skill.skills/statechart/SKILL.mdfor Mode 1 (verified TLC model viascripts/statechart, embeddingchart.mmdandreport.mdintostatechart_<slug>.md) and Mode 2 (explicitly labeled unverified design sketches), and createdskills/statechart/references/render.mdfor optional Pele SVG export.statechartlauncher, and offlinetest/corpus intoskills/statechart/scripts/, renamed@cursor-skill/statechartto@agystack/statechartinskills/statechart/scripts/package.json, and updatedlinkedLauncherinskills/statechart/scripts/test/cli.test.tsto resolvefs.realpathSync(os.tmpdir())so relative symlink tests pass on macOS/varsymlinks.*/scripts/test/*exclusions and requiredstatechart/statechart.ts/pipeline.tsarchive assertions inscripts/package-plugin.sh, addedtest-statecharttoMakefile, and indexed/maintain-formal-verification-skillinREADME.md.Tradeoffs
scripts/package-plugin.shships the ~200 KB compiler and strips the 3.6 MBskills/statechart/scripts/test/tree from release zips instead of shipping fixtures, keepingagystack-0.17.0.zipat 478,633 bytes (+64,485 bytes vs trunk 414,148 bytes).skills/statechart/scripts/test/cli.test.tsresolvesos.tmpdir()viafs.realpathSyncsolinkedLaunchercomputes the true relative depth on macOS/private/var, leaving compiler TypeScript and corpus fixtures unchanged.Blast Radius
This PR touches only the formal-verification skills,
skills/statechart/scripts/, packaging exclusions inscripts/package-plugin.sh,Makefile, and oneREADME.mdcatalog row.tests/test_antigravity_invariants.pyandtests/test_skill_catalog.pypass with zero.cursorleakage across skills.Verification
uv run ruff check .andmake lintpassed with zero errors (shellcheckskipped locally because it is not installed onPATH).uv run pytest -v tests/passed (412 passed, 3 skipped, 153 subtests passed in 24.17s; the 3 skips are live GCS tests gated onAGYSTACK_LIVE_BUCKET).bun run typecheckandbun testinskills/poteto-mode/scriptspassed (47 pass, 0 fail).make test-statechartpassed (229 pass, 0 failacrosspipeline.test.ts,messages.test.ts,chart.test.ts, andcli.test.tsin60.33s;cli.test.tsruns 159 sequential child-process tests).skills/statechart/scripts/statechart --helpprinted usage and exited 2 under both Nodev24.9.0and Bun1.3.14.uv run python skills/setup-agystack/scripts/setup_runtime.py --doctorreturnedOK.bash scripts/package-plugin.sh --testpassed, andbash scripts/package-plugin.shproduced a 478,633-byte archive containingskills/statechart/scripts/pipeline.tsandstatechart.tswith zeroscripts/testentries.