tractatus/.claude/settings.json
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

53 lines
1.3 KiB
JSON

{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit|Write|Bash",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/framework-audit-hook.js",
"timeout": 10
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/prompt-analyzer-hook.js",
"timeout": 10
},
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/trigger-word-checker.js",
"timeout": 2
},
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/all-command-detector.js",
"timeout": 2
},
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/behavioral-compliance-reminder.js",
"timeout": 2
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/check-token-checkpoint.js",
"timeout": 2
}
]
}
]
}
}