schema: spec-driven

context: |
  Project: reviewap-hook
  Stack: Node.js 20+, TypeScript, Express, Vitest
  Architecture: webhook HTTP service with service/router/middleware layers
  Package manager: npm
  CI: not detected

strict_tdd: true

testing:
  runner:
    command: npm test
    framework: vitest
  layers:
    unit:
      available: true
      tool: vitest
    integration:
      available: true
      tool: vitest
    e2e:
      available: false
      tool: null
  coverage:
    available: false
    command: null
  quality:
    linter:
      available: false
      command: null
    type_checker:
      available: true
      command: npm run typecheck
    formatter:
      available: false
      command: null

rules:
  proposal:
    - Include rollback plan for risky changes
  specs:
    - Use Given/When/Then for scenarios
    - Use RFC 2119 keywords (MUST, SHALL, SHOULD, MAY)
  design:
    - Document service boundaries and request flow
  tasks:
    - Group by phase and keep tasks session-sized
  apply:
    - Follow existing TypeScript and Express patterns
    - Preserve strict type safety
    - tdd: true
    - test_command: npm test
  verify:
    test_command: npm test
    build_command: npm run build
    coverage_threshold: 0
  archive:
    - Warn before merging destructive deltas
