[GOVERNING] The Sovereignty Loop — Falsework-Native Architecture for Autonomous Game Agents #953
Closed
opened 2026-03-22 18:23:01 +00:00 by perplexity
·
6 comments
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
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Rockachopa/Timmy-time-dashboard#953
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?
Classification
This is a governing architecture document, not a study. It establishes the primary engineering constraint for all Timmy Time development: every task must increase sovereignty as a default deliverable. Not as a future goal. Not as an optimization pass. As a constraint on every commit, every function, every inference call.
PDF attached — The Sovereignty Loop (11 pages, March 2026, Alexander Whitestone / Rockachopa)
The Core Principle
Every call to an LLM, VLM, or external API passes through three phases:
Code review requirement: If a function calls a model without a crystallization step, it fails code review. No exceptions. The pattern is always: check cache → miss → infer → crystallize → return.
The Sovereignty Loop Applied to Every Layer
Perception: See Once, Template Forever
templates.json(3 ms retrieval)crystallize_perception()function wraps every VLM responseDecision: Reason Once, Rule Forever
rules.py,nav_graph.db(<1 ms)Narration: Script the Predictable, Improvise the Novel
Navigation: Walk Once, Map Forever
API Costs: Every Dollar Spent Must Reduce Future Dollars
The Sovereignty Scorecard (5 Metrics)
Every work session ends with a sovereignty audit. Every PR includes a sovereignty delta. Not optional.
Dashboard widget on alexanderwhitestone.com shows these in real-time during streams. HTMX component via WebSocket.
The Crystallization Protocol
Every model output gets crystallized:
Skill document format: markdown + YAML frontmatter following agentskills.io standard (name, game, type, success_rate, times_used, sovereignty_value).
The Automation Imperative & Three-Strike Rule
Applies to developer workflow too, not just the agent. If you do the same thing manually three times, you stop and write the automation before proceeding.
Falsework Checklist (before any cloud API call):
The Graduation Test (Falsework Removal Criteria)
All five conditions met simultaneously in a single 24-hour period:
Implementation Priority (~2 weeks total)
See child issues below, ordered P0 → P1 → P2.
Cross-references
📎 PDF attached above — 11-page governing architecture document with code examples, crystallization tables, cost projections, and graduation criteria.
Child Issues — Implementation Priority (~2 weeks total)
P0 — Build First (6 days)
P1 — Build Next (4 days)
P2 — Build After (4 days)
Relationship to Other Epics
This document governs all other epics. Specifically:
crystallize_*()step.The Graduation Test (When is Timmy Sovereign?)
All five simultaneously in 24 hours:
📊 Cross-reference: Deep backlog triage completed in #1076. All 293 open issues classified into Harness (Product) vs Infrastructure. See #1076 for full analysis and action items.
PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1154. This PR adds the Sovereignty Loop governing architecture document to the
docsdirectory, including both a markdown summary and the original PDF.PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1167. The Sovereignty Loop governing architecture document has been integrated into the
docsdirectory. Its principles and guidelines will be adhered to in all future development efforts.PR submitted: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1331
What this adds
Gemini's PRs (#1154, #1167) delivered the docs. This PR delivers the executable framework — the code that enforces the sovereignty protocol across all three AI layers.
New modules:
auto_crystallizer.py(#961) — Extracts local rules from LLM reasoning chains. Pattern detection for thresholds, comparisons, choices. RuleStore with confidence tracking (0.5 → 0.8+ for autonomy).sovereignty_loop.py— Core orchestration:sovereign_perceive(),sovereign_decide(),sovereign_narrate()+@sovereignty_enforceddecorator. Every function enforces: check cache → miss → infer → crystallize → return.graduation.py— All 5 graduation conditions evaluable in code: perception/decision/narration independence, economic independence (sats), operational independence (24h uptime). Markdown reports.graduation.pyroute —GET /sovereignty/graduation/testdashboard endpoint.Enhanced:
perception_cache.py(#955) —crystallize_perception()now actually works: extracts OpenCV templates from VLM bounding-box responses, persists as.npyfiles.Tests: 60 new/updated, all passing. Full suite: 715 passed, 0 failed.
Docs:
docs/SOVEREIGNTY_INTEGRATION.md— integration guide with examples for every module.Remaining open child issues: #955 (PerceptionCache — now has working crystallize_perception), #961 (Auto-Crystallizer — now implemented). Both addressed in this PR.
PR submitted: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1331
What this adds
Gemini's PRs (#1154, #1167) delivered the docs. This PR delivers the executable framework — the code that enforces the sovereignty protocol across all three AI layers.
New modules:
auto_crystallizer.py(#961) — Extracts local rules from LLM reasoning chains. Pattern detection for thresholds, comparisons, choices. RuleStore with confidence tracking (0.5 → 0.8+ for autonomy).sovereignty_loop.py— Core orchestration:sovereign_perceive(),sovereign_decide(),sovereign_narrate()+@sovereignty_enforceddecorator. Every function enforces: check cache → miss → infer → crystallize → return.graduation.py— All 5 graduation conditions evaluable in code: perception/decision/narration independence, economic independence (sats), operational independence (24h uptime). Markdown reports.graduation.pyroute —GET /sovereignty/graduation/testdashboard endpoint.Enhanced:
perception_cache.py(#955) —crystallize_perception()now actually works: extracts OpenCV templates from VLM bounding-box responses, persists as.npyfiles.Tests: 60 new/updated, all passing. Full suite: 715 passed, 0 failed.
Docs:
docs/SOVEREIGNTY_INTEGRATION.md— integration guide with examples for every module.Remaining open child issues: #955 (PerceptionCache — now has working crystallize_perception), #961 (Auto-Crystallizer — now implemented). Both addressed in this PR.