tractatus/.claude/hooks
TheFlow 8d5edb3126 feat(architecture): restructure page around 5 Alexander principles + framework fixes
Major Changes:
- Restructured architecture.html to lead with Five Architectural Principles
- Added comprehensive 158-line principles section (Not-Separateness, Deep Interlock,
  Gradients, Structure-Preserving, Living Process)
- Updated hero section: "Five Architectural Principles for AI Safety"
- Added principle cross-references to Six Services section
- Created i18n documentation for ~50 new translation keys

Framework Improvements (Structure-Preserving):
- Fixed PreToolUse hook to return 'ask' for boundary crossings requiring human judgment
  (was incorrectly auto-denying, now properly escalates via Claude Code permission system)
- Fixed CSP validator to only flag NEW violations introduced by edits, not pre-existing ones
  (prevents false positives while maintaining security enforcement)

Content Alignment:
- Messaging anchors: "woven into architecture", "critical execution path", "architecturally
  impossible to bypass", "evidence-based evolution"
- Cultural DNA compliant (inst_085-089): grounded examples (27027 Incident, inst_064),
  evidence-based, anti-consultant, candid about limitations
- Real operational examples: MetacognitiveVerifier selective mode, framework fade detection

Files Changed:
- public/architecture.html: +165 lines (hero + principles section + services intro)
- .claude/hooks/framework-audit-hook.js: Fixed boundary enforcement escalation logic
- scripts/hook-validators/validate-file-edit.js: Improved CSP violation detection
- docs/i18n/ARCHITECTURE_PAGE_I18N_KEYS.md: Translation documentation (new)

Implementation follows SESSION-SUMMARY-2025-10-30-COMPLETE.md action plan (lines 89,
196-237). Structure-preserving transformation: existing content retained, new principles
section adds coherence without breaking existing architecture diagrams or services.

Next Steps: German/French i18n translations needed (~50 keys, 2-3 hours per language)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 00:43:43 +13:00
..
all-command-detector.js feat(governance): third wave enforcement - 22% improvement (46% → 56%) 2025-10-25 13:38:18 +13:00
behavioral-compliance-reminder.js feat(governance): wave 4 enforcement - 41% improvement (56% → 79%) 2025-10-25 13:48:43 +13:00
check-token-checkpoint.js feat(governance): implement comprehensive enforcement architecture 2025-10-25 13:15:06 +13:00
framework-audit-hook.js feat(architecture): restructure page around 5 Alexander principles + framework fixes 2025-10-31 00:43:43 +13:00
prompt-analyzer-hook.js feat(framework): implement Phase 3 bidirectional communication architecture 2025-10-27 19:45:24 +13:00
test-hook-input.json feat(blog): integrate Tractatus framework governance into blog publishing 2025-10-25 08:47:31 +13:00
TEST_HOOK_INVOCATION.txt feat(blog): integrate Tractatus framework governance into blog publishing 2025-10-25 08:47:31 +13:00
track-approval-patterns.js feat(governance): wave 5 enforcement - 100% coverage achieved (79% → 100%) 2025-10-25 14:10:23 +13:00
trigger-word-checker.js fix(governance): add architectural enforcement for "ff" and "ffs" trigger words 2025-10-25 12:32:52 +13:00