KoalaTrapLord
8c34cb0966
feat: Phase 8 — surface player_explanation in simulation results JSON
...
Extract player_explanation from validation dict in each turn log
entry within _run_game_loop(). The React frontend can now render
validator explanations when player_explanation is non-null.
react-scaffold-backup
2026-03-21 13:37:09 -04:00
KoalaTrapLord
c67ce422d8
refactor: rename LM_STUDIO/LMStudioClient to LLM/LLMClient in routes/coach.py
2026-03-21 13:34:21 -04:00
KoalaTrapLord
cb4b48e362
refactor: rename LMStudioClient to LLMClient in coach_service.py
2026-03-21 13:33:00 -04:00
KoalaTrapLord
4a8db4db6b
refactor: rename LM_STUDIO/LMStudioClient to LLM/LLMClient in llm_client.py
2026-03-21 13:31:32 -04:00
KoalaTrapLord
9c0fa64a69
feat: Phase 7 — add validation field to decision log schema
...
Add "validation" key to _log_decision() entry dict in deepseek_brain.py.
Captures result.get("validation") (None if validator disabled)
for R1-14B output preservation and future analysis.
2026-03-21 13:31:08 -04:00
KoalaTrapLord
c338f16965
refactor: rename LM_STUDIO_* to LLM_* in coach/config.py
2026-03-21 13:29:51 -04:00
KoalaTrapLord
a7ab0e43a5
feat: Phase 6 — make primary brain env-configurable (BRAIN_* vars)
...
Replace hardcoded DEEPSEEK_API_BASE/DEEPSEEK_MODEL env vars in
_get_deepseek_brain() with new BRAIN_* environment variables:
- BRAIN_API_BASE (default: http://localhost:11434 )
- BRAIN_MODEL (default: gpt-oss:20b)
- BRAIN_TEMPERATURE (default: 0.3)
- BRAIN_MAX_TOKENS (default: 1024)
- BRAIN_TIMEOUT (default: 30.0)
All params now passed directly to DeepSeekConfig constructor.
2026-03-21 13:21:58 -04:00
KoalaTrapLord
8b527d7c30
fix: remove duplicate ml_log=True kwarg in deepseek.py
2026-03-21 12:48:56 -04:00
KoalaTrapLord
36760dd922
fix(ml): rename log -> logger in dataset_builder.py to fix NameError
2026-03-21 12:42:02 -04:00
KoalaTrapLord
963a5db638
fix(ml): enable ml_log=True in deepseek route engine calls
2026-03-21 12:41:01 -04:00
KoalaTrapLord
b1996a8deb
fix: indent __init__ into DeepSeekGameEngine class body
2026-03-20 22:01:25 -04:00
KoalaTrapLord
c44d0b32bb
Update DeepSeek port from 1234 to 11434 in deepseek_engine.py
2026-03-20 21:55:10 -04:00
KoalaTrapLord
a78df75014
Update DeepSeek port from 1234 to 11434 in SimulatorPage.tsx
2026-03-20 21:54:22 -04:00
KoalaTrapLord
9020d29745
Update DeepSeek port from 1234 to 11434 in deepseek_brain.py
2026-03-20 21:53:27 -04:00
KoalaTrapLord
b0a34ae9e2
Update DeepSeek port from 1234 to 11434 in coach.py
2026-03-20 21:52:39 -04:00
KoalaTrapLord
4c4f5ce0ff
Update DeepSeek API port from 1234 to 11434 in config.py
2026-03-20 21:51:42 -04:00
KoalaTrapLord
1e7f4b4e31
Update DeepSeek API port from 1234 to 11434 (Ollama)
2026-03-20 21:49:49 -04:00
KoalaTrapLord
488575f3df
fix(routes): correct indentation of validator line in _run_sim_thread_deepseek
2026-03-20 21:42:11 -04:00
KoalaTrapLord
fd7f0258f3
feat(routes): add validator singleton and /api/validator endpoints
2026-03-20 21:27:15 -04:00
KoalaTrapLord
7284b8617d
feat(sim): wire DeepSeek-R1-14B validator into deepseek_engine
2026-03-20 21:16:16 -04:00
KoalaTrapLord
678cc13fe0
feat: enable ML logging by default in lab.py
2026-03-20 21:05:37 -04:00
KoalaTrapLord
19f83a546b
feat: enable ML logging by default in shared.py
2026-03-20 21:01:40 -04:00
KoalaTrapLord
c53e82bfeb
feat(sim): add DeepSeek-R1-14B validator brain module
2026-03-20 17:20:30 -04:00
KoalaTrapLord
f8b13703b8
fix: CAST_PATTERN now matches both 'cast' and 'casts' for Forge compatibility
2026-03-20 15:04:37 -04:00
KoalaTrapLord
eb59a2cd2e
fix: increase default clock from 120s to 300s for Commander games to prevent premature timeouts
2026-03-20 14:58:24 -04:00
KoalaTrapLord
ff6040b53e
Remove stray closing brace that would break compilation
2026-03-20 13:31:50 -04:00
KoalaTrapLord
db7bc62d7e
Fix commander damage tracking, add PLAYER_DAMAGE_SOURCE_PATTERN and diagnostic logging
2026-03-20 13:28:54 -04:00
KoalaTrapLord
fbffe81846
feat: auto-detect commander card names from .dck files for commander cast tracking
2026-03-20 12:48:48 -04:00
KoalaTrapLord
9369cf5450
docs: fix adapter.py docstring to reference lab_api.py instead of deleted lab_api_new.py
2026-03-20 12:19:07 -04:00
KoalaTrapLord
e38401a740
chore: remove obsolete lab_api_backup.py (superseded by lab_api.py + routes/)
2026-03-20 12:17:44 -04:00
KoalaTrapLord
111764615d
chore: remove obsolete lab_api_new.py (superseded by lab_api.py + routes/)
2026-03-20 12:16:50 -04:00
KoalaTrapLord
2088da6fd8
fix: correct indentation in _resolve_forge_dir forge-gui sibling check
2026-03-20 11:33:42 -04:00
KoalaTrapLord
a2fbc30b2b
fix: resolve forge_dir to forge-gui sibling when res/ not found in forge-gui-desktop
2026-03-20 11:22:44 -04:00
KoalaTrapLord
a62640668b
fix: update DeepSeek endpoint IP in lab_api_backup.py
2026-03-20 11:11:07 -04:00
KoalaTrapLord
b8e12dff1b
fix: update DeepSeek endpoint IP in lab_api_new.py
2026-03-20 11:10:15 -04:00
KoalaTrapLord
ea0a785174
fix: update DeepSeek endpoint IP in SimulatorPage.tsx
2026-03-20 11:09:27 -04:00
KoalaTrapLord
9f1277f233
fix: update DeepSeek endpoint IP in deepseek_engine.py
2026-03-20 11:08:32 -04:00
KoalaTrapLord
66ce887fe3
fix: update DeepSeek endpoint IP in deepseek_brain.py docstring
2026-03-20 11:07:38 -04:00
KoalaTrapLord
80f63f192a
fix: update DeepSeek endpoint IP in coach.py
2026-03-20 11:06:30 -04:00
KoalaTrapLord
46ed2f5606
fix: update DeepSeek endpoint IP from 192.168.0.122 to 192.168.0.240 in simulator.html
2026-03-20 11:05:10 -04:00
KoalaTrapLord
93a421b90a
fix: make colons optional in all regex patterns to match Forge output format (no colons after Game Outcome, Life, Add To Stack, Land, Zone Change, etc.); fix VERBOSE_TURN_PATTERN for 'Turn Turn N AiX' format; fix LIFE_CHANGE_PATTERN to use space instead of > separator
2026-03-20 09:26:02 -04:00
KoalaTrapLord
ee95f26bc4
fix: restore double-backslash escaping in Ai regex patterns (fixes compilation errors)
2026-03-20 09:03:55 -04:00
KoalaTrapLord
2ee574f678
diag: add [COMBAT-LINE] logging to identify Forge verbose output format for combat stats parsing
2026-03-20 08:15:03 -04:00
KoalaTrapLord
473a2bdcc7
fix: make Ai regex patterns support both Ai(N) and AiN formats for Forge output compatibility
2026-03-19 23:29:53 -04:00
KoalaTrapLord
a6e50ee0f0
feat: aggregate combat stats in StatsAggregator
2026-03-19 22:45:05 -04:00
KoalaTrapLord
e2a6a75fd9
feat: add combat stat fields to DeckSummary schema
2026-03-19 22:39:51 -04:00
KoalaTrapLord
030bdf2b81
fix: CAST_PATTERN and LAND_PLAY_PATTERN regex to match Forge verbose log prefixes
...
- CAST_PATTERN: Add optional (?:Add To Stack:\s*)? prefix to match Forge's verbose log format
- LAND_PLAY_PATTERN: Add optional (?:Land:\s*)? prefix to match Forge's verbose log format
- Add [PARSE] diagnostic logging after combat stats parsing to confirm spells/lands/cmdr stats per seat
Root cause: Forge verbose output prefixes cast lines with "Add To Stack: " and land lines with "Land: "
but the regexes expected Ai(N) at the start of the line, causing 0 matches for all combat stats.
2026-03-19 22:06:17 -04:00
rgriffith
c83f7e0141
fix: repair broken if-statement on line 162
2026-03-19 21:45:42 -04:00
KoalaTrapLord
e5377ef4bc
fix: correct indentation and add forge-gui candidate path
2026-03-19 18:24:57 -04:00
KoalaTrapLord
56ea2602b4
fix: scan sibling dirs for res/ in _resolve_forge_dir (finds forge-gui/res)
2026-03-19 18:19:32 -04:00