From 29011dfd00ccb3d632bdf63369e12f6fab604def Mon Sep 17 00:00:00 2001 From: TheFlow Date: Wed, 22 Oct 2025 00:31:54 +1300 Subject: [PATCH] feat(infrastructure): add MongoDB sync and CSP compliance checking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DATABASE SYNC INFRASTRUCTURE: - scripts/sync-instructions-to-db.js - Syncs .claude/instruction-history.json to MongoDB governanceRules collection - Handles inserts, updates, and deactivations - Validates file and database counts match - Used in governance audit (54 → 56 → 59 active rules) - Required for production deployment of governance rules CSP COMPLIANCE CHECKING: - scripts/check-csp-violations.js - Enforces Content Security Policy compliance (inst_008) - Checks staged HTML files for: - Inline scripts (