Repository navigation
Description
Problem
Claude Code v2.1.286 changed its commit guidance: "when your project or user skills include one named verify, Claude is now told to run it right before committing, except for docs-only and tests-only commits."
sequant init and /sequant:setup copy Sequant's skills into the project's .claude/skills/, including verify (templates/skills/verify/SKILL.md). That makes it a project skill named verify, which matches the new rule. In every project with Sequant installed, Claude is now told to run /verify before every code commit. The rule covers exec phase agents too, and they commit often.
Sequant's verify was not written for that trigger:
- It expects an issue number as its argument (§1 Parse Arguments).
- It posts a verification comment to the GitHub issue (§7,
allowed-tools: Bash(gh issue comment:*)). - Its description says "Use after /exec for script changes". It is a human-review step, not a pre-commit check.
The likely effects are extra time and tokens on every commit, and a risk of unrequested gh issue comment posts or an agent stalling for a missing argument.
Evidence that the rule is live: this repo's own Claude Code sessions now carry the system instruction "Always run /verify right before the commit command (never for docs or tests)."
/upstream classified this change as No Action Required (#1330, v2.1.286 assessment).
Options (decide in /spec)
- Rename the skill so it no longer matches (for example
verify-cli). Downstream projects keep a staleverifycopy untilsequant sync, so the sync must remove the old one. - Keep the name and give
verifya pre-commit-safe path: with no issue number, it runs nothing, posts nothing, and returns at once. - Adopt the new contract on purpose: make
verifya real pre-commit check (fast, local, no GitHub writes), and move today's evidence-posting flow under another name.
Acceptance Criteria
- AC-1: A reproduction is recorded before the fix: one
sequant runexec phase on a test issue in a project with.claude/skills/verify/present, on Claude Code ≥ 2.1.286, with the count of/verifyinvocations and ofgh issue commentcalls it made. Evidence: the phase transcript excerpt or log lines pasted in the PR body. - AC-2: After the fix, the same reproduction shows zero
gh issue commentcalls caused by the pre-commit guidance and no stall waiting for an issue number. Evidence: the same measurement re-run and pasted in the PR body. - AC-3:
sequant sync/sequant updateand/sequant:setupleave downstream projects in the fixed state, including projects that already have the old.claude/skills/verify/. Evidence: an integration test that seeds the old directory, runs the sync, and asserts the fixed layout, mutation-verified by skipping the migration step. - AC-4: Every reference to the skill (skills, docs, README, plugin skill list,
lint:skill-calls) matches the chosen option. Evidence:grep -rn "verify" .claude/skills templates/skills plugin/skills docs README.mdreviewed in QA, andnpm run lint:skill-sync && npm run lint:skill-callspass. - AC-5:
Struck 2026-10-14 (owner decision): superseded by feat(upstream): one digest per run with code-grounded triage — stop per-finding issues, advance the baseline on triage, dedupe against closed issues #1442, which replaces the keyword classifier with code-grounded triage and carries the v2.1.286/upstream's classifier gets a rule that flags changelog lines naming a skill, hook or command that Sequant shipsverifyline in its AC-2 fixture. Thename-collisioncategory shipped in fix(#1345): Claude Code ≥2.1.286 tells Claude to run any project skill namedverifybefore every commit — Sequant's verify expects an issue number and posts to GitHub #1347 stays.
Activity
admarble commentedon Oct 6, 2026
Complexity: Standard (5 ACs, 5 directories)
AC Quality Check
grep ... verifymatches every existing line today, so it gates nothing alone. The real gate islint:skill-syncandlint:skill-calls.Scope Assessment
Non-Goals:⚠️ not found in the issue. Proposed: no change to the
verifyphase contract when an issue number is given; no redesign of/qa§11 evidence.Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1: Reproduction recorded first
Verification: Manual Test
Scenario: Given a test issue and a project with
.claude/skills/verify/, on Claude Code ≥2.1.286 → When one exec phase runs → Then the/verifyandgh issue commentcounts are recorded.Assumptions: the guidance fires inside
sequant runexec agents, not only interactive sessions. Confirm this first; if it does not fire there, the severity drops.AC-2: Same measurement after the fix
Verification: Manual Test
Scenario: Same setup → Then 0
gh issue commentcalls from pre-commit guidance, no stall.AC-3: Sync/update/setup land the fixed state
Verification: Integration Test
Scenario: Given a temp project seeded with the old
.claude/skills/verify/SKILL.md→ When the sync/update path runs → Then the fixed layout exists. Mutation: skip the migration/copy step, and the test must fail.AC-4: All references match the chosen option
Verification: Integration Test (
npm run lint:skill-sync && npm run lint:skill-calls) plus a QA grep review.AC-5:
/upstreamclassifier flags shipped-name matchesVerification: Unit Test
Scenario: Given the v2.1.286 line ("when your project or user skills include one named
verify…") → WhenanalyzeChangeruns → Then the category is notno-actionand it passesselectIssueWorthy. Mutation: remove the rule, and the test fails.Implementation Plan
Phase 1: Reproduce (AC-1)
Phase 2: Fix (AC-2, AC-3, AC-4), Option 2
.claude/skills/verify/SKILL.md. Add a first section, "No issue number → return immediately": run nothing, post nothing, and say "no-op: /verify is an issue-scoped review step, not a pre-commit check". The guard must come before §1 Parse Arguments. Narrow nothing else.npm run sync:skillsto mirror totemplates/skills/verifyandplugin/skills/verify. Read all three after syncing./verifyis a no-op.Phase 3: Classifier (AC-5)
src/lib/upstream/relevance.tsthat matches changelog lines naming a Sequant-shipped skill, hook or command. Derive the names from the shipped skill list, not a hardcoded one. Test it with a fixture insrc/lib/upstream/__tests__/relevance.test.ts. Mutation-verify it.Design Review
relevance.ts.verifyis a registered phase (phase-registry.ts:271,skill: "verify", prompt "Run the /verify {issue} workflow"). It is also referenced by/qa§11 and--phases verify, so a rename breaks users and needs a removal step in sync. Rejected: Option 3, because it redefinesverifyand drops the evidence flow it exists for.sync:skills. The classifier misses keyword-matching changes that name shipped identifiers. The/upstreamclassifier is already known to file real impacts as No Action. I found no prior fix issues for averifycollision.phase-registry.ts(invokes/verify {issue}, which always has an issue number, so unaffected),/qaevidence lookup, docs (3 files),lint:skill-calls. One producer of the copied files (copyTemplates), so no divergence.ADR: Q2 names a rejected alternative, so the exec PR must include an ADR in
docs/adr/(next NNNN, shape perdocs/adr/README.md).Feature Quality Planning
.claude/.local/skills/verify/overrides.mdoverrides are read first by the skill, so a guard placed after that line can be overridden. Place it right after the override line.Open Questions
Recommended Workflow
Phases: exec → qa
Quality Loop: disabled
Reasoning: a skill-prompt edit plus a small classifier rule. Unit and integration tests are declared in AC-3 and AC-5, so
testgencould add stubs, but the tests are small enough to write in exec.Label Review
Current: bug, upstream. Recommended: unchanged, plus
planned.admarble commentedon Oct 6, 2026
QA Verdict: AC_MET_BUT_NOT_A_PLUS
AC coverage: 3/5 met
Gaps:
admarble commentedon Oct 6, 2026
First measurement (runner, 2026-10-06), from this issue's own
sequant run(PR #1347): the exec phase ran asclaude -pon Claude Code ≥ 2.1.286 with the unguardedverifyskill loaded. Its context contained "run/verifyright before thecommitcommand (never for docs or tests)", so the guidance does reach phase agents. Across 2 non-docs commits the agent called 0/verifyand 0gh issue comment. n = 1 run, and interactive sessions are not measured.This corrects the "likely effects" in the issue body: in the one measured run there was no effect. The exposure that remains is mostly interactive sessions, where Claude follows system-prompt guidance more readily and usually knows the issue number, so it would call
/verify <N>. #1347's guard covers only a bare/verify.AC text needs an owner decision: AC-2 ("after the fix, zero comments") cannot discriminate against a before count of zero. Options: rewrite AC-1/AC-2 to measure an interactive session, or drop them and record this measurement as the result.
Docs check: Claude Code's changelog says "project or user skills", so the namespaced plugin skill
sequant:verifyis probably not affected, but that isn't stated outright. It doesn't say whetherdisable-model-invocation: trueexempts a skill, and it documents no opt-out setting.fix(#1345): /verify no-ops for phase agents and self-invoked pre-comm…
refactor(#1345): drop dead ?? 0 on the required nameCollisions summar…
style(#1345): drop leftover parentheses in the batched actionable sum
style(#1345): prettier on the verify guard test
fix(#1345): /verify no-ops on Claude Code's pre-commit nudge; /upstre…
docs(#1346): recommend Claude Code 2.1.288 — the native rm analyzer m…
admarble commentedon Oct 9, 2026
Proposed replacement for AC-1 and AC-2. Reply "yes" and I'll swap these two lines into the issue body verbatim. The fix itself merged in #1347. These ACs are what keep the issue open, because the before-count was already 0 and the current AC-2 cannot discriminate.
AC-1 is ticked because its measurement exists. AC-2 now measures the case that is still exposed: an interactive session that knows its issue number, which only the prompt rule (case 3) guards. It needs a human-driven session, so it's yours or a later follow-up.
admarble commentedon Oct 13, 2026
AC-5 (a classifier rule for shipped skill names) is superseded by #1442. That issue replaces the keyword classifier with code-grounded triage, and its AC-2 fixture includes the v2.1.286
verifyline. If you agree, strike AC-5 here so this issue is gated on AC-2 (the interactive-session measurement) only.