{
  "permissions": {
    "allow": [
      "Read(//home/work/apex_v15/**)",
      "Bash(python -m tests.test_orchestrator_phase_a)",
      "Bash(python3 -m tests.test_orchestrator_phase_a)",
      "Bash(python3 -c \"import sys; print\\(sys.path\\)\")",
      "Bash(python3 *)",
      "Bash(git -c color.ui=never status)",
      "Bash(git -c color.ui=never diff --stat orchestrator.py brain/brain_tf.py brain/brain_mr.py tests/test_brain_tf.py tests/test_brain_mr.py tests/test_orchestrator_phase_b.py)",
      "Bash(grep -nA1 'SL_SAFETY_MULT\\\\|SPIKE_TRIGGER_RATIO' /home/work/apex_v16/core/config_futures.py)",
      "Bash(git -c color.ui=never diff --stat core/config_futures.py brain/brain_tf.py brain/brain_mr.py tests/test_brain_tf.py tests/test_brain_mr.py)",
      "Bash(git -c color.ui=never diff core/config_futures.py brain/brain_tf.py brain/brain_mr.py tests/test_brain_tf.py tests/test_brain_mr.py)",
      "Bash(git add *)",
      "Bash(git commit -m ' *)",
      "Bash(git *)",
      "Bash(python *)",
      "Bash(./venv/bin/python *)",
      "Bash(venv/bin/python -m pytest tests/ -x --tb=short)",
      "Bash(venv/bin/python -m pytest tests/ --tb=line)",
      "Bash(venv/bin/python -m pytest tests/test_price_action.py tests/test_brain_tf.py tests/test_brain_mr.py -v --tb=short)",
      "Bash(venv/bin/python -m pytest tests/test_brain_tf.py tests/test_brain_mr.py tests/test_price_action.py -v --tb=short)",
      "Bash(venv/bin/python -m pytest tests/ --tb=short)",
      "Bash(xargs ls *)",
      "Bash(venv/bin/python -c \"from project_x_py.order_manager.bracket_orders import *\")",
      "Bash(venv/bin/python -m tools.smoke_mgc --dry-run)",
      "Bash(/home/work/apex_v16/venv/bin/python tests/test_tech_snapshot_cache.py)",
      "Bash(/home/work/apex_v16/venv/bin/python tests/test_tech_snapshot.py)",
      "Bash(timeout 60 venv/bin/python tests/test_orchestrator_phase_a.py)",
      "Bash(timeout 60 venv/bin/python tests/test_orchestrator_phase_c1.py)",
      "Bash(timeout 60 venv/bin/python tests/test_orchestrator_phase_c2a.py)",
      "Bash(timeout 30 venv/bin/python tests/test_orchestrator_phase_c2a.py)",
      "Bash(timeout 30 venv/bin/python tests/test_orchestrator_phase_b.py)",
      "Bash(timeout 60 venv/bin/python tests/test_orchestrator_phase_b.py)",
      "Bash(timeout 15 venv/bin/python tests/test_orchestrator_phase_b.py)",
      "Bash(timeout 5 venv/bin/python -u tests/test_orchestrator_phase_b.py)",
      "Bash(echo \"RC=$?\")",
      "Bash(timeout 30 venv/bin/python -u tests/test_orchestrator_phase_b.py)",
      "Read(//tmp/**)",
      "Bash(timeout 60 venv/bin/python -u tests/test_orchestrator_phase_b.py)",
      "Bash(timeout 60 venv/bin/python tests/test_orchestrator_phase_c2b.py)",
      "Bash(timeout 30 venv/bin/python -u tests/test_orchestrator_phase_c2b.py)",
      "Bash(timeout 60 venv/bin/python -u tests/test_orchestrator_phase_c2b.py)",
      "Bash(timeout 90 venv/bin/python tests/test_orchestrator_phase_b.py)",
      "Bash(timeout 30 venv/bin/python -c ' *)",
      "Bash(venv/bin/python tests/test_orchestrator_phase_c2b.py)",
      "Bash(venv/bin/python *)",
      "Bash(grep -nA1 \"await brain\\\\.evaluate_entry\\\\\\(\" tests/test_entry_dedup.py)",
      "Bash(xargs -I{} sh -c 'echo \"=== {} ===\"; head -1 {}')",
      "Bash(venv/bin/pip list *)",
      "Bash(venv/bin/pip show *)",
      "Bash(venv/bin/pip install *)",
      "Bash(chmod +x ~/apex_v16/watchdog.sh)",
      "Bash(bash -n ~/apex_v16/watchdog.sh)",
      "Bash(printf '\\\\n# APEX watchdog\\\\nalias watchdog='\\\\''screen -dmS apex_watchdog bash ~/apex_v16/watchdog.sh && echo \"apex_watchdog avviato \\(screen -r apex_watchdog per allegarti\\)\"'\\\\''\\\\n')",
      "Read(//home/work/**)",
      "Bash(bash *)",
      "Read(//usr/local/bin/**)",
      "Bash(touch /usr/local/bin/.write_test)",
      "Bash(rm /usr/local/bin/.write_test)",
      "Bash(curl -sSL https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o /home/work/apex_v16/cloudflared)",
      "Bash(chmod +x /home/work/apex_v16/cloudflared)",
      "Bash(/home/work/apex_v16/cloudflared --version)",
      "Bash(nohup /home/work/apex_v16/cloudflared tunnel --no-autoupdate --url http://localhost:8765)",
      "Bash(echo \"started pid=$!\")",
      "Bash(node -e ' *)",
      "Bash(node -e \"const fs=require\\('fs'\\); const html=fs.readFileSync\\('/home/work/apex_v16/dashboard.html','utf8'\\); const m=html.match\\(/<script>\\([\\\\s\\\\S]*?\\)<\\\\/script>/\\); new Function\\(m[1]\\); console.log\\('dashboard.html JS parses ok'\\);\")",
      "Bash(node -e \"const fs=require\\('fs'\\); const html=fs.readFileSync\\('/home/work/apex_v16/dashboard_public.html','utf8'\\); const m=html.match\\(/<script>\\([\\\\s\\\\S]*?\\)<\\\\/script>/\\); new Function\\(m[1]\\); console.log\\('dashboard_public.html JS parses ok'\\);\")",
      "Bash(/home/work/apex_v16/venv/bin/python -m pytest tests/ -q)",
      "Bash(/home/work/apex_v16/venv/bin/python -m pytest tests/test_news_filter.py -q)",
      "Bash(awk -F'\"ts\": \"' '{print $2}')",
      "Bash(awk -F'\"' '$1 >= \"2026-05-13T17:00\" {print $1}')"
    ]
  }
}
