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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: gate the articulation prompt on a positive subject-type list, not not-object (#3697)
[._.]/ Adam Eivye27030f90261
diff --git a/server/services/threejsModels/prompt.js b/server/services/threejsModels/prompt.jsindex 5e2ef78fbf..59913235ee 100644--- a/server/services/threejsModels/prompt.js+++ b/server/services/threejsModels/prompt.js@@ -92,6 +92,11 @@ simply omit a part you do not want rendered.`;const CHARACTER_FAMILY_ID = 'character';+// Positive list, not "anything but object": the contract is requested for the+// classifications it is written for, so a spec carrying a subjectType this build+// does not know (a newer peer, a hand-repaired record, a later enum) falls back+// to the family signal instead of silently qualifying as a character.+const ARTICULATED_SUBJECT_TYPES = new Set(['character', 'hybrid']);// Requested ONLY when the subject could be a character. A chosen vehicle,// weapon, architecture, or device family is positive evidence that it is not,@@ -100,7 +105,8 @@ const CHARACTER_FAMILY_ID = 'character';// 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) return currentSpec.subjectType !== 'object';+ if (currentSpec?.subjectType === 'object') return false;+ if (ARTICULATED_SUBJECT_TYPES.has(currentSpec?.subjectType)) return true;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.jsindex 3645bbb09e..22ad82b347 100644--- a/server/services/threejsModels/prompt.test.js+++ b/server/services/threejsModels/prompt.test.js@@ -117,3 +117,20 @@ describe('buildThreejsGenerationPrompt articulation', () => {expect(character).toContain('ARTICULATION (character and hybrid subjects only)');});});++describe('buildThreejsGenerationPrompt articulation gating fallbacks', () => {+ it('falls back to the family signal for a subjectType this build does not know', () => {+ // A newer peer or a hand-repaired record could carry a classification this+ // build has no rule for; it must not qualify as a character by default.+ const unknownUnderVehicle = build({+ family: 'vehicle',+ currentSpec: { schemaVersion: 1, name: 'Example Model', subjectType: 'creature-thing' },+ });+ expect(unknownUnderVehicle).not.toContain('ARTICULATION');+ const unknownUnderCharacter = build({+ family: 'character',+ currentSpec: { schemaVersion: 1, name: 'Example Model', subjectType: 'creature-thing' },+ });+ expect(unknownUnderCharacter).toContain('ARTICULATION (character and hybrid subjects only)');+ });+});