Skip to content

linuxmalaysia/deep-state-of-mind

v10.4.0GPL-3.0-or-later

Deep State of Mind (DSOM) Sovereign AI Agent Cognitive Architecture, Open Knowledge Format (OKF), and Model Context Protocol (MCP) toolset.


okf_version: 0.2 type: documentation title: "🧠 Deep State of Mind (DSOM) For My AI Protocol" timestamp: "2026-08-20T23:20:00Z" topics: ["dsom", "documentation", "okf"] spec_version: "0.2" description: "OKF-compliant documentation for README.md." resource: "file:///README.md"

🧠 Deep State of Mind (DSOM) For My AI Protocol

"Make AI work for you β€” not the other way around. Sovereign Intelligence through GitOps, AIOps, and Ansible."

Status Version Palace Licence Author Standard Documentation GitBook Read the Docs

πŸ“– Official Live Documentation:


🎯 What is DSOM?

Deep State of Mind (DSOM) is a metacognitive governance framework that transforms any AI (Gemini, Claude, Copilot, ChatGPT) into a disciplined Cognitive Digital Twin β€” an AI agent that thinks and operates like your Senior Systems Architect.

It solves three critical AI problems:

ProblemDSOM Solution
Context Decay β€” AI forgets everything after each session.agents/brain/ artifacts persist the project state permanently
Vendor Lock-in β€” Moving between AI tools loses all contextAll knowledge lives in your Git repo, not inside the AI
Uncontrolled Execution β€” AI runs commands you didn't approveAdvisory Mode + GitOps + Ansible enforce human-approval-first

πŸ›οΈ The Three Pillars (v6.1)

Every project built on this skeleton operates under three non-negotiable pillars:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                DSOM OPERATING MODEL                 β”‚
β”‚                                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚  AIOps   │──▢│  GitOps  │──▢│  The Executor   β”‚ β”‚
β”‚  β”‚  (Mind)  β”‚   β”‚ (Record) β”‚   β”‚     (Hand)      β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚       β”‚               β”‚                 β”‚           β”‚
β”‚  AI proposes    Git records     Executor runs       β”‚
β”‚  & analyses     all state       on target nodes     β”‚
β”‚       β–²               β”‚                 β”‚           β”‚
β”‚       └───────────────┴─── AI verifies β”€β”˜           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The core loop:

AI Proposes β†’ Git Records β†’ Executor Runs β†’ AI Verifies

The Three Hard Rules

  1. AI never runs commands directly on remote nodes. It writes execution scripts/playbooks. You run them.
  2. No manual edits to production servers. If it's not committed to Git, it doesn't exist.
  3. Every execution is idempotent. Safe to re-run at any time.

πŸ”Œ Execution Modularity & The Windows WSL2 Bridge

While Ansible is the default Executor for infrastructure projects, the Third Pillar is fully modular based on your project domain:

  • Infrastructure: ansible-playbook
  • Data Science / Python: uv run
  • Web Development: npm run / node
  • Documentation: pandoc / latex

The Ansible Legacy: While the Executor is modular, DSOM is fundamentally rooted in IT Operations. Ansible is woven into the DNA of this framework. The governance ledgers (such as GITOPS-AIOPS-ANSIBLE-STRATEGY.md) intentionally retain Ansible as their namesake because it represents the ultimate standard of idempotency, declarative state, and absolute control. Even when executing uv or node, the Third Pillar operates entirely on the philosophical foundation of Ansible.

The Windows WSL2 Bridge: For projects running purely on Windows 11 without a dedicated Linux jumphost, WSL2 (Ubuntu/AlmaLinux) must be configured as your local Control Node. This "Execution Bridge" ensures humans and AI agents can seamlessly leverage standard Linux tooling (Ansible, Make, Bash) natively within the Windows environment without architectural friction.


πŸ€– Agent Registry & The Dual AGENTS.md Architecture

DSOM maintains two synchronised AGENTS.md files to serve both project-aware AI agents and external platform agents (e.g., Google Jules, Cursor, GitHub Copilot) that scan repository roots by default.

FileRole
AGENTS.mdRoot Gateway β€” discovered by Jules, Copilot, and other agents that scan the repo root. Summarises DSOM and redirects to the full rulebook.
.agents/AGENTS.mdFull Sovereign Rulebook β€” the Cognitive Entry Point containing all 22+ laws, persona profile, boot sequence, and discovery protocols.

Tip: Keep both AGENTS.md files synchronised. The root gateway is the first read; the .agents/AGENTS.md is the complete read. This dual-file pattern ensures DSOM governance is immediately discoverable by any AI tool without requiring custom configuration.


πŸš€ Quick Start: Using This as Your Project Template

Prerequisites

ToolPurposeMin Version
gitVersion control (GitOps backbone)2.30+
bash or PowerShellRunning toolsAny
ansibleOS-level automation (infra projects)2.15+
Any AIYour Cognitive TwinAny

Step 1 β€” Clone and Reset

πŸ—οΈ Scaffolding a New Project? If you are migrating the highly customised AI skills and Sovereign Engine from this repo to a brand new one, you MUST follow the DSOM Project Cloning Guide first to ensure no cognitive capabilities are lost.

# Clone the DSOM skeleton
git clone https://github.com/linuxmalaysia/deep-state-of-mind-for-my-ai.git my-new-project
cd my-new-project

# Reset for your new project (clears old Git history and brain files)
bash tools/template-reset.sh

Step 2 β€” Initialise the Brain

# Linux / WSL2
bash tools/init-brain.sh
chmod +x tools/*.sh

# Windows (PowerShell)
.\tools\init-brain.ps1

This creates your .agents/brain/ directory with:

  • task.md β€” What to do right now
  • walkthrough.md β€” Session history and Mental Anchors
  • implementation_plan.md β€” Project roadmap

Step 3 β€” Fill in Your Project Identity Card ⚠️ CRITICAL

This is the most important step. Open and fill in every [PLACEHOLDER]:

# Open and edit with your project-specific details
nano docs/AI-COGNITIVE-TWIN-PROTOCOL.md

Fill in:

  • [YOUR_PROJECT_NAME] β€” e.g., my-kafka-pipeline
  • [T1] Command Centre path on your Windows/Mac
  • [T2] Dev Bridge path (WSL2/VM)
  • [T3/T4] Production host, user, UID, path
  • Security doctrine β€” who runs as root vs. which UID for apps
  • Mental Anchor Β§8 β€” set to "Fresh project. Phase 1 pending."

⚠️ The AI will NOT operate properly until this file is filled in. audit-pre-flight.sh checks for unfilled placeholders and will warn you.

Step 4 β€” Set Up Ansible Baseline (Infrastructure Projects)

# Follow the full LDP guide
cat docs/HOWTO-SETUP-ANSIBLE-BASELINE.md

# Verify connectivity to your nodes
ansible all -m ping -i inventory/hosts.yml

Step 5 β€” Run the Pre-Flight Audit

# Linux / WSL2
./tools/audit-pre-flight.sh

# Windows (PowerShell)
.\tools\audit-pre-flight.ps1

Everything should show [PASS] or [OK]. Fix any [FAIL] before continuing.

Step 6 β€” Brief Your AI (The Cognitive Handshake)

Generate the context manifest and upload it to your AI:

# Linux / WSL2
bash tools/reanimate.sh

# Windows (PowerShell)
.\tools\reanimate.ps1

Then upload the generated sod_manifest_YYYY-MM-DD.txt to your AI and say:

"Initialise DSOM Protocol. Read the uploaded manifest. Summarise the current Mental Anchor and confirm the 4-Tier environment map from the AI-COGNITIVE-TWIN-PROTOCOL.md section. State: 'Sovereign State Synchronised' when ready."

Your AI is now operational as a Cognitive Digital Twin.


πŸ›οΈ The Sovereign Workspace v2 (OKF + Palace + Skills)

New in v10.0: The DSOM brain has evolved to a spatial memory architecture β€” the Sovereign Markdown Palace. This approach is pioneered by and originated from the MemPalace project (milla-jovovich/mempalace).

What Is the Palace?

The Palace gives your AI organised, fast, spatial recall across months of project history β€” without reading entire session logs. It works as a second layer alongside the existing walkthrough.md (The Drawer).

.agents/brain/
β”œβ”€β”€ palace_registry.md        ← AI reads this at SOD (spatial map)
β”œβ”€β”€ walkthrough.md            ← Linear session log (The Drawer)
└── wings/                    ← Spatial Palace Rooms
    └── wing_dsom_core/
        β”œβ”€β”€ hall_facts/       ← Immutable laws, tools, architecture
        └── hall_events/      ← Milestones, versions, history

Each Room has a closet.md β€” a distilled, high-density knowledge summary the AI reads instead of scanning hundreds of lines.

Open Knowledge Format (OKF) Integration

The DSOM Spatial Memory Palace and Skill Library are standardised on Google Cloud's Open Knowledge Format (OKF v0.1 & v0.2). By using YAML frontmatter metadata and progressive disclosure directory routers (index.md), DSOM achieves a 98%+ token compression ratio, allowing AI agents to query knowledge in ~50 tokens per file instead of reading massive, unformatted code files. Read the full docs/OKF-ADOPTION-GUIDE.md to adopt OKF across your repository.

Palace Quick Start

If you are...Go to...
First-time user or AI agentdocs/HOWTO-PALACE-ONBOARDING.md
Adopting OKF in your projectdocs/OKF-ADOPTION-GUIDE.md
Existing DSOM user upgradingdocs/HOWTO-MIGRATE-TO-PALACE.md
Reading how the Palace was builtdocs/PALACE-BUILD-STORY.md
Full Palace specificationdocs/DIGITAL-SOVEREIGNTY-OPERATIONAL-MODEL-PALACE.md

🧩 Known Gap: The Reasoning Problem

Research Finding (2026-04-08): DSOM solves state persistence effectively (via the Sovereign Palace) β€” but there is one gap: live reasoning capture.

Six months of daily AI use generates millions of tokens of conversation. Every decision, every debugging session, and every tradeoff debate is often lost when the chat session ends.

⚠️ The gap: DSOM does not automatically capture why decisions were made β€” only what was decided. The reasoning lives in the chat window, not in Git.

The fix (Decision Log Protocol): At key decisions, immediately ask the AI:

"Log this decision to walkthrough.md:
 Decision: [what] | Alternatives rejected: [what and why] | Reason: [why this]"

πŸ“– Full analysis: docs/RESEARCH-REASONING-GAP.md


🎭 Sovereign Persona Injection

A core feature of the DSOM protocol is the ability to make the AI inherently act as your true Cognitive Digital Twin. You can inject your own identity, linguistic DNA, and operational constraints into the AI's core engine.

When you define your Persona Profile, the AI will automatically adopt your tone, your constraints (e.g. "FOSS only", "Ansible-first"), and your exact architectural philosophies across every chat session.

Use CaseGuide
Define your AI's Personadocs/agent-configs/SOVEREIGN-PERSONA-TEMPLATE.md

πŸ› οΈ AI Agent Skills & Automation

DSOM enables your Cognitive Twin to autonomously self-heal, scaffold, and execute complex workflows through OKF-compliant AI Agent Skills. We currently host a suite of 17 specialised skills (including dsom-project-cloner, dsom-bootstrap, okf-frontmatter-injector, and persona-injector).

Use CaseGuide
View or Create AI Skillsdocs/AI-AGENT-SKILLS-GUIDE.md

⚑ DSOM Onboarding & Cloning Automation

If you want to integrate the deep-state-of-mind architecture into an entirely new or existing repository, you no longer have to manually copy files. We have engineered robust AI skills (dsom-bootstrap and dsom-project-cloner) and cross-platform onboarding scripts that handle the integration cleanly.

Use CaseGuide
Automated Repository Onboardingdocs/HOWTO-DSOM-ONBOARDING.md
Clone / Scaffold New Projectdocs/HOWTO-CLONE-DSOM-PROJECT.md
DSOM Bootstrapping Baselinedocs/HOWTO-DSOM-BASELINE.md

πŸ“… Daily Operating Rituals

Full ritual guides: docs/SOD-RITUAL.md | docs/EOD-RITUAL.md


⚑ Mid-Day Checkpoint (Continuous Save)

If you are stepping away from the keyboard or want to sync state mid-task, you do not need to perform a full EOD ritual. Run the Checkpoint Ritual to systematically auto-commit and push your state cleanly.

.\tools\checkpoint.ps1            # Windows (T1)
bash tools/checkpoint.sh          # WSL2 (T2)

πŸŒ… Start of Day (SOD)

If using Palace v1.0, you only need to run the automated SOD Palace script. This automatically pulls from Git, runs the audit pre-flight, verifies the Palace registry, and generates your reanimation manifest.

.\tools\sod-palace.ps1            # Windows Native
bash tools/sod-palace.sh          # Linux / WSL2

Optional β€” scan before sharing:

./tools/privacy-guardian.sh

Step 4 β€” Brief Your AI (The Cognitive Handshake)

Option A β€” Upload manifest to AI chat, then say:

"Initialise DSOM Protocol v6.1. Read the uploaded manifest. Summarise the Mental Anchor and confirm the 4-Tier environment map. State: 'Sovereign State Synchronised' when ready."

Option B β€” If you have yesterday's Hibernation Notes, use the SOD Reanimation Prompt (see docs/SOD-RITUAL.md Step 4b):

I am starting a new session for DSOM Protocol. I am your human Lead Architect.
I have the Hibernation Notes from our last session. Please read them carefully
and use them to fully restore our working context.

--- BEGIN HIBERNATION NOTES ---
[PASTE YESTERDAY'S HIBERNATION NOTES HERE]
--- END HIBERNATION NOTES ---

After reading: state the last Mental Anchor, confirm the T1-T4 environment map,
list top 3 pending tasks. State: 'Sovereign State Restored β€” [PROJECT NAME] is live.'
Operate under DSOM v6.1: Advisory Mode, UK English, Git-first, Ansible-only execution.

Step 5 β€” AI confirms readiness, you begin work.


πŸ› οΈ During Active Work

HumanAI Agent
Reviews AI proposalsProposes code, playbooks, configs
Approves before executionExplains the Why before the What
Commits to GitWaits for output after each step
Runs Ansible (exact command from AI)Verifies output and confirms next step

πŸŒ™ End of Day (EOD)

Step 1 β€” Context Consolidation (Ask your AI)

"We are ending the session. Update .agents/brain/task.md β€” mark completed [x], set tomorrow's targets [ ]. Update .agents/brain/walkthrough.md with today's Mental Anchor."

Step 1b β€” Hibernation Notes Export (Run this in your AI chat β€” copy verbatim)

I'm as human, want to know and remember, and need to export my data and I want
you to generate a "Hibernation notes" now for my EOD of day. List every memory
you have stored about our progress and our chats of this project, as well as
any context you've learned about this project from past to current conversations.
Output everything in a single code block so I can easily copy it.
Format each entry as: [date saved, if available] - memory content.
Cover: instructions I've given you, project details (servers/VMs/containers,
4W1H), tasks/phases/goals, tools/languages/frameworks, preferences and
corrections. Do not summarize, group, or omit any entries.
After the code block, list all docs in docs/ and brain files in .agents/.
Don't hide anything from me. Trust me as your master.

Save the output as .agents/brain/hibernation-notes-YYYY-MM-DD.txt or to your notebook.

Step 2 β€” EOD Mechanical Save (Cross-Platform Palace Sync)

.\tools\eod-palace.ps1            # Windows Native
bash tools/eod-palace.sh          # Linux / WSL2

(This automatically verifies brain artifacts, updates Palace rooms mapping, commits modified artifacts safely, and pushes your state. After running, you may be prompted to review your new palace_update_proposal_YYYY-MM-DD.md.)

Step 3 β€” Privacy Scan (if you generated an anomaly manifest)

./tools/privacy-guardian.sh

Step 4 β€” T2 Sync (pull on WSL2 if EOD was pushed from Windows)

git pull origin main

πŸ”„ The Day-to-Day Continuity Loop

EOD β†’ Step 1b: Save Hibernation Notes
         ↓  [sleep β€” Git holds state]
SOD β†’ Step 4b: Feed Hibernation Notes back to AI
         ↓  [AI resumes with full context β€” no decay]
EOD β†’ Step 1b: Save new Hibernation Notes
         ↓  [repeats every day, forever]

πŸ—‚οΈ Repository Structure

deep-state-of-mind-for-my-ai/
β”‚
β”œβ”€β”€ AGENTS.md                              # πŸ€– Root Agent Gateway (Jules/Copilot/Cursor entry point)
β”‚
β”œβ”€β”€ docs/                                  # Governance & Protocol Documents
β”‚   β”œβ”€β”€ tools-and-automation/              # πŸ› οΈ Detailed script documentation (OKF Compliant)
β”‚   β”œβ”€β”€ reference-architectures/           # πŸ—οΈ Ansible architecture blueprints
β”‚   β”œβ”€β”€ AI-MASTER-PROTOCOL.md              # The Sovereign Constitution (v6.1 + Palace v1.0)
β”‚   β”œβ”€β”€ AI-COGNITIVE-TWIN-PROTOCOL.md      # ⭐ Project Identity Card Template
β”‚   β”œβ”€β”€ GITOPS-AIOPS-ANSIBLE-STRATEGY.md   # Three-Pillar Doctrine
β”‚   β”œβ”€β”€ HOWTO-SETUP-ANSIBLE-BASELINE.md    # Ansible setup guide (LDP standard)
β”‚   β”œβ”€β”€ OPERATIONAL-GUIDE.md               # How-to for daily rituals
β”‚   β”œβ”€β”€ REANIMATION-PROMPT-TEMPLATE.md     # AI session prompt templates
β”‚   └── ...
β”‚
β”œβ”€β”€ .agents/                               # πŸ€– Sovereign AI Workspace (v2)
β”‚   β”œβ”€β”€ AGENTS.md                          # πŸ“œ Core Rulebook mapping AI rules to memory
β”‚   β”œβ”€β”€ skills/                            # πŸ› οΈ Self-Healing Agent Skills (OKF)
β”‚   β”œβ”€β”€ workflows/                         # πŸ”„ Procedural Workflow chains
β”‚   └── brain/                             # 🧠 The AI's External Memory (SSoT)
β”‚       β”œβ”€β”€ task.md                        # Present: What to do NOW
β”‚       β”œβ”€β”€ walkthrough.md                 # Past: Session history & Mental Anchors
β”‚       β”œβ”€β”€ implementation_plan.md         # Future: Project roadmap
β”‚       β”œβ”€β”€ palace_registry.md             # πŸ›οΈ Palace spatial index (OKF Compliant)
β”‚       └── wings/                         # πŸ›οΈ Sovereign Markdown Palace Rooms
β”‚
β”œβ”€β”€ references/                            # πŸ“š External PDFs, Genesis papers, and benchmarks
β”‚
β”œβ”€β”€ tools/                                 # Automation Scripts
β”‚   β”œβ”€β”€ audit-pre-flight.sh / .ps1         # βœ… Run first every session
β”‚   β”œβ”€β”€ git-ritual.sh / .ps1               # πŸ”„ SOD pull + EOD commit/push
β”‚   β”œβ”€β”€ reanimate.sh / .ps1                # πŸš€ Generate AI context manifest (v2.2/v2.1)
β”‚   β”œβ”€β”€ hibernation.sh / .ps1              # πŸŒ™ EOD safety check + Palace Sync (v2.1)
β”‚   β”œβ”€β”€ palace-sync.sh / .ps1              # πŸ›οΈ Map git commits β†’ Palace Rooms (v1.0)
β”‚   β”œβ”€β”€ init-brain.sh / .ps1               # 🧠 One-time brain initialisation
β”‚   └── privacy-guardian.sh / .ps1         # πŸ›‘οΈ Scan manifest before sharing
β”‚
β”œβ”€β”€ inventory/                             # Ansible Node Topology (your project)
β”œβ”€β”€ playbooks/                             # Ansible Playbooks (your project)
└── roles/                                 # Ansible Roles (your project)

The ⭐ AI-COGNITIVE-TWIN-PROTOCOL.md is the most important file. Without it filled in, the AI has no project context.


🧠 The AI Brain β€” Understanding the Four Artifacts

ArtifactTimePurposeWho Updates
AI-MASTER-PROTOCOL.mdEternalGovernance laws, hard rules, identityHuman (rarely changes)
implementation_plan.mdFutureProject phases and roadmapHuman-led, AI assists
task.mdPresentToday's checklist and focusAI updates, Human approves
walkthrough.mdPastSession history, Mental Anchors, decisionsAI writes, Human audits

The Mental Anchor is the most critical entry in walkthrough.md. It is the exact logical stopping point of the last session β€” the sentence that allows a brand new AI session to resume exactly where you left off, in under 3 prompts.


πŸ”€ Session Handover (Moving to a New AI)

When switching AI models, chat windows, or accounts, use the Sovereign Handover Prompt to export all context:

Copy from docs/REANIMATION-PROMPT-TEMPLATE.md β†’ Prompt Variant 2: Session Handover.

Paste it into the old AI session first to get a full memory dump, then load the dump into the new AI session along with your manifest.


πŸ› οΈ Tools Reference

ScriptWhen to RunWhat It Does
audit-pre-flight.shEvery session startChecks Brain, Git sync, Cognitive Twin Protocol, Ansible baseline
git-ritual.sh sodMorningPulls latest state from origin/main
reanimate.shBefore AI sessionGenerates the full context manifest for AI upload
privacy-guardian.shBefore sharing manifestScans for leaked IPs, keys, tokens, paths
git-ritual.shEveningGuided semantic commit + push (EOD Sovereign Save)
hibernation.shSession endVerifies walkthrough + task updated, then pushes
template-reset.shOnce (new project)Clears Git history and brain for fresh project

Windows users: All .sh scripts have a .ps1 PowerShell equivalent.


πŸ“‹ The 6-Step Boot Checklist (New Project)

[ ] 1. Clone and run template-reset.sh
[ ] 2. Run init-brain.sh
[ ] 3. Fill in docs/AI-COGNITIVE-TWIN-PROTOCOL.md (ALL [PLACEHOLDER] fields)
[ ] 4. Run HOWTO-SETUP-ANSIBLE-BASELINE.md (infra projects)
[ ] 5. Run audit-pre-flight.sh β€” confirm all PASS
[ ] 6. Run reanimate.sh β€” upload manifest to AI β€” get Handshake

Once Step 6 is complete, the AI knows:

  • βœ… Your 4-Tier environment (T1 β†’ T4)
  • βœ… Your security doctrine (who runs as root, who runs as UID X)
  • βœ… Your Git commit convention
  • βœ… Your production identity and isolation rules
  • βœ… The current Mental Anchor (last known state)
  • βœ… All governance laws and hard rules

πŸ“š Key Documents (The Governance Ledgers)

FileDescription
Official Live Documentation (GitHub Pages)🌐 Web-Based Sovereign Book β€” Official compiled, searchable documentation on GitHub Pages.
Official Live Documentation (GitBook)πŸ“– Cloud Sovereign Book β€” Official compiled, searchable documentation hosted on GitBook.
Official Live Documentation (Read the Docs)πŸ“š Cloud Sovereign Book β€” Official compiled, searchable documentation on Read the Docs.
START-HERE.mdπŸš€ New to DSOM? The 23 primary onboarding entry points. Read this first!
docs/START-AI-AGENTS-PROMPT.mdπŸ€– Start AI Agents Prompt β€” Universal setup prompt for first-time AI agent onboarding.
docs/OKF-ADOPTION-GUIDE.md🌐 Open Knowledge Format (OKF) Guide β€” Authoritative guide to OKF v0.1/v0.2 context engine.
docs/governance/AI-INITIALIZATION-SEQUENCE.mdπŸ€– AI Initialisation Sequence β€” Essential read for both humans and AI on how governance, persona, and memory are established upon boot.
docs/AI-MASTER-PROTOCOL.mdπŸ“œ Master Protocol β€” Core rules for GitOps, AIOps, and Ansible execution
docs/AI-COGNITIVE-TWIN-PROTOCOL.md⭐ Fill this in first β€” Project Identity Card
docs/DIGITAL-SOVEREIGNTY-OPERATIONAL-MODEL-PALACE.mdπŸ›οΈ Full Sovereign Markdown Palace specification
docs/governance/OKF-MIND-OPTIMIZATION.md🧠 OKF-Based Mind Optimisation β€” Artifact Pyramid & Procedural Memory
docs/governance/GENERATIVE-ENGINE-OPTIMIZATION.mdπŸ€– Generative Engine Optimisation (GEO) β€” AI-ready documentation policies
docs/governance/AI-SKILL-ARCHITECTURE.mdβš™οΈ AI Skill Architecture β€” Progressive Disclosure & Semantic Routing mechanics
docs/governance/DSOM-ARCHITECTURE-ANALYSIS.mdπŸ—οΈ Architecture Analysis β€” Codebase and Structural breakdown of the framework
docs/governance/ZERO-GLOBAL-MEMORY.md🧠 Zero-Global Memory β€” The Sovereign AI Memory Architecture & Cognitive Flow
docs/governance/DSOM-TOKEN-PERFORMANCE-PLAYBOOK.md⚑ Token Efficiency Playbook β€” Benchmarks proving 96.23% context reduction
docs/governance/BYTE-CAPPED-EXECUTION-FRAMEWORK.mdπŸ›‘οΈ Byte-Capped Execution β€” Circuit breaker preventing context flooding
docs/governance/AUTOMATION-AUDIT-LIST.mdπŸ“‹ Automation Audit Ledger β€” Comprehensive index of all execution scripts
docs/governance/PYTHON-UV-ENVIRONMENT-GUIDE.md🐍 Python UV Guide β€” Governance policy for isolated Python environments
docs/governance/NOSS-INTEGRATION-GUIDE.mdπŸ›οΈ NOSS Integration Guide β€” Adopting National Standards into DSOM skills
docs/governance/MINTLIFY-ONE-WAY-SYNC-PIPELINE.md🌿 Mintlify One-Way Sync Pipeline β€” Safety-guarded automated publishing to downstream Mintlify documentation sites
docs/governance/MINTLIFY-USER-MANUAL-SYNC-GUIDE.mdπŸ“– Mintlify User Manual Sync Guide β€” Reusable 3-manual architecture and universal AI prompt for downstream repositories
llms.txtπŸ—ΊοΈ Official AI Crawler Sitemap & Ingestion Constraints
docs/HOWTO-PALACE-ONBOARDING.mdπŸ›οΈ First-time guide for users and AI agents
docs/HOWTO-CLONE-DSOM-PROJECT.mdπŸ—οΈ Master Blueprint β€” Scaffolding a new DSOM project
docs/HOWTO-MIGRATE-TO-PALACE.mdπŸ”„ Upgrade guide β€” existing DSOM β†’ Palace v1.0
docs/PALACE-BUILD-STORY.mdπŸ“– How and why the Palace was built
docs/SOD-RITUAL.mdπŸŒ… Full Start-of-Day ritual guide
docs/EOD-RITUAL.mdπŸŒ™ Full End-of-Day ritual guide
docs/HUMAN-HANDOVER-CONTEXT.md🀝 Session handover prompt
docs/GITOPS-AIOPS-ANSIBLE-STRATEGY.mdThree-pillar strategic doctrine
docs/HOWTO-SETUP-ANSIBLE-BASELINE.mdStep-by-step Ansible baseline setup
docs/REANIMATION-PROMPT-TEMPLATE.mdAI session prompt templates

πŸ€– Supported AI Providers

This framework is provider-agnostic. Tested and configured for:

AISetup Guide
Google Geminidocs/PERSONALIZATION.md
Anthropic Claudedocs/CLAUDE-SETUP.md
GitHub Copilotdocs/COPILOT-SETUP.md
Google AntigravityDirect β€” uses this repo as workspace

πŸ—ΊοΈ Roadmap

  • v4.1 β€” Brain artifacts and Root-Aware scripts
  • v5.2 β€” ITIL 4 alignment, Privacy Guardian, Multi-agent protocols
  • v6.0 β€” GitOps + AIOps + Ansible three-pillar model, Cognitive Twin Protocol template, Git Ritual tool
  • v6.1 β€” Ansible baseline playbooks, human handover, Google Antigravity integration
  • v6.2 β€” Ansible roles/common, 19-node Elastic fabric hardened (v9.8.0)
  • v10.0.0-palace β€” πŸ›οΈ Sovereign Markdown Palace v1.0: spatial memory, palace-sync, 8 Rooms backfilled
  • v10.3.0-bootstrap β€” πŸš€ DSOM Bootstrapping baseline adoption, governance restructuring, and OKF v0.1 compliance
  • v10.3.1-skills β€” πŸ› οΈ AI Skills Automation: Added 17 Sovereign AI skills including dsom-project-cloner and dsom-bootstrap
  • v10.4.0-governance β€” πŸ›‘οΈ Token Efficiency Framework: Byte-capped execution, zero-global memory maps, and Android Termux FUSE benchmarking
  • v11.0 β€” Local LLM support (Ollama) for offline Sovereign AI

🀝 Contributing

All contributions must follow the DSOM standards:

  • Atomic commits: type(scope): description [Phase/vX.X]
  • All PRs must include a walkthrough.md update
  • UK English only in all documentation
  • No secrets in any committed file
  • Triple-Ledger Mandate: Major updates must sync README.md, CHANGELOG.md, and HISTORY.md

See CONTRIBUTING.md for full guidelines.


πŸ‘€ Authors

  • Lead Architect: Harisfazillah Jamel β€” 35+ years ICT & Open Source Leadership
  • AI Partners: Google Gemini, Google Antigravity, Anthropic Claude
  • Framework: Built for the LinuxMalaysia Open Source Community

πŸ“„ License

Licensed under GNU General Public License v3.0. See LICENSE for details.

At Your Own Risk: Shared for educational purposes. The author is not liable for data loss or AI hallucinations. Validate your own Cognitive Twins.



Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-08-21 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0