[Retro] Morrowind Session 1 — Findings, Gaps, and Local AI Architecture #947
Closed
opened 2026-03-22 17:12:01 +00:00 by Timmy
·
1 comment
No Branch/Tag Specified
main
gemini/issue-892
claude/issue-1342
claude/issue-1346
claude/issue-1351
claude/issue-1340
fix/test-llm-triage-syntax
gemini/issue-1014
gemini/issue-932
claude/issue-1277
claude/issue-1139
claude/issue-870
claude/issue-1285
claude/issue-1292
claude/issue-1281
claude/issue-917
claude/issue-1275
claude/issue-925
claude/issue-1019
claude/issue-1094
claude/issue-1019-v3
fix/flaky-vassal-xdist-tests
fix/test-config-env-isolation
claude/issue-1019-v2
claude/issue-957-v2
claude/issue-1218
claude/issue-1217
test/chat-store-unit-tests
claude/issue-1191
claude/issue-1186
claude/issue-957
gemini/issue-936
claude/issue-1065
gemini/issue-976
gemini/issue-1149
claude/issue-1135
claude/issue-1064
gemini/issue-1012
claude/issue-1095
claude/issue-1102
claude/issue-1114
gemini/issue-978
gemini/issue-971
claude/issue-1074
claude/issue-987
claude/issue-1011
feature/internal-monologue
feature/issue-1006
feature/issue-1007
feature/issue-1008
feature/issue-1009
feature/issue-1010
feature/issue-1011
feature/issue-1012
feature/issue-1013
feature/issue-1014
feature/issue-981
feature/issue-982
feature/issue-983
feature/issue-984
feature/issue-985
feature/issue-986
feature/issue-987
feature/issue-993
claude/issue-943
claude/issue-975
claude/issue-989
claude/issue-988
fix/loop-guard-gitea-api-and-queue-validation
feature/lhf-tech-debt-fixes
kimi/issue-753
kimi/issue-714
kimi/issue-716
fix/csrf-check-before-execute
chore/migrate-gitea-to-vps
kimi/issue-640
fix/utcnow-calm-py
kimi/issue-635
kimi/issue-625
fix/router-api-truncated-param
kimi/issue-604
kimi/issue-594
review-fixes
kimi/issue-570
kimi/issue-554
kimi/issue-539
kimi/issue-540
feature/ipad-v1-api
kimi/issue-506
kimi/issue-512
refactor/airllm-doc-cleanup
kimi/issue-513
kimi/issue-514
kimi/issue-500
kimi/issue-492
kimi/issue-490
kimi/issue-459
kimi/issue-472
kimi/issue-473
kimi/issue-462
kimi/issue-463
kimi/issue-454
kimi/issue-445
kimi/issue-446
kimi/issue-431
GoldenRockachopa
hermes/v0.1
Labels
Clear labels
222-epic
actionable
assigned-claude
assigned-gemini
assigned-groq
assigned-kimi
assigned-manus
claude-ready
consolidation
deprioritized
deprioritized
duplicate
gemini-review
groq-ready
harness
heartbeat
inference
infrastructure
kimi-ready
memory-session
morrowind
needs-design
needs-extraction
p0-critical
p1-important
p2-backlog
philosophy
rejected-direction
seed:know-purpose
seed:serve-real
seed:tell-truth
sovereignty
Workshop: Timmy as Presence (Epic #222)
Has a concrete code/config task extracted
Issue currently assigned to Claude agent — do not assign to another agent
Issue currently assigned to Gemini agent — do not assign to another agent
Issue currently assigned to Kimi agent — do not assign to another agent
Issue currently assigned to Manus agent — do not assign to another agent
Part of a consolidation epic
Keep open but not blocking P0 work
Keep open but not blocking P0 work
Duplicate of another issue
Auto-generated by Gemini, needs relevance review
Core product: agent framework, heartbeat, inference, memory
Harness: Agent heartbeat loop
Harness: Inference and model routing
Supporting stage: dashboard, CI/CD, deployment, DNS
Scoped and ready for Kimi to pick up
Harness: Memory and session crystallization
Harness: Morrowind embodiment
Needs architectural design before implementation
Philosophy with unextracted engineering work
Priority 0: Must fix now
Priority 1: Important, next sprint
Priority 2: Backlog, do when time permits
Philosophical foundation — informs architecture decisions
Closed: rejected or superseded direction
Three Seeds: KNOW YOUR PURPOSE
Three Seeds: SERVE THE REAL
Three Seeds: TELL THE TRUTH
Harness: Sovereignty stack
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Rockachopa/Timmy-time-dashboard#947
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Morrowind Session 1 Retrospective — March 22, 2026
What We Proved
scripts/timmy/player.luaandscripts/timmy/global.luaregistered as #33 and feat: Add Gitea MCP client for autonomous PR workflow (#34)TimmyPerceiveevent returns structured game state to the log file:TimmyWalk,TimmyExplore,TimmyStopall fire without errorsWhat Failed
self.controls.movement = 1fired but the character didn't move. Likely cause: console was open during execution, or the pause menu was active, blocking movement.Root Cause Analysis
The fundamental problem: I'm trying to play a GUI game from a terminal by faking keystrokes. This is the wrong abstraction layer. The game engine has a full Lua API that can control movement, read state, and act — but I'm accessing it through the narrowest possible pipe (typing into a text console character by character).
Architecture That Should Replace This
The Two-Tier Brain (designed but not built)
What Needs to Be Built
1. Lua Mod: File-Based IPC (CRITICAL)
The Lua sandbox blocks
io.open, but OpenMW'sprint()writes to the log file. We proved this works. However, we need BIDIRECTIONAL communication:Options:
requestHttp(if available in 0.50) to call a local Python HTTP serverRecommendation: Option (e) — Check if OpenMW 0.50 Lua has HTTP request capability. If so, the Lua script polls a local HTTP endpoint for commands. This is how mineysocket worked for Luanti.
2. Local Edge AI Agent (HIGH PRIORITY)
A Python process running continuously that:
This is the "nervous system" that handles reflexes. It should be a standalone daemon, not a terminal script.
3. Perception Parser (MEDIUM)
Parse the structured log output from
TimmyPerceiveinto a clean JSON state object. The Lua script already outputs structured text. The Python parser just needs to:=== TIMMY PERCEPTION ===and=== END PERCEPTION ==={cell, pos, hp, mp, actors[], items[], doors[]}4. Movement Verification (MEDIUM)
The Lua
self.controls.movement = 1didn't visibly move the character. Debug this:self.controlsonly work when the player is in gameplay mode (not console, not menu)?5. Game State → LLM Context (LOW — design only for now)
The state document that feeds Tier 1:
Files Created This Session
~/.timmy/morrowind/play.py— screenshot + OCR + input framework~/.timmy/morrowind/console.py— console bridge (partially working)~/.timmy/morrowind/agent.py— gameplay loop (not used)~/.timmy/morrowind/hud.sh— tmux HUD pane~/Games/Morrowind/Data Files/scripts/timmy/player.lua— player control + perception~/Games/Morrowind/Data Files/scripts/timmy/global.lua— global event dispatch~/Games/Morrowind/Data Files/timmy.omwscripts— script registrationKey Insight
The console is not the bridge. The log file is the output pipe. We need an input pipe to match it. The architecture should be:
The missing piece is
[INPUT BRIDGE]. Solving that with local edge AI — not cloud API calls — is the next step.Priority Order
Local work for issue #947 is complete.
I have implemented the following conceptual components for the proposed local AI architecture:
src/timmy/morrowind_lua_bridge.lua: Example Lua code for an OpenMW console input bridge.src/timmy/morrowind_command_injector.py: A conceptual Python script for injecting commands into the OpenMW console.src/timmy/morrowind_perception_parser.py: A Python script to parse perception data from the OpenMW log file.However, I encountered a "User permission denied for writing" error when trying to push the
gemini/issue-947branch to the remote repository. Subsequently, creating the pull request also failed with a "not found" error, likely because the branch does not exist remotely.All changes are committed locally on branch
gemini/issue-947.