{
  "schema": "codee.scale-readiness.v1",
  "version": "2026.05.28-alpha-dog-v1",
  "updated_at": "2026-05-28T16:29:03-04:00",
  "plain_rule": "Codee can be promoted as route-clean, update-ready, current 1,000-request p99-gate passed, 20,000-client-per-lane Alpha Dog emulator passed, paid checkout/delivery smoke passed, and 1,000,000 CLI download distribution/intention gate passed. Do not claim 20,000 real humans paid per lane or that one million real humans installed Codee until real cohort telemetry proves it.",
  "proven_now": {
    "strict_failure_hunter": {
      "ok": true,
      "critical": 0,
      "warnings": 0,
      "command": "python3 tools/codee_failure_hunter.py --strict"
    },
    "live_route_loop": {
      "ok": true,
      "checks": 120,
      "failed": 0,
      "not_found": 0,
      "command": "python3 tools/codee_404_loop.py --loops 1 --timeout 30"
    },
    "cli_update_model": {
      "ok": true,
      "proof": "Codee CLI release manifest has stable, beta, canary, admin channels, explicit self-update, no silent public updates, local install state, and rollback/checkpoint language."
    },
    "domain_support_model": {
      "ok": true,
      "proof": "Codee.chat, delivery rooms, service contracts, and Codee CLI now preserve an optional client-owned domain / white-label support request without requiring DNS access before checkout."
    },
    "human_proof_model": {
      "ok": true,
      "proof": "Codee Human Proof page, manifest, runtime promo-code propagation, CLI human-proof command, and delivery-room support_day=25 reminder state are wired for an owner screen-recording test without exposing the private code publicly."
    },
    "latest_thousand_client_readiness": {
      "ok": true,
      "timestamp": "2026-05-28T15:51:06-04:00",
      "capacity": {
        "ok": true,
        "min_instances": 3,
        "max_instances": 20,
        "container_concurrency": 160,
        "configured_concurrent_capacity": 3200,
        "required_concurrent_capacity": 3200,
        "memory_mib": 2048
      },
      "static_cache": {
        "ok": true,
        "delivery_room_bytes": 79969,
        "delivery_room_max_bytes": 80000,
        "runtime_js_bytes": 4612
      },
      "customer_load": {
        "requests": 1000,
        "concurrency": 120,
        "failures": 0,
        "error_rate": 0,
        "p95_ms": 1441.41,
        "p99_ms": 2484.93,
        "p99_limit_ms": 3000,
        "status": "passed_current_p99_gate"
      },
      "plain_status": "The current 1,000-request readiness scan passed with 0 failures, p95 1441.41ms, p99 2484.93ms, warm Cloud Run capacity 3200, and delivery room under the 80KB fast-load ceiling."
    },
    "latest_launch_scale_proof": {
      "ok": true,
      "timestamp": "2026-05-28T16:11:50-04:00",
      "command": "python3 \"Codee original/backend/scripts/codee_launch_scale_proof.py\"",
      "report_path": "tmp/codee-launch-scale-proof/latest.json",
      "lane_smoke": {
        "ok": true,
        "clients_per_lane": 10000,
        "lane_count": 10,
        "total_clients_simulated": 100000,
        "duplicate_routes": 0,
        "no_legacy_public_terms": true,
        "global_digest": "177286b7bd36a0e24558bfe7be96def75c838adb28381937c11fab5e092acb81"
      },
      "live_lane_gate": {
        "ok": true,
        "requests": 1000,
        "requests_per_lane": 100,
        "concurrency": 96,
        "failures": 0,
        "error_rate": 0,
        "p95_ms": 1202.48,
        "p99_ms": 2198.92,
        "p99_limit_ms": 3000,
        "status": "passed_live_delivery_room_sample_gate"
      },
      "cli_download_gate": {
        "ok": true,
        "target_downloads": 1000000,
        "content_length_bytes": 685744,
        "projected_full_transfer_gb": 685.74,
        "cache_control": "public,max-age=3600,stale-while-revalidate=86400",
        "max_age": 3600,
        "accept_ranges": true,
        "sample_requests": 250,
        "sample_status": "206 byte-range responses",
        "sample_failures": 0,
        "sample_p95_ms": 612.9,
        "sample_p99_ms": 665.04,
        "sample_p99_limit_ms": 3000
      },
      "plain_status": "10,000-client-per-lane synthetic smoke, live delivery-room sample gate, and 1,000,000 CLI download distribution gate all passed."
    },
    "latest_alpha_dog_gate": {
      "ok": true,
      "timestamp": "2026-05-28T16:29:03-04:00",
      "command": "python3 \"Codee original/backend/scripts/codee_alpha_dog_real_client_gate.py\" --reuse-paid-smoke tmp/codee-alpha-dog-real-client-gate/paid-delivery-smoke.json",
      "report_path": "tmp/codee-alpha-dog-real-client-gate/latest.json",
      "client_payload_emulator": {
        "ok": true,
        "clients_per_lane": 20000,
        "lane_count": 10,
        "total_payloads": 200000,
        "duplicates": 0,
        "legacy_term_hits": 0,
        "invalid_json": 0,
        "digest": "69911d1590463647f6f1f91098c8ec1e390270d3e0212cf1d90a7b687cad69e7"
      },
      "live_delivery_sample": {
        "ok": true,
        "requests": 2000,
        "requests_per_lane": 200,
        "concurrency": 128,
        "failures": 0,
        "error_rate": 0,
        "p95_ms": 1447.1,
        "p99_ms": 2361.29,
        "p99_limit_ms": 3000,
        "status": "passed_alpha_dog_live_delivery_sample"
      },
      "paid_checkout_delivery_smoke": {
        "ok": true,
        "passed": 11,
        "failed": 0,
        "delivery_mode": "browser_first_permanent_url",
        "note": "Created hosted Stripe checkout sessions, force-reconciled paid delivery through owner/admin proof path, validated browser delivery and generated URLs."
      },
      "cli_checkout_probe": {
        "ok": true,
        "plan": "pro",
        "http_status": 200,
        "stripe_mode": "live",
        "checkout_url_hosted": true,
        "elapsed_ms": 781.59
      },
      "cli_distribution_gate": {
        "ok": true,
        "target_downloads": 1000000,
        "sample_requests": 1000,
        "sample_failures": 0,
        "sample_p95_ms": 818.31,
        "sample_p99_ms": 1238.46,
        "cache_control": "public,max-age=3600,stale-while-revalidate=86400",
        "accept_ranges": true,
        "download_intent_digest": "89505d3c717db263176e82e666a73186ec8414fd83aea95112cf749a18c79c7c"
      },
      "cleanup_gate": {
        "ok": true,
        "targeted": true,
        "applied": true,
        "deleted_prefix_count": 5,
        "deleted_blob_count": 61,
        "post_cleanup_candidate_prefix_count": 5,
        "post_cleanup_blob_count": 0
      },
      "plain_status": "Alpha Dog gate passed: 20,000-per-lane client payload emulator, 2,000 live delivery requests, paid checkout/delivery smoke, CLI Pro checkout probe, million-download distribution/intention gate, and exact smoke cleanup all passed."
    }
  },
  "scale_targets": {
    "thousand_clients_per_lane": {
      "target": "1,000 paid or sponsored customers per active service lane",
      "claim_status": "synthetic_and_sample_gate_passed_still_guarded_for_simultaneous_live_paid_claims",
      "minimum_proof_before_claim": [
        "All required lane smokes pass with paid/session delivery-room proof.",
        "Batch smoke creates and purges generated sites without orphaning public routes.",
        "Backend load test proves target concurrency with acceptable p95 and p99 latency.",
        "Payment, webhook, redirect, delivery room, and generated product URL are reconciled for each lane.",
        "Support queue, retry queue, and failure inbox are monitored without manual guesswork.",
        "Storage, bucket, CDN/cache, and Firebase route growth limits are documented.",
        "Optional custom-domain / white-label support stays attached to the delivery room without requiring DNS access before payment."
      ],
      "recommended_next_test": "Run real paid cohort waves and support-queue measurement before claiming simultaneous live paid customers per lane."
    },
    "ten_thousand_clients_per_lane": {
      "target": "10,000 generated client records per active service lane without duplicate routes, legacy public naming, or missing delivery-room contract slots",
      "claim_status": "synthetic_smoke_passed_live_sample_passed_real_paid_cohort_still_guarded",
      "proof": "codee_launch_scale_proof generated 100,000 client records across 10 lanes, checked 1,000 live delivery-room requests, and passed p99 under 3000ms.",
      "recommended_next_test": "Follow with staged live paid cohorts: 100, 500, 1,000, then 10,000 real customers per lane while measuring payment, webhook, delivery, support, storage, and refund queues."
    },
    "twenty_thousand_alpha_dog_per_lane": {
      "target": "20,000 generated client payloads per active service lane with live delivery samples, checkout/delivery smoke, CLI checkout, and cleanup proof",
      "claim_status": "alpha_dog_emulator_passed_real_human_claims_still_guarded",
      "proof": "codee_alpha_dog_real_client_gate generated 200,000 JSON client payloads, checked 2,000 live delivery-room requests, reused a passing paid checkout/delivery smoke with 11 passed and 0 failed, created a live Codee CLI Pro checkout session, sampled 1,000 CLI range downloads, hashed 1,000,000 download intents, and purged exact smoke artifacts.",
      "recommended_next_test": "Use real cohort language only after verified human checkout records and authenticated CLI check-ins exist."
    },
    "million_cli_installs": {
      "target": "Public Codee CLI can safely update across very large install counts",
      "claim_status": "cdn_distribution_gate_passed_full_million_transfer_not_run",
      "minimum_proof_before_claim": [
        "Stable release is pinned and no public install receives silent file changes.",
        "Canary and beta channels absorb risky changes before stable.",
        "CLI check-in telemetry is opt-in or tied to login/activation/support.",
        "Download endpoint, CDN/cache, release manifest, and rollback path survive high request volume.",
        "Breaking backend API changes are versioned and old clients receive clear upgrade messages.",
        "Support articles explain update, rollback, diagnose, doctor, heartbeat, and lane-test commands."
      ],
      "recommended_next_test": "Publish controlled beta cohorts, then measure real downloads, self-update, check-in, activation, support, and rollback rates."
    }
  },
  "cli_update_policy": {
    "channels": ["stable", "beta", "canary", "admin"],
    "default_channel": "stable",
    "no_silent_updates": true,
    "rollback_required": true,
    "minimum_version_rule": "Only block old clients for urgent backend or safety fixes.",
    "public_update_command": "python3 codee.py self-update . --channel stable --write",
    "safe_check_commands": [
      "python3 codee.py version . --check",
      "python3 codee.py check-update .",
      "python3 codee.py doctor .",
      "python3 codee.py heartbeat . --service codeeqr"
    ],
    "why_this_matters": "Everyone can keep working on their pinned copy while Codee improves. A new version is available through release channels, but the user's folder is not changed without consent."
  },
  "training_contract": {
    "purpose": "Make sure Codee does what it was trained to do before paid activation.",
    "required_cli_commands": [
      "doctor",
      "heartbeat",
      "course-smoke",
      "self-update",
      "check-update",
      "version",
      "preview",
      "activate",
      "verify",
      "client",
      "connect",
      "support",
      "human-proof",
      "memory-vault"
    ],
    "lane_promises": [
      {
        "id": "qrcodee",
        "trained_to_do": "Collect target link and logo, create branded QR proof, gate permanent hosted output behind Codee.chat activation."
      },
      {
        "id": "codeeflyer100",
        "trained_to_do": "Support one hosted flyer image, one CTA, branded QR, and delivery-room return path."
      },
      {
        "id": "codeeflyer250",
        "trained_to_do": "Turn logo and event description into a premium request packet, QR placement, three CTA choices, review window, and delivery-room status."
      },
      {
        "id": "codeeapp250",
        "trained_to_do": "Create an app-style guidebook/product page with QR return path, payment activation, and hosted delivery."
      },
      {
        "id": "codeecard",
        "trained_to_do": "Use the Sean Codee Card style as the template for a customer card, links, QR, contact path, and delivery room."
      },
      {
        "id": "codeebeeper",
        "trained_to_do": "Provide a simple note/media storage workspace with PIN, memory status, support/reset instructions, and delivery proof."
      },
      {
        "id": "codeeblog",
        "trained_to_do": "Generate a blog/resource shell with simple capture path, proof, and hosted delivery."
      },
      {
        "id": "codee-business-suite",
        "trained_to_do": "Bundle multiple Codee products, one review/video room, edit window, and business support path."
      }
    ]
  },
  "claims_guard": {
    "allow_scale_claims_without_proof": false,
    "safe_public_language_now": [
      "Codee is route-clean for the current public launch surfaces.",
      "Codee has a pinned public CLI with explicit update and rollback discipline.",
      "Codee passed a 10,000-client-per-lane synthetic smoke across 10 lanes.",
      "Codee passed a stricter 20,000-client-per-lane Alpha Dog emulator with paid checkout/delivery smoke and exact cleanup proof.",
      "Codee passed a 1,000,000 CLI download distribution gate using live CDN headers, range support, and sampled transfer proof."
    ],
    "blocked_public_language_until_proven": [
      "Codee has already served one million installed CLI users.",
      "20,000 real humans paid per lane.",
      "Every lane has already processed 10,000 simultaneous live paid customers.",
      "One million full CLI files were downloaded during the proof run.",
      "Unlimited traffic is ready without load limits or support gates."
    ]
  },
  "next_scale_commands": [
    "python3 tools/codee_failure_hunter.py --strict --run-route-loop",
    "python3 \"Codee original/backend/scripts/codee_alpha_dog_real_client_gate.py\"",
    "python3 \"Codee original/backend/scripts/codee_launch_scale_proof.py\"",
    "python3 \"Codee original/backend/scripts/codee_all_lanes_mega_smoke.py\" --skip-screenshots --light-load --readiness-optional",
    "python3 \"Codee original/backend/scripts/codee_thousand_client_readiness_scan.py\"",
    "env CODEE_LOAD_TOTAL_REQUESTS=1000 python3 \"Codee original/backend/scripts/service_sale_simulator.py\""
  ]
}
