tractatus/src/controllers
TheFlow 20a108402e feat(content): add framework-guided blog pre-publication and comment analysis
Blog Pre-Publication Workflow:
- New admin interface (blog-pre-publication.html) for framework-guided content review
- Analysis provides: sensitivity check, compliance validation, audience analysis
- Publication guidance: timing, monitoring, action recommendations
- Response templates for anticipated reader feedback
- Overall recommendation: APPROVE/REVIEW/REJECT decision
- CSP-compliant implementation (no inline scripts/styles)

Comment & Feedback Analysis Workflow:
- New admin interface (comment-analysis.html) for social media/article feedback
- Sentiment analysis (positive/negative/neutral/mixed with confidence)
- Values alignment check (aligned values, concerns, misunderstandings)
- Risk assessment (low/medium/high with factors)
- Recommended responses (prioritized with rationale)
- Framework guidance on whether/how to respond

Backend Implementation:
- New controller: framework-content-analysis.controller.js
- Services invoked: PluralisticDeliberationOrchestrator, BoundaryEnforcer
- API routes: /api/admin/blog/analyze, /api/admin/feedback/analyze
- Integration with existing auth and validation middleware

Framework Validation:
During implementation, framework caught and blocked TWO CSP violations:
1. Inline onclick attribute - forced addEventListener pattern
2. Inline style attribute - forced data attributes + JavaScript
This demonstrates framework is actively preventing violations in real-time.

Transforms blog curation from passive reporter to active agency manager.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 19:45:43 +13:00
..
admin.controller.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
analytics.controller.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
audit.controller.js feat(research): add cross-environment audit log sync infrastructure 2025-10-27 12:11:16 +13:00
auth.controller.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
blog.controller.js feat(cultural-sensitivity): implement Phase 1 - detection and flagging (inst_081) 2025-10-25 11:10:06 +13:00
cases.controller.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
contact.controller.js feat(crm): implement unified contact form system 2025-10-24 16:56:21 +13:00
crm.controller.js feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00
documents.controller.js fix(i18n): disable card view for translations to show translated content 2025-10-26 01:56:00 +13:00
framework-content-analysis.controller.js feat(content): add framework-guided blog pre-publication and comment analysis 2025-10-27 19:45:43 +13:00
inbox.controller.js refactor(lint): fix code style and unused variables across src/ 2025-10-24 20:15:26 +13:00
koha.controller.js refactor(lint): fix code style and unused variables across src/ 2025-10-24 20:15:26 +13:00
media.controller.js feat(cultural-sensitivity): implement Phase 1 - detection and flagging (inst_081) 2025-10-25 11:10:06 +13:00
missedBreach.controller.js feat(research): add missed breach tracking system for framework effectiveness measurement 2025-10-27 12:26:53 +13:00
newsletter.controller.js fix(newsletter): serialize ObjectId to string in API response 2025-10-24 20:29:12 +13:00
projects.controller.js refactor(lint): fix code style and unused variables across src/ 2025-10-24 20:15:26 +13:00
publications.controller.js feat(blog): add Manage Submission modal for publication tracking 2025-10-24 01:55:06 +13:00
relationships.controller.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
rules.controller.js feat: implement Rule Manager and Project Manager admin systems 2025-10-11 17:16:51 +13:00
submissions.controller.js refactor(lint): fix code style and unused variables across src/ 2025-10-24 20:15:26 +13:00
variables.controller.js fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00