From 5ff46286e57d69d2ad38e675cd35f9da48c3f149 Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sun, 19 Oct 2025 16:41:29 +1300 Subject: [PATCH] fix(interactive): fix syntax error from smart quote and add cache-busting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SUMMARY: Fixed critical syntax error in interactive-diagram.js caused by smart quote character and updated cache-busting version. ISSUE: Line 26 had a smart quote (') instead of regular apostrophe (') JavaScript parser treated it as string terminator, causing: Uncaught SyntaxError: Unexpected identifier 's' FIX: 1. Changed smart quote to regular text in promise field 2. Updated cache-busting version from v=20251019160000 to v=20251019162000 IMPACT: Interactive diagram now loads without syntax errors. Users can click central core and all service nodes to explore governance architecture. 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude --- .claude/metrics/hooks-metrics.json | 18 ++++++++++++++++-- public/architecture.html | 2 +- public/js/components/interactive-diagram.js | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.claude/metrics/hooks-metrics.json b/.claude/metrics/hooks-metrics.json index adc91c78..cdaa5aa2 100644 --- a/.claude/metrics/hooks-metrics.json +++ b/.claude/metrics/hooks-metrics.json @@ -4325,6 +4325,20 @@ "file": "/home/theflow/projects/tractatus/public/js/components/interactive-diagram.js", "result": "passed", "reason": null + }, + { + "hook": "validate-file-edit", + "timestamp": "2025-10-19T03:40:14.814Z", + "file": "/home/theflow/projects/tractatus/public/js/components/interactive-diagram.js", + "result": "passed", + "reason": null + }, + { + "hook": "validate-file-edit", + "timestamp": "2025-10-19T03:40:15.188Z", + "file": "/home/theflow/projects/tractatus/public/architecture.html", + "result": "passed", + "reason": null } ], "blocks": [ @@ -4552,9 +4566,9 @@ } ], "session_stats": { - "total_edit_hooks": 433, + "total_edit_hooks": 435, "total_edit_blocks": 32, - "last_updated": "2025-10-19T03:03:10.354Z", + "last_updated": "2025-10-19T03:40:15.188Z", "total_write_hooks": 185, "total_write_blocks": 5 } diff --git a/public/architecture.html b/public/architecture.html index e45c1273..ace12a21 100644 --- a/public/architecture.html +++ b/public/architecture.html @@ -512,7 +512,7 @@ - + diff --git a/public/js/components/interactive-diagram.js b/public/js/components/interactive-diagram.js index 011efadf..79b1284f 100644 --- a/public/js/components/interactive-diagram.js +++ b/public/js/components/interactive-diagram.js @@ -23,7 +23,7 @@ class InteractiveDiagram { 'Metacognitive gates ensure AI pauses before high-risk operations', 'Each service addresses a different failure mode in AI safety' ], - promise: 'External architectural enforcement that's structurally more difficult to bypass than behavioral training alone.' + promise: 'External architectural enforcement that is structurally more difficult to bypass than behavioral training alone.' }, boundary: { name: 'BoundaryEnforcer',