Commit graph

5 commits

Author SHA1 Message Date
TheFlow
37f5556473 fix: use correct env var names (MONGODB_URI not MONGO_URI) 2025-10-12 20:01:28 +13:00
TheFlow
0b5d5cd3dd fix: add dotenv loading to migration script for production auth 2025-10-12 20:00:32 +13:00
TheFlow
4d086831c1 feat: add migration script for value pluralism documents
Adds visibility and order fields to the 3 value pluralism documents
so they display correctly in the docs.html sidebar.

🤖 Generated with Claude Code
2025-10-12 19:56:53 +13:00
TheFlow
81270b0897 fix: add dotenv loading to migration scripts + create inst_036 anti-quick-fix rule
MongoDB authentication fixes:
- load-inst-035.js: Add dotenv.config() to load .env file
- migrate-value-pluralism-docs.js: Add dotenv.config() to load .env file
- Scripts now properly authenticate with production MongoDB

Governance enhancement:
- inst_036: NEVER attempt quick fixes when working with human PM
- Prohibits shortcuts, workarounds, partial implementations
- Requires proper root cause analysis and thorough solutions
- Exception only for critical production outages
- Enforces inst_004 (world-class quality) in all development

Root cause: Scripts weren't loading .env, couldn't access MongoDB credentials
Impact: Production migrations will now work correctly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 16:47:22 +13:00
TheFlow
09f7eaa5f7 feat(scripts): add value pluralism support scripts
- load-inst-035.js: Load precedent database rule to MongoDB
  - Fixes collection name (governanceRules vs governance_rules)
  - Eliminates "Precedent database rule not found" warning

- migrate-value-pluralism-docs.js: Migrate docs to MongoDB
  - Generate ToC from markdown headings
  - Create search indexes
  - Add full metadata (quadrant, persistence, audience, tags)
  - Proper MongoDB integration for docs.html

- generate-markdown-pdfs.js: Generate PDFs using Puppeteer
  - Workaround for missing pandoc PDF engines
  - Styled PDFs with proper typography
  - 3 value pluralism documents

All scripts support production deployment workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 16:36:03 +13:00