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: scope goal-fidelity overturns to findings (#7694)
[._.]/ Adam Eivy372cd8647431
diff --git a/server/services/goalFidelityCalibration.js b/server/services/goalFidelityCalibration.jsindex a2e08b4b10..b84ea4d3e7 100644--- a/server/services/goalFidelityCalibration.js+++ b/server/services/goalFidelityCalibration.js@@ -155,7 +155,9 @@ async function stampOverturnedRuns(taskId, gap, calibrationTaskId) {console.error(`❌ goal-fidelity calibration: could not resolve runs for ${taskId}: ${err.message}`);return [];});- const matches = agents.filter(agent => agent.taskId === taskId || agent.metadata?.taskId === taskId);+ const matches = agents.filter(agent => (+ agent.taskId === taskId || agent.metadata?.taskId === taskId+ ) && ['fix-first', 'rethink'].includes(agent.result?.goalFidelity?.verdict));const at = new Date().toISOString();await Promise.all(matches.map((agent) => {const result = isPlainObject(agent.result) ? agent.result : {};diff --git a/server/services/goalFidelityCalibration.test.js b/server/services/goalFidelityCalibration.test.jsindex 840e3a1075..f16fef9ca4 100644--- a/server/services/goalFidelityCalibration.test.js+++ b/server/services/goalFidelityCalibration.test.js@@ -84,6 +84,7 @@ describe('reportGoalFidelityFalsePositive', () => {getAgents.mockResolvedValue([{ id: 'agent-1', taskId: 'task-7', result: { success: false, goalFidelity: { verdict: 'rethink', evidence: 'partial diff' } } },{ id: 'agent-2', metadata: { taskId: 'task-7' }, result: { goalFidelity: { verdict: 'fix-first' } } },+ { id: 'agent-ship', taskId: 'task-7', result: { goalFidelity: { verdict: 'ship' } } },{ id: 'agent-other', taskId: 'task-8', result: { goalFidelity: { verdict: 'rethink' } } },]);