name: linear-notion
description: Linear issues + Notion docs + Git provider

artifacts:
  idea:
    content_owner: linear
    state_owner: linear
    canonical_id: issue_id
  prd:
    content_owner: notion
    state_owner: linear
    canonical_id: notion_page_id
  techspec:
    content_owner: notion
    state_owner: linear
    canonical_id: notion_page_id
  tasks:
    content_owner: linear
    state_owner: linear
    canonical_id: issue_id
  refinement:
    content_owner: notion
    state_owner: linear
    canonical_id: notion_page_id
  execution:
    content_owner: git_provider
    state_owner: pull_request
    canonical_id: branch
  review:
    content_owner: pull_request
    state_owner: pull_request
    canonical_id: pull_request_id
  memory:
    content_owner: notion
    state_owner: traceability_map
    canonical_id: notion_page_id

events:
  idea_created: linear_issue_created
  prd_approved: linear_status_or_notion_comment
  techspec_approved: linear_status_or_notion_comment
  refinement_approved: linear_status
  pr_opened: git_provider_pr_opened
  ci_green: git_provider_ci_success
  review_approved: git_provider_review_approved
  deploy_done: deployment_success

fallbacks:
  approval: linear_comment_with_explicit_decision
  polling: scheduled_task_for_pr_or_ci
  docs: notion_export_or_markdown
