Skip to content

feat(qa): a SEQUANT_AC marker in the QA skill — one machine-anchored line per criterion, read first by the #1525 producer, prose parse as fallback; retires the 80% parse (PROJECT-DISCUSSION §10) #1622

Open

Description

@admarble

Epic: graph-2026-10-review-surface Tier: judgment Execution: sequant_run Blocked by: #1525 (the plugin freeze lifted 2026-11-06)

PROJECT-DISCUSSION §10's first post-freeze item (docs/internal/graph-2026-10-review-surface/PROJECT-DISCUSSION.md); the class #1525's spec recorded as deliberately local ("class tracked in #N").

Problem

#1525's producer parses the QA comment's prose for per-AC status. #1524 measured that parse at 80% of ACs across the 12-fixture corpus (3 of 75 labels wrong, pinned as KNOWN_MISSES in src/lib/workflow/ac-status.test.ts), below RD-B's 90% bar, so RS-02 shipped with unknown as the common case and §10 named this marker as its replacement. The QA skill already writes three machine-anchored markers (SEQUANT_MUTATION, SEQUANT_QA_GAPS, SEQUANT_PHASE); per-AC status has none, so the only producer scrapes an output format the skill does not promise. Prior fixes on that scrape: the parseQaVerdict first-match fix (v2.18.0), parseQaSummary (#964, #1194), qa-gaps-marker.ts. Three fixes on one class is the stop rule; the marker ends the class.

Decisions

ID Decision Rejected alternative
M-1 One marker line per criterion, HTML-comment anchored like SEQUANT_MUTATION: `<!-- SEQUANT_AC: {"ac":"AC-N","status":"met not_met
M-2 recordAcStatuses reads markers first; when the output carries at least one marker the prose parse is not consulted; otherwise the prose parse runs unchanged (older skill versions, other drivers) removing the prose parse now (breaks every pinned skill)
M-3 The status enum is #1525's five; no sixth a partial status

Acceptance Criteria

  • AC-1: The QA skill emits the marker, mirrors in sync. Evidence: grep -c 'SEQUANT_AC:' .claude/skills/qa/SKILL.md → ≥ 1 and npm run lint:skill-sync → exit 0
  • AC-2: The producer prefers markers. Evidence: npx vitest run src/lib/workflow/ac-status.test.ts -t "marker" → ≥ 2 passed, 0 failed (an output whose markers and prose rows disagree yields the marker statuses; an output with no markers yields the prose parse)
  • AC-2 is classified as a gate test by isGateTestEvidence; the PR body carries its SEQUANT_MUTATION record (remove the marker branch from the producer → the disagreeing case fails; restore).
  • AC-3: The 12-fixture test passes unchanged. Evidence: npx vitest run src/lib/workflow/ac-status.test.ts -t "fixture" → ≥ 13 passed, 0 failed
  • AC-4: One testbed QA run after the skill change yields a marker per declared AC and no unknown for a declared AC. Evidence: that run's acs[] from the run log, pasted in the PR body (human check)

May touch

.claude/skills/qa/SKILL.md and its templates/skills/qa/SKILL.md mirror, plugin/ copies via sync:skills, src/lib/workflow/ac-status.ts, src/lib/workflow/ac-status.test.ts, CHANGELOG.

Non-Goals

Activity

  1. added
    enhancement
    graph-2026-10-review-surface
    on Oct 28, 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

    enhancementgraph-2026-10-review-surface

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions