Skip to content

chore(plugin): retire the root hooks/ and skills/ copies once ./plugin ships #1271

Closed

Description

@admarble

Tier: mechanical Found: 2026-10-01, #1265 spec, which deferred this to keep that PR revertible with a one-line source flip.

Problem. Once #1265 makes plugin/ the shipped plugin (marketplace.json "source": "./plugin", generated from templates/), the root hooks/ and skills/ trees are dead copies.

  • Root skills/ is the third mirror that scripts/check-skill-sync.ts:40-42 and scripts/lint-skill-calls.ts:55 enforce. Every skill edit has to be made three times, and plugin/skills/ would make it four.
  • Root hooks/ is hand-maintained, outside scripts/sync-hooks.sh, and had already drifted from templates/hooks/ (missing the relay-check and coverage blocks; it still carried npx prettier after fix(hooks): post-tool hook downloads and runs the latest prettier via npx in every project that doesn't have it #1264).
  • CI tests the dead copy. .github/workflows/plugin-install-test.yml still tests the root copies: path filters at :9-10,19-20, the skill scan at :171-199, and bash -n and the mock-input runs at :295-397.

AC

  • AC-1: Root skills/ and hooks/ are deleted. check-skill-sync.ts and lint-skill-calls.ts scan plugin/skills in place of skills. Evidence: test ! -e skills && test ! -e hooks, plus npm run lint:skill-sync && npm run lint:skill-calls
  • AC-2: Every check in plugin-install-test.yml that ran against root hooks/ or skills/ runs against plugin/hooks/ and plugin/skills/, and the path filters name plugin/**. Evidence: grep -nE "(^|[ '\"])(hooks|skills)/" .github/workflows/plugin-install-test.yml matches only plugin/-prefixed paths, and the workflow passes on the PR
  • AC-3: No doc, script or skill outside templates/, .claude/ and plugin/ refers to root skills/<name>/SKILL.md or hooks/*.sh as a live path. Evidence: git grep -nE "(^|[^a-z/._-])(skills/[a-z-]+/SKILL\.md|hooks/[a-z-]+\.sh)" -- . ':!templates' ':!.claude' ':!plugin' ':!CHANGELOG.md' ':!docs/adr' matches only historical references, each reviewed in QA
  • AC-4: The .agents/skills symlink (→ ../.claude/skills) is unaffected and still resolves. Evidence: test -f .agents/skills/qa/SKILL.md

Non-Goals

  • Changing templates/ or .claude/ mirroring.
  • Rewriting CHANGELOG or ADR history that names old paths.

Graph metadata

May touch

  • skills/, hooks/ (deleted); scripts/check-skill-sync.ts, scripts/lint-skill-calls.ts, scripts/prepare-marketplace.ts; .github/workflows/plugin-install-test.yml; docs under docs/features/ that cite root skill paths

Activity

  1. added
    refactor
    on Oct 1, 2026
  2. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    Runner context (2026-10-04, main @ eecbb12, after #1276, #1287 and #1295 merged) — read before spec and exec

    1. The blast radius is much larger than "May touch". About 40 files name the root skills tree as a mirror root (git grep -lE '^[[:space:]]*"skills",?' -- '*.ts'):

    2. Producers: this is a design question, not 40 edits. The list of skill mirror roots has one real owner, scripts/check-skill-sync.ts:37-47 (SOURCE_DIR + the mirror list). Every gate test re-declares it by hand, and the copies already disagree: fullsolve-merge-gate-skill.test.ts has no plugin/skills. The recommended shape:

    • export the roots (canonical + mirrors) from check-skill-sync.ts, or a tiny shared module next to it;
    • have every test and script import that list;
    • delete root skills there once.

    That costs the same number of file edits as removing "skills" from each array by hand, and it ends the drift class. If spec judges the shared-constant refactor out of scope for a mechanical issue, stop and surface it. Don't silently pick the per-array edit. The owner will rule. If the ruling is to stay local, record it as "deliberately local, class tracked in #N".

    3. Mirror direction. .claude/skills is canonical. npm run sync:skills writes templates/skills, skills and plugin/skills from it. After deleting root skills/, the sync must no longer recreate it (check-skill-sync.ts --fix). AC-1's npm run lint:skill-sync will show this.

    4. AC-2 is a workflow-step gate. As of #1276, /qa §6i counts a changed .github/workflows/*.yml as a gate-test file. A SEQUANT_MUTATION marker's failedTest may therefore start with .github/workflows/plugin-install-test.yml > …. Note that plugin-install-test.yml:256 changed in #1296: it now validates .claude-plugin/marketplace.json, not .. Keep that line.

    5. exec and qa phases: do not run the full npm test. It runs past the 30-minute phase wall. Run only:

    • the test files you touched (npx vitest run <files>),
    • npm run lint:skill-sync, npm run lint:skill-calls, npx tsc --noEmit,

    in the foreground, and commit WIP every ~10 minutes. CI runs the full suite.

  3. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    Complexity: Complex (4 ACs + 3 derived, ~8 directories) — refactor label

    AC Quality Check

    lintAcceptanceCriteria: all 4 ACs pass. Every AC carries a parseable Evidence: clause (AC-1/2/4 → unit_test, AC-3 → integration_test). Each command-shaped Evidence: was run against main @ eecbb12:

    AC Evidence on main today Gates?
    AC-1 test ! -e skills && test ! -e hooks fails ✅ gates
    AC-2 the grep matches 13 non-plugin/ lines ✅ gates. ⚠️ It misses claude --plugin-dir . (plugin-install-test.yml:267), which loads the repo root as a plugin. With the root trees gone, that root has no skills or hooks. See derived AC-7.
    AC-3 51 hits, many historical (docs/internal/graph-2026-09/issues/*, docs/investigations/*) ✅ gates, but it is a review list, not a pass/fail check. QA classifies each hit.
    AC-4 already passes Regression guard (by design: "unaffected"). Not vacuous.

    Gap the ACs don't cover: root hooks/hooks.json is not a dead copy. It is the producer of plugin/hooks/hooks.json: scripts/sync-hooks.sh:55-63 copies root → plugin, and src/lib/relay/__tests__/hook-sync.test.ts:90 asserts byte-identity against root. If AC-1 deletes it as written, the sync silently stops and the parity test fails with ENOENT. See derived AC-5.


    Scope Assessment

    Non-Goals: templates/ and .claude/ mirroring unchanged; CHANGELOG and ADR history not rewritten.

    Metric Value Status
    Feature count 1 (retire one mirror) ✅
    AC items 4 + 3 derived ✅
    Directory spread ~8 (scripts/, src/lib/__tests__, __tests__/, src/commands, .github/workflows, docs/, root skills/ + hooks/ deleted) ⚠️
    Files touched ~60 TS files name root skills (most are gate tests with a hand-written SKILL_ROOTS); 6 name root hooks/ ⚠️

    Verdict: ⚠️ SCOPE_WARNING. The edit count is large but mechanical, and one shared constant collapses most of it. Quality loop on.


    Acceptance Criteria

    AC-1: Root skills/ and hooks/ deleted; sync + call-lint scan plugin/skills

    Verification: Integration Test (CLI)
    Scenario: Given the trees are deleted → When npm run lint:skill-sync && npm run lint:skill-calls and npm run sync:skills → Then both pass, and --fix does not recreate skills/.
    Assumptions: MIRROR_DIRS/DIR_LABELS (check-skill-sync.ts:37-47) and SCAN_DIRS (lint-skill-calls.ts:55) both lose "skills". plugin/skills is already in both.

    AC-2: plugin-install-test.yml tests plugin/ only

    Verification: Integration Test (the workflow runs on the PR)
    Scenario: Given the PR → When the workflow runs → Then paths: (:9-10, :20-21) drop hooks/** and skills/** (plugin/** is already present); the skill scan (:212) iterates plugin/skills/*/; bash -n, the hooks.json validation and the mock-input runs (:363-465) use plugin/hooks/*.
    Assumptions: Keep :256 (.claude-plugin/marketplace.json validate, #1296) and marketplace add ./ (the marketplace lives at root). This is a workflow-step gate: per #1276, a SEQUANT_MUTATION failedTest may start with .github/workflows/plugin-install-test.yml > ….

    AC-3: No live root-path references outside templates/.claude/plugin

    Verification: Integration Test (git grep) + QA review of each hit
    Live references to fix:

    • Tests: __tests__/{pre-tool-hook,hook-corpus,plugin-staleness-warning}.integration.test.ts (HOOK_COPIES: root → plugin/hooks/pre-tool.sh); src/lib/workflow/token-utils.test.ts:471,484 (→ plugin/hooks/...); scripts/check-constitution-dod.test.ts:41; scripts/spec/ground-check.test.ts:66,238; src/lib/__tests__/assess-skill.test.ts:21.
    • Docs: docs/features/skill-cli-drift-prevention.md:62, docs/internal/plugin-path-audit.md.
    • Comments: src/lib/assess/types.ts:17, src/commands/assess-render.ts:6, scripts/sync-hooks.sh:17-20, check-skill-sync.ts:3-13 header.

    Historical (leave, QA confirms): docs/internal/graph-2026-09/issues/*, docs/investigations/*, __tests__/fixtures/hook-corpus.jsonl, the tautology-detector corpus strings, and .sequant/upstream/baseline.json.

    False positives (fixture or consumer .claude/skills): bin/cli.ts, src/commands/{init,sync,status}.ts, src/lib/templates.ts.

    AC-4: .agents/skills symlink still resolves

    Verification: Unit Test (test -f .agents/skills/qa/SKILL.md). Untouched, because it points at .claude/skills.

    Derived AC-5: plugin/hooks/hooks.json becomes the hand-maintained source

    Verification: Unit Test
    Scenario: Given root hooks/ is gone → When npm run sync:hooks → Then it runs clean, with no root read. sync-hooks.sh:55-63 is removed. In hook-sync.test.ts:90, the root-vs-plugin byte-identity test is replaced by a structural check: every script plugin/hooks/hooks.json registers exists in plugin/hooks/. That keeps a gate on the manifest after its only parity check goes away. Mutation-verify it.
    Rejected: templates/hooks/hooks.json. templates/hooks/* is copied into consumer .claude/hooks/ by sync-hooks.sh/sequant init, so the manifest would ship to every consumer.

    Derived AC-6: One exported list of skill mirror roots (class fix)

    Verification: Unit Test
    Scenario: check-skill-sync.ts exports SKILL_SOURCE_ROOT + SKILL_MIRROR_ROOTS (repo-relative strings). It is already import-safe: main() is guarded at :203, and 13 tests already import collectFiles from it. Every gate test and script that re-declares the list imports it instead.
    Evidence: git grep -nE '^\s*"skills",?$|\[[^]]*"skills"' -- '*.ts' returns no mirror-root arrays (QA classifies any remaining fixture hits).
    Exceptions (keep local, delete "skills" only):

    • lint-skill-gates.ts:62 and generate-constitution-dod.ts:35-37 are first-match precedence lists that also run in consumer layouts, not mirror lists.
    • A test that deliberately covers a subset of roots states why in a comment.

    Derived AC-7: the --plugin-dir smoke step loads plugin/

    plugin-install-test.yml:267 claude --plugin-dir . → --plugin-dir ./plugin (plus the echo on :265).


    Implementation Plan

    Phase 1: Single owner for the mirror list (AC-6, AC-1)

    1. In scripts/check-skill-sync.ts, export SKILL_SOURCE_ROOT = ".claude/skills" and SKILL_MIRROR_ROOTS = ["templates/skills", "plugin/skills"]. Derive MIRROR_DIRS/DIR_LABELS from them, and update the header comment ("three-directory" → source + 2 mirrors).
    2. In scripts/lint-skill-calls.ts, set SCAN_DIRS = [SKILL_SOURCE_ROOT, ...SKILL_MIRROR_ROOTS].
    3. Sweep every hand-declared SKILL_ROOTS/MIRROR_ROOTS/SCAN_ROOTS in src/lib/__tests__/*-skill*.test.ts, __tests__/integration/*skill*.integration.test.ts, __tests__/canary/downstream.integration.test.ts, src/lib/workflow/mutation-marker-6i-skill.integration.test.ts, scripts/*.test.ts, src/lib/{qa,assess}/*.test.ts and src/lib/stacks.no-npm-fallback-gate.test.ts to import the constant. Check each git grep hit before editing it. fullsolve-merge-gate-skill.test.ts:28 currently lacks plugin/skills, and the import fixes that.
    4. Remove "skills" from the precedence lists in lint-skill-gates.ts and generate-constitution-dod.ts, plus check-constitution-dod.test.ts:41.

    Phase 2: hooks (AC-5, AC-3 hook tests)

    1. Remove the root→plugin hooks.json copy from sync-hooks.sh and rewrite its header. Replace hook-sync.test.ts:90 with the registration-integrity check.
    2. Point HOOK_COPIES in the 3 pre-tool integration tests and token-utils.test.ts:466-485 at plugin/hooks/. Note: root post-tool.sh had already drifted (no relay-check, npx prettier). Repointing to the generated copy is the fix, not a regression.

    Phase 3: delete + CI + docs (AC-1, AC-2, AC-3, AC-7)

    1. git rm -r skills hooks. Then run npm run sync:skills and npm run sync:hooks, and confirm neither recreates them.
    2. Edit plugin-install-test.yml per AC-2 and AC-7.
    3. Fix the live doc and comment references (AC-3 list). Add the ADR (below).

    Verification for exec and qa (runner instruction, do not run full npm test):

    • npx vitest run <touched test files>
    • npm run lint:skill-sync && npm run lint:skill-calls && npm run lint:skill-gates && npx tsc --noEmit
    • bash scripts/sync-hooks.sh

    Commit WIP every ~10 minutes. CI runs the full suite.


    Design Review

    1. Where does this logic belong? The mirror-root list belongs to scripts/check-skill-sync.ts, which already defines source → mirror direction and already exports collectFiles/EXCLUDE to 13 tests. The hooks manifest belongs to plugin/hooks/hooks.json itself: it has no template and only the plugin consumes it.
    2. What's the simplest correct approach? Export the list once and import it everywhere. That is the same number of file edits as deleting "skills" from ~25 arrays by hand.
      • Rejected: per-array deletion. It leaves N hand copies that have already diverged.
      • Rejected: templates/hooks/hooks.json (it would leak to consumers).
    3. What existing pattern does this follow, and how often has it been re-patched? Pattern: a hand-declared mirror-root array per test.
    4. What would a senior reviewer challenge?
      • "Why not delete root .claude-plugin/plugin.json too?" It is out of scope. /release bumps it, and marketplace source already points at ./plugin. See Open Questions.
      • "Does claude plugin marketplace add ./ still work?" Yes. It reads .claude-plugin/marketplace.json, which stays.
    5. Every producer and consumer of the artifact this changes:
      • Root skills/. Producer: check-skill-sync.ts --fix. Consumers: lint-skill-calls.ts, lint-skill-gates.ts, generate-constitution-dod.ts, ~50 gate tests, plugin-install-test.yml:212. It is not shipped: package.json files lists plugin, not skills, and prepare-marketplace.ts copies templates/skills.
      • Root hooks/*.sh. No producer (hand copies, already drifted). Consumers: 4 tests and plugin-install-test.yml:363-465.
      • Root hooks/hooks.json. Producer: hand-edited. Consumers: sync-hooks.sh (→ plugin), hook-sync.test.ts, token-utils.test.ts:484, plugin-install-test.yml:373. Moving to a single owner in plugin/hooks/ leaves one producer.

    ADR required: the plan picks between designs (shared constant vs per-array edits; where the hooks manifest lives). The exec PR adds docs/adr/NNNN-retire-root-plugin-mirrors.md (next number; shape per docs/adr/README.md).


    Feature Quality Planning

    Notable items:

    • Mutation records (CLAUDE.md, §6i) for:
      • AC-2: e.g. point the skill scan back at an empty dir. failedTest starts with .github/workflows/plugin-install-test.yml > ….
      • AC-5: drop a script from plugin/hooks/ that hooks.json registers. The new hook-sync.test.ts case fails.
      • AC-6: re-add a stray root to a gate test. Nothing should fail, which shows why the shared import is the guard. Record it honestly; don't claim a gate that doesn't exist.
    • Ordered mocks risk: none. No new git calls.
    • CI path filters: with skills/** removed, a .claude/skills-only edit no longer triggers plugin-install-test.yml. Add 'templates/skills/**' and 'templates/hooks/**' to paths:, because plugin/ is generated from them (the edits land in plugin/** anyway after sync, but the template is the real input).

    Derived ACs

    Source Derived AC Priority
    Producer analysis AC-5: plugin/hooks/hooks.json is the source; sync stops reading root; registration-integrity test High
    Recurrence (Q3) AC-6: export SKILL_SOURCE_ROOT/SKILL_MIRROR_ROOTS; gate tests import it High
    AC-2 grep blind spot AC-7: --plugin-dir ./plugin Medium

    Open Questions

    1. AC-6 widens a mechanical issue to ~50 files. Recommendation: do it (runner comment §2; ≥2 prior re-patches). If the owner rules otherwise, record "deliberately local, class tracked in #N" and file the follow-up. Impact if wrong: the next mirror change repeats fix(plugin): ship a slim ./plugin folder — the repo-root plugin pulls ~700 MB of dev dependencies into every install and fails directory review limits #1265's miss.
    2. Root .claude-plugin/plugin.json and the root memory/** path filter. Recommendation: leave both (non-goal; /release writes plugin.json). File a follow-up if the root manifest is now dead.
    3. In-flight conflicts. Several old worktrees (feat(worktree): configurable worktree root #1199, fix(hooks): pre-tool.sh reset --hard guard reads git status from the hook's cwd, not the command's target worktree #1228, fix(run): sequant run has two PR producers — exec opens the PR itself and createPR returns it untouched, dropping the QA note, ready-gate report and summary #1247, feat(spec): Design Review stops on recurrence and lists producers; spec can halt before exec when the AC's lever is wrong #1250, fix(qa): §6i mutation markers naming a CI workflow step always classify test_not_in_diff — the diff list only greps .test./.spec. files #1276, fix(skills): narrow broad allowed-tools grants — bare Bash, Bash(*), and runner wildcards hold the directory listing for review #1287) touch root skills/ or hooks/, but all of their issues are closed and no open PR touches either tree. No conflict risk. Prune the stale worktrees separately.

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: enabled
    Reasoning: This is a broad mechanical refactor across ~60 files with a CI-workflow gate. The gate tests that cover it already exist and only get repointed, so testgen adds nothing. The loop catches misses in the sweep.


    Label Review

    Current: refactor
    Recommended: refactor, planned
    Quality Loop: enabled (refactor plus SCOPE_WARNING)

  4. added
    planned
    on Oct 4, 2026
  5. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #1271

    PR #1299 @ bf084cb1. This is a standard-pipeline review: 118 files changed, +403 / −23,225. Most of the deletions are the 52 removed root files.

    AC Coverage

    AC Source Status Notes
    AC-1 Original MET test ! -e skills && test ! -e hooks passes. lint:skill-sync: 47 synced, 0 diverged, 0 missing. lint:skill-calls: 138 files, no violations. check-skill-sync.ts --fix and sync-hooks.sh do not recreate either tree.
    AC-2 Original MET The AC grep returns nothing. Path filters keep plugin/** and add templates/{hooks,skills}/**. The skill scan, bash -n, the hooks.json check, the tmp-path check and the mock-input runs all use plugin/. Plugin Structure Validation and Hooks Validation are green on the PR.
    AC-3 Original MET 21 grep hits, each classified. History: docs/internal/graph-2026-09/issues/*, docs/investigations/*, hook-corpus.jsonl. Test data: tautology-detector strings; file-list fixtures in markdown-only-ci.test.ts:248 and qa-markdown-only-ci-snippet…:66; assess-collision-detect.test.ts:254, which asserts the path is absent. No live reference is left.
    AC-4 Original MET test -f .agents/skills/qa/SKILL.md passes. The symlink is untouched (-> ../.claude/skills).
    AC-5 Derived MET sync-hooks.sh no longer reads root. hook-sync.test.ts now has a registration check. I re-ran the mutation myself: repointing capture-tokens.sh → nope.sh in plugin/hooks/hooks.json fails exactly that test (1 of 5). Restored.
    AC-6 Derived MET SKILL_SOURCE_ROOT, SKILL_MIRROR_ROOTS and SKILL_ROOTS are exported from check-skill-sync.ts. The spec's evidence grep matches only bin/cli.ts:127 (--only skills, a false positive). lint-skill-gates.ts and generate-constitution-dod.ts stay local by design, and comments say so.
    AC-7 Derived MET claude --plugin-dir ./plugin

    Coverage: 7/7 (4 original, 3 derived)

    CI Status

    All 11 checks pass, including test, canary, typecheck, validate-skills, validate-plugin, Plugin Structure Validation and Hooks Validation. The branch is 1 commit behind main (#1298). That commit touches neither tree, and git merge-tree shows a clean merge.

    Local verification

    • npx vitest run on all 45 touched test files: 2168 passed
    • npx tsc --noEmit: clean
    • lint:skill-sync, lint:skill-calls and lint:skill-gates: clean
    • bash scripts/sync-hooks.sh: "hooks already in sync"

    Code Review

    Strengths

    • The class fix landed. One exported list replaces about 40 hand copies. Several copies were missing plugin/skills, including fullsolve-merge-gate-skill, and now check the shipped copy too.
    • Exec caught a break the AC-2 grep could not see: the hooks.json step resolved script paths from the repo root. That step now prefixes plugin/.
    • The ADR (0008) and its index entry are present. adr-convention.test.ts passes.

    Issues

    • The PR body is truncated inside an HTML comment. It ends at <!-- SEQUANT_MUTATION: {"ac":"AC-2","mutation":"dropped the p with no closing -->. That has two effects:
      1. Fixes #1271 falls inside the unclosed comment. GraphQL closingIssuesReferences for chore(#1271): retire the root hooks/ and skills/ copies; one shared list of skill mirror roots #1299 returns [], so merging will not close this issue.
      2. The AC-5 and AC-6 mutation results exist only as prose Mutation-verified: lines, with no parseable markers. §6i is Not-Applicable here (none of AC-1 to AC-4 is a gate-test AC), so this doesn't floor the verdict. It still misses the CLAUDE.md record format.
    • scripts/hook-corpus.ts carries roughly 30 lines of unrelated prettier reformatting. That is review noise, not a defect.

    Risk Assessment

    • Likely failure mode: hook-corpus.ts --diff <ref> now runs git archive <ref> templates/hooks. That fails for any ref older than templates/hooks/, despite the code comment saying the directory "exists at every ref". In practice the refs people diff against are recent.
    • Not tested: the hook-corpus --diff path at a historical ref. The workflow's --plugin-dir ./plugin step does run in CI and passed.
    • Sibling sites considered: I searched for every reader of the root skills/hooks paths: join(…, "skills"|"hooks"), quoted skills//hooks/ literals in *.ts/*.sh/*.yml/*.json outside the mirrors, and the spec's AC-6 grep. The remaining hits are fixtures (templatesDir / OUTPUT_DIR joins in the templates.test/update tests and prepare-marketplace.ts) or the false positives listed above.
    • Sibling-line audit: in plugin-install-test.yml, every hooks/ and skills/ use in the workflow was checked. marketplace add ./ and the :256 marketplace validation are correctly kept.

    Trust-Boundary Check

    Finding: Clean. The diff implements only product requirements. The runner's process guidance (skip the full npm test, commit WIP) is benign maintainer instruction.
    Status: Clean

    Behavior-Rule Survival Check — N/A (no AC triggers the heuristic)

    Declared-Evidence Execution

    AC Evidence Executed? Result
    AC-1 test ! -e skills && test ! -e hooks, lint:skill-sync, lint:skill-calls Yes ✅
    AC-2 AC grep + workflow on PR Yes ✅ no matches; workflow green
    AC-3 git grep … Yes ✅ 21 hits, all history or fixtures
    AC-4 test -f .agents/skills/qa/SKILL.md Yes ✅

    Status: Complete

    Mutation Verification

    None of AC-1 to AC-4 is a gate-test AC per isGateTestEvidence, so the status is Not-Applicable. AC-5 was independently re-verified above.

    Script Verification (§11)

    scripts/ changed and no /verify evidence was posted. The logic changes (sync-hooks.sh copy removed, hook-corpus.ts source path) do not qualify for an override. I ran sync-hooks.sh, check-skill-sync.ts --fix, lint-skill-calls and lint-skill-gates directly, all clean. hook-corpus.ts was not run. Status: Not Verified.

    CHANGELOG Verification — N/A (chore commits only)

    Adversarial Re-Read

    Findings:

    1. The PR body truncation above. It is real, and it breaks issue auto-close.
    2. The hook-corpus "every ref" comment overstates.
    3. No fixture gap: the spec's grep evidence for AC-2, AC-3 and AC-6 was run, and so were the runner's verification commands.

    No Non-Goal crept into scope: templates/ and .claude/ mirroring are unchanged, and CHANGELOG and ADR history are untouched.
    Status: Gaps Found

    Follow-up Ledger

    • Spec OQ-2: root .claude-plugin/plugin.json and the memory/** path filter. ⚠️ Unresolved: neither filed nor dropped.
    • Spec OQ-3: prune stale worktrees. Dropped: local housekeeping, not a code item.

    Status: Unresolved

    Verdict: AC_MET_BUT_NOT_A_PLUS

    All 7 ACs are met, CI is green and the touched tests pass. The verdict is not READY_FOR_MERGE for four reasons:

    Next Steps

    1. Repair the PR body: close or rewrite the SEQUANT_MUTATION markers (AC-2, AC-5, AC-6) and keep Fixes #1271 outside any comment.
    2. File or drop spec OQ-2 (the root .claude-plugin/plugin.json follow-up).
    3. Optional: run /verify 1271 --command "npx tsx scripts/hook-corpus.ts --diff HEAD~3", and soften the "exists at every ref" comment.
  6. added
    needs-improvement
    on Oct 4, 2026
  7. admarble commented on Oct 4, 2026

    @admarble
    ContributorAuthor

    QA Verdict: AC_MET_BUT_NOT_A_PLUS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-improvementplannedrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions