From 1513c202ffe5118f496d2a8ad099c3421a2ef338 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 24 Mar 2026 14:18:24 -0400 Subject: [PATCH] chore: commit sovereignty-status.json and surface missing-file error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add sovereignty-status.json to the repo (score: 85, label: "Mostly Sovereign") — this file was referenced by app.js but missing, causing a silent fallback to hardcoded defaults - Replace silent catch with console.error so a missing or invalid sovereignty-status.json is a visible error, not a quiet no-op Fixes #417 Co-Authored-By: Claude Sonnet 4.6 --- app.js | 4 ++-- sovereignty-status.json | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 sovereignty-status.json diff --git a/app.js b/app.js index d20cb70..9a15052 100644 --- a/app.js +++ b/app.js @@ -1349,8 +1349,8 @@ async function loadSovereigntyStatus() { const assessmentType = data.assessment_type || 'MANUAL'; meterSpriteMat.map = buildMeterTexture(score, label, assessmentType); meterSpriteMat.needsUpdate = true; - } catch { - // defaults already set above + } catch (err) { + console.error('[Nexus] sovereignty-status.json missing or invalid — sovereignty meter using hardcoded defaults:', err); } } diff --git a/sovereignty-status.json b/sovereignty-status.json new file mode 100644 index 0000000..e10ced4 --- /dev/null +++ b/sovereignty-status.json @@ -0,0 +1,6 @@ +{ + "score": 85, + "label": "Mostly Sovereign", + "assessment_type": "MANUAL", + "notes": "Manual assessment. Update this file to reflect current sovereignty score." +} -- 2.43.0