fix: run autonomy workers by default

This commit is contained in:
ImBenji
2026-08-03 14:43:30 +01:00
parent c4028cc394
commit 0724f5dc36
3 changed files with 23 additions and 23 deletions
+3 -1
View File
@@ -74,7 +74,9 @@ async function runAutonomyWorker({ archivePath, intelligencePath, workerId = `au
initAutonomySchema(intelligenceDb);
while (true) {
const job = leaseNextJob(intelligenceDb, workerId, 120);
// This worker owns maintenance reconciliation only. Without the type filter it
// can lease coordinator_event jobs and complete them without analysis.
const job = leaseNextJob(intelligenceDb, workerId, 120, ['reconcile_archive']);
if (!job) { await sleep(pollMs); continue; }
try {
if (job.job_type === 'reconcile_archive') {