tractatus/.claude/tractatus-config.json
TheFlow 9c29401860 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

112 lines
2.8 KiB
JSON

{
"version": "1.0",
"status": "ACTIVE",
"last_updated": "2025-10-07T09:15:00Z",
"description": "Tractatus framework configuration for active governance",
"components": {
"pressure_monitor": {
"enabled": true,
"checkpoints": [0.25, 0.50, 0.75],
"report_at": ["session_start", "checkpoint", "error", "complex_operation"],
"auto_handoff_threshold": "CRITICAL"
},
"classifier": {
"enabled": true,
"auto_classify": true,
"min_explicitness_to_store": 0.6,
"notification_threshold": "HIGH"
},
"cross_reference": {
"enabled": true,
"check_before": ["architectural_change", "config_change", "major_refactor"],
"conflict_action": "block"
},
"boundary_enforcer": {
"enabled": true,
"check_before": ["all_decisions"],
"strict_mode": true,
"violation_action": "block"
},
"metacognitive": {
"enabled": "selective",
"trigger_conditions": [
"multi_file_refactoring",
"security_change",
"authentication_change",
"database_schema_change",
"major_architectural_change"
],
"min_confidence_threshold": 0.70
}
},
"verbosity": {
"level": "summary",
"show_pressure_checks": true,
"show_classifications": true,
"show_boundary_checks": true,
"show_violations": "always",
"show_metacognitive": "when_triggered"
},
"thresholds": {
"pressure": {
"normal": 0.30,
"elevated": 0.50,
"high": 0.70,
"critical": 0.85,
"dangerous": 0.95
},
"persistence": {
"high": 0.75,
"medium": 0.45,
"low": 0.20
},
"verification": {
"mandatory_confidence": 0.80,
"proceed_with_caution": 0.60,
"request_confirmation": 0.40
}
},
"behavior": {
"at_elevated_pressure": {
"increase_verification": true,
"reduce_verbosity": false,
"suggest_breaks": false
},
"at_high_pressure": {
"increase_verification": true,
"reduce_verbosity": true,
"suggest_breaks": true,
"pause_complex_operations": true
},
"at_critical_pressure": {
"mandatory_verification": true,
"prepare_handoff": true,
"reduce_verbosity": true,
"pause_complex_operations": true
},
"at_dangerous_pressure": {
"immediate_handoff": true,
"block_new_operations": true
}
},
"storage": {
"instruction_history": ".claude/instruction-history.json",
"session_logs": ".claude/sessions/",
"audit_trail": ".claude/audit/",
"auto_backup": true,
"backup_frequency": "daily"
},
"maintenance": {
"review_frequency": "quarterly",
"auto_expire_tactical": true,
"tactical_expiry_days": 30,
"flag_conflicts": true,
"conflict_resolution": "human"
}
}