Repository navigation
Description
Problem
/spec's AC quality check misses two kinds of AC that pass review and then stall or ship half-done.
1. An edit to a committed copy of something deployed elsewhere, with nobody owning the deploy. The repo holds a copy of a routine prompt, a hosted config, an env var, a hook, a skill or an MCP server pin. The issue edits the copy, the PR merges, and the live thing keeps running the old text, because no AC or Non-Goal names who deploys it and when.
- ai-devtools-weekly chore: remove dead scripts/state/update.ts references from skill templates #502 changed
docs/routines/draft-builder-prompt.md. No node owned theRemoteTrigger update, so the live routine ran the old prompt. - Sequant hits the same class repeatedly: phase agents run the committed skills, not the working-tree sync (fix(run): skills freshness is read from the working tree, but phases use committed skills — an uncommitted sync names the wrong version and silently runs old skills #1354). The plugin cache never auto-updates (feat(hooks): warn when the installed plugin cache is stale — plugin-channel installs never auto-update #784). Hook fixes need a plugin update because the repo and plugin-cache hooks both fire. MCP phases run the npm-pinned server, not
main.
2. A count AC that can't be satisfied at launch and doesn't say what it waits on. ai-devtools-weekly #499 required ≥ 3 rows. The third row came from a 19:30Z scheduled run, so two verified PRs sat for four hours waiting on something the AC never mentioned. ACs like this end in NEEDS_VERIFICATION or a stalled merge, and nobody can tell from the issue when they will clear.
Proposal
Add two questions to /spec's AC Quality Check. They are prompts answered from the issue and the project's constitution or CLAUDE.md, not mechanical checks: /spec cannot generally tell that a file is a deployed copy.
- Does any AC edit a committed copy of something that runs from elsewhere (a routine or trigger prompt, a hosted config, an installed hook, skill or plugin, a pinned server)? If so, an AC or Non-Goal names who deploys it and when.
- Can every count or threshold AC be satisfied when exec runs? If one depends on a scheduled job or an external event, the AC names that clock (
≥ 3 rows; the third lands with the 19:30Z read on <date>) or is rewritten to what the source has published (all rows published (N at filing)).
Acceptance Criteria
- AC-1:
/spec's AC Quality Check section contains the deploy-owner question, worded so that it is answered from the issue and project docs and is flagged only when the issue edits such a copy without an AC or Non-Goal naming the deployer. Evidence: the gate test in AC-4 asserts the question inside the AC Quality Check section, mutation-verified by deleting the question - AC-2:
/spec's AC Quality Check section contains the clock question for count and threshold ACs, with the two rewrite forms shown as examples. Evidence: the gate test in AC-4 asserts the question and both example forms inside the section, mutation-verified by deleting the question - AC-3: Both questions are present in all three mirrored skill directories (
.claude/skills/spec/,templates/skills/spec/,plugin/skills/spec/), andnpm run sync:skillsleaves no diff. Evidence:npm run sync:skills && git diff --exit-code -- .claude/skills templates/skills plugin/skillsexits 0, andgrep -cfor each question returns 1 in each of the three SKILL.md files - AC-4: A gate test reads only the AC Quality Check section of
spec/SKILL.md(not the whole file) and asserts both questions. Evidence:npx vitest runon the new test passes, mutation-verified with aSEQUANT_MUTATIONmarker in the PR body naming the test file path first
Non-Goals
- No mechanical detection of deployed copies.
- No change to
/qaverdict logic.
Blocked
Plugin freeze: this edits .claude/skills/, templates/skills/ and plugin/. It must not merge until the owner lifts the freeze. Queue it after the freeze.
Origin
Lessons from the ai-devtools-weekly cloudgate graph, recorded in ~/.claude/skills/graph-plan/SKILL.md on 2026-10-14 (#499 count clock, #502 routine deploy).
Activity