Commit graph

3 commits

Author SHA1 Message Date
TheFlow
2298d36bed 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
TheFlow
43fa6cca61 SECURITY: Remove all internal/confidential files from public repository
CRITICAL SECURITY FIX:
Removed 226 internal and sensitive files from git tracking to protect
the public tractatus-framework repository from exposing confidential
development information, server details, and internal strategies.

SCOPE:
This cleanup separates the INTERNAL repository (tractatus) from the
PUBLIC repository (tractatus-framework on GitHub).

REMOVED DIRECTORIES (entire):
- .claude/ (framework session state, metrics, archives)
- governance/ (internal operational governance)
- For Claude Web/ (internal development specs)
- scripts/hook-validators/ (internal enforcement)
- scripts/framework-components/ (internal components)
- docs/planning/, docs/testing/, docs/outreach/
- docs/stripe-analysis/, docs/economist-analysis/
- docs/framework-incidents/, docs/deployment-logs/
- docs/analysis-archive-2025-10/

REMOVED ROOT FILES:
- CLAUDE_*.md, ClaudeWeb*.md (internal development)
- PITCH-*.md (internal pitch documents)
- PHASE-*.md, MEETING_NOTES*.md (internal planning)
- SESSION*.md, OPTIMAL_NEXT_SESSION*.md (session handoffs)
- ARCHIVE_SUMMARY*.md, CLOSEDOWN*.* (session archives)
- EXECUTIVE_BRIEF*.md (internal briefs)
- Tractatus-Website-Complete-Specification*.md (internal specs)
- UI_TRANSFORMATION_PROJECT_PLAN.md, SITE_IMPROVEMENT_PRIORITIES.md
- SCHEDULED_TASKS.md, TRACTATUS_BRAND_SYSTEM.md
- .stripe-ids.json, .rsyncignore (sensitive/deployment)
- deployment-output.txt, migration-output.txt (logs)
- ECONOMIST_LETTER*.docx, PERPLEXITY_USER_PROMPT.txt (correspondence)

REMOVED SCRIPTS:
- scripts/deploy-*.sh (contain server IPs)
- scripts/session-init.js, scripts/check-session-pressure.js
- scripts/analyze-violations.js
- scripts/hook-validators/*.js (5 files)
- scripts/framework-components/*.js

REMOVED DOCS (96 files):
- docs/SESSION*.md, docs/session-handoff-*.md
- docs/DEPLOYMENT*.md, docs/MULTI_PROJECT*.md
- docs/DOCUMENT_AUDIT*.md, docs/DOCUMENT_*.md
- docs/BLOG-POST-OUTLINES.md
- docs/PHASE-*.md, docs/STRIPE_*.md, docs/KOHA*.md
- docs/SECURITY_AUDIT*.md, docs/FRAMEWORK_FAILURE*.md
- docs/BENCHMARK*.md, docs/IMPLEMENTATION_PROGRESS*.md
- docs/BOOTSTRAPPING*.md, docs/GOVERNANCE-RULE-LIBRARY.md
- docs/SIMULATION*.md, docs/API_MEMORY*.md

ADDED PROTECTIONS:
1. Comprehensive .gitignore (172 lines)
   - Blocks all internal directories
   - Blocks all internal file patterns
   - Prevents accidental commits

2. PUBLIC_REPO_CHECKLIST.md
   - Security verification checklist
   - Weekly maintenance procedures
   - Clear guidelines for public vs internal

REMAINING PUBLIC FILES: 6,435
- src/: 85 (open source services)
- tests/: 35 (unit/integration tests)
- public/: 178 (website frontend)
- scripts/: 111 (public utilities)
- docs/: 107 (public documentation)
- root: 13 (README, LICENSE, package.json, configs)

VERIFICATION:
✓ No server IPs
✓ No SSH keys or credentials
✓ No payment system secrets
✓ No internal planning documents
✓ No session handoffs or development logs
✓ No deployment scripts with production details

RESULT:
Public tractatus-framework repository now contains ONLY:
- Open source code
- Public documentation
- Implementation guides
- Apache 2.0 licensed content

Internal tractatus repository (local) retains ALL files for development.

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 18:50:16 +13:00
TheFlow
216a4ad36f feat: ACTIVATE Tractatus Governance Framework 🤖
STATUS: Tractatus governance is now ACTIVE for all future sessions

Framework Components (ACTIVE):
 ContextPressureMonitor (60.9%) - Session quality management
 InstructionPersistenceClassifier (85.3%) - Track explicit instructions
 CrossReferenceValidator (96.4%) - Prevent 27027 failures
 BoundaryEnforcer (100%) - Values/agency protection
⚠️ MetacognitiveVerifier (56.1%) - Selective use only

Configuration:
- Verbosity: SUMMARY (Level 2)
- Pressure checkpoints: 25%, 50%, 75% token usage
- Auto-handoff: CRITICAL pressure (85%+)
- Instruction storage: .claude/instruction-history.json

Files Created:
1. CLAUDE.md - Active Governance Section
   - Framework component status table
   - Session workflow examples
   - Claude's obligations (MUST/MUST NOT/SHOULD)
   - User's rights (CAN/SHOULD)
   - Comprehensive governance protocol

2. .claude/instruction-history.json
   - 7 initial instructions loaded
   - Project infrastructure (MongoDB port 27017, app port 9000)
   - Strategic directives (project isolation, quality standards)
   - Governance activation (inst_007: USE TRACTATUS GOVERNANCE)

3. .claude/tractatus-config.json
   - Component activation settings
   - Verbosity configuration
   - Thresholds (pressure, persistence, verification)
   - Behavior rules for each pressure level
   - Storage paths and maintenance settings

4. docs/session-handoff-2025-10-07-tractatus-activation.md
   - Complete session summary
   - Test coverage improvements (73.4% → 77.6%)
   - Framework activation details
   - Next session priorities
   - "Before/After" governance examples

What Changes in Next Session:
BEFORE: Claude makes changes without systematic verification
AFTER:  Claude checks against instruction history, enforces boundaries,
        monitors session pressure, and requires human approval for
        values decisions

Example (27027 Prevention):
  You: "Change MongoDB to port 27018"

  [CrossReferenceValidator]
   REJECTED - Conflicts with inst_001 (HIGH persistence)
  Original: "MongoDB runs on port 27017" (2025-10-06)

  Cannot proceed without overriding explicit instruction.

Framework Now Self-Hosting:
The Tractatus framework now governs its own development. Multi-factor
pressure analysis, instruction persistence, and boundary enforcement
are operational for all future work.

Next Session Will Start With:
- Pressure baseline check
- Instruction database loaded (7 instructions)
- All components operational
- Request for test instruction to verify framework

🤖 Generated with Claude Code
🎯 Tractatus Framework: ACTIVE
2025-10-07 09:22:05 +13:00