@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 +1 -1
- package/skills/build/SKILL.md +17 -1
package/package.json
CHANGED
package/skills/build/SKILL.md
CHANGED
|
@@ -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
|
-
**
|
|
79
|
+
**Session lock — claim 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
|
|-----------|--------|
|