feat(sync): implement kanban-project-sync script with concurrency control and background execution

This commit is contained in:
Steve Cliff
2026-02-19 11:08:15 +00:00
parent 7937266262
commit 5016d4c39c
9 changed files with 319 additions and 268 deletions
+11 -3
View File
@@ -53,6 +53,14 @@ There is no unit test suite or linter configured — tests are shell-based integ
**IMPORTANT**
After completing any opsx workflow (/opsx:new, /opsx:ff, /opsx:continue,
/opsx:apply, /opsx:verify, /opsx:archive, /opsx:bulk-archive), automatically
reconcile Planka board state by running `/kanban-sync`.
If the sync fails, log a brief warning and continue. Never block or retry —
Planka sync is best-effort.
reconcile Planka board state by running the sync script:
```bash
PROJECT_NAME=$(yq -r '.planka.project' project.yaml)
BOARD_NAME=$(yq -r '.planka.board' project.yaml)
kanban-project-sync --project "$PROJECT_NAME" --board "$BOARD_NAME" --background
```
The script handles concurrency (flock-based locking with coalescing pending queue).
If the script is not on PATH or fails, log a brief warning and continue.
Never block or retry — Planka sync is best-effort.