tractatus/OPTIMAL_STARTUP_PROMPT_2025-10-24.md
TheFlow 06c397b2d3 docs(session): clarify startup prompt works for new session OR compaction
Make it explicit that this prompt should be used for:
- Brand new sessions (fresh conversation)
- Continuing after context compaction

Per CLAUDE.md, session-init.js is mandatory in BOTH cases.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 21:03:13 +13:00

56 lines
1.9 KiB
Markdown

# Optimal Startup Prompt - 2025-10-24
## For Next Claude Instance
**Use this prompt for**:
- ✅ Starting a brand NEW session (fresh conversation)
- ✅ Continuing THIS session after context compaction
Copy and paste this prompt:
---
**CONTINUATION/NEW SESSION - Tractatus Website Development**
**Per CLAUDE.md**: `session-init.js` is MANDATORY both for new sessions AND after compaction.
Read `SESSION_CLOSEDOWN_2025-10-24.md` for complete context.
**CRITICAL PRIORITIES**:
1. **Framework Audit Logging FAILURE** - Framework is NOT logging during Claude Code sessions
- Only 11 total audit entries in database
- Most recent pressure analysis: Oct 9 (2 weeks old)
- Should be logging every governance action
- Location: http://localhost:9000/admin/audit-analytics.html
2. **Audit Dashboard Missing 6th Service** - Currently shows 5 action types instead of 6
- Missing: PluralisticDeliberationOrchestrator data
- File: `src/controllers/audit.controller.js`
3. **Background Process Cleanup** - 11 stray npm/node processes running
**COMPLETED LAST SESSION**:
- ✅ Fixed newsletter DELETE button (ObjectId serialization)
- ✅ Fixed audit analytics to read from MongoDB
- ✅ Improved ESLint (108→78 errors)
- ✅ Fixed three-layer cache invalidation
**YOUR FIRST ACTIONS**:
1. Run `node scripts/session-init.js` per CLAUDE.md
2. Verify local server on port 9000
3. Investigate why framework doesn't log during sessions
4. Fix audit dashboard to show all 6 service types
**FOCUS**: Framework self-auditing visibility - user expects to see daily operational data, not just test data.
Ready to proceed?
---
## Quick Reference
**Database**: tractatus_dev (MongoDB port 27017)
**App**: localhost:9000 (development), agenticgovernance.digital (production)
**Docs**: CLAUDE.md, CLAUDE_Tractatus_Maintenance_Guide.md
**Git**: Clean working tree, all changes committed