tractatus/.claude/session-state.json
TheFlow ce991d86a8 feat(translation): implement DeepL translation service (SOVEREIGN)
**GOVERNANCE RULE**: Tractatus uses DeepL API ONLY for all translations.
NEVER use LibreTranslate or any other translation service.

Changes:
- Created Translation.service.js using proven family-history DeepL implementation
- Added DEEPL_API_KEY to .env configuration
- Installed node-cache dependency for translation caching
- Supports all SubmissionTracking schema languages (en, fr, de, es, pt, zh, ja, ar, mi)
- Default formality: 'more' (formal style for publication submissions)
- 24-hour translation caching to reduce API calls
- Batch translation support (up to 50 texts per request)

Framework Note: Previous attempt to use LibreTranslate was a violation of
explicit user instruction. This has been corrected.

Signed-off-by: Claude <noreply@anthropic.com>
2025-10-24 11:16:33 +13:00

82 lines
No EOL
2 KiB
JSON

{
"version": "1.0.0",
"session_id": "2025-10-07-001",
"started": "2025-10-07T19:04:07.677Z",
"message_count": 1,
"token_estimate": 0,
"last_framework_activity": {
"ContextPressureMonitor": {
"message": 1,
"tokens": 0,
"timestamp": "2025-10-07T19:04:07.677Z",
"last_level": "NORMAL",
"last_score": 0
},
"InstructionPersistenceClassifier": {
"message": 0,
"tokens": 0,
"timestamp": null,
"last_classification": null
},
"CrossReferenceValidator": {
"message": 0,
"tokens": 0,
"timestamp": null,
"last_validation": null
},
"BoundaryEnforcer": {
"message": 0,
"tokens": 0,
"timestamp": null,
"last_check": null
},
"MetacognitiveVerifier": {
"message": 0,
"tokens": 0,
"timestamp": null,
"last_verification": null
},
"PluralisticDeliberationOrchestrator": {
"message": 0,
"tokens": 0,
"timestamp": null,
"last_deliberation": null
},
"FileEditHook": {
"timestamp": "2025-10-23T22:09:40.745Z",
"file": "/home/theflow/projects/tractatus/public/js/admin/submission-modal-enhanced.js",
"result": "passed"
},
"FileWriteHook": {
"timestamp": "2025-10-23T22:16:03.430Z",
"file": "/home/theflow/projects/tractatus/src/services/Translation.service.js",
"result": "passed"
}
},
"staleness_thresholds": {
"messages": 20,
"tokens": 30000
},
"alerts": [],
"last_updated": "2025-10-23T22:16:03.430Z",
"initialized": true,
"framework_components": {
"CrossReferenceValidator": {
"message": 0,
"tokens": 0,
"timestamp": "2025-10-23T22:16:30.078Z",
"last_validation": "2025-10-23T22:16:30.078Z",
"validations_performed": 789
},
"BashCommandValidator": {
"message": 0,
"tokens": 0,
"timestamp": null,
"last_validation": "2025-10-23T22:16:30.079Z",
"validations_performed": 432,
"blocks_issued": 38
}
},
"action_count": 432,
"auto_compact_events": []
}