Skip to main content

docs/RITUAL-OF-TRANSITION.md

β€œIntelligence is ephemeral; the Repository is eternal.” Standard: DSOM For My AI Protocol v6.1 + Palace v1.0 | GitOps Β· AIOps Β· Ansible
The Ritual of Transition governs movement between cognitive states (AI context) and physical states (Git, Ansible, infrastructure). It is the operating membrane of the three-pillar model.

πŸ›οΈ 1. The Three-Pillar Transition Loop

Every state transition in DSOM passes through this loop. There are no shortcuts.

πŸŒ… 2. Phase 1: Reanimation (Start-of-Day Transition)

Objective: Restore the Cognitive Twin’s full context from Git and initiate the Sovereign Directive. Sequence:
Stop Conditions, Reanimation FAILS if:
  • AI cannot state the correct Mental Anchor from walkthrough.md
  • AI references wrong environment (wrong T-tier, wrong OS, wrong user)
  • audit-pre-flight.sh shows any [FAIL], fix first, reanimate after
  • AI proposes to execute directly on production nodes without Ansible
The Sovereign Directive (confirm readiness):
β€œSovereign State Synchronised, [PROJECT NAME] is live and ready.”
If the AI cannot say this correctly, the SOD is incomplete. Re-run from Step 3. Full SOD guide: docs/SOD-RITUAL.md

πŸ› οΈ 3. Phase 2: Active Flow (Execution Guardrails)

Objective: Maintain the three-pillar model and architectural integrity during active work.

3.1 The Human-AI Division of Responsibility

3.2 The Active Flow Rules

  1. One thing at a time, AI proposes a single step. Human approves. Execute. Then next step.
  2. Git before execution, every change is committed before ansible-playbook runs.
  3. Brain before code, update .agents/brain/task.md to reflect what you’re doing before starting.
  4. Output before proceeding, AI does not assume success. Human pastes terminal output every time.
  5. Why before What, AI always explains the architectural reason before showing the command.

3.3 Ansible-First Rule (OS-Level Changes)

3.4 Stop Conditions During Active Flow

Immediately pause and re-read docs/AI-MASTER-PROTOCOL.md if:
  • AI suggests running commands directly on production nodes
  • AI suggests committing secrets or tokens to any file
  • AI skips explaining the architectural reason for a change
  • AI proposes a change that would affect more than one logical concern (not atomic)
  • Human is about to git push --force to main

πŸŒ™ 4. Phase 3: Hibernation (End-of-Day Transition)

Objective: Crystallise the day’s work into Git and preserve the Cognitive Twin context for tomorrow. Sequence:
The Sovereign Save Commit format:
Stop Conditions, EOD INCOMPLETE if:
  • task.md has no [x] items for today
  • walkthrough.md is missing a new Session Anchor
  • hibernation.sh returns any non-GREEN status
  • git push has not completed successfully
  • T2 WSL2 has not pulled from T1 push
Do not sleep until all stop conditions are resolved. Full EOD guide: docs/EOD-RITUAL.md

πŸ”€ 5. The AI Model Transition (Switching AI Providers)

Objective: Transfer the Cognitive Twin state from one AI model to another without context loss. This is triggered when:
  • The current AI model is degrading (context decay, repeated errors)
  • Switching between AI providers (Gemini β†’ Claude β†’ Copilot β†’ Antigravity)
  • Starting a fresh conversation in the same session
The Transition Sequence:
Why this works: The Hibernation Notes block contains everything the AI needs, project identity, environment, history, pending tasks, and operating rules. No manifest upload needed. No file access needed. Just text. Full prompt: docs/REANIMATION-PROMPT-TEMPLATE.md β†’ Prompt 3

πŸ›οΈ 6. The Sunday Human Refresh Protocol

Every Sunday, the Lead Architect performs a Dry-Run Audit, a full human re-read of the project state:
The Human Re-Index Checklist:


Standard: DSOM For My AI Protocol v6.1 + Palace v1.0 | Harisfazillah Jamel | LinuxMalaysia This is the baseline transition protocol for all projects built on this skeleton. Last Updated: 2026-04-08 | Version: v6.1
Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-07-04 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0