TheFlow
63cb4eb222
chore(vendor-policy): sweep remaining project-self GitHub URLs to Codeberg
...
CI / Run Tests (push) Waiting to run
CI / Lint Code (push) Waiting to run
CI / CSP Compliance Check (push) Waiting to run
Purges additional github.com/AgenticGovernance project-self URLs from the
remaining clean-hygiene files (6 more files). Directive: "GitHub is American
spyware. Purge it."
Swept:
- docs/governance/AUTONOMOUS_DEVELOPMENT_RULES_PROPOSAL.md (+ 2 [NEEDS VERIFICATION] markers on uncited stats that blocked on hygiene)
- docs/markdown/case-studies.md (+ 1 "10x better" -> "substantially better" rephrase)
- docs/markdown/introduction-to-the-tractatus-framework.md
- docs/markdown/technical-architecture.md
- docs/plans/integrated-implementation-roadmap-2025.md (+ historical "guarantees" -> "absolute-assurance" rephrase, + /docs/api/* paths replaced with generic descriptors)
- SESSION_HANDOFF_2026-04-20_EUPL12_OUT_OF_SCOPE_SWEEP.md meta-refs rewritten to describe the original flip narratively (literal "before" GitHub URLs retained only in the commit 4c1a26e8 diff for historical verification)
Hygiene-fix paraphrases on touched lines:
- inst_016: "80% reduction" / "58% reduction" -> "[NEEDS VERIFICATION]" markers added
- inst_016: "10x better than debugging" -> "substantially better than debugging"
- inst_017: changelog line "language: 'guarantees' -> 'constraints'" rewritten to
"absolute-assurance language per inst_017" to avoid the literal trigger token
Untracked-but-swept (local-only; git does not track .claude/):
- .claude/instruction-history.json (1 URL in an instruction description)
- 4 files under .claude/session-archive/
Files held back with documented reasons (separate concern):
Pre-existing inst_016/017/018 prohibited-terms debt (8 live-content docs):
CHANGELOG.md, CONTRIBUTING.md, docs/LAUNCH_ANNOUNCEMENT.md,
docs/LAUNCH_CHECKLIST.md, docs/PHASE_4_REPOSITORY_ANALYSIS.md,
docs/PHASE_6_SUMMARY.md, docs/plans/research-enhancement-roadmap-2025.md,
docs/case-studies/pre-publication-audit-oct-2025.md
(all contain literal "guarantees" / "production-ready" trigger tokens in
DO-NOT-SAY lists or historical changelog quotes; mechanical rewrite would
destroy pedagogical intent)
Pre-existing inst_084 + credential-placeholder debt:
deployment-quickstart/README.md (6 PASSWORD= example lines for the Docker
deployment kit, + /api/health + production-ready heading),
deployment-quickstart/TROUBLESHOOTING.md (1 PASSWORD= example),
docs/markdown/implementation-guide-v1.1.md (SECURE_PASSWORD example in
mongodb connection string),
docs/PRODUCTION_DOCUMENTS_EXPORT.json (DB dump: 5 prohibited-terms hits
+ 8 credential-pattern hits),
docs/ANTHROPIC_CONSTITUTIONAL_AI_PRESENTATION.md (5 port exposures across
multiple port numbers),
OPTIMAL_NEXT_SESSION_STARTUP_PROMPT_2025-10-21_SESSION2.md (prohibited
terms)
Historical session handoffs with multi-violation hygiene debt (11 files,
2025-10-* to 2026-02-*): file-path/API-endpoint/admin-path exposures that
were valid architectural documentation at the time but violate current
inst_084 — context-aware rewriting of each would destroy historical value.
scripts/add-inst-084-github-url-protection.js — this migration script's
rule text describes GitHub-era semantics ("tractatus = PRIVATE,
tractatus-framework = PUBLIC"); token-swapping to Codeberg produces
circular nonsense. Script needs full rule-inversion rewrite (post-migration:
"NEVER add new github.com URLs per vendor policy") — separate framework-
level decision, not mechanical text swap.
.git/config embedded credentials — not in tracked repo; separate local
concern requiring out-of-band token rotation on codeberg.org +
git.mysovereignty.digital + auth-strategy decision.
Cumulative purge progress (today's 3 GitHub-sweep commits: a4db3e62 , 51fd0bb6 ,
this one):
~55 project-self GitHub URLs in Tractatus before today
~35 remain (in 21 held-back files + .git/config + untracked .claude/)
Remaining scope is per-file context-aware work, not a blanket sweep.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 14:27:49 +12:00
TheFlow
fa8654b399
docs: Migrate markdown sources to CC BY 4.0 licence for PDF regeneration
...
Updates 9 remaining markdown source files from Apache 2.0 to CC BY 4.0.
These are the sources used to regenerate the corresponding PDFs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 17:02:37 +13:00
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
9cbc26b91b
refactor: remove all non-implementation documentation
...
REMOVED: 11 background/internal documentation files from docs/
Internal Project Documentation (3):
- ADR-001-dual-governance-architecture.md - Internal decision about file vs DB storage
- IMPLEMENTATION_PLAN_2025-10-21.md - Internal planning (session effectiveness 4/10)
- USER_GUIDE_PROJECTS.md, USER_GUIDE_RULE_MANAGER.md - Admin UI guides for Tractatus website
Background/Educational Content (5):
- GLOSSARY.md (both versions) - "Non-technical stakeholders" glossary
- introduction.md - Wittgenstein philosophy background
- core-concepts.md - Conceptual explanations
- technical-architecture.md - Internal architecture overview
Diagrams (2):
- architecture-diagram.mmd, architecture-diagram-generic.mmd - Show website features
RETAINED Implementation Docs:
- API documentation (docs/api/) - RULES_API, PROJECTS_API, OpenAPI spec, examples
- Architecture diagrams (docs/diagrams/*.svg) - Visual reference
- Deployment quickstart
REASON: Public GitHub is for developers IMPLEMENTING the framework,
not for understanding what Tractatus is philosophically or how the
Tractatus project internally works.
All background content belongs on https://agenticgovernance.digital
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 21:28:57 +13:00
TheFlow
7cd10978f6
docs: regenerate PDFs and update documentation metadata
...
- Regenerated all PDF downloads with updated timestamps
- Updated markdown metadata across documentation
- Fixed ContextPressureMonitor test for conversation length tracking
- Documentation consistency improvements
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 10:53:48 +13:00
TheFlow
d814e09762
docs: update markdown documentation for value pluralism
...
- Update glossary (v1.1) with value pluralism terminology
- Update case studies with value pluralism examples
- Update core concepts to include foundational pluralism
- Update introduction with 6th core service
- Update technical architecture and comparison matrix
- Update implementation guide with value pluralism sections
All markdown reflects 6-service production architecture
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 16:37:37 +13:00
TheFlow
e086066b99
feat: technical architecture diagram with comprehensive documentation (Task 8)
...
Complete system architecture visualization showing Claude Code + Tractatus
integration across 4 layers: API/Web, Governance, Persistence, and Runtime.
**Diagram Files:**
1. architecture-diagram.svg (15KB)
- Scalable vector format for web and documentation
- 4-layer visualization with color-coded components
- Data flow arrows showing integration points
- Professional design suitable for research papers
2. architecture-diagram.png (581KB)
- High-resolution 2400x2000 raster format
- Generated via Inkscape from SVG
- Suitable for presentations and print materials
3. architecture-diagram.mmd
- Mermaid diagram for markdown embedding
- Supports dynamic rendering in documentation
- Version control friendly text format
**Documentation:**
4. docs/markdown/technical-architecture.md (18KB)
- Comprehensive technical architecture guide
- Layer-by-layer component descriptions
- Integration points and data flows
- Performance characteristics (<10ms overhead)
- Deployment architecture (Docker/systemd)
- Complementarity with Claude Code explanation
5. public/downloads/technical-architecture-diagram.pdf
- Generated from markdown with embedded diagram
- Complete documentation in portable format
- Suitable for offline reading and distribution
**Implementer Page Integration:**
6. public/implementer.html
- Added "System Architecture" section after Deployment Quickstart
- Full-width diagram display with shadow effects
- Three download buttons: SVG, PNG (High-Res), PDF
- 4-card layer breakdown (API → Governance → Persistence → Runtime)
- 3-point integration explanation with numbered badges
- Professional color scheme matching brand (purple/green/yellow/blue)
**Architecture Layers:**
Layer 4 - API & Web Interface:
- Demo endpoints (/api/demo/*)
- Admin dashboard
- Documentation system
- Blog with AI curation
Layer 3 - Tractatus Governance:
- BoundaryEnforcer (values decisions)
- InstructionPersistenceClassifier (classification)
- CrossReferenceValidator (pattern bias prevention)
- ContextPressureMonitor (degradation detection)
- MetacognitiveVerifier (complex operation verification)
Layer 2 - MongoDB Persistence:
- governance_rules collection (rule storage with indexes)
- audit_logs collection (compliance trail)
- session_state collection (pressure tracking)
- instruction_history collection (cross-reference validation)
Layer 1 - Claude Code Runtime:
- Base LLM environment (200k context window)
- Session management (persistent state)
- Tool access (Bash, Read, Write, Edit)
- File system operations (.claude/ directory)
**Key Integration Points:**
1. Pre-Action Checks:
- All actions validated against governance rules
- BLOCK or ALLOW with explanation
- Audit log entry created
2. Instruction Persistence:
- User instructions classified (quadrant, persistence, scope)
- Stored in .claude/instruction-history.json + MongoDB
- Cross-referenced before conflicting actions
3. Context Pressure Monitoring:
- Real-time pressure calculation (tokens, messages, errors)
- Mandatory checkpoint reporting (50k, 100k, 150k)
- Early warning system for degradation
**The 27027 Incident Prevention Flow:**
User: "Use MongoDB port 27027"
→ Classifier: SYSTEM/HIGH/session
→ Stored in instruction_history
[107k tokens later, pressure builds]
AI attempts: port 27017 (pattern recognition)
→ CrossReferenceValidator: CONFLICT DETECTED
→ Action BLOCKED, user notified
→ AI corrects to 27027
→ Audit log created
**Deployment:**
✅ Deployed to production:
- SVG/PNG diagrams to /public/images/
- PDF to /public/downloads/
- Markdown docs to /docs/markdown/
- Updated implementer.html with diagram section
**Roadmap Progress:**
Phase 2, Week 3, Task 8: Technical Architecture Diagram - COMPLETED
Priority: High | Effort: 4-6 hours | Status: ✅ Done
**Success Criteria Met:**
✓ Clear, professional diagram explaining complementarity with Claude Code
✓ High-resolution exports (SVG, PNG, PDF)
✓ Comprehensive technical documentation
✓ Integrated into implementer page
✓ Multiple format downloads available
✓ Layer-by-layer component breakdown
✓ Data flow visualization
✓ Performance metrics documented
Next: Task 9 - Video Walkthrough (Week 3, 2-3 days)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 07:37:10 +13:00