feat: refactor turn processing and world state management; remove obsolete files and enhance database interactions

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-27 00:09:11 -04:00
parent c32fa977a8
commit 0da62785d5
15 changed files with 375 additions and 225 deletions

View File

@@ -30,6 +30,15 @@ Status: COMPLETE
- Interpreter contract and first interpreter module created
- Docker container builds are passing for app and frontend
## Phase 0 Structural Cleanup (April 2026) — COMPLETE
- Deleted turns/processTurn.ts (was a pointless shim over runTurnManager)
- Deleted truthEngine.ts (was a thin wrapper over rulebookEngine.validateWithRulebook)
- Extracted world/seedWorld.ts — seed world logic out of app.ts; app factory is now lean
- Fixed db.listTurns() to return real actions and validation results (previously always empty arrays)
- Fixed worldState.rulebookId persistence — active rulebook now survives restarts
- Generalized has_<item_id> in applyActions — no longer hardcoded to key_1 only
---
# Phase 1 — Intent Interpreter Boundary Hardening