@lifeaitools/rdc-skills 0.9.11 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/rdc-skills",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "description": "RDC typed-agent dispatch skill suite for Claude Code \u00e2\u20ac\u201d plan, build, review, overnight builds",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -76,7 +76,23 @@ Read the task title and description, then:
76
76
  SELECT get_work_items_by_epic('<epic-id>', 'todo');
77
77
  ```
78
78
 
79
- **Pre-flight gaterun before any agent dispatch:**
79
+ **Session lockclaim the epic immediately (before any agent dispatch):**
80
+
81
+ After loading the epic, check its status:
82
+ - If `status = 'in_progress'` → **ABORT** with:
83
+ ```
84
+ SKIP: epic <id> is already in_progress — claimed by another session. Pick a different epic.
85
+ ```
86
+ Do NOT proceed. Do NOT dispatch any agents.
87
+ - If `status = 'todo'` or `status = 'blocked'` → immediately claim it:
88
+ ```sql
89
+ SELECT update_work_item_status('<epic-id>'::uuid, 'in_progress',
90
+ '["Claimed by build session — dispatching agents"]'::jsonb
91
+ );
92
+ ```
93
+ This is an atomic Supabase write. A concurrent session that loads the same epic after this point will see `in_progress` and abort. **Do this before any classification, planning, or agent dispatch.**
94
+
95
+ **Pre-flight gate — run after claiming:**
80
96
 
81
97
  | Condition | Action |
82
98
  |-----------|--------|