{
  "id": "studio-40229bbe-47c8-4bf4-afe5-08d215da10ae",
  "scope": "studio_project",
  "source_of_truth": "supabase.studio_artifacts",
  "source_path": "studio_artifacts/40229bbe-47c8-4bf4-afe5-08d215da10ae",
  "source_kind": "supabase_json",
  "visibility": "internal",
  "renderer_id": "design_doc.dreamborn-forge.generated.v1",
  "design_system": "dreamborn-design-system:forge",
  "generated_at": "2026-05-09T13:00:56.412Z",
  "artifact_type": "module-spec",
  "schema_version": "1.0",
  "title": "KnowledgeVault AI module-spec M-06",
  "summary": "M-06 delivers the expert earnings pipeline on top of the payment schema established in M-00 and the payment records created in M-05. It adds a DB trigger that fires immediately when the M-00 pg_cron job releases a payment, calling an internal API route that initiates a Stripe Connect transfer to the expert's bank account and sends a push notification. A Stripe webhook handler finalises payment status to 'paid' when the transfer settles and keeps stripe_payouts_enabled current when Stripe fires a",
  "status": "approved",
  "version": 1,
  "phase_id": "M-06",
  "project_id": "572d75d0-3088-4055-be75-601d25442c61",
  "project_slug": "bezeliq-knowledgevault-ai-572d75d0",
  "project_title": "KnowledgeVault AI",
  "client_id": "bezeliq",
  "platform_project_id": "0.0.8773774",
  "format_source": "supabase_json",
  "content_shape": [
    "summary",
    "module_id",
    "api_routes",
    "data_model",
    "module_name",
    "deliverables",
    "integrations",
    "prerequisites",
    "open_questions",
    "schema_version"
  ],
  "sections": [
    {
      "title": "Open Questions",
      "level": 2,
      "body": "- OQ-M-06-01: id: string, owner: string, blocks: string, question: string, resolved: boolean, resolution: string\n- OQ-M-06-02: id: string, owner: string, blocks: string, question: string, resolved: boolean, resolution: string"
    }
  ],
  "html_path": "projects/bezeliq-knowledgevault-ai-572d75d0/artifacts/module-spec-m-06-40229bbe.html",
  "json_path": "projects/bezeliq-knowledgevault-ai-572d75d0/artifacts/module-spec-m-06-40229bbe.json"
}