version: 1
kit_version: "{{KIT_VERSION}}"

project:
  name: "{{PROJECT_NAME}}"
  stack: node
  agent_language: "{{LANG}}"

package_manager: npm

pipeline:
  require_spec_review: true
  require_design_brief: false
  max_active_changes: 1
  # Policy: status prints it; "archive --if-ready" and the opt-in CI job honour it; a manual archive ignores it.
  archive_after_merge: true
  task_contract: warn
  # Paths gate-check treats as product code: git pathspecs separated by
  # commas or spaces. Widen it when code lives outside src/
  # (e.g. "src/,lib/,app/") or the review gate never fires.
  src_glob: "src/"
  # Opt-in: when on, and review.md is an accepted Tier 2 REQUEST CHANGES (a Tier 1 record does not
  # qualify) with local blockers in 1-2 tasks (no design.md or delta spec change), the architect may fix
  # tasks.md and apply-notes.md only; after gate-check --review exit 0 and your explicit approval the
  # conductor records Verdict APPROVE (fast-fix, approved by user) without a new Tier 2 review. Risks:
  # the side effects of the edit are not reviewed, the independent check is dropped, apply-notes.md may
  # be stale.
  review_fast_fix: off

roles:
  explorer:
    command: /opsx:explore
    mode: read-only
  design_intake:
    command: /opsx:design
    mode: brief-only
  architect:
    command: /opsx:propose
    mode: specs-only
  spec_reviewer:
    command: /opsx:review
    mode: read-only
  implementer:
    command: /opsx:apply
    mode: code
  verifier:
    type: ci
    gates:
      - openspec-validate-strict
      - lint
      - build
      - test

handoff:
  explore_to_propose: decision_brief
  propose_to_review: validate_strict
  review_to_apply: explicit_approve
  apply_to_verify: all_tasks_checked
  restore_on_start: true
  persist_on_exit: true
  emit_next_session_prompt: true
  prompt_self_contained: true
  spawn_handoff_subagent: false

memory:
  enabled: true
  file: .cursor/memory.json
  launcher: scripts/memory-mcp-launcher.cjs

mcp:
  baseline:
    - memory
  optional:
    - figma
    - github
    - gitlab
    - browser

skills:
  kit:
    - agent-orchestration
    - openspec-howto
    - openspec-explore
    - openspec-propose
    - openspec-apply-change
    - openspec-archive-change
    - openspec-sync-specs
    - spec-workflow-openspec
  stack:
    - javascript-core
    - javascript-node
    - javascript-testing
  external: frontend-agent-skills

figma:
  env_file: .agents/figma.local.env
  token_key: FIGMA_ACCESS_TOKEN
  mcp_launcher: scripts/figma-mcp-launcher.cjs

# Opt-in local agent hook runtime (context delivery + local diagnostics).
# Distinct from the Git pre-commit hooks-setup/init --hooks gate.
hooks:
  enabled: false
  mode: observe
  policies:
    verification:
      enabled: false
      mode: observe
    completion:
      enabled: false
      mode: observe
    scope:
      enabled: false
      mode: observe
    checks:
      enabled: false
      mode: observe
    owned-sync:
      enabled: false
      mode: observe
    workflow-notifications:
      enabled: false
      mode: observe

verifier:
  lint_command: "npm run lint"
  build_command: "npm run build"
  test_command: "npm test"
