{
  "model_id": "002",
  "catalog_model_id": "jbnx-m-002",
  "status": "v0.5.0_reference_pack_complete",
  "cost_framework": {
    "name": "AI Media Cost Framework",
    "slug": "ai-media-cost-framework",
    "version": 3,
    "canonical_url": "https://projects.jbnx.io/framework/ai-media-cost-framework"
  },
  "caps": {
    "external_api_total_usd_micros": 24000000,
    "topups_allowed": false,
    "max_motion_test_attempts_per_shot": 2,
    "motion_test_resolution": "provider_native",
    "final_resolution": "1080p",
    "final_only_if_needed": true,
    "motion_test_max_seconds": 5,
    "automatic_retry_after_unknown_submission": false,
    "note": "Owner raised the cap to $24 on 2026-11-08 ('go. raise cap') and then waived it ('i don't care about budget right now', 06:06 ET). Quoted total may exceed $24."
  },
  "voice": {
    "provider": "ElevenLabs",
    "recommended_voice": "Eleven Multilingual v2 (Custom Clone)",
    "voice_id": "6smp824BEteJs0eHretZ",
    "stability": 0.55,
    "similarity": 0.75,
    "style": 0.08,
    "speaker_boost": true,
    "lip_sync_status": "audio_driven_proof_accepted_visually_reviewed",
    "notes": "Cloned voice 'Joey v4.0' found in the owner's ElevenLabs account on 2026-10-31 (voice list read through the broker by key name). Joey approved the sample line on 2026-10-31.",
    "key_secret": "ELEVENLABS_KEY",
    "key_locations": [
      "Supabase Edge Function Secrets — jbnx project (ref ngjmqdzpnhwpybtssykz)",
      "Supabase Edge Function Secrets — fedm8 project",
      "Railway variable (owner-set 2026-10-28)"
    ],
    "key_rule": "Name only — never hardcode, print, or log the value. Supabase Edge Function Secrets are write-only via the Management API (names verified 2026-10-28 in both the jbnx and fedm8 projects); Railway variable owner-set 2026-10-28 (workspace credential cannot read Railway project variables — known token-scope limit, not evidence of absence).",
    "health_check": "voice-healthcheck.py in this folder: resolves ELEVENLABS_KEY from the runtime environment, calls ElevenLabs /user + /voices, reports status only. Status 2026-10-28: UNVERIFIED — the key is present (name verified in Supabase jbnx + fedm8 Edge Function Secrets; owner-set on Railway) but has never been tested against ElevenLabs, and cannot be tested outside an injected runtime: the Supabase Management API returns only a SHA-256 digest of each secret, never the plaintext. Run voice-healthcheck.py where the secret is injected (Railway/Edge) for the acceptance verdict. A shell without the secret reports key_missing (exit 2).",
    "clone_status": "enrolled",
    "key_status": "present_unverified_pending_injected_runtime_healthcheck",
    "status": "cloned_voice_line_approved_by_joey",
    "voice_name": "Joey v4.0",
    "category": "cloned (Instant Voice Clone)",
    "model_id": "eleven_multilingual_v2",
    "is_clone_of_subject": true,
    "sample_path": "assets/joey-voice-sample-v004.mp3",
    "sample_sha256": "e099e968c4000a427119a66154a19f92e3ede5f82b1501b77ac6d17b27ab003d",
    "sample_text": "Hi, I'm Joey Nguyen. This is my reference model for JBNX Design.",
    "duration_seconds": 4.022857,
    "found_on": "2026-10-31"
  },
  "renderer": {
    "status": "access_verified_actual_jobs_reviewed",
    "provider": "kie",
    "model_id": "kling-3.0/video",
    "model_version": "kling-3.0 pro",
    "mode": "pro",
    "resolution": "provider_native",
    "seed_control": false,
    "settings": {
      "duration": "5",
      "sound": false,
      "multi_shots": false,
      "kling_elements": "one element 'joey' with face 000, face 045 and body 000 (v0.4.0)"
    },
    "observed_output_by_job": {
      "turn": {
        "width": 1072,
        "height": 1928,
        "duration_seconds": 5.041667,
        "average_frame_rate": "24/1",
        "codec": "h264",
        "audio_streams": 0
      },
      "walk": {
        "width": 1072,
        "height": 1928,
        "duration_seconds": 5.041667,
        "average_frame_rate": "24/1",
        "codec": "h264",
        "audio_streams": 0
      },
      "sit": {
        "width": 1072,
        "height": 1928,
        "duration_seconds": 5.041667,
        "average_frame_rate": "24/1",
        "codec": "h264",
        "audio_streams": 0
      },
      "talk": {
        "width": 1292,
        "height": 1604,
        "duration_seconds": 5.041667,
        "average_frame_rate": "24/1",
        "codec": "h264",
        "audio_streams": 0
      }
    },
    "api_source_url": "https://docs.kie.ai/market/kling/kling-3-0",
    "price_source_url": "https://kie.ai/kling-3-0",
    "price_checked_date": "2026-10-31",
    "rate": "18 credits per second in pro mode without audio ($0.09/s at list)",
    "selection_basis": "Kling handles a real person's likeness; Seedance 2.x tops image-to-video rankings but blocks real-person faces at the model layer."
  },
  "motion_tests": [
    {
      "id": "turn",
      "label": "Turn",
      "status": "accepted",
      "attempts": 1,
      "asset_path": "assets/joey-motion-turn-v004.mp4",
      "qa_status": "accepted",
      "usage_label": "Lead-reviewed working motion baseline; shot-specific production review still required.",
      "first_frame_asset_id": "joey-motion-floor-v004",
      "first_frame_review_status": "accepted_working_test_input",
      "first_frame_sha256": "534c3880db1b722e055cc3d0da33b7841eb7b0ed0eab290c69d50c7c5bdb30c1",
      "provider_job_id": "b72360112c485d870720a101545a89a1",
      "credits_consumed": 90,
      "reason": "Turns to his left profile and back; direction matches the brief; face and hair hold.",
      "qa_reviewer": "lead agent 1099:claude-chat-c1d3 (automated-session visual review) + Jev and ArcFace likeness scores",
      "qa_reviewed_at": "2026-10-31T23:30:00+00:00",
      "qa_checks": {
        "visual_identity": "passed",
        "hands_feet_ground_contact": "passed",
        "added_text_scan": "clean: no added text, captions or logos found in sampled frames"
      }
    },
    {
      "id": "walk",
      "label": "Walk",
      "status": "accepted",
      "attempts": 1,
      "asset_path": "assets/joey-motion-walk-v004.mp4",
      "qa_status": "accepted",
      "usage_label": "Lead-reviewed working motion baseline; shot-specific production review still required.",
      "first_frame_asset_id": "joey-motion-floor-v004",
      "first_frame_review_status": "accepted_working_test_input",
      "first_frame_sha256": "534c3880db1b722e055cc3d0da33b7841eb7b0ed0eab290c69d50c7c5bdb30c1",
      "provider_job_id": "d427d01e9184a2c6cf7ac983832de1a2",
      "credits_consumed": 90,
      "reason": "Walks toward the camera; accepted with notes: his shoes leave the frame at the end and the hair spikes soften during the walk (a Kling limit).",
      "qa_reviewer": "lead agent 1099:claude-chat-c1d3 (automated-session visual review) + Jev and ArcFace likeness scores",
      "qa_reviewed_at": "2026-10-31T23:30:00+00:00",
      "qa_checks": {
        "visual_identity": "passed",
        "hands_feet_ground_contact": "passed",
        "added_text_scan": "clean: highest text-likeness score 3.83 sits at the first-frame floor; hotspots are shirt buttons and the lapel pin (134 px), not text"
      }
    },
    {
      "id": "sit",
      "label": "Sit",
      "status": "accepted",
      "attempts": 1,
      "asset_path": "assets/joey-motion-sit-v004.mp4",
      "qa_status": "accepted",
      "usage_label": "Lead-reviewed working motion baseline; shot-specific production review still required.",
      "first_frame_asset_id": "joey-motion-chair-v004",
      "first_frame_review_status": "accepted_working_test_input",
      "first_frame_sha256": "e49ec7c231a403e12827f3b67f84daf6899dee25652eafa517575a491771ecc4",
      "provider_job_id": "e0c9c28cce2f593c765a037de4054806",
      "credits_consumed": 90,
      "reason": "Bends and sits on the chair; final pose upright; hands and feet grounded. First attempt failed at the provider (character upload, no charge); sequential retry passed.",
      "qa_reviewer": "lead agent 1099:claude-chat-c1d3 (automated-session visual review) + Jev and ArcFace likeness scores",
      "qa_reviewed_at": "2026-10-31T23:30:00+00:00",
      "qa_checks": {
        "visual_identity": "passed",
        "hands_feet_ground_contact": "passed",
        "added_text_scan": "clean: no added text, captions or logos found in sampled frames"
      }
    },
    {
      "id": "talk",
      "label": "Talk",
      "status": "accepted",
      "attempts": 1,
      "asset_path": "assets/joey-motion-talk-v004.mp4",
      "qa_status": "accepted",
      "usage_label": "Lead-reviewed working motion baseline; shot-specific production review still required.",
      "first_frame_asset_id": "joey-face-000-v004",
      "first_frame_review_status": "accepted_working_test_input",
      "first_frame_sha256": "e9c0d9f0de8555b51e45269dfbd7b595a88b4ee7c50e2a15158cf51c60931942",
      "provider_job_id": "6af365cbb2c9612d1141a18b7603498d",
      "credits_consumed": 90,
      "reason": "Speaks to the camera with natural head motion; no identity drift. First attempt failed at the provider (character upload, no charge); sequential retry passed.",
      "qa_reviewer": "lead agent 1099:claude-chat-c1d3 (automated-session visual review) + Jev and ArcFace likeness scores",
      "qa_reviewed_at": "2026-10-31T23:30:00+00:00",
      "qa_checks": {
        "visual_identity": "passed",
        "hands_feet_ground_contact": "passed",
        "added_text_scan": "clean: no added text, captions or logos found in sampled frames"
      }
    }
  ],
  "voice_proof": {
    "id": "voice",
    "label": "Audio driven voice proof",
    "status": "accepted",
    "qa_status": "asr_and_waveform_verified_visual_reviewed",
    "asset_path": "assets/joey-voice-proof-v004.mp4",
    "attempts": 1,
    "provider": "fal",
    "model_id": "fal-ai/sync-lipsync/v2",
    "settings": {
      "model": "lipsync-2-pro",
      "sync_mode": "cut_off"
    },
    "source_video_asset_id": "joey-motion-talk-v004",
    "audio_source": "ElevenLabs 'Joey v4.0' (6smp824BEteJs0eHretZ), eleven_multilingual_v2; line approved by Joey on 2026-10-31",
    "quoted_cost_usd_micros": 334000,
    "actual_billed_cost_usd_micros": null,
    "observed_media": {
      "width": 1292,
      "height": 1604,
      "duration_seconds": 4.0,
      "average_frame_rate": "24/1",
      "codec": "h264",
      "audio_streams": 1
    },
    "asr": {
      "expected_text": "Hi, I'm Joey Nguyen. This is my reference model for JBNX Design.",
      "returned_transcript": "Hi, I'm Joey Nguyen. This is my reference model for JBNX design."
    },
    "audio_metrics": {
      "waveform_correlation": 0.9942,
      "candidate_offset_seconds": 0.0
    },
    "usage_label": "ASR- and waveform-verified short proof; lip sync visually reviewed, not machine-scored.",
    "reason": "The line is intelligible in Joey's cloned voice and sits on the accepted talk baseline without identity drift",
    "scope": "Proves the voice on this face; Joey approves the line and every production line before release"
  },
  "height": {
    "cm": null,
    "status": "not_specified",
    "basis": "Real person; no height supplied and none is inferred from images."
  },
  "workflow": [
    {
      "stage": "references",
      "rule": "Done in v0.5.0 from Joey's chosen look: approved look, character sheet, eight body angles, five face turns, three expressions and three variant anchors."
    },
    {
      "stage": "shot_brief",
      "rule": "Define variant, one action, scene, camera, lighting, aspect ratio, duration and the approved line, if any."
    },
    {
      "stage": "scene_first_frame",
      "rule": "Create one scene still. Review face, clean-shaven skin, eyewear rule and anatomy before motion; record reviewer and image hash."
    },
    {
      "stage": "motion_test",
      "rule": "Short native-resolution test from the accepted first frame. At most two attempts per shot."
    },
    {
      "stage": "qa",
      "rule": "Check face, hairline, eyewear, hands, flicker, motion continuity, added text and audio when present. Reject drift."
    },
    {
      "stage": "final",
      "rule": "Render 1080p only after an accepted test. Joey approves any clip of him speaking before release."
    }
  ],
  "cache_policy": "Hash the exact reference bytes, prompt, provider/model/version, settings, duration, resolution and audio options. Reuse accepted outputs; review existing outputs before retrying. A fixed seed is not an identity guarantee.",
  "cost_policy": "Cost per accepted deliverable includes all retries, discarded jobs, audio, LLM, finishing, storage and compute. Unknown cost stays unknown.",
  "reference_framework": {
    "name": "AI Model Reference Pack Framework",
    "slug": "ai-model-reference-pack-framework",
    "version": "1.2.0",
    "canonical_url": "https://projects.jbnx.io/framework/ai-model-reference-pack-framework",
    "job_file": "reference-pack-job.json"
  },
  "reference_generation": {
    "stills": {
      "provider": "fal",
      "endpoint": "fal-ai/bytedance/seedream/v4.5/edit",
      "resolution": "1440x2560 (body), 1920x2400 (head), 2560x1440 (anchors)",
      "output_format": "jpeg (stored as JPEG q93 4:4:4)",
      "seeds": [
        9502,
        9803,
        9804,
        9806,
        9807,
        9905,
        9908,
        9909,
        9910,
        9913,
        10003,
        10135,
        10225,
        10270,
        11001,
        11045,
        11315,
        11911,
        11912,
        12002
      ],
      "inputs": [
        "joey-look-p2-v005 (approved look)",
        "joey-ref-u05-owner-portrait (data URI, sent only to fal)",
        "anchor-u04-balcony",
        "anchor-c001-seed-front",
        "anchor-u01-mirror",
        "variant master (outfit)"
      ],
      "quoted_unit_usd_micros": 40000,
      "pricing_source": "https://fal.ai/learn/tools/ai-image-editing-tools",
      "selection_basis": "Owner's picks in five rounds (2026-11-08) and ArcFace 6/6 agreement with them; Nano Banana Pro swapped identity twice."
    },
    "restoration": {
      "provider": "fal",
      "endpoint": "fal-ai/topaz/upscale/image",
      "face": "Recovery V2 2x on the balcony photo (face authority) and the mirror face crop (hair reference)",
      "body": "Low Resolution V2 2x on the mirror photo",
      "pricing_source": "https://fal.ai/models/fal-ai/topaz/upscale/image/llms.txt"
    },
    "runner": "temporary token-gated Supabase Edge Functions jbnx-m002-*-once (fal key by name; each retired to 410 after use)",
    "likeness": "ArcFace buffalo_l, local; Jev jev-1.14.0 for technical QA"
  },
  "next_validation_step": "Re-render the four motion baselines and the voice proof from the v0.5.0 anchors, on Joey's go-ahead. Each production scene still needs its own first-frame and motion review.",
  "completion": {
    "status": "complete",
    "scope": "v0.5.0 stills; motion and voice proof remain v0.4.0",
    "qa_report": "qa.json",
    "completed_at": "2026-11-08T14:00:00+00:00"
  }
}
