mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-15 04:35:29 +02:00
Route every .stories/ write through skills/story-lifecycle/scripts/ledger.js: - exclusive per-ledger lock; a second writer waits, then exits 3 without writing - story IDs reserved with exclusive-create markers in the git common dir, so concurrent agents and worktrees of one clone never share an ID - journaled batches: stage, journal, rename; derived epic/sprint tables are regenerated inside the batch; an interrupted batch is rolled back by the next write command or `recover`; `status` reports it only when no live writer holds the lock Bound the ledger to an opt-in planning projection that is never canonical ECC Task/Evidence/Completion/Integration state, and state that .stories/ follows the checkout. tests/docs/story-lifecycle-ledger.test.js exercises create, concurrent create, concurrent cross-worktree allocation, lock contention, overwrite refusal, interrupted-batch recovery, sprint planning, status drift and reconcile, and path confinement. Also refresh the skill-triggers manifest digest for 294 skills.