Skip to content

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

fix: don't count skipped task-learning records as backfilled

[._.]/ Adam Eivy84050218d09c
diff --git a/server/services/taskLearning/lifecycle.js b/server/services/taskLearning/lifecycle.js
index 930b40b84c..ca76a9375b 100644
--- a/server/services/taskLearning/lifecycle.js
+++ b/server/services/taskLearning/lifecycle.js
@@ -109,7 +109,7 @@ export async function backfillFromHistory() {
// Count only records that actually landed, and name the failing agent/task
// so a partial backfill is diagnosable instead of reporting a full count.
const recorded = await recordTaskCompletion(withoutStaleCoordinatorVerdict(agent, task), task)
- .then(() => true)
+ .then(result => result !== null) // null = deliberately skipped, nothing written
.catch(err => {
failed++;
console.error(`❌ 📚 TaskLearning: Backfill failed to record agent ${agent.id} (task ${agent.taskId}): ${err.message}`);