tractatus/scripts
TheFlow c96ad31046 feat: implement Rule Manager and Project Manager admin systems
Major Features:
- Multi-project governance with Rule Manager web UI
- Project Manager for organizing governance across projects
- Variable substitution system (${VAR_NAME} in rules)
- Claude.md analyzer for instruction extraction
- Rule quality scoring and optimization

Admin UI Components:
- /admin/rule-manager.html - Full-featured rule management interface
- /admin/project-manager.html - Multi-project administration
- /admin/claude-md-migrator.html - Import rules from Claude.md files
- Dashboard enhancements for governance analytics

Backend Implementation:
- Controllers: projects, rules, variables
- Models: Project, VariableValue, enhanced GovernanceRule
- Routes: /api/projects, /api/rules with full CRUD
- Services: ClaudeMdAnalyzer, RuleOptimizer, VariableSubstitution
- Utilities: mongoose helpers

Documentation:
- User guides for Rule Manager and Projects
- Complete API documentation (PROJECTS_API, RULES_API)
- Phase 3 planning and architecture diagrams
- Test results and error analysis
- Coding best practices summary

Testing & Scripts:
- Integration tests for projects API
- Unit tests for variable substitution
- Database migration scripts
- Seed data generation
- Test token generator

Key Capabilities:
 UNIVERSAL scope rules apply across all projects
 PROJECT_SPECIFIC rules override for individual projects
 Variable substitution per-project (e.g., ${DB_PORT} → 27017)
 Real-time validation and quality scoring
 Advanced filtering and search
 Import from existing Claude.md files

Technical Details:
- MongoDB-backed governance persistence
- RESTful API with Express
- JWT authentication for admin endpoints
- CSP-compliant frontend (no inline handlers)
- Responsive Tailwind UI

This implements Phase 3 architecture as documented in planning docs.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 17:16:51 +13:00
..
migrations feat: implement Rule Manager and Project Manager admin systems 2025-10-11 17:16:51 +13:00
monitoring fix: resolve grep count handling in log monitor 2025-10-10 05:30:36 +13:00
add-architectural-overview-doc.js feat: add script to deploy architectural overview document 2025-10-11 00:44:22 +13:00
add-governance-rules.js feat: implement Priority 1 - Public Blog System with governance enhancements 2025-10-11 14:47:01 +13:00
add-sections-to-documents.js feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
archive-all-internal-documents.js feat: implement documentation reorganization with archives 2025-10-11 01:26:14 +13:00
archive-outdated-documents.js feat: implement documentation reorganization with archives 2025-10-11 01:26:14 +13:00
audit-accessibility.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
check-color-contrast.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
check-session-pressure.js feat: session management + test improvements - 73.4% → 77.6% coverage 2025-10-07 09:11:13 +13:00
clean-test-db.js fix: add Jest test infrastructure and reduce test failures from 29 to 13 2025-10-09 20:37:45 +13:00
deploy-frontend.sh feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
deploy-full-project-SAFE.sh security: create deployment exclusion list and safe deployment script 2025-10-09 15:47:20 +13:00
deploy-koha-to-production.sh feat: add Koha pre-production deployment configuration 2025-10-08 21:00:54 +13:00
framework-watchdog.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
generate-pdfs.js feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
generate-single-pdf.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
generate-test-token.js feat: implement Rule Manager and Project Manager admin systems 2025-10-11 17:16:51 +13:00
import-coding-rules.js feat: implement Rule Manager and Project Manager admin systems 2025-10-11 17:16:51 +13:00
import-technical-docs.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
init-db.js feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
init-koha.js feat: implement Koha donation system frontend (Phase 3) 2025-10-08 13:56:56 +13:00
install-mongodb-service.sh feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
install-systemd.sh feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
migrate-appendix-documents.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
migrate-documents.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
migrate-to-memory-proxy.js feat: Phase 5 PoC Week 3 - MemoryProxy integration with Tractatus services 2025-10-10 12:22:06 +13:00
migrate-to-mongodb.js feat: enhance framework services and format architectural documentation 2025-10-11 00:50:47 +13:00
mobile-audit.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
mongodb-tractatus.service feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
performance-audit.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
pre-action-check.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
recover-framework.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
security-audit.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
seed-admin.js feat: add API routes, controllers, and migration tools 2025-10-07 00:36:40 +13:00
seed-projects.js feat: implement Rule Manager and Project Manager admin systems 2025-10-11 17:16:51 +13:00
session-init.js feat: comprehensive documentation improvements and GitHub integration 2025-10-09 14:33:14 +13:00
test-production-deployment.js docs: Phase 5 integration roadmap and production deployment test 2025-10-10 12:33:57 +13:00
test-session1-integration.js feat: Session 1 - Core services integration (InstructionPersistenceClassifier + CrossReferenceValidator) 2025-10-10 12:39:58 +13:00
test-session2-integration.js feat: Session 2 - Complete framework integration (6/6 services) 2025-10-10 12:49:37 +13:00
update-core-concepts.js feat: Phase 2 - Update documentation for Phase 5 MongoDB architecture 2025-10-11 01:35:24 +13:00
update-document-metadata.js feat: implement documentation reorganization with archives 2025-10-11 01:26:14 +13:00
update-glossary.js feat: Phase 2 - Update documentation for Phase 5 MongoDB architecture 2025-10-11 01:35:24 +13:00
validate-document-security.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
validate-public-sync.js fix: update validation script to allow legitimate public info 2025-10-09 15:23:40 +13:00