From 216d4e6fea3965de386e8221249348ad920c21da Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 9 Jun 2026 16:16:10 +0100 Subject: [PATCH] Keep Loki runtime witnesses local --- .gitignore | 1 + state/loki.chrome_snapshot.cc | 49 ---------- state/loki.eve_surface.cc | 135 --------------------------- state/loki.provider_advertisement.cc | 126 ------------------------- 4 files changed, 1 insertion(+), 310 deletions(-) delete mode 100644 state/loki.chrome_snapshot.cc delete mode 100644 state/loki.eve_surface.cc delete mode 100644 state/loki.provider_advertisement.cc diff --git a/.gitignore b/.gitignore index 88fe71a..e0f65fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules/ +state/*.cc state/*.tmp state/*.log state/runtime/ diff --git a/state/loki.chrome_snapshot.cc b/state/loki.chrome_snapshot.cc deleted file mode 100644 index d1a1fdc..0000000 --- a/state/loki.chrome_snapshot.cc +++ /dev/null @@ -1,49 +0,0 @@ -# cultcache-text-witness v0 -# schema: gamecult.loki.chrome_snapshot.v0 -# provider: loki.chrome -# updatedAt: 2026-06-09T15:11:06.124Z -{ - "schema": "gamecult.loki.chrome_snapshot.v0", - "providerId": "loki.chrome", - "serviceId": "loki.chrome_daemon", - "observedAt": "2026-06-09T15:11:06.124Z", - "activeSource": "none", - "freshness": { - "state": "unreachable", - "lastSeenAt": null, - "maxAgeMs": 15000 - }, - "sources": { - "cdp": { - "state": "unreachable", - "observedAt": "2026-06-09T15:11:06.096Z" - }, - "chromeExtension": { - "state": "missing", - "observedAt": null - } - }, - "cdp": { - "endpoint": "http://127.0.0.1:9222", - "reachable": false, - "error": "fetch failed" - }, - "extension": { - "reachable": false, - "ingestEndpoint": "http://127.0.0.1:17666/ingest/chrome-extension", - "error": "no extension report received" - }, - "tabs": [], - "summary": { - "tabCount": 0, - "inspectableTabCount": 0, - "activeTabCount": 0 - }, - "redaction": { - "urlQuery": "not-observed", - "titles": "not-observed", - "pageContent": "not-read", - "cookies": "not-read", - "source": "none" - } -} diff --git a/state/loki.eve_surface.cc b/state/loki.eve_surface.cc deleted file mode 100644 index f4451ca..0000000 --- a/state/loki.eve_surface.cc +++ /dev/null @@ -1,135 +0,0 @@ -# cultcache-text-witness v0 -# schema: gamecult.eve.surface.v1 -# provider: loki.chrome -# updatedAt: 2026-06-09T15:11:06.124Z -{ - "type": "surface-state", - "schema": "gamecult.eve.surface.v1", - "providerId": "loki.chrome", - "providerKind": "service.operator", - "title": "Loki Chrome", - "version": 1781017866124, - "updatedAt": "2026-06-09T15:11:06.124Z", - "surface": { - "root": { - "id": "loki.chrome.root", - "kind": "surface", - "props": { - "layout": "operator", - "freshness": { - "state": "unreachable", - "lastSeenAt": null, - "maxAgeMs": 15000 - } - }, - "children": [ - { - "id": "loki.chrome.summary", - "kind": "panel", - "props": { - "title": "Chrome Observation", - "tone": "warning" - }, - "children": [ - { - "id": "loki.chrome.metric.reachable", - "kind": "metric", - "props": { - "label": "Reachable", - "value": "no", - "tone": "warning" - }, - "children": [] - }, - { - "id": "loki.chrome.metric.source", - "kind": "metric", - "props": { - "label": "Source", - "value": "none", - "tone": "warning" - }, - "children": [] - }, - { - "id": "loki.chrome.metric.tabs", - "kind": "metric", - "props": { - "label": "Tabs", - "value": "0", - "tone": "neutral" - }, - "children": [] - }, - { - "id": "loki.chrome.metric.inspectable", - "kind": "metric", - "props": { - "label": "Inspectable", - "value": "0", - "tone": "neutral" - }, - "children": [] - }, - { - "id": "loki.chrome.extension-endpoint", - "kind": "inspector.kv", - "props": { - "label": "Extension ingest", - "value": "http://127.0.0.1:17666/ingest/chrome-extension", - "tone": "muted" - }, - "children": [] - }, - { - "id": "loki.chrome.cdp-endpoint", - "kind": "inspector.kv", - "props": { - "label": "CDP endpoint", - "value": "http://127.0.0.1:9222", - "tone": "muted" - }, - "children": [] - }, - { - "id": "loki.chrome.error", - "kind": "text", - "props": { - "text": "fetch failed", - "tone": "warning" - }, - "children": [] - } - ] - }, - { - "id": "loki.chrome.tabs", - "kind": "panel", - "props": { - "title": "Observed Tabs", - "empty": true - }, - "children": [ - { - "id": "loki.chrome.no-tabs", - "kind": "text", - "props": { - "text": "No CDP page targets observed.", - "tone": "muted" - }, - "children": [] - } - ] - } - ] - }, - "styles": { - "tokens": { - "density": "operator", - "accent": "#39a275", - "warning": "#b7791f" - } - } - }, - "commands": [] -} diff --git a/state/loki.provider_advertisement.cc b/state/loki.provider_advertisement.cc deleted file mode 100644 index 41a3dfd..0000000 --- a/state/loki.provider_advertisement.cc +++ /dev/null @@ -1,126 +0,0 @@ -# cultcache-text-witness v0 -# schema: gamecult.eve.provider_advertisement.v1 -# provider: loki.chrome -# updatedAt: 2026-06-09T15:11:06.124Z -{ - "schema": "gamecult.eve.provider_advertisement.v1", - "providerId": "loki.chrome", - "serviceId": "loki.chrome_daemon", - "verseId": "loki.local", - "rootVerse": "asgard", - "canonicalService": "asgard.loki.chrome", - "locatedService": "asgard.localhost.loki.chrome", - "cultMeshAddress": "asgard.localhost.loki.chrome/eve/gui", - "title": "Loki Chrome", - "kind": "service.operator", - "updatedAt": "2026-06-09T15:11:06.124Z", - "freshness": { - "state": "unreachable", - "lastSeenAt": null, - "maxAgeMs": 15000 - }, - "schemas": [ - { - "schema": "gamecult.loki.chrome_snapshot.v0", - "owner": "loki.chrome", - "authority": "observed", - "storage": "cultcache-cc", - "cultMeshAddress": "asgard.localhost.loki.chrome/state/snapshot", - "portable": true - }, - { - "schema": "gamecult.loki.chrome_extension_report.v0", - "owner": "loki.chrome", - "authority": "external-authority-projection", - "storage": "ingest-only", - "cultMeshAddress": "asgard.localhost.loki.chrome/ingest/chrome-extension", - "portable": true - }, - { - "schema": "gamecult.eve.surface.v1", - "owner": "loki.chrome", - "authority": "derived", - "storage": "cultcache-cc", - "cultMeshAddress": "asgard.localhost.loki.chrome/eve/gui", - "portable": true - } - ], - "witnesses": [ - { - "id": "loki.chrome.snapshot", - "kind": "cc-export", - "path": "state/loki.chrome_snapshot.cc", - "schemas": [ - "gamecult.loki.chrome_snapshot.v0" - ], - "redaction": { - "urlQuery": "not-observed", - "titles": "not-observed", - "pageContent": "not-read", - "cookies": "not-read", - "source": "none" - }, - "freshness": { - "state": "unreachable", - "updatedAt": "2026-06-09T15:11:06.124Z" - } - }, - { - "id": "loki.chrome.eve_surface", - "kind": "cc-export", - "path": "state/loki.eve_surface.cc", - "schemas": [ - "gamecult.eve.surface.v1" - ], - "redaction": "derived-operator-surface", - "freshness": { - "state": "unreachable", - "updatedAt": "2026-06-09T15:11:06.124Z" - } - } - ], - "surfaces": [ - { - "surfaceId": "loki.chrome.operator", - "schema": "gamecult.eve.surface.v1", - "transport": "cultmesh-document", - "address": "asgard.localhost.loki.chrome/eve/gui", - "tuiAddress": "asgard.localhost.loki.chrome/eve/tui", - "audience": "operator", - "mode": "read-only", - "styleProfile": "loki.operator", - "commands": [] - } - ], - "commands": [], - "routes": [ - { - "kind": "local-cdp", - "address": "http://127.0.0.1:9222", - "carries": [ - "chrome-target-metadata" - ], - "note": "Requires user-launched Chrome with --remote-debugging-port." - }, - { - "kind": "chrome-extension-ingest", - "address": "http://127.0.0.1:17666/ingest/chrome-extension", - "carries": [ - "chrome-extension-tab-metadata" - ], - "note": "Preferred drop-in Chrome path; extension observes tab metadata and Loki owns persistence." - }, - { - "kind": "local-cultcache-witness", - "address": "state/", - "carries": [ - "state/loki.chrome_snapshot.cc", - "state/loki.provider_advertisement.cc", - "state/loki.eve_surface.cc" - ] - } - ], - "nestedVerses": [], - "styleCapabilities": [], - "contacts": [] -}