tractatus/.claude/session-archive/NEW_SESSION_STARTUP_PROMPT.md
TheFlow ac2db33732 fix(submissions): restructure Economist package and fix article display
- Create Economist SubmissionTracking package correctly:
  * mainArticle = full blog post content
  * coverLetter = 216-word SIR— letter
  * Links to blog post via blogPostId
- Archive 'Letter to The Economist' from blog posts (it's the cover letter)
- Fix date display on article cards (use published_at)
- Target publication already displaying via blue badge

Database changes:
- Make blogPostId optional in SubmissionTracking model
- Economist package ID: 68fa85ae49d4900e7f2ecd83
- Le Monde package ID: 68fa2abd2e6acd5691932150

Next: Enhanced modal with tabs, validation, export

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 08:47:42 +13:00

4.6 KiB

Optimal New Session Startup Prompt

I'm starting a new session to continue work on the Tractatus AI Safety Framework project.

Current status:
- Previous session completed all 3 sprints (CSP compliance, Admin UI, Data Migration, Performance, Accessibility)
- All 5 quality gates achieved (0 CSP violations, WCAG AA compliance, 100/100 Lighthouse scores)
- All fixes deployed and validated on production
- 25 commits ahead of origin (not yet pushed to GitHub)

Priority for this session:
Implement Task 7 from SCHEDULED_TASKS.md: Footer Language Persistence & Privacy Page Translations

Please:
1. Review SESSION_HANDOFF_2025-10-19_PERFORMANCE_ACCESSIBILITY.md for complete context
2. Run session initialization procedures from CLAUDE.md
3. Confirm readiness to proceed with footer i18n implementation

Session type: NEW (not continuation)

📋 What Claude Will Do

  1. Session Initialization (Automatic)

    • Run node scripts/session-init.js
    • Verify local dev server on port 9000
    • Load framework components
    • Check instruction history
    • Verify CSP compliance
  2. Context Loading

    • Read SESSION_HANDOFF document
    • Review SCHEDULED_TASKS.md for Task 7 details
    • Understand current project state
  3. Readiness Confirmation

    • Confirm all systems operational
    • Ready to begin footer i18n work

🚀 Alternative Quick Start (If You Know What You Want)

If you want to skip the handoff review and jump straight to implementation:

Start implementing Task 7: Footer Language Persistence & Privacy Page Translations.

Requirements:
1. Make footer.js language-persistent with localStorage
2. Translate privacy.html into English, German, and French
3. Add language selector icons to footer and navbar
4. Maintain WCAG AA compliance

Please begin with the footer component implementation.

⚠️ Important Notes

For Claude Code:

  • This is a NEW session, not a continuation
  • Previous session is summarized in SESSION_HANDOFF_2025-10-19_PERFORMANCE_ACCESSIBILITY.md
  • All context is available in session handoff document
  • Local changes are committed but NOT pushed to GitHub yet

Session Type:

  • NEW - Fresh conversation, full context window
  • NOT a continuation from compacted conversation
  • Handoff document provides all necessary context

Framework Compliance:

  • MUST run node scripts/session-init.js at start
  • MUST verify local dev server running (port 9000)
  • MUST maintain 0 CSP violations
  • MUST maintain WCAG AA compliance

📊 Current Project State

Commits Pending Push: 25

All commits are local and production-deployed but not pushed to GitHub origin.

Quality Status:

  • 0 CSP violations
  • 100/100 Lighthouse accessibility
  • WCAG 2.1 AA compliance
  • Production deployment validated

Next Priority:

Task 7: Footer Language Persistence & Privacy Translations (Medium priority, 2-3 hours estimated)


🎓 Context Available

Key Documents:

  1. SESSION_HANDOFF_2025-10-19_PERFORMANCE_ACCESSIBILITY.md - Complete session summary
  2. SCHEDULED_TASKS.md - Task 7 detailed requirements
  3. CLAUDE.md - Session governance and procedures
  4. CLAUDE_Tractatus_Maintenance_Guide.md - Full framework documentation

No Need To:

  • Re-read all code files (handoff provides summary)
  • Re-analyze architecture (already documented)
  • Re-discover requirements (Task 7 is fully specified)

Claude Should:

  • Start with session-init.js
  • Read handoff document
  • Review Task 7 requirements
  • Begin implementation with footer.js

🎯 Success Criteria for Next Session

Primary Goal:

Implement complete i18n support for footer and privacy page

Deliverables:

  1. Footer component with language persistence
  2. Privacy page in English, German, and French
  3. Navbar language selector with persistence
  4. All changes maintain WCAG AA compliance
  5. All changes maintain 0 CSP violations

Optional:

  • Create language switcher component for reuse
  • Add flag icons for language selection
  • Test with all three languages

🔄 Workflow Recommendation

Phase 1: Setup (10 minutes)

  1. Session initialization
  2. Review handoff document
  3. Verify dev environment

Phase 2: Implementation (90-120 minutes)

  1. Enhance footer.js with i18n
  2. Create privacy translation files (de, fr, en)
  3. Update privacy.html with i18n support
  4. Add navbar persistence

Phase 3: Testing & Deployment (30 minutes)

  1. Test all three languages
  2. Verify WCAG compliance
  3. Commit changes
  4. Deploy to production
  5. Validate deployment

Estimated Total Time: 2-3 hours Complexity: Medium Risk Level: Low (isolated feature, no breaking changes)