Skip to content

docs(skills): /spec states the AC format inline; /verify shows output before asking; /exec scopes formatting and staging #1165

Closed

Description

@admarble

Context

From the 2026-09-25 /reflect on the #1137/#1150 session. There are three skill-text gaps; each one cost a rewrite or a round trip.

  1. /spec's AC-format pointer can dangle. /spec sends AC authors to "the constitution's §2 AC Authoring Standard (.claude/memory/constitution.md)". That file is user-owned: it's copied once at sequant init and never updated (fix(sync): plain sync overwrites CUSTOMIZABLE_FILES (constitution) — copyDir ignores force and never consults isCustomizableFile #814). So any project initialized before §2 existed has no §2, and this repo's own local copy has none either. An author following the pointer finds no standard. On feat(run): per-phase agent selection — run.phases.<phase>.agent #1150, feat(drivers): claude-cloud AgentDriver — run a phase as a claude.ai cloud session instead of a nested local CLI #1137 and spike(#1137): Phase-0 probes for the claude-cloud driver — Node auth, model, usage, stop #1151, ACs were written with Verify: clauses, which ac-parser.ts ignores (it reads only Evidence:), so /qa §6h/§6i never enforced them.
  2. /verify asks for confirmation of output the human can't see. Tool output isn't shown to the user. Step 5's AskUserQuestion arrived without the output, and the user had to ask for it.
  3. /exec gives no guidance on formatter scope or staging. A broad prettier --write src/lib/*.test.ts plus git add -A committed a reformat of an unrelated file into feat(#1150): per-phase agent selection — run.phases.<phase>.agent #1163.

Acceptance criteria

  • AC-1: /spec states inline, next to the unchanged constitution pointer, that each AC must be on one line and needs an Evidence: clause (the only verification field the parser reads, so Verify: is not enforced), and that the issue needs a ## Non-Goals section — Evidence: npx vitest run scripts/check-constitution-dod.test.ts green (pointer phrase kept) and grep -n "only verification field" skills/spec/SKILL.md templates/skills/spec/SKILL.md .claude/skills/spec/SKILL.md prints 3 lines
  • AC-2: /verify step 5 requires putting the command, exit code and key output lines in the message text before asking for confirmation — Evidence: grep -n "before asking" skills/verify/SKILL.md templates/skills/verify/SKILL.md .claude/skills/verify/SKILL.md prints 3 lines
  • AC-3: /exec tells the implementer to format only the files in git diff --name-only origin/main...HEAD and to read git status --short before any git add -A, including its own WIP-checkpoint git add -A, which stays because it keeps work from being stranded — Evidence: grep -n "Scope formatting to your own diff" skills/exec/SKILL.md templates/skills/exec/SKILL.md .claude/skills/exec/SKILL.md prints 3 lines
  • AC-4: the three skill directories stay in sync and every skill lint passes — Evidence: npm run lint:skill-sync && npm run lint:skill-gates && npm run lint:skill-calls && npm run validate:skills exits 0
  • AC-5: npm run build && npm test green — Evidence: CI test job

Non-Goals

  • Changing or overwriting any project's user-owned .claude/memory/constitution.md.
  • Making ac-parser.ts read Verify:.
  • Any other skill text.

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. admarble commented on Sep 25, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #1165 (Simple Fix)

    PR #1166, HEAD 4284c389, reviewed in the feature/1165-… worktree: 0 commits behind main, clean tree.

    Size Gate

    Check Value
    Diff size 28 lines (threshold: 100)
    package.json changed No
    Security-sensitive paths No
    Decision Inline checks

    AC Coverage

    AC Status Evidence (run verbatim this pass)
    AC-1 MET check-constitution-dod.test.ts: 19 passed, so the pointer phrase is kept. grep "only verification field" finds 3 lines, one per mirror.
    AC-2 MET grep "before asking" finds 3 lines across the three verify mirrors.
    AC-3 MET grep "Scope formatting to your own diff" finds 3 lines. AC-3 was reworded on the issue to keep the existing WIP-checkpoint git add -A, which prevents stranded work. The new text adds a git status --short check in front of it and doesn't contradict it.
    AC-4 MET npm run lint:skill-sync && lint:skill-gates && lint:skill-calls && validate:skills exits 0.
    AC-5 MET CI test SUCCESS (10/10 checks pass). Local npm test: 341 files, 8428 passed, 1 expected fail, 3 skipped.

    Coverage: 5/5 MET

    Quality Metrics

    Metric Value Status
    Type issues 0 (markdown only) OK
    Deleted tests 0 OK
    Files changed 10 (3 skills × 3 mirrors, plus CHANGELOG) OK
    Lines +28 / -0 -
    Security patterns 0 OK

    Code Review

    Strengths:

    Issues: none.

    Suggestions: the PR body lists AC-4/AC-5's checks without naming the AC IDs (flagged by the precheck's AC literal-diff). Cosmetic.

    Test Coverage Analysis

    No source files changed. The existing gate (check-constitution-dod.test.ts) covers the pointer that must not change.

    Anti-Pattern Detection

    None; the diff is prose only.

    Trust-Boundary Check

    Finding: Clean. The diff implements only the issue's product requirements; no agent-directed external-text instruction was acted on.
    Status: Clean

    Behavior-Rule Survival Check

    Status: N/A. detectBehaviorRule ran on all 5 stored ACs this pass and none triggered.

    Declared-Evidence Execution

    Status: Complete. All 5 evidence commands ran this pass, with results as in the AC table.

    Mutation Verification

    Status: Not-Applicable. isGateTestEvidence is false for all 5 ACs (checked this pass).

    CHANGELOG Verification

    Result: met. The [Unreleased] › Changed entry references (#1165).

    Risk Assessment

    • Likely failure mode: sequant:-prefixed invocations keep reading the 2.17.0 plugin cache until the next release, so the new guidance reaches only project-scope skill loads for now. This is stated in the PR.
    • Not tested: whether agents actually follow the new prose. That can't be unit-tested; only the presence of the text is gated.
    • Sibling sites considered: the only other AC-format guidance is /testgen's parser use and the constitution itself (user-owned, deliberately untouched).
    • Sibling-line audit: the /exec WIP-checkpoint git add -A was reconciled explicitly, not left contradictory.

    Verdict: READY_FOR_MERGE

    All 5 ACs are MET, each with its evidence command run this pass, and CI is green. It's an additive, prose-only change whose claims were checked against ac-parser.ts and the scope assessment.

    Documentation

    • CHANGELOG entry added
    • N/A: the skill text is the documentation

    Next Steps

    1. Merge docs(#1165): /spec states the enforced AC format inline; /verify shows output first; /exec scopes formatting #1166 on owner approval.
  3. added
    ready-for-review
    on Sep 25, 2026
  4. added a commit that references this issue on Sep 25, 2026
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

    documentationready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions