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
0dd4a5f6c8
refactor: reduce public repo to minimal implementation-only resource
...
REMOVED: 267 non-implementation files (51% reduction)
Categories removed:
- Research documents & case studies (35 files)
- Planning/internal development docs (28 files)
- Website pages & assets (93 files - this is framework code, not website code)
- Audit reports (6 files)
- Non-essential admin UI (11 files)
- Markdown content duplicates (10 files)
- Internal development scripts (96 files)
- Internal setup docs (2 files)
RETAINED: 253 implementation-focused files
- Core framework services (src/)
- Test suite (tests/)
- API documentation (docs/api/)
- Deployment quickstart guide
- Essential admin UI (rule manager, dashboard, hooks dashboard)
- Architecture decision records
- Configuration files
PURPOSE: Public repo is now focused exclusively on developers
implementing Tractatus, not researchers studying it or users visiting
the website. All background/research content available at
https://agenticgovernance.digital
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 21:09:34 +13:00
TheFlow
88f28e8b83
docs: add comprehensive architectural overview and Phase 5 Session 3 summary
...
This commit adds two critical research documentation files summarizing the
Tractatus project from inception through current production-ready status.
## Context
- Phase 5 Sessions 1 & 2 indicated "implementation looks promising"
- Session 3 focused on API Memory observations, MongoDB fixes, and inst_016-018
- Need comprehensive system overview for stakeholders and future research
## New Documentation
### 1. Architectural Overview (v1.0.0)
**File**: docs/research/architectural-overview.md
**Purpose**: Definitive reference for system architecture, research phases, and
current status
**Contents**:
- Executive summary (Phase 5 complete, 223/223 tests passing)
- System architecture (4-layer design with hybrid memory)
- Core services documentation (all 6 services detailed)
- Memory architecture (MongoDB + Anthropic API + filesystem)
- MongoDB schema design (AuditLog, GovernanceRule models)
- Phase 5 detailed progress (Sessions 1-3)
- API Memory observations and behavior patterns
- Instruction persistence system (19 active instructions)
- Test coverage (223 tests, 100% passing)
- Production deployment guide
- Security & privacy architecture
- Performance & scalability analysis
- Future research directions (Phase 6 considerations)
- Lessons learned and architectural insights
**Key Sections**:
- API Memory System Observations (Section 3.4)
- Phase 5 Session 3 detailed summary
- inst_016-018 enforcement implementation
- Production readiness assessment
- Complete command reference appendix
**Format**: Markdown with versioning (v1.0.0), anonymized for public release
### 2. Phase 5 Session 3 Summary
**File**: docs/research/phase-5-session3-summary.md
**Purpose**: Session-specific documentation maintaining consistency with
Sessions 1 & 2 format
**Contents**:
- Executive summary (2.5 hours, all objectives exceeded)
- API Memory system observations (first session with new feature)
- 6 MongoDB persistence fixes (detailed with code examples)
- BoundaryEnforcer inst_016-018 enforcement (MAJOR feature)
- Test results (223/223 passing, 61 BoundaryEnforcer)
- Performance metrics (no degradation)
- Key findings and lessons learned
- Production readiness assessment
- Comparison to Sessions 1 & 2
- Complete command reference appendix
**Key Achievement**: Progressed from "implementation looks promising"
(Sessions 1-2) to "production-ready baseline established" (Session 3)
## API Memory Observations
**First session using Anthropic's new API Memory system**
**Key Findings**:
1. Session continuity detection works (detected continuation from 2025-10-07-001)
2. Instructions NOT loaded automatically by API Memory (loaded via session-init.js)
3. API Memory provides conversation continuity, NOT automatic rule loading
4. Architecture clarified: MongoDB (required) + Anthropic API (optional)
5. Graceful degradation when CLAUDE_API_KEY unavailable
6. Performance: No degradation, framework components remained active
**Implication**: API Memory suitable for conversation continuity but does NOT
replace persistent storage. MongoDB remains required for production.
## Documentation Structure
```
docs/research/
├── architectural-overview.md # Comprehensive system overview (NEW)
├── phase-5-session1-summary.md # Existing (67% integration)
├── phase-5-session2-summary.md # Existing (100% integration)
└── phase-5-session3-summary.md # NEW (production-ready)
```
**Progression**:
- Session 1: 4/6 services, "looks promising"
- Session 2: 6/6 services, "looks promising"
- Session 3: 6/6 services, "production-ready"
## Version Control
**Architectural Overview**: v1.0.0 (initial comprehensive overview)
**Update Schedule**: Will be versioned and updated over time
**Next Review**: Phase 6 planning (if pursued)
## Statistics
- **Architectural Overview**: ~800 lines, 12 sections, 3 appendices
- **Session 3 Summary**: ~500 lines, 9 sections, 1 appendix
- **Total Documentation**: ~1,300 lines of comprehensive research documentation
- **Format**: Markdown with code examples, tables, ASCII diagrams
## Audience
- Research team and stakeholders
- Future contributors and collaborators
- Production deployment team
- Academic researchers in AI governance
- Public release (anonymized)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 00:32:24 +13:00