Add TypeScript verification skills#25
Conversation
Add two agent skills covering verification of TypeScript and JavaScript: - `fast-check` — property-based testing with fast-check 4.x: arbitrary design and the filtering trap, model-based (stateful) testing with commands, race-condition detection with the scheduler, failure replay, and 3.x-to-4.x migration notes. - `lemmascript` — formal verification with LemmaScript (tech preview): the `//@` annotation surface and spec expression language, the Dafny `regen` three-way-merge edit loop, the Lean four-file scheme, recurring proof techniques, brownfield strategy, and CI wiring. Each skill follows the progressive-discovery layout: a SKILL.md overview with detail split into `references/` files. The skills cross-reference each other so sampled properties escalate to proof where the property is load-bearing, and proofs keep a fast-check regression net beneath them. Content is grounded in the upstream sources as of July 2026: fast-check 4.8.0 (fast-check.dev docs and migration guide) and LemmaScript SPEC.md v0.5.x, DESIGN.md, and GETTING_STARTED.md.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Reviewer's GuideAdds three new TypeScript verification-related skills (fast-check property-based testing, LemmaScript formal verification, and ODW workflow testing) along with reference documents, giving agents structured guidance on when and how to use sampled property testing, machine-checked proof, and deterministic workflow tests for JavaScript/TypeScript and ODW scripts. Flow diagram for selecting TypeScript verification skillsflowchart TD
user_request["User asks about verifying JS/TS or ODW workflows"]
decision_kind{"What needs verification?"}
js_ts_logic["JS/TS function or library behavior"]
critical_property["Load-bearing property that must always hold"]
odw_workflow["ODW workflow script behavior"]
fast_check_skill["Use fast-check sampled property tests"]
lemmascript_skill["Use LemmaScript formal verification"]
odw_testing_skill["Use ODW deterministic workflow tests"]
user_request --> decision_kind
decision_kind --> js_ts_logic
decision_kind --> critical_property
decision_kind --> odw_workflow
js_ts_logic --> fast_check_skill
critical_property --> lemmascript_skill
odw_workflow --> odw_testing_skill
fast_check_skill -->|"Escalate when sampled testing is insufficient"| lemmascript_skill
lemmascript_skill -->|"Keep broad regression net"| fast_check_skill
odw_testing_skill --> odw_layers{"Pick test layer 0-6"}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Summary
This branch adds TypeScript verification guidance so agents can choose the right level of assurance for JavaScript and TypeScript work: sampled property testing with fast-check, machine-checked proof with LemmaScript, and deterministic test layers for ODW workflow scripts. It also carries the ODW testing skill that is present on the local
mainbranch but not yet onorigin/main, because the branch was cut from that local commit.No roadmap task or issue is referenced by the branch. No execplan is present for this branch; the only execplan in the repository, docs/execplans/adopt-vendcurl.md, is a completed historical plan for unrelated vendcurl work.
Review walkthrough
origin/main.Validation
git diff --check origin/main...HEAD: passed.make all 2>&1 | tee /tmp/make-all-agent-helper-scripts-typescript-verification-skills.out: failed aftercheck-fmt,lint, andtypecheckpassed;pytestreported 79 passed and 1 failed.Failure detail:
Notes
The failing validation path is unchanged by this branch: rust-entrypoint-system has the same
VERSION_CODENAMElookup onorigin/main, and the branch diff does not touch tests/test_rust_entrypoints.py.Summary by Sourcery
Add new skills documentation for testing and formal verification of TypeScript/JavaScript and ODW workflows.
Documentation:
odw-testingskill describing layered testing strategies for Open Dynamic Workflows, including parse gates, helper-unit tests, fixture repos, simulations, mock-adapter end-to-end runs, and smoke tests.fast-checkskill that explains when and how to use fast-check 4.x for property-based testing in TypeScript/JavaScript, with references on arbitraries, model-based testing, and race-condition detection.lemmascriptskill that explains how to apply LemmaScript for formal verification of TypeScript, including annotations, Dafny/Lean workflows, and brownfield adoption guidance, with detailed reference guides.