tractatus/public/js
TheFlow 2e5756a43c feat(demos): create interactive pluralistic deliberation demo
SUMMARY:
Completed Phase 3 Task 3.4.2 - Created comprehensive interactive demo
showing how PluralisticDeliberationOrchestrator facilitates multi-stakeholder
values deliberation without making autonomous normative choices.

NEW DEMO: PLURALISTIC DELIBERATION

**Scenario:**
Security vulnerability discovery - should AI report it publicly, fix quietly,
or coordinate disclosure? This creates values conflicts between:
- Developer reputation vs. user safety
- Organizational liability vs. transparency
- Community norms vs. market dynamics

**Interactive Features:**

1. **Two Paths:**
   - Autonomous Decision: Shows why AI can't/shouldn't decide values
   - Deliberation: Shows framework facilitation in action

2. **Stakeholder Selection (Step 1):**
   - 6 stakeholder types to choose from
   - Developer, End Users, Organization, Security Community, Competitors, Regulators
   - Each with distinct icon, color, perspective
   - Clickable cards with visual selection state
   - Requires minimum 2 stakeholders to proceed

3. **Perspective Exploration (Step 2):**
   - Dynamically shows selected stakeholders' views
   - Each perspective includes:
     * Primary concern
     * Full viewpoint explanation
     * Priority statement
   - Color-coded by stakeholder type
   - No ranking or weighting applied

4. **Human Decision (Step 3):**
   - 4 decision options provided:
     * Full Disclosure (transparency priority)
     * Private Fix (balance approach)
     * Coordinated Disclosure (community norms)
     * Defer Decision (consult more stakeholders)
   - Framework facilitates but doesn't decide
   - Human makes final choice

5. **Explanation Section:**
   - Side-by-side comparison:
     * What framework DOES (facilitate, surface, record)
     * What framework DOESN'T DO (weight, rank, decide)
   - Explains values pluralism principle
   - Reset button to try different stakeholder combinations

**Design Patterns:**

- Teal color scheme (deliberation service brand color)
- Service icon in header (multi-stakeholder symbol)
- Fade-in animations for smooth UX
- Responsive grid layouts
- Hover effects on all interactive elements
- Clear visual states (selected, active, clickable)

**Stakeholder Perspectives (6 total):**

1. **Developer**: Reputation & timeline concerns
2. **End Users**: Data safety & transparency rights
3. **Organization**: Liability & brand protection
4. **Security Community**: Responsible disclosure norms
5. **Competitors**: Market dynamics
6. **Regulators**: Compliance & user rights (GDPR)

Each stakeholder has:
- Unique icon and color
- Specific concern area
- Full perspective explanation
- Priority statement

**Educational Value:**

- Demonstrates values incommensurability
- Shows why AI shouldn't autonomously decide normative questions
- Illustrates framework's facilitation role
- Highlights human agency preservation
- Explains pluralistic deliberation principle

**Technical Details:**

HTML (deliberation-demo.html):
- 3-step interactive flow
- Autonomous vs. deliberation path choice
- Dynamic stakeholder cards
- Dynamic perspective rendering
- 4 decision options
- Comprehensive explanation section

JavaScript (deliberation-demo.js):
- 6 stakeholder definitions with full data
- Selection state management
- Dynamic content rendering
- Event handlers for all interactions
- Reset functionality
- Smooth scrolling between sections

**CSP Compliance:**
✓ Zero violations
✓ No inline event handlers
✓ Event listeners properly attached
✓ Dynamic content via DOM manipulation

**Accessibility:**
- Semantic HTML structure
- Clear visual states
- Keyboard navigation supported
- Color-coded with text labels
- Responsive design maintained

**Impact:**
Completes ALL Phase 3 interactive features. Users can now:
✓ Understand how deliberation differs from decision-making
✓ Explore different stakeholder perspectives interactively
✓ Experience values pluralism firsthand
✓ See why AI autonomous normative choices are problematic

This demo, combined with the enhanced 27027 incident demo, provides
complete interactive validation of the Tractatus framework's two key
architectural principles:
1. Pattern override prevention (27027 demo)
2. Pluralistic deliberation (this demo)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 22:03:25 +13:00
..
admin feat(admin): add publish/unpublish workflow UI to dashboard 2025-10-19 13:42:47 +13:00
components feat(phase3): add data visualizations for context pressure and activity timeline 2025-10-19 20:49:26 +13:00
demos feat(demos): create interactive pluralistic deliberation demo 2025-10-19 22:03:25 +13:00
utils feat: add multi-currency support and privacy policy to Koha system 2025-10-08 15:17:23 +13:00
blog-post.js feat: newsletter modal and deployment script enhancements 2025-10-14 13:11:46 +13:00
blog.js feat: newsletter modal and deployment script enhancements 2025-10-14 13:11:46 +13:00
case-submission.js fix(csp): clean all public-facing pages - 75 violations fixed (66%) 2025-10-19 13:17:50 +13:00
check-version.js fix(csp): clean all public-facing pages - 75 violations fixed (66%) 2025-10-19 13:17:50 +13:00
docs-app.js fix(mobile): implement navigation toggle for document viewer 2025-10-19 12:41:48 +13:00
docs-search-enhanced.js feat: enhance FAQ for Leader audience and improve navigation 2025-10-14 10:53:47 +13:00
docs-viewer-app.js feat: fix CSP violations & implement three audience paths 2025-10-07 12:21:00 +13:00
faq.js refactor: rewrite Copilot Q&A in measured, evidence-based tone 2025-10-14 14:19:46 +13:00
i18n-simple.js feat(i18n): enhance browser language detection with clear priority logging 2025-10-19 15:01:14 +13:00
koha-donation.js feat(koha): implement Stripe Customer Portal integration 2025-10-18 22:19:08 +13:00
koha-success.js fix(csp): clean all public-facing pages - 75 violations fixed (66%) 2025-10-19 13:17:50 +13:00
koha-transparency.js feat: complete Priority 2 - Enhanced Koha Transparency Dashboard 2025-10-11 17:14:34 +13:00
leader-page.js feat: add case submission portal admin interface and i18n support 2025-10-16 14:50:47 +13:00
media-inquiry.js fix(csp): clean all public-facing pages - 75 violations fixed (66%) 2025-10-19 13:17:50 +13:00
media-triage-transparency.js feat: comprehensive accessibility improvements (WCAG 2.1 AA) 2025-10-12 07:08:40 +13:00
page-transitions.js feat(phase3): implement smooth page transitions with fade effect 2025-10-19 20:44:25 +13:00
researcher-page.js feat: add case submission portal admin interface and i18n support 2025-10-16 14:50:47 +13:00
scroll-animations.js feat(phase3): implement scroll animations with Intersection Observer 2025-10-19 15:09:59 +13:00
version-manager.js fix: PWA install button UX improvements and CSP compliance 2025-10-15 08:39:47 +13:00