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 (codex): don't fabricate an outcome for legacy last-run records
[._.]/ Adam Eivy408a433e7a58
diff --git a/client/src/components/apps/LayeredIntelligenceTab.jsx b/client/src/components/apps/LayeredIntelligenceTab.jsxindex de58d29451..bd0d1c14f3 100644--- a/client/src/components/apps/LayeredIntelligenceTab.jsx+++ b/client/src/components/apps/LayeredIntelligenceTab.jsx@@ -59,6 +59,13 @@ export function describeLastRun(li) {if (action === 'filed') {return { tone: 'success', text: `filed an improvement issue${li.lastRunRef ? ` (${li.lastRunRef})` : ''}`, when };}+ // Legacy record: installs that ran the loop before this change persisted only+ // `lastRunAt` (no action/reason). Do not fabricate an outcome — say the run+ // happened but its detail predates the richer bookkeeping, until a new run+ // records action + reason.+ if (!action) {+ return { tone: 'neutral', text: 'ran (outcome not recorded before this version)', when };+ }return { tone: liReasonTone(reason), text: formatLiReason({ action, reason }), when };}diff --git a/client/src/components/apps/LayeredIntelligenceTab.test.jsx b/client/src/components/apps/LayeredIntelligenceTab.test.jsxindex 68deb163ee..1a907d47fb 100644--- a/client/src/components/apps/LayeredIntelligenceTab.test.jsx+++ b/client/src/components/apps/LayeredIntelligenceTab.test.jsx@@ -48,6 +48,14 @@ describe('describeLastRun', () => {expect(r.tone).toBe('neutral');expect(r.text).toMatch(/existing/i);});++ it('does not fabricate an outcome for a legacy record (lastRunAt only, no action)', () => {+ // Installs upgraded from before this change persisted only lastRunAt.+ const r = describeLastRun({ lastRunAt: at });+ expect(r.tone).toBe('neutral');+ expect(r.text).toMatch(/not recorded/i);+ expect(r.text).not.toMatch(/no proposal/i);+ });});describe('LayeredIntelligenceTab last-run status', () => {