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

fix: let a classified spec decide the articulation prompt outright, family only for unclassified subjects (#3697)

[._.]/ Adam Eivyf7a8efdeeab5
diff --git a/server/services/threejsModels/prompt.js b/server/services/threejsModels/prompt.js
index 59913235ee..d23771be40 100644
--- a/server/services/threejsModels/prompt.js
+++ b/server/services/threejsModels/prompt.js
@@ -105,8 +105,9 @@ const ARTICULATED_SUBJECT_TYPES = new Set(['character', 'hybrid']);
// family id resolves to `general` the way the checklist builder resolves it, so
// a stale stored family cannot silently change which contract is requested.
const wantsArticulation = (family, currentSpec) => {
- if (currentSpec?.subjectType === 'object') return false;
- if (ARTICULATED_SUBJECT_TYPES.has(currentSpec?.subjectType)) return true;
+ // A spec that has already been classified answers the question by itself; the
+ // family is only a guess about a subject nobody has looked at yet.
+ if (currentSpec?.subjectType) return ARTICULATED_SUBJECT_TYPES.has(currentSpec.subjectType);
const resolved = THREEJS_MODEL_FAMILY_IDS.includes(family) ? family : GENERAL_FAMILY_ID;
return resolved === CHARACTER_FAMILY_ID || resolved === GENERAL_FAMILY_ID;
};
diff --git a/server/services/threejsModels/prompt.test.js b/server/services/threejsModels/prompt.test.js
index 22ad82b347..7a1c65110c 100644
--- a/server/services/threejsModels/prompt.test.js
+++ b/server/services/threejsModels/prompt.test.js
@@ -127,10 +127,12 @@ describe('buildThreejsGenerationPrompt articulation gating fallbacks', () => {
currentSpec: { schemaVersion: 1, name: 'Example Model', subjectType: 'creature-thing' },
});
expect(unknownUnderVehicle).not.toContain('ARTICULATION');
+ // The spec's own classification wins over the family: an unrecognized one
+ // never qualifies, whatever the picker says.
const unknownUnderCharacter = build({
family: 'character',
currentSpec: { schemaVersion: 1, name: 'Example Model', subjectType: 'creature-thing' },
});
- expect(unknownUnderCharacter).toContain('ARTICULATION (character and hybrid subjects only)');
+ expect(unknownUnderCharacter).not.toContain('ARTICULATION');
});
});