Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (codex r2): repo-anchored manifest references are provenance, not missing character assets

[._.]/ Adam Eivy68c4a8d24294
diff --git a/server/services/sprites/importer.js b/server/services/sprites/importer.js
index 423c2cc329..c2b3601aaf 100644
--- a/server/services/sprites/importer.js
+++ b/server/services/sprites/importer.js
@@ -115,6 +115,10 @@ function relToCharacterDir(manifestPath, characterId) {
const marker = `sprites/${characterId}/`;
const idx = manifestPath.indexOf(marker);
const rel = idx >= 0 ? manifestPath.slice(idx + marker.length) : manifestPath.replace(/^\/+/, '');
+ // A repo-anchored path OUTSIDE the character dir (contract docs, pipeline
+ // catalogs) is provenance, not a character asset — don't misread it as
+ // character-relative and then report it "missing".
+ if (idx < 0 && /^(art-pipeline|art-source|game)\//.test(rel)) return null;
// Split on BOTH separators — on Windows a `..\` segment would otherwise ride
// through the check as one opaque segment and still traverse in join().
if (!rel || rel.split(/[\\/]/).some((seg) => seg === '..' || seg === '')) return null;
diff --git a/server/services/sprites/importer.test.js b/server/services/sprites/importer.test.js
index b5ba3a555b..93ea628273 100644
--- a/server/services/sprites/importer.test.js
+++ b/server/services/sprites/importer.test.js
@@ -66,6 +66,9 @@ const eastManifest = JSON.stringify({
// Declared but absent from the source — must surface as an error, not a
// silent skip that still reports a fully-imported subject.
overlayPath: 'art-source/sprites/hero/imagegen/v2/gone.png',
+ // Repo-anchored provenance reference outside the character dir — ignored,
+ // never treated as a missing character asset.
+ contractPath: 'art-pipeline/contracts/player-sprite-standard-v2.json',
}, null, 2);
beforeAll(() => {