docs/tools/HOWTO-AUDIT-PRE-FLIGHT.md
Standard: DSOM For My AI Protocol v6.1 | Deterministic Operations Tools:audit-pre-flight.ps1,audit-pre-flight.sh,playbooks/dsom/audit-preflight.ymlPlatforms: Windows Native (T1), Linux/WSL2 (T2)
1. Purpose
audit-pre-flight is the Hardened Gatekeeper of the DSOM workflow. Before a single line of code is written or an Ansible playbook is run, the audit tool verifies that the environment, the AI’s “External Brain”, and the Version Control state are in perfect synchronization.
Use it to:
- Detect Git Drift (divergence between local and origin).
- Verify the physical existence of required Brain Artifacts (
task.md,walkthrough.md). - Validate that the Cognitive Twin Protocol is correctly configured (no placeholders).
- Sanity check the Ansible Baseline (inventory and configuration files).
- Auto-discover the local language environment (PHP, Node.js, Python).
tools/audit-pre-flight.ps1(Windows)tools/audit-pre-flight.sh(Linux/WSL2)playbooks/dsom/audit-preflight.yml(Ansible)
2. Prerequisites
3. Usage
3.1 Standard Execution
3.2 Ansible Validation
4. The 5-Step Health Check
The tool executes these checks in order:5. Reading the Output & Status Codes
6. Integration with the Daily Rituals
This script is natively integrated intosod-palace. Under the Start-of-Day Ritual, you should run either sod-palace (which includes this audit) or run audit-pre-flight standalone before sharing any manifest with the AI.
7. Related Documents
Standard: DSOM For My AI Protocol v6.1 | Harisfazillah Jamel | LinuxMalaysia Document Version: v1.0 | Created: 2026-04-08
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