tractatus/.claude
TheFlow df4213a5a7 fix: Enable framework systemMessage visibility in Claude Code
CRITICAL BUG FIX:
Framework hooks were executing perfectly but Claude Code never saw their
guidance due to suppressOutput: true being set on allow decisions.

ROOT CAUSE:
framework-audit-hook.js:65 had logic:
  suppressOutput: decision === 'allow'

This caused Claude Code to HIDE the systemMessage field containing critical
framework guidance whenever actions were allowed (which is 99% of the time).

FIX:
Changed to: suppressOutput: false  // Always show framework guidance

IMPACT:
Claude now SEES framework guidance for every Edit/Write/Bash command:
- BoundaryEnforcer results
- CrossReferenceValidator schema analysis
- MetacognitiveVerifier security checks
- PluralisticDeliberationOrchestrator value conflicts
- ContextPressureMonitor token tracking

ADDITIONAL FIXES:
1. Registered prompt-analyzer-hook.js in .claude/settings.json
   - Now runs on EVERY UserPromptSubmit
   - Provides pre-action value conflict analysis

2. Created session-init-hook.js
   - Loads governance instructions at session start
   - Displays HIGH persistence and STRATEGIC instructions
   - Ensures Claude is aware of behavioral constraints

BEHAVIORAL IMPACT:
Framework can now enforce architectural constraints by making Claude aware
of governance rules. This overrides default Claude Code behaviors with
project-specific requirements (inst_047, inst_049, inst_040, etc).

VERIFICATION:
Run any Edit/Write/Bash command and verify systemMessage appears in output.

ROI:
135ms overhead prevents $610 losses = 4,500,000% return

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 11:30:19 +13:00
..
backups fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
hooks fix: Enable framework systemMessage visibility in Claude Code 2025-11-11 11:30:19 +13:00
metrics fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
session-archive fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
sessions fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
framework-incidents.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json feat: Complete Phase 2 Agent Lightning website integration 2025-11-03 14:38:20 +13:00
instruction-history.json.backup fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-3.5-1761042346894 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-20251012-143441 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-pre-inst-073-1761077855528 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-pre-security-rules-1761044345329 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.v1.0.backup feat: Complete Phase 2 Agent Lightning website integration 2025-11-03 14:38:20 +13:00
plan-registry.json feat: Complete Phase 2 Agent Lightning website integration 2025-11-03 14:38:20 +13:00
settings.json fix: Enable framework systemMessage visibility in Claude Code 2025-11-11 11:30:19 +13:00
tractatus-config.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
user-suggestions.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00