You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add AC linting to /spec to catch vague acceptance criteria #201
Add static analysis of acceptance criteria in /spec to flag vague, untestable, or incomplete requirements before implementation begins.
Background
Extracted from #199 (RFC: ML/AI Infrastructure) as a high-value, low-complexity improvement.
Problem
Vague acceptance criteria lead to:
Ambiguous implementations
Subjective /qa verdicts
Wasted iteration cycles
Common issues:
"Should work properly" (what does "properly" mean?)
"Handle edge cases" (which edge cases?)
"Good performance" (what's the threshold?)
Missing error scenarios
No testable outcomes
Proposed Solution
Add AC linting step in /spec that flags:
Pattern
Issue
Suggestion
"should work" / "properly"
Vague
Specify measurable outcome
"handle errors"
Incomplete
List specific error types
"fast" / "performant"
Unmeasurable
Add latency/throughput threshold
No test criteria
Untestable
Add verification method
"etc." / "and more"
Open-ended
Enumerate all items
Example Output
## AC Quality Check
⚠️ AC-2: "System should handle errors gracefully"
→ Vague: What errors? What is "gracefully"?
→ Suggest: "System returns 400 status with error message for invalid input"
⚠️ AC-4: "Page loads quickly"
→ Unmeasurable: No threshold defined
→ Suggest: "Page loads in <2 seconds on 3G connection"
✅ AC-1, AC-3, AC-5: Clear and testable
Acceptance Criteria
/spec runs AC lint before generating plan
Flags common vague patterns (configurable list)
Suggests concrete alternatives where possible
Warning-only (doesn't block, but surfaces in output)
"etc.", "and more", "such as", "including but not limited to"
✅
Example Output:
## AC Quality Check
⚠️ **AC-2:** "System should handle errors gracefully"
→ Incomplete: error types not specified
→ Suggest: List specific error types and expected responses
⚠️ **AC-4:** "Page loads quickly"
→ Unmeasurable: "quickly" has no threshold
→ Suggest: Specify time limit (e.g., completes in <5 seconds)
✅ AC-1, AC-3, AC-5: Clear and testable
**Summary:** 2/5 AC items flagged for review
Checks Run
✅ npm test - 34 new tests pass (10 pre-existing failures in unrelated state-update-cli.test.ts)
Integration testing completed successfully after merge.
Tests Performed
Test
Result
Parse AC from markdown
✅ 4 items parsed correctly
Detect vague patterns
✅ "handles errors gracefully" flagged as incomplete
Detect unmeasurable
✅ "fast" flagged with threshold suggestion
Detect open-ended
✅ "including but not limited to" flagged
Pass clear AC
✅ "Returns 404 for missing resources" passed
Format output
✅ Proper markdown with ⚠️/✅ indicators
Template sync
✅ .claude/skills and templates/ identical
Example Output
## AC Quality Check
⚠️ **AC-1:** "System handles errors gracefully"
→ Incomplete: error types not specified
→ Suggest: List specific error types and expected responses
⚠️ **AC-2:** "Response time is fast under load"
→ Unmeasurable: "fast" has no threshold
→ Suggest: Add latency threshold (e.g., <2 seconds, <100ms)
✅ AC-3: Clear and testable
**Summary:** 2/3 AC items flagged for review
Verification Status
✅ All integration gaps closed - Feature ready for production use.
Activity
admarble commentedon Jan 29, 2026
📋 Spec Review: AC Linting for /spec
Acceptance Criteria with Verification
--skip-ac-lintflag/spec N --skip-ac-lint→ No lint section, skip message shownImplementation Plan
Phase 1: AC Linter Module
src/lib/ac-linter.tswith pattern registry and lint functionssrc/lib/ac-linter.test.tswith comprehensive test coveragePhase 2: Spec Skill Integration
3. Update
.claude/skills/spec/SKILL.mdto:--skip-ac-lintflagPhase 3: Optional (Deferred)
4. Add
.sequant/ac-lint.jsonconfiguration support (future enhancement)Pattern Registry
Assumptions to Validate
Recommended Workflow
Quality Loop: Disabled (standard enhancement)
Generated by /spec skill
feat(#201): Add AC linting to /spec to catch vague acceptance criteria
admarble commentedon Jan 29, 2026
Implementation Progress Update
AC Coverage Summary
--skip-ac-lintflagImplementation Details
Files Changed:
src/lib/ac-linter.ts- Core AC linter module with pattern detectionsrc/lib/ac-linter.test.ts- 34 unit tests with comprehensive coverage.claude/skills/spec/SKILL.md- Updated with "AC Quality Check" sectiontemplates/skills/spec/SKILL.md- Template syncPattern Categories Implemented:
Example Output:
Checks Run
npm test- 34 new tests pass (10 pre-existing failures in unrelatedstate-update-cli.test.ts)npm run build- Compiles successfullynpm run lint- No warningsPR Status
Created: #202
Generated by /exec skill
feat(#201): Add AC linting to /spec to catch vague acceptance criteria (
admarble commentedon Jan 30, 2026
Post-Merge Verification
Integration testing completed successfully after merge.
Tests Performed
Example Output
Verification Status
✅ All integration gaps closed - Feature ready for production use.
Post-merge verification by /qa
docs: add AC linting to changelog and what-weve-built