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
don't call folded minor relief unbuilt when its locator part has no geometry
[._.]/ Adam Eivy15de83058de5
diff --git a/server/lib/threejsModelCoverage.js b/server/lib/threejsModelCoverage.jsindex 1225f10c06..ae176ce9fb 100644--- a/server/lib/threejsModelCoverage.js+++ b/server/lib/threejsModelCoverage.js@@ -115,22 +115,13 @@ export function evaluateThreejsPartCoverage(spec) {});}- // 3. Unbuilt details — a promised feature whose parts contain no geometry- // anywhere in their subtrees, so nothing was ever built for it.- for (const detail of details) {- const resolved = (detail.implementationPartIds || []).map((id) => byId.get(id)).filter(Boolean);- if (resolved.length === 0 || resolved.some((part) => part.subtreeHasGeometry)) continue;- findings.push({- code: 'unbuilt-detail',- severity: UNBUILT_SEVERITY[detail.priority] || 'warning',- partIds: resolved.map((part) => part.id),- features: [detail.feature],- message: `"${detail.feature}" (${detail.priority}) points only at parts with no geometry (${listNames(resolved.map((part) => part.name))}), so nothing was built for it.`,- });- }-- // 4. Minor detail folded into an implemented mesh above it — reported so the- // reviewer sees the modeling decision, never as a defect.+ // 3. Minor detail folded into an implemented mesh above it — reported so the+ // reviewer sees the modeling decision, never as a defect. Classified BEFORE+ // the unbuilt pass because the two would otherwise contradict each other on+ // the same detail: a locator part with no geometry of its own whose parent+ // mesh is implemented has not gone unbuilt, it has been folded in.+ const foldedNotes = [];+ const foldedDetails = new Set();for (const detail of details) {if (detail.priority !== 'minor' || groupedDetails.has(detail)) continue;const ids = detail.implementationPartIds || [];@@ -138,7 +129,8 @@ export function evaluateThreejsPartCoverage(spec) {const part = byId.get(ids[0]);const parentId = part?.ancestorIds.findLast((id) => implementedIds.has(id) && byId.get(id)?.hasGeometry);if (!parentId) continue;- findings.push({+ foldedDetails.add(detail);+ foldedNotes.push({code: 'folded-detail',severity: 'note',partIds: [part.id],@@ -147,6 +139,24 @@ export function evaluateThreejsPartCoverage(spec) {});}+ // 4. Unbuilt details — a promised feature whose parts contain no geometry+ // anywhere in their subtrees and which nothing above them carries either, so+ // nothing was ever built for it.+ for (const detail of details) {+ if (foldedDetails.has(detail)) continue;+ const resolved = (detail.implementationPartIds || []).map((id) => byId.get(id)).filter(Boolean);+ if (resolved.length === 0 || resolved.some((part) => part.subtreeHasGeometry)) continue;+ findings.push({+ code: 'unbuilt-detail',+ severity: UNBUILT_SEVERITY[detail.priority] || 'warning',+ partIds: resolved.map((part) => part.id),+ features: [detail.feature],+ message: `"${detail.feature}" (${detail.priority}) points only at parts with no geometry (${listNames(resolved.map((part) => part.name))}), so nothing was built for it.`,+ });+ }++ findings.push(...foldedNotes);+const countBy = (severity) => findings.filter((finding) => finding.severity === severity).length;return {findings,diff --git a/server/lib/threejsModelCoverage.test.js b/server/lib/threejsModelCoverage.test.jsindex 84d8bf3124..6df59fe6dd 100644--- a/server/lib/threejsModelCoverage.test.js+++ b/server/lib/threejsModelCoverage.test.js@@ -125,6 +125,50 @@ describe('evaluateThreejsPartCoverage', () => {expect(coverage.findings[0].message).toContain('Hull');});+ it('does not also call folded minor relief unbuilt when its locator part carries no geometry', () => {+ // The child part is a pure locator — the relief itself lives in the parent+ // mesh. Reporting "nothing was built for it" alongside "folding it in is+ // correct" would hand the refinement pass two opposite instructions.+ const coverage = evaluateThreejsPartCoverage(makeSpec({+ parts: [{+ id: 'hull',+ name: 'Hull',+ geometry: box(2),+ material: 'shell',+ children: [{ id: 'striaAnchor', name: 'Stria anchor' }],+ }],+ detailInventory: [+ detail('Boxy hull', ['hull'], 'identity'),+ detail('Fine surface stria', ['striaAnchor'], 'minor'),+ ],+ }));++ expect(codes(coverage)).toEqual(['folded-detail']);+ expect(coverage).toMatchObject({ errorCount: 0, warningCount: 0, noteCount: 1 });+ });++ it('still errors on an identity feature riding a geometry-less locator under a built parent', () => {+ // Same shape as the folded-relief case, but the subject's identity rides on+ // it — a defining feature with no mesh of its own is the fused-model failure+ // this gate exists to catch, not a modeling shortcut.+ const coverage = evaluateThreejsPartCoverage(makeSpec({+ parts: [{+ id: 'hull',+ name: 'Hull',+ geometry: box(2),+ material: 'shell',+ children: [{ id: 'lensAnchor', name: 'Lens anchor' }],+ }],+ detailInventory: [+ detail('Boxy hull', ['hull'], 'identity'),+ detail('Recessed lens', ['lensAnchor'], 'identity'),+ ],+ }));++ expect(codes(coverage)).toEqual(['unbuilt-detail']);+ expect(coverage.findings[0]).toMatchObject({ severity: 'error', partIds: ['lensAnchor'] });+ });+it('treats a minor detail sharing an identity feature\'s part as a note', () => {const coverage = evaluateThreejsPartCoverage(makeSpec({parts: [{ id: 'hull', name: 'Hull', geometry: box(2), material: 'shell' }],