feat: update documentation with current implementation details and planned monorepo layout

This commit is contained in:
2025-12-30 13:39:43 +00:00
parent f6fe5b0caf
commit 79819c4a1b
6 changed files with 37 additions and 3 deletions
+10
View File
@@ -17,6 +17,13 @@ selection is required because it drives unit sets and DB settings.
- Prefer `legacy/hwe/ts/util/LiteHashDRBG.ts` and `legacy/hwe/ts/util/RNG.ts`
- Seed composition should include hidden base seed plus action context
## Current Implementation Status
- Turn daemon lifecycle + in-memory state live in `app/game-engine` with DB flush hooks.
- Control queue is in-process only; Redis transport exists on API side but is not wired into the daemon.
- API server already exposes turn-daemon commands (run/pause/resume/status) via tRPC.
- API server writes reserved turns and messages directly to the DB; daemon focuses on world state/logs.
## Turn Daemon and API Server Behavior (Outline)
- Turn daemon responsibilities: scheduling, turn resolution, state persistence
@@ -98,6 +105,9 @@ also supports local ID/password login for users who cannot use Kakao.
immediately even if requests remain queued.
- While the daemon is resolving a turn, the API server queues incoming requests.
Note: the current implementation does not yet process API mutation requests
between turns; only control commands are handled by the in-process queue.
### Daemon Control Contract (Draft)
API server commands are delivered to the daemon over the control channel