nexus/packages/db
Forgotten 49e15f056d Implement issue execution lock with deferred wake promotion
Add per-issue execution lock (executionRunId, executionAgentNameKey,
executionLockedAt) to prevent concurrent runs on the same issue.
Same-name wakes are coalesced into the active run; different-name
wakes are deferred and promoted when the lock holder finishes.

Includes checkout/release run ownership enforcement, agent run ID
propagation from JWT claims, wakeup deduplication across assignee
and mention wakes, and claimQueuedRun extraction for reuse. Adds
two DB migrations for checkoutRunId and execution lock columns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:48:22 -06:00
..
src Implement issue execution lock with deferred wake promotion 2026-02-20 15:48:22 -06:00
drizzle.config.ts Expand data model with companies, approvals, costs, and heartbeats 2026-02-17 09:07:22 -06:00
package.json Replace PGlite with embedded-postgres and add startup banner 2026-02-18 11:45:43 -06:00
tsconfig.json Add database package with Drizzle schema 2026-02-16 13:31:52 -06:00
vitest.config.ts Add database package with Drizzle schema 2026-02-16 13:31:52 -06:00