Repository navigation
feat(formal-verification): prove the ci-lanes carry-forward promise - #16886
Conversation
Add .claude/skills/formal-ci-lanes-carry-forward: a TLA+ model of the ci-lanes commit status on one pull request head, written by full runs of PR Require Checks (mark-lanes and ci-status) and read by a contract-only run through the pinned ci-workflows aggregate-results composite. Yield.cfg (the open pull request's setting) and YieldNoHold.cfg (the draft's) hold NoStaleCarry, HeldPassIsNewer and PassCarriesSuccess. With yield-to-full-run 'false' NoStaleCarry breaks, so the check can fail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rent main Main re-pinned the aggregate-results action (v0.75.0) and changed the covered workflow after the first sync commit. The model needed no change. Line citations move by one, both cfgs and the seeded break were rerun with the same state counts, and the strict-reading result is recorded as a known limit with its ten steps. Co-Authored-By: Claude Fable 5.2 <[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. |
|
claude-security-review reviewed Security review: PR #16886 (head 87406bf)I found no security issues. I read every hunk of all 6 changed files. What the change does. It adds one project skill, What I checked:
Known limit (context, not a finding). Embedded text in PR context. None tells the lane to pass the PR, skip a check, drop a finding or post somewhere else. Spend. None that bills. Running the TLC checks uses local compute on the operator's machine only. critical-findings: 0 |
|
claude-review reviewed Code review: no blocking findingsThis PR adds a TLA+ formal check for one promise: a contract-only What I checked against the code
Not independently verified (author-claimed): TLC state counts and timings, the seeded-break results (5,056 / 7,972 states), the Closing issue #15773
Other criteria
Spend: none beyond the model-checker runs an operator starts by hand (about 3–4 min of local TLC per cfg). There is no billed resource. Loosened-check verdict: fail (default; the prompt gave no Verifier dropped 0 of 0 candidates. |
Closes #15773
Siblings: #16704
Summary
The dogfood #15773 asks for: a second promise in this repository taken through
/formal-verification:specify create, with a seeded break the check catches. The promise is that a contract-onlyCI Statusrun never carries an olderci-lanessuccess while a full run is in flight; a break would let a pull request merge past red lanes. This adds the consumer skill.claude/skills/formal-ci-lanes-carry-forward/and changes no product code or workflow.An agent generated the skill by following the
specifyskill's files in this repository. The installed plugin's/formal-verification:specifywas not invoked, because the plugin is not installed in the building session. The owner accepted that for closing #15773 (2026-11-17, "go w/ recommended"); one recorded capture run of the installed skill is owed on #16383.Fix
model/CarryForward.tlamodels the full runs, the mark-lanes marker, the verdict write and the contract-only run's list, read, verify, hold and decide steps. Each action cites its lines inpr-require-checks.ymland in the pinnedaggregate-resultsaction.NoStaleCarry(a passing contract-only run carries no success an in-flight full run is about to replace),HeldPassIsNewer(after a hold, only a success newer than the held runs passes) andPassCarriesSuccess(a pass needs a success whose writer was verified).Yield.cfg(the open pull request hold) andYieldNoHold.cfg(the draft setting with no hold).SKILL.mdrecords the tool and why, the bounds, what the model leaves out and the known results.sync.yamlpins both checks and the seeded break to a commit on main.Known limit, decided by the owner (2026-11-17, "Go with recommendations."): the listing is the moment the run decides. A full run created between the contract-only run's last listing and its pass is not seen. The stricter rule with no such exemption,
NoStaleCarryAtPass, is defined in the model, breaks in 10 steps, and is recorded under "Known results" with its trace. It is not shipped as a check.Verification
Yield.cfg: 4,788,560 distinct states, every rule holds (TLC 4 min 6 s).YieldNoHold.cfg: 880,975 distinct states, every rule holds (46 s). Both rerun after main was merged in, with the same counts as before the merge.yield-to-full-run: 'false'on the Aggregate lane results step, mirrored asYield = FALSE.NoStaleCarrybreaks after 5,056 distinct states (Yield.cfg) and 7,972 (YieldNoHold.cfg), on an 11-step path.node plugins/formal-verification/scripts/check.mjs --default-ref refs/remotes/origin/main:2 formal-<area> skill(s), 0 failure(s), 0 warning(s).scripts/silent-skip-exemptions.txt), and the ci-workflows compare between the two pins lists 19 changed files, none under.github/actions/pr-require-checks/aggregate-results/. So no modelled step changed.SKILL.mdlists under "Not covered"; whether GitHub's required check could turn green inside the known-limit window, which was not tested.Related
createandcheckforms), chore(formal-verification): move the claim-protocol sync commit past #16709 #16737 (the first skill's sync commit), Let the pr-verify capture record a command-running skill's drive run #16383 (the recorded run owed), Add the formal-verification specify skill's refresh action #15775 (waits on Add the formal-verification specify skill's propose, create and check forms #15773)🤖 Generated with Claude Code