Repository navigation
feat(formal-verification): add the specify skill's propose, create and check forms - #16704
Conversation
…d check forms /formal-verification:specify proposes the promise most worth proving (bare, writes nothing), builds one formal-<area> skill with a seeded break caught in a throwaway git worktree (create "<promise>", with --unattended as a dry run), and runs the contract check (check). It names no verification tool and installs none; the tool is chosen for the consumer's repository and recorded only in its formal-<area> skill (ADR 0101), replacing her "TLA+ is the default". scripts/check.mjs is the deterministic contract check, with tests. The CI Status job runs the default branch's copy over the head's .claude/skills/formal-* folders as data. AGENTS.md opts this repository in to the enforcement ladder's formal-verification rung. Refs: #15773 Co-Authored-By: Claude Opus 5.5 <[email protected]>
check.mjs refuses a symlinked formal-area folder, SKILL.md or sync.yaml and a skills folder or named folder outside the repository, through the cascade's fileState and escapes, now exported to every carrier. Globs match by a linear NFA, git runs with lazy fetch off, every name and path in the report is JSON-quoted, outside_model entries must be repository-relative, ## Run must give the command on a line of its own, and sections must keep the contract's order. The CI Status step checks out only .claude/skills from the event commit, passes --skills-dir .claude/skills, and has a two-minute timeout. Both carry-refusal lists add the plugin's defaults and schemas. The plugin description keeps the chart and setup text from main. Refs: #15773 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f62ef0c19
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ate on the ladder opt-in globMatch left the **/ state after any character, so src/**/lock.js matched src/unlock.js. The state now leaves only after a / or at once for zero folders, and stays linear. create reads a synced copy of the enforcement ladder and checks that the project instructions opt in to its formal-verification rung before any proposal or write: attended, it goes on only on a yes for the run; unattended, it reports blocked: formal verification not opted in. The bare form says whether the repository has opted in. Refs: #15773 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: incremental, 472eaa2..10e3f14I found no security issues in this push. This lane already reviewed an earlier head, so this pass reports only CRITICAL and IMPORTANT findings. critical-findings: 0 What I checked
Instruction surfaces (
Tests ( Other notes
|
|
claude-review reviewed Code review: incremental,
|
…e default branch A sync commit only a feature branch holds passes on the pull request but is discarded by a squash or rebase merge, so check then fails in the merge queue and on every later change. The contract and create now say both commits are default-branch commits (the merge base or later, with identical covered files), and the sync commit moves in a follow-up once a change to the covered code lands. check.mjs takes --default-ref: a commit not on that ref fails, and a ref that does not resolve warns once and skips the check. The CI Status step passes refs/remotes/origin/<default branch>, which the fetch-depth 0 checkout fetches on pull_request and merge_group alike. Refs: #15773 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #15773
Summary
Adds
/formal-verification:specify, slice 2 of 3 of the formal-verification plugin: a bare form that proposes the promise worth proving,create "<promise>"that writes a consumerformal-<area>skill and proves a seeded break is caught, andcheck, a deterministic pass or fail gate on the consumer contract. This pull request delivers every done-when item of #15773 except the two dogfood items.Fix
plugins/formal-verification/skills/specify/with a tool-neutralchoose-a-tool.md; it names no verification tool, installs none, and reaches other skills only by slash reference with an "if installed" fallback.plugins/formal-verification/scripts/check.mjs(read-only): fails on missing or wrong frontmatter, a missing or out-of-order section, a missing or invalidsync.yaml, a sync commit that is not an ancestor ofHEAD, a covered path missing atHEAD, or no run command; warns on stale coverage (on_stale: failmakes it fail) and on verification skills outside the contract.CI Statusgains two steps that run the default branch's copy ofcheck.mjsover.claude/skills/formal-*of the event commit. No pull request code runs, the folder is fixed on the command line, the step has a two-minute limit, and both steps skip until the script is on the default branch, so they do not run on this pull request.createchecks the enforcement ladder's opt-in first: with no opt-in in the project instructions it goes on only on a person's yes for that run, and unattended it reportsblocked: formal verification not opted in.check.mjs --default-ref <ref>fails one that is not, and theCI Statusstep passes the default branch's ref.check.mjsrefuses symlinks and paths that leave the project, matchescoversglobs in linear time, turns git's lazy fetch off and quotes every name it prints.lib/config-cascade.mjsexportsfileStateandescapesfor that containment check, so each plugin carrying a synced copy takes a patch fragment.CI Statusjob now loads.AGENTS.mdopts this repository in to the enforcement ladder'sformal-verificationrung.docs/upstream/cursor-pstack.mdwith ADR 0101 as the reason.Verification
node --testoncheck.test.mjs: 49 of 49 pass; each new test failed against the previous script first. The toolchain, merge-holds and config-cascade suites pass.CI Statusstep's layout reproduced locally on this pull request's test merge commit (blobless clone, sparse checkout of.claude/skills/, the script from a separate copy,--default-ref refs/remotes/origin/main):1 formal-<area> skill(s), 0 failure(s), 0 warning(s), exit 0, against the existingformal-claim-protocolskill. A ref that does not resolve prints one warning and exits 0.CI Statussteps on a real runner (they skip until this merges; the first pull request after the merge is watched), paid eval runs of the three newsp-*cases, and the full.githubsuite, which CI runs.Related
Remaining
create, and its seeded break is caught.#15773 is finished when the dogfood pull request lands, after the owner's yes on the bare form's proposal.
🤖 Generated with Claude Code