singularity-forge/src/resources
Jeremy b357411a0f fix(gsd): critical state machine data integrity fixes (wave 1/5)
Four critical fixes for the GSD state machine:

1. Event log cmd format mismatch — completion tools write hyphenated cmds
   ("complete-task") but replayEvents handled only underscored ("complete_task").
   Worktree reconciliation replay was completely broken for modern completions.
   Fix: normalize cmd via replace(/-/g, "_") in both replayEvents and
   extractEntityKey. Also adds complete_milestone replay handler and warns
   on unknown commands instead of silently skipping.

2. Dead if-block at state.ts:434-440 — empty block with misleading comments
   wasted getMilestoneSlices() + every() computation. Removed and replaced
   with clear comment explaining why all-slices-done milestones without
   SUMMARY are intentionally not added to completeMilestoneIds.

3. getActiveMilestoneId missing "skipped" status — checked complete/done/parked
   but not skipped. isStatusDone() includes skipped, creating divergence where
   a skipped milestone could become permanently "active". Fix: use
   isClosedStatus() || parked check.

4. executeReplan disk-file fallback — triage-resolution.ts writes replan
   trigger to disk and DB (best-effort). If DB write fails, deriveStateFromDb
   only checked the DB column, making the trigger invisible. Fix: fall back
   to checking the disk REPLAN-TRIGGER file when DB column is null.
2026-04-07 12:07:06 -05:00
..
agents fix: replace web_search with search-the-web in prompts and agent frontmatter (#2920) (#3245) 2026-03-30 14:30:01 -06:00
extensions fix(gsd): critical state machine data integrity fixes (wave 1/5) 2026-04-07 12:07:06 -05:00
skills Merge pull request #2287 from jeremymcs/worktree-btw-implementation 2026-04-03 15:18:03 -05:00
GSD-WORKFLOW.md feat: meaningful commit messages from task summaries (#803) 2026-03-16 23:30:33 -06:00