/** * Update "Five-Component Architecture" Banner * Add note about framework evolution from 5 to 6 components */ const { MongoClient } = require('mongodb'); const DEV_URI = process.env.MONGODB_URI || 'mongodb://localhost:27017'; const DEV_DB = process.env.MONGODB_DB || 'tractatus_dev'; const SLUG = 'five-component-tractatus-architecture'; const ENHANCED_BANNER = `

Framework Evolution Notice

Framework Update: This blog describes the original five-component architecture from early October 2025. The framework has since evolved to six components with the addition of PluralisticDeliberationOrchestrator for values-sensitive decisions requiring multi-stakeholder input.

When we ran this blog through updated governance rules in late October 2025, the framework flagged language that violated newly-added instructions:

  • inst_017 (No Absolute Assurances): Detected use of "guarantees" - now requires evidence-based language
  • inst_018 (Honest Testing Status): Flags "production-ready" claims without multi-project validation

This is the framework working as designed. As governance rules and components evolve, they catch content that previously passed review. Rather than silently revise, we're leaving this as a live demonstration of how architectural governance improves over time.

Read our framework failure case study for more on transparent error handling.

Note: This blog describes early-stage research (single-project validation). The framework components exist and function, but have not been validated across multiple production deployments.

`; async function updateBanner() { const client = new MongoClient(DEV_URI); try { console.log('🔧 Updating "Five-Component Architecture" Banner\n'); console.log('═'.repeat(70)); await client.connect(); const db = client.db(DEV_DB); const collection = db.collection('blog_posts'); // Fetch the blog const blog = await collection.findOne({ slug: SLUG }); if (!blog) { console.log(`\n❌ Blog not found: ${SLUG}`); return false; } console.log(`\n✅ Found blog: "${blog.title}"`); // Check if banner exists if (!blog.content.includes('Framework Evolution Notice')) { console.log('⚠️ No existing banner found - add banner first with add-governance-banners-to-blogs.js'); return false; } // Replace existing banner with enhanced version // Find the banner div (from
) const bannerRegex = /