Skip to content

Fix leaked active leases and restore lease summary fields#71

Merged
krandder merged 1 commit into
task/T2564from
task/T2123-leaked-lease-recovery-t2564
Mar 18, 2026
Merged

Fix leaked active leases and restore lease summary fields#71
krandder merged 1 commit into
task/T2564from
task/T2123-leaked-lease-recovery-t2564

Conversation

@krandder

Copy link
Copy Markdown
Contributor

Summary

  • reject LeaseGranted events with empty agent ids and reject blank claim agent ids at the HTTP edge
  • have the core clock recover malformed active tasks with missing lease metadata or blank active agents instead of leaving them stuck in active
  • restore activeAgent, leaseExpiresAt, and updatedAtMs on /tasks summaries and add a recovery script for existing leaked leases

Verification

  • npx tsx --test core/test/validator.test.ts core/test/scenarios.test.ts
  • npm run test:middle
  • node --import tsx scripts/recover-leaked-leases.ts --dry-run

@krandder krandder merged commit 7e363c6 into task/T2564 Mar 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant