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 (ollama): scope the cap comment and pin the persist path
[._.]/ Adam Eivyb141b063ffec
diff --git a/server/services/pipeline/series.js b/server/services/pipeline/series.jsindex f802d96cb0..5a226b39ae 100644--- a/server/services/pipeline/series.js+++ b/server/services/pipeline/series.js@@ -122,11 +122,13 @@ export const ARC_LOCKABLE_FIELDS = Object.freeze([export const AUTOPILOT_STATUSES = Object.freeze(['idle', 'running', 'paused', 'done', 'error']);export const AUTOPILOT_STEP_MAX = 80;export const AUTOPILOT_ERROR_MAX = 1000;-// The residual set is the user's work queue, so it holds the whole backlog; the-// discarded set is diagnostic context for one decision and is capped tighter.-// Exported because the arc loop bounds its own emission to the same number —-// otherwise the live SSE frame would carry findings the record then drops.-export const AUTOPILOT_RESIDUAL_MAX = 50;+// The residual set is the user's work queue, so it holds the whole backlog.+const AUTOPILOT_RESIDUAL_MAX = 50;+// The discarded set is diagnostic context for a single decision, so it is capped+// tighter. This one is exported because the arc loop slices its own emission to+// this same constant — otherwise the live SSE frame would carry findings the+// record then silently drops, and the two would disagree about what was thrown+// away. The residual cap needs no such export: nothing emits residual pre-bounded.export const AUTOPILOT_DISCARDED_MAX = 20;const sanitizeAutopilotLlmRoute = (raw) => {diff --git a/server/services/pipeline/seriesAutopilot.test.js b/server/services/pipeline/seriesAutopilot.test.jsindex 951068c4ab..cc3e265187 100644--- a/server/services/pipeline/seriesAutopilot.test.js+++ b/server/services/pipeline/seriesAutopilot.test.js@@ -2158,6 +2158,11 @@ describe('autopilot conductor', () => {// blind to finding identity, so the rejected candidate's own findings ride// along for the human deciding whether the pause was worth it.expect(last?.discardedFindings).toEqual(rounds[2]);+ // The persisted marker must agree with the broadcast frame. These are two+ // separate writes off one payload, and a field that reaches only the live+ // stream vanishes on reload — which is when the user actually reviews it.+ const series = await seriesSvc.getSeries(seriesId);+ expect(series.autopilot?.discardedFindings).toEqual(rounds[2]);});it('a blocker increase reaches the regression guard even when it lands on the round cap', async () => {