<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Legacy verdict tuning (pre–decision-engine v2)
    |--------------------------------------------------------------------------
    |
    | When CAMPAIGN_DECISION_ENGINE_V2 is off, the board uses PerformanceVerdict
    | rules. When v2 is on, overlapping knobs live in campaign-decisions.php.
    |
    */

    'learning_window_days' => 3,
    'max_test_spend' => 40.0,
    'zero_click_spend_floor' => 10.0,
    'max_cpc' => 2.0,
    'llm_enabled' => true,
    'skip_llm_while_learning' => true,
    'skip_llm_when_paused_zero_spend' => true,

    /*
    |--------------------------------------------------------------------------
    | Whale affiliate rollup (arb_adops_campaign_performance)
    |--------------------------------------------------------------------------
    |
    | Read-only join on whale.campaign_id = external_campaign_id. Toggle with
    | CAMPAIGN_PERF_WHALE in .env only.
    |
    */

    'whale_enabled' => (bool) env('CAMPAIGN_PERF_WHALE', false),

    /*
    |--------------------------------------------------------------------------
    | Whale arb_adops_* ingest (admediacron)
    |--------------------------------------------------------------------------
    |
    | Hourly analysis, board list, and MCP read these tables only — no live
    | Meta/Google reporting from ARB. Toggle with CAMPAIGN_PERF_ADOPS in .env.
    |
    */

    'adops_enabled' => (bool) env('CAMPAIGN_PERF_ADOPS', true),
    'adops_table_prefix' => 'arb_adops_',
    'adops_platforms' => ['meta'],
    'adops_limit' => 0,
    'adops_list_all' => true,
    'monitor_user_id' => 0,

    /*
    | Local only: show all users' performance rows on the board (ignore user_id).
    | Keep false in production; enable in config locally if needed.
    */

    'skip_user_scope' => false,

];
