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
address review (self): drop the both-profiles claim that contradicted the per-panel occlusion rules
[._.]/ Adam Eivy9205166b60f4
diff --git a/server/services/sprites/prompts.js b/server/services/sprites/prompts.jsindex 8a2f1d1176..9baa7480b0 100644--- a/server/services/sprites/prompts.js+++ b/server/services/sprites/prompts.js@@ -157,11 +157,15 @@ export function buildTurnaroundPrompt({ name, designPrompt, chromaKey }) {+ 'actually exposes, including the parts of the body and gear it hides. '// Left/right axis (unchanged rule) — now paired with the screen-position// consequence, so "same side" can't be satisfied by never moving the item.+ // Deliberately phrased as "never moves to the other side" rather than+ // "appears in every panel": the per-panel rules below hide far-side gear in+ // the profiles, and a blanket "visible in both profiles" would contradict+ // them and invite the model to draw a right-hip bag through the torso.+ 'Every accessory (bag, strap, pouch, pocket, weapon) stays on the SAME anatomical side of '- + 'the body in every panel — an item worn on the character\'s right hip is on the right hip '- + 'from the front, from behind, and in both profiles. Because the character turns, that item '- + 'is drawn toward the viewer\'s left in the front panel and toward the viewer\'s right in '- + 'the back panel. '+ + 'the body in every panel — an item worn on the character\'s right hip is never moved to '+ + 'the left hip. Because the character turns, that item is drawn toward the viewer\'s left in '+ + 'the front panel and toward the viewer\'s right in the back panel, and it is visible only '+ + 'in the panels where that side of the body faces the viewer. '+ `${panelRules} `+ 'Flat non-isometric pixel-art game sprite '+ `reference on a plain exact ${keyColorPhrase(chromaKey)} background. No panel borders, `diff --git a/server/services/sprites/prompts.test.js b/server/services/sprites/prompts.test.jsindex c803e75b98..0f9771a60f 100644--- a/server/services/sprites/prompts.test.js+++ b/server/services/sprites/prompts.test.js@@ -119,6 +119,11 @@ describe('buildTurnaroundPrompt (#2979)', () => {// The reported failure: a front-worn hip bag surviving into the back panel.expect(p).toContain('hip bag or pouch worn at the front');expect(p).toContain('hidden by the body and must not be drawn');+ // The side rule must not claim far-side gear is visible in BOTH profiles —+ // that contradicts the per-panel occlusion rules and invites the model to+ // draw a right-hip bag straight through the torso in the west panel.+ expect(p).not.toContain('in both profiles');+ expect(p).toContain('visible only in the panels where that side of the body faces the viewer');TURNAROUND_VIEWS.forEach((view, i) => {expect(p).toContain(`Panel ${i + 1} (${REFERENCE_FACING[view]}): ${viewGeometryClause(view)}`);});@@ -175,8 +180,19 @@ describe('derive prompts carry the geometry rule (#3004)', () => {for (const d of ANCHOR_DIRECTIONS) {const p = buildAnchorPrompt({ name: 'Scout', direction: d, chromaKey: '#FF00FF' });expect(p).toContain('not a mirrored copy of the reference');+ // toContain('') is vacuously true, so pin the clause is non-empty first —+ // otherwise a viewGeometryClause regressed to '' would still pass here.+ expect(viewGeometryClause(d), d).not.toBe('');expect(p).toContain(viewGeometryClause(d));}+ // Concrete anchors on each axis. north is a straight-on rear view, so it+ // carries the depth rule and no near-side clause; east carries the reverse.+ const north = buildAnchorPrompt({ name: 'Scout', direction: 'north', chromaKey: '#FF00FF' });+ expect(north).toContain('hidden by the body and must not be drawn');+ expect(north).not.toContain('occluded by the torso');+ const east = buildAnchorPrompt({ name: 'Scout', direction: 'east', chromaKey: '#FF00FF' });+ expect(east).toContain('right-side gear reads fully');+ expect(east).not.toContain('behind the character');});it('keeps the main reference free of back-mounted gear', () => {