Repository navigation
Description
Summary
For diffs that touch only non-source files (markdown, CHANGELOG, JSON config), /qa currently forces NEEDS_VERIFICATION whenever any CI check is pending — even if the pending checks are the build matrix (build (20.x), build (22.x)), which can't possibly fail on a markdown-only change. This wastes wakeup cycles waiting for redundant CI to confirm what typecheck (already green at QA time) has already proven.
Origin: /fullsolve 562 on 2026-05-03. The fix was a 16-line markdown-only diff (3 SKILL.md mirrors + CHANGELOG entry). At QA time, 5/8 CI checks had already passed (typecheck, validate-skills, Hooks Validation, validate-plugin, Setup Directory Creation). The 3 pending checks (build matrix + Plugin Structure Validation) were structurally incapable of failing — the diff had no TypeScript surface. Strict CI rule forced NEEDS_VERIFICATION, requiring a 2-min wakeup cycle to re-verify.
Current Behavior
.claude/skills/qa/SKILL.md Phase 1 / verdict algorithm:
Important: Do NOT give READY_FOR_MERGE if any CI check is still pending. The correct verdict is NEEDS_VERIFICATION...
Applied uniformly regardless of diff type.
Proposed Behavior
When git diff main...HEAD --name-only shows ONLY non-source extensions (.md, .json for CHANGELOG/config — explicitly excluding package.json and tsconfig*.json which DO affect builds), pending build/test CI checks are informational, not verdict-gating. Verdict gates only on:
validate-skills(skill structure correctness)Hooks Validationvalidate-plugin- Any explicitly markdown-relevant CI step (lint-markdown if added)
Acceptance Criteria
- AC-1: Detection.
/qadetects markdown-only diffs by file extension. Excluded from "non-source" treatment:package.json,package-lock.json,tsconfig*.json,.github/workflows/**, any*.config.{js,ts}. - AC-2: Verdict logic. When all changed files match the markdown-only criteria AND no
package.json/tsconfigchanges, pending build-matrix checks (build (*),Plugin Structure Validation) do not blockREADY_FOR_MERGE. Other pending checks (validate-skills, etc.) still gate. - AC-3: Output transparency. QA output includes a section noting the downgrade: e.g., "Markdown-only diff detected — pending build-matrix checks treated as informational."
- AC-4: Configurable.
.sequant/settings.jsonflagqa.markdownOnlyCiRelaxed(default:true). Setting tofalserestores current strict behavior for paranoid projects. - AC-5: Test fixture. Unit test using a synthetic diff with only
.mdfiles, mocked CI response with mixed pass/pending, asserts verdict isREADY_FOR_MERGE(notNEEDS_VERIFICATION). - AC-6: 3-dir sync.
.claude/skills/qa/SKILL.md,skills/qa/SKILL.md,templates/skills/qa/SKILL.mdupdated identically.
Non-Goals
- Not changing how
/qaevaluates failed CI — failures still block. This is only about pending checks. - Not auto-detecting all "safe" diff types (e.g., test-only). Markdown is a clear case; test-only has more edge cases (e.g., test infrastructure changes affecting CI).
- Not changing the SMALL_DIFF size gate. This is a separate axis (file-type, not size).
Risks / Open Questions
package.jsonwhitelist edge case. A markdown-only PR that also bumps a dependency inpackage.jsonshould NOT be downgraded — explicit exclusion above. Verify the detection covers this.- Future build steps. If a future CI step runs only on markdown (e.g.,
lint-markdown, link-check), it must still gate. The whitelist of "safe to ignore" pending checks should be specific (build (*),Plugin Structure Validation) rather than a blanket "ignore all pending." - Project portability. The hardcoded check names (
build (20.x), etc.) are sequant-specific. Consumer projects have different CI step names. Could read from.sequant/settings.jsonor detect dynamically by check-step language match.
Complexity
small — ~50-100 LOC + tests. Verdict-algorithm tweak in QA SKILL.md (instruction text) plus a config flag.
Self-Assessed Workflow
spec → exec → qa — config-flag design needs spec discussion (default value, config key naming).
Related
- bug(fullsolve): unqualified Skill("loop") resolves to recurring-prompt skill, breaking quality loop #562 / fix(#562): qualify Skill("loop") in fullsolve as sequant:loop #565 — markdown-only fix that triggered this observation
Activity
admarble commentedon May 4, 2026
Assessment
→ PROCEED — Markdown-only diff CI gate relaxation; config flag design needs spec
Workflow:
spec → exec → qawith-q⚠ Project-portability question on hardcoded CI step names (
build (20.x)) — spec should resolve (config? dynamic detection?)⚠ Edits qa/SKILL.md — sequence after #573 if both run (shared file)
admarble commentedon May 6, 2026
Plan Complete
AC Checklist
detectMarkdownOnlyDiff(files)returns true for.md-only changes; false whenpackage.json,package-lock.json,tsconfig*.json,*.config.{js,ts,mjs,cjs}, or.github/workflows/**is present. (Verify: Unit Test)filterRelaxablePending(pendingChecks, settings.qa.markdownOnlySafeCiPatterns)partitions pending CI intorelaxed(matches allowlist globs) andgating(everything else). Markdown-only diff + flag on ⇒pending_countusesgating.lengthonly. (Verify: Unit Test)qa.markdownOnlyCiRelaxed: boolean(defaulttrue) ANDqa.markdownOnlySafeCiPatterns: string[](default["build (*)", "Plugin Structure Validation"]) added toQASettings, Zod schema, defaults, allowed-keys map. (Verify: Unit Test).claude/skills/qa/SKILL.md,skills/qa/SKILL.md,templates/skills/qa/SKILL.mdupdated identically.diff -qbetween any pair returns no output. (Verify: Inspection)Implementation Plan
Phase 1 — Settings + helpers
QASettings(interface, Zod, defaults, allowed-keys) insrc/lib/settings.tswithmarkdownOnlyCiRelaxedandmarkdownOnlySafeCiPatterns.src/lib/qa/markdown-only-ci.ts:detectMarkdownOnlyDiff()+filterRelaxablePending()(pure, ~40 LOC).Phase 2 — Tests
3. Extend
src/lib/qa-settings.test.tsfor the two new fields.4. New
src/lib/qa/markdown-only-ci.test.tscovering AC-1/AC-2/AC-5 (positive, denylist, glob behavior, flag-disabled).Phase 3 — SKILL.md sync (3 mirrors)
5. Update QA SKILL.md CI Status section + verdict algorithm; per-level Edits with
diff -qverification before commit.Phase 4 — Verify
6.
npm run typecheck+ targeted vitest runs + 3-mirror diff.Key Decisions Resolved from
/assessqa.markdownOnlySafeCiPatterns. Consumer projects override; sequant ships with["build (*)", "Plugin Structure Validation"]as defaults.markdownOnlySafeCiPatternsare relaxed; everything else gates by default.Open Questions
*→.*converter (recommended) vs.picomatchdep. Recommendation: inline.Workflow
spec → exec → qa (no
/test— no UI surface; no testgen — fixtures are tightly specified inline in AC-5)Ready to implement.
admarble commentedon May 6, 2026
/fullsolve Complete
Status: READY_FOR_MERGE
PR: #588 — #588
Branch:
feature/569-qa-markdown-only-ci-relaxedCommit:
d367767Progress Summary
AC Coverage
src/lib/qa/markdown-only-ci.tsdetectMarkdownOnlyDiff(); 10 it.each tests cover all denylist categories + case-insensitive matchingfilterRelaxablePending()partitions pending intorelaxed+gating; SKILL.mdVerdict Integrationtable updatedqa.markdownOnlyCiRelaxed(defaulttrue) +qa.markdownOnlySafeCiPatternsarray; tests cover defaults, no-section, flag-false, custom-patternsmarkdown-only-ci.test.tsAC-5 block asserts both flag-on (gating: []⇒ READY_FOR_MERGE) and flag-off (gating > 0⇒ NEEDS_VERIFICATION) pathsdiff -qbetween all threeqa/SKILL.mdmirrors → byte-identicalQuality Metrics
npm run build: ✅ cleannpm run lint: ✅ clean (max-warnings 0)any): 0/fullsolve 562fixture (the issue's motivating example) dogfood-tested inline during /qa: pipeline outputsgating: []⇒ READY_FOR_MERGE path ✅Key Decisions
/assess's portability concern about hardcoded CI step names both resolved by addingqa.markdownOnlySafeCiPatternsas a configurable settings array. Default ships sequant-specific (["build (*)", "Plugin Structure Validation"]); consumer projects override via.sequant/settings.json.feedback_qa_agent_worktree_verification.md, inline review is more accurate than agents on worktree code under ~600 unique lines.Documentation
[Unreleased] / ### Addedsrc/lib/settings.ts:976) updated with both new fieldsRisk Assessment
npx tsx -einvocation depends on the calling model constructingSEQUANT_QA_RELAX_FILES/SEQUANT_QA_RELAX_PENDINGenv vars correctly (newline-joined). On parse failure, helper safely falls through toenabled: false(strict gating preserved) — conservative failure mode, no false-positive READY_FOR_MERGE.Optional Follow-Up
detectMarkdownOnlyDiff()denylist'sNON_MARKDOWN_BUILD_FILESset +tsconfig*regex +*.config.*regex are currently dead code under the.md-only first loop (only.github/workflows/is reachable for.mdfiles). Behavior is correct; the redundancy hedges against future predicate broadening but is anti-pattern per CLAUDE.md's "no defensive code for scenarios that can't happen". ~10 LOC + test description tweaks if pursued. Not blocking — note as observation.Ready for human review and merge.
chore(#569): address /qa-surfaced gaps before merge
feat(#569): /qa relaxes md-only diffs from pending CI build matrix (#588