π―οΈ DSOM Ritual of Transition (v6.1 + Palace v1.0)
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.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DSOM TRANSITION LOOP β
β β
β [SOD: Reanimate] β [Propose] β [Git Record] β β
β [Ansible Execute] β [Verify] β [EOD: Hibernate] β
β β_______________________________________β β
β (repeats every day, forever) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Phase | Pillar | Action |
|---|---|---|
| π SOD Reanimation | AIOps | Load context β Cognitive Handshake |
| π οΈ Active Flow | AIOps + GitOps | AI proposes β Human approves β Git records |
| βοΈ Execution | Ansible | Human runs Ansible β AI verifies output |
| π EOD Hibernation | GitOps | Sovereign Save β Hibernation Notes β git push |
π 2. Phase 1: Reanimation (Start-of-Day Transition)
Objective: Restore the Cognitive Twin's full context from Git and initiate the Sovereign Directive.
Sequence:
OPTION A: The Ansible Shortcut (Recommended on T2)
Step 1: bash tools/sod-palace.sh # (Windows: .\tools\sod-palace.ps1)
β Pulls Git, audits workspace, generates manifest with Section [14] Palace Registry
Step 2: Upload manifest to AI β Cognitive Handshake
OPTION B: Manual / Windows T1
Step 1: git-ritual.sh sod β pull latest from origin/main
Step 2: audit-pre-flight.sh β verify workspace (5 checks, all must PASS)
Step 3: reanimate.sh β generate 14-section context manifest
Step 4: privacy-guardian.sh β scan manifest before upload
Step 5: Upload manifest to AI β Cognitive Handshake
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.shshows 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
| Human (Sovereign Architect) | AI (Cognitive Digital Twin) |
|---|---|
| Defines the mission | Proposes implementation plan |
| Approves all proposals | Explains Why before What |
| Commits to Git | Updates .agents/brain/task.md |
| Runs Ansible commands | Writes the exact command for human |
| Pastes output back to AI | Verifies output, proposes next step |
3.2 The Active Flow Rules
- One thing at a time β AI proposes a single step. Human approves. Execute. Then next step.
- Git before execution β every change is committed before
ansible-playbookruns. - Brain before code β update
.agents/brain/task.mdto reflect what you're doing before starting. - Output before proceeding β AI does not assume success. Human pastes terminal output every time.
- Why before What β AI always explains the architectural reason before showing the command.
3.3 Ansible-First Rule (OS-Level Changes)
| β Correct | β Wrong |
|---|---|
ansible-playbook playbooks/dsom/[name].yml -i inventory/hosts.yml |
ssh root@node "systemctl restart service" |
ansible-lint playbooks/dsom/[name].yml before commit |
Manual config edits directly on nodes |
--check dry-run before real run |
Ad-hoc ansible -m shell -a 'cmd' on production |
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 --forcetomain
π 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:
Step 1: AI updates task.md β mark [x] done, [ ] tomorrow's targets
Step 1b: AI updates walkthrough.md β new Session Anchor with Mental Anchor sentence
Step 2: Run EOD Hibernation Notes prompt β save output to hibernation-notes-YYYY-MM-DD.txt
OPTION A: The Ansible EOD (Recommended on T2)
Step 3: bash tools/eod-palace.sh # (Windows: .\tools\eod-palace.ps1)
β Validates artifacts, runs palace-sync, semantic commit, and git push automatically
OPTION B: Manual / Windows T1
Step 3: hibernation.sh β safety check (dirty state, uncommitted files) + palace-sync.pl
Step 4: privacy-guardian.sh β scan if manifest was generated today
Step 5: git-ritual.sh β interactive EOD commit (guided semantic commit + push)
Step 6: git pull origin main β T2 WSL2 sync after T1 push
Step 7: Write tomorrow's Mental Anchor in your physical/digital notebook
The Sovereign Save Commit format:
chore(brain): EOD sovereign save β [Short Anchor] [Phase/vX.X]
Example:
chore(brain): EOD sovereign save β AlmaLinux 10 WSL setup complete [Phase-1/v6.1.1]
Stop Conditions β EOD INCOMPLETE if:
task.mdhas no[x]items for todaywalkthrough.mdis missing a new Session Anchorhibernation.shreturns any non-GREEN statusgit pushhas 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:
Step 1: In the outgoing AI session β run EOD Hibernation Notes Export (Prompt 5)
Step 2: Copy the full Hibernation Notes code block
Step 3: Open the new AI session
Step 4: Paste Prompt 3 (Cognitive Twin Handover) + Hibernation Notes block
Step 5: AI confirms Mental Anchor, T-tier map, sovereign laws, top 3 tasks
Step 6: AI states: "Cognitive Twin Transfer Complete β [PROJECT NAME] Handover Successful."
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:
# Run the full DSOM audit β confirm all 5 checks pass
./tools/audit-pre-flight.sh
# Or via Ansible (checks all inventory nodes simultaneously)
ansible-playbook playbooks/dsom/audit-preflight.yml -i localhost,
# Review the last 10 commits
git log --oneline -10
# Read the current Mental Anchor
cat .agents/brain/walkthrough.md | tail -30
The Human Re-Index Checklist:
[ ] AI-MASTER-PROTOCOL.md β governance laws still apply
[ ] AI-COGNITIVE-TWIN-PROTOCOL.md β all [PLACEHOLDER] fields filled
[ ] task.md β accurate, no stale items
[ ] walkthrough.md β Mental Anchor is current and precise
[ ] implementation_plan.md β roadmap still reflects reality
[ ] audit-pre-flight.sh β all 5 checks [PASS]
[ ] CONTRIBUTING.md β new contributors can follow it
π 7. Related Documents (Read in This Order)
| Priority | Document | When |
|---|---|---|
| 1 | docs/AI-MASTER-PROTOCOL.md |
Every session |
| 2 | docs/SOD-RITUAL.md |
Every morning |
| 3 | docs/EOD-RITUAL.md |
Every evening |
| 4 | docs/REANIMATION-PROMPT-TEMPLATE.md |
When prompting AI |
| 5 | docs/HUMAN-HANDOVER-CONTEXT.md |
New session, new AI |
| 6 | docs/AI-COGNITIVE-TWIN-PROTOCOL.md |
Per project β fill once |
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