Skip to content

chore(formal-verification): move the claim-protocol sync commit past #16709 - #16737

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/formal-claim-protocol-sync
Nov 17, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/formal-claim-protocol-sync

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: upkeep that the formal-claim-protocol skill's "Updating" section requires after #16709 changed two files the model covers.

Summary

#16709 added a run link below the lease marker in claim.sh and a sentence about it in CONTRACT.md. Both files are covered by the claim-protocol model, so the formal-skill step in CI Status warned that the coverage was stale. This moves the sync commit past that change. The model itself did not need to change.

Fix

  • No model or rule change. Every reader takes the lease from the marker and drops what follows it (wit_lease_json in lib/lease.sh cuts at the first -->), and renew and supersede rewrite the comment as the marker alone (wit_patch_lease_comment, wit_try_supersede_lease_comment in common.sh). The model has no variable for text after the marker.
  • Nine claim.sh line citations in model/ClaimProtocol.tla move down by four lines.
  • All four commit values in sync.yaml (two checks, two seeded breaks) move to 1af4762.

Verification

  • Both shipped configurations rerun with the chart script and tla2tools 1.7.4, --rerun-states 2000000: LocalLane.cfg 1,686,588 distinct states and LocalTriage.cfg 1,356,633, every rule holds in both. Both counts equal the recorded ones.
  • Seeded break rerun on a scratch copy of the model (the latest live lease wins instead of the earliest): OneHolder breaks after 1,415 distinct states (LocalLane) and 1,888 (LocalTriage), the recorded counts.
  • node plugins/formal-verification/scripts/check.mjs --default-ref origin/main: 1 formal-<area> skill(s), 0 failure(s), 0 warning(s).
  • Left out: the hand runs SKILL.md records at the old commit (without the view, and three claimants without renew) were not repeated, since no covered logic changed.

Related

🤖 Generated with Claude Code

…16709

#16709 added a run-link footer after the lease marker in claim.sh. Readers
take the lease from the marker alone (lib/lease.sh wit_lease_json), and
renew and supersede rewrite the marker without the footer, so the model
is unchanged. The four inserted lines move every claim.sh citation after
line 129 down by four; re-cite them.

Both shipped cfgs hold every rule at the same state counts (1,686,588 and
1,356,633), and the seeded break is caught after 1,415 and 1,888 distinct
states, as recorded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 14:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T14:07:01.583688Z d1d7d55 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed d1d7d5593e32c0c335e2503b37040b29298ead82: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read the whole change in both files. Both are under .claude/**, a trusted path, so each got the extra scrutiny that path calls for.

  • .claude/skills/formal-claim-protocol/model/ClaimProtocol.tla: only TLA+ comments change. Nine line-number citations of claim.sh (\* claim.sh:150 → :154 and the rest) move down by four lines. No action, invariant or variable changes, so the model's logic is the same.
  • .claude/skills/formal-claim-protocol/sync.yaml: the four commit: values (two checks, two seeded breaks) change from a548b3aa… to 1af47626…. The covers, command and seeded_break.change fields are unchanged. The commit value records which revision of the covered files the model was last checked against. Moving it forward changes no token scope, trusted actor, kill switch, merge hold or text that reaches a lane, and it grants no tools to a session.

Nothing in the diff deletes, narrows or softens a standing instruction, and no plugin manifest changes. No trust control is touched and no part of the severity bar is reached. The PR context contains no embedded instructions aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed d1d7d5593e32c0c335e2503b37040b29298ead82: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

No findings. This PR changes only comments and metadata. It moves the line citations for claim.sh in ClaimProtocol.tla and the four commit values in sync.yaml (two checks, two seeded breaks) to 1af476261a20. It changes no model logic or rules.

What I checked against claim.sh at head: every claim.sh citation that moved now points at the code it describes:

  • :121-136 posts the lease.
  • :141-145 / :141-144 is the _wit_claim_abort trap.
  • :154 is the checked lease-list read.
  • :155 is wit_lease_winner.
  • :160 is "Earliest LIVE lease wins."
  • :164-168 / :167 is the back-off with exit "$EX_CONFLICT".
  • :173-178 re-reads the assignees and adds the login back after a win.

The citations that did not move, at or below line 119 (:75-76, :78-80, :85-88, :93, :96-118, :104-113), still match. A grep of the model found no stale claim.sh citation left behind.

What I could not check:

  • I couldn't confirm that commit 1af476261a20 exists or that it comes after fix(ci): review lane warnings, loosened-check criterion and clearer lane reports #16709. This run has no git access.
  • The TLC reruns, seeded-break counts and check.mjs output in the PR description are the author's claims; I did not rerun them.
  • SKILL.md still records the earlier hand runs at a548b3aaab8c (lines 73 and 95). The PR says so and explains why: no covered logic changed.

Other notes:

  • No closing issue, so no acceptance criteria to check.
  • No plugin manifest changed.
  • Loosened-check verdict: fail by default (the prompt gave no loosened_check_verdict: line). No check is loosened: the change touches comments and sync metadata only.
  • Spend: none beyond normal CI.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 1e4451d Nov 17, 2026
79 checks passed
@kyle-sexton
kyle-sexton deleted the chore/formal-claim-protocol-sync branch November 17, 2026 14:18
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant