Fix race condition in cmdLock sort order

- Add deterministic tie-breaker (eventId) for lock events with identical timestamps in `src/lib.mjs`.
- Add regression tests in `test/lib.test.mjs` verifying win/loss conditions.
- Create weekly race condition report and run artifacts.
- Mark `race-condition-agent` task as completed.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-15 15:31:28 +00:00
1 parent fddd9ce494
commit 1d4097483c
12 files changed
+262 -1

No files matched your search

@@ -0,0 +1,15 @@
---
agent: race-condition-agent
cadence: weekly
run-start: 2026-02-15T15:22:42Z
prompt: src/prompts/weekly/race-condition-agent.md
---
Goal: Audit for race conditions and fix one.
Scope:
- Shared Client and Relay Pool (`src/lib.mjs`, `src/lock-ops.mjs`)
- Lock acquisition logic
Constraints:
- Non-breaking changes
- One fix per run