Skip to content

fix(formal-verification): make specify refresh followable as written - #17002

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/specify-refresh-literal-follow
Nov 18, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/specify-refresh-literal-follow

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #15775

Summary

An agent followed /formal-verification:specify refresh literally twice on a ticket branch and listed 18 places where a step failed or could be read two ways. This fixes 15 of them in the skill text and in this repository's formal-claim-protocol skill, and leaves 3 with a reason.

Fix

  • refresh.md: read the fetched SHA right after the fetch instead of relying on FETCH_HEAD; unlock a scratch worktree this session locked before removing it; a missing runtime the tool needs leaves the check blocked, and its reading and classification still go in the report; how to run a ## Run slash command the session cannot invoke; how a ticket-branch pass treats a folder the ticket does not touch; a scratch commit subject that passes the repository's commit convention; reuse the recorded seeded break when the changes added no new behavior; the stale-coverage warning stays until the follow-up moves the sync commit.
  • create.md and formal-skill.md: the same unlock step, and seeded_break.change names the model edit where the check reads a model.
  • specify/SKILL.md: what <plugin-root> is when the plugin runs from a checkout.
  • formal-claim-protocol: both seeded-break counts, where the count is read (tlc.out), how the break is carried into the model (Min to Max in Judge and in ArbRunSup), and sync.yaml's change text names that edit.

Left as they are:

  • The scratch folder's location: the skill's "outside the repository" rule was followable; the other rule was one machine's policy.
  • "Push nothing": the rule is about refresh itself; the push came from the caller's brief.
  • The distinct-state count at the violation is not added to report.md: it needs the count carried from the TLC parse through to the report backend and changes every golden report for a broken rule. The consumer skill says where to read it instead.

Verification

  • node plugins/formal-verification/scripts/check.mjs --project-dir <worktree> --default-ref origin/main .claude/skills/formal-claim-protocol: 0 failure(s), 0 warning(s) before the edits and at the head.
  • scripts/check-spoke-plugin-root.sh --check: passes.
  • No script changed, so no test file was run. The model, the cfgs, the sync commits and the counts are unchanged.

Left out: the model checker, since no model or covered code changed.

Related

Remaining

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 17, 2026 20:32
refresh.md: read the tip SHA right after the fetch instead of relying
on FETCH_HEAD; restore the ticket's verification only when the commit
checked is the merge base; a missing runtime the tool needs leaves the
check blocked like a missing tool, and a blocked check is still read
and classified in the report with no verification edit; a Run slash
command that cannot be invoked is followed by hand with <plugin-root>
and explicit option values; a ticket-branch pass gives an untouched
folder the full pass at the merge base unless folders are named; check
names out-of-contract folders as WARN lines; the stale-coverage WARN
stays until the follow-up moves the sync commit; the scratch commit
uses a subject that passes the repository's commit convention; a change
with no new behavior reuses the recorded seeded break; the step 5
rerun stands for create.md's step 6; unlock a scratch worktree this
session locked before removing it.

create.md: a runtime counts as the tool in "Make sure the tool runs";
the same unlock before removal; a seeded break's change names the model
edit that carried it. The contract's seeded_break.change says the same.
SKILL.md: <plugin-root> when the plugin runs from a source checkout.

formal-claim-protocol: state both seeded-break counts and where the
count is read, how to carry the break into the model (Min to Max in
Judge and ArbRunSup), the view label caveat, how to run without the
plugin installed, and the expected stale-coverage warning; sync.yaml
change text names the model edit.

Refs: #15775

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… token in refresh

The spoke-plugin-root check refuses a skill spoke that writes the
plugin-root variable; refresh.md now says <plugin-root> stands for it.

Refs: #15775

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

chatgpt-codex-connector Bot commented Nov 18, 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-18T01:47:14.128441Z 3fd8e03 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

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44218293445

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no findings

I reviewed only what changed since 3fd8e03c. That is one file, plugins/formal-verification/skills/specify/reference/refresh.md, and I read its whole hunk.

What changed: the push adds one note in parentheses. It says the stale-coverage WARN that check keeps before the follow-up sync commit becomes a failure when on_stale: fail is set. The rest of the hunk only re-wraps the existing sentences. Their wording is the same.

What I checked:

  • Trusted paths. The file matches none of the trusted-path globs.
  • Instruction-surface lens. No rule is deleted, narrowed or softened. The new text describes a stricter outcome (a failure, not only a warning). I did not need the protected-class register, because there was no removal to check against it.
  • Trust controls and manifests. The change touches no script, workflow, action, plugin manifest or trust control.

This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings. It found none. The earlier review's summary had no findings, so nothing carries over.

Spend: none. The change uses no API credit and can start no charge.

Embedded text: none.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 3fd8e03c5308925244fd73aefa7482b70cd70a9d; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17002, incremental since 3fd8e03c

No findings. This was a blocking-only review, because this lane already reviewed an earlier head.

What changed: one file, plugins/formal-verification/skills/specify/reference/refresh.md. I read its whole hunk in the incremental diff.

The push adds "(a failure under on_stale: fail)" after the sentence saying check keeps its stale-coverage WARN. The rest of the paragraph is only rewrapped; its wording is unchanged. That fixes this lane's earlier finding (discussion_r4608274406): under on_stale: fail, check.mjs reports stale coverage as a failure, not a WARN (check.mjs#L251-L253). The owner resolved that thread, and the settled-threads file marks it lines changed since resolution: no. The new text raises no new problem.

Closing issue: none. The PR uses Refs: #15775, and the PR context file has no closing-issue section, so there were no acceptance criteria to check.

Loosened checks: Loosened-check verdict: fail. That is the default, because the prompt gave no loosened_check_verdict: line; there are 0 consumer patterns. The change is documentation only and loosens no check.

Spend: none; the change is documentation only.

Verification: I ran nothing. The check.mjs results in the PR description are the author's claims and are unverified.

Verifier dropped 0 of 0 candidates.

refresh told an agent on a ticket branch to expect a WARN from check
until the sync commit moves. check reports that condition as a failure
when on_stale resolves to fail (check.mjs:251-253), so the text now
names both.

Refs: #15775

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit df32cb3 Nov 18, 2026
51 checks passed
@kyle-sexton
kyle-sexton deleted the fix/specify-refresh-literal-follow branch November 18, 2026 02:15
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 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