Discuss sessions with no persistence lost all confirmed work on crash.
Now both milestone and slice discuss prompts instruct agents to
silently save CONTEXT-DRAFT every 2 question rounds via
gsd_summary_save. The final context file overwrites the draft.
Closes#2152
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test regex used unescaped (?:...) groups which were interpreted as
regex syntax instead of matching the literal source text. Escape parens
to match the actual regex pattern in the source code.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test used indexOf which found "gsd_complete_milestone" in the
"Do NOT call" warning (line 34) before the actual step 10 definition
(line 43). Use regex to match numbered step patterns instead.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fix adds a notesVisible guard that prevents re-opening notes when
they are already visible, even if empty. Update the test to expect
empty notes and direct advancement instead of re-opening.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fix marks note captures as executed and adds them to the actions
list. Update the mixed classifications test to expect 3 actions instead
of 2, since notes are no longer excluded.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The find-missing-summaries-closed.test.ts was accidentally committed
to this branch but belongs to fix/find-missing-summaries-skip-closed.
Remove it to fix CI failures.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fix skips the current milestone in syncWorktreeStateBack to prevent
merge conflicts. Update tests to use a different milestone ID for the
milestoneId parameter vs the milestone being synced, matching the new
skip-current-milestone behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Change logWarning component from "autoStart" (not in LogComponent union)
to "bootstrap" to fix TypeScript compilation error.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fix auto-remediates stale slice DB status via updateSliceStatus()
instead of reporting it as a rogue artifact. Update the test to expect
0 rogues since the stale status is now silently fixed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fix reconciles plan-file tasks into the DB when the planner skips
persistence, so the phase correctly advances to executing instead of
remaining stuck in planning. Update the known-issue test to expect the
fixed behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fix changed checkFilePathConsistency to only check task.inputs, not
task.files, since files includes paths the task will create. Update tests
to use inputs instead of files for consistency checks.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The fix changed isGhostMilestone to treat queued+no-files as a ghost.
The test was asserting queued+DB-row = not ghost, but without content
files it is now correctly identified as a ghost. Add a CONTEXT file to
make it a legitimate queued milestone.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>