Skip to content

feat(agents): harden agent run queue#350

Merged
prvnsmpth merged 1 commit into
masterfrom
feat/harden-agent-runs
Jun 25, 2026
Merged

feat(agents): harden agent run queue#350
prvnsmpth merged 1 commit into
masterfrom
feat/harden-agent-runs

Conversation

@prvnsmpth

Copy link
Copy Markdown
Contributor
  • Makes agent_runs the durable Postgres-backed queue for manual and scheduled agent execution.
  • Adds lease-based claiming, heartbeat recovery, retries, and claim-token fencing to prevent duplicate/stale finalization.
  • Persists agent conversation/tool-call history in agent_run_logs before tool execution so crashed runs can resume with durable context.
  • Updates agent UI/API behavior to show active queued/running runs and reject duplicate manual triggers.
  • Adds integration coverage for queue claims, stale recovery, scheduler materialization, worker execution, and durable run logs.

@prvnsmpth prvnsmpth force-pushed the feat/harden-agent-runs branch from 82f4471 to c198eb1 Compare June 25, 2026 10:45
- Add lease-based claiming, retries, and stale-run recovery for agent_runs
- Persist agent run conversation WAL rows before tool execution
- Route manual and scheduled triggers through pending runs with active-run UI state
- Add integration coverage for queue, worker, scheduler, and executor behavior
@prvnsmpth prvnsmpth force-pushed the feat/harden-agent-runs branch from c198eb1 to 90d82ab Compare June 25, 2026 10:48
@prvnsmpth prvnsmpth merged commit 43087ef into master Jun 25, 2026
37 checks passed
@prvnsmpth prvnsmpth deleted the feat/harden-agent-runs branch June 25, 2026 11:04
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