refactor(policy): extract combat selection and context modules
This commit is contained in:
parent
bf41945ef9
commit
484551047c
9 changed files with 1247 additions and 1167 deletions
|
|
@ -2,11 +2,13 @@
|
|||
|
||||
## Code map
|
||||
- `facts.py`: pure game-state parsing and arithmetic.
|
||||
- `brain.py`: decision policy and session-owned `PolicyContext`; proposes one action per observation.
|
||||
- `brain.py`: policy entry point; dispatch, navigation, shops, and minigames.
|
||||
- `policy/combat.py` and `policy/selection.py`: combat and selection proposals.
|
||||
- `policy/context.py`: shared `Decision`, pending actions, and session-owned `PolicyContext`.
|
||||
- `run.py`: observe–decide–act loop, captures, and session attribution.
|
||||
- `sts2.py`: local game HTTP client. `jev.py`: TypeSafe model client and gates.
|
||||
- `migrate.py`: dataset migration and integrity checks.
|
||||
- `CONTEXT.md`: domain terms. `docs/DATASET.md`: dataset schema and limits.
|
||||
- `CONTEXT.md`: domain terms. `docs/POLICY.md`: policy boundaries. `docs/DATASET.md`: dataset schema and limits.
|
||||
- `docs/research/11-prototype-hardening.md`: audited findings and the proposed development order.
|
||||
- Treat historical claims in `docs/DESIGN.md` as context; verify against current code.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue