Skip to content

fix(sleep): preserve follow-up context across task deduplication - #515

Open
Sylan1024 (ningsiyuan1024) wants to merge 2 commits into
microsoft:mainfrom
ningsiyuan1024:fix/sleep-preserve-session-context-154
Open

Sylan1024 (ningsiyuan1024) wants to merge 2 commits into
microsoft:mainfrom
ningsiyuan1024:fix/sleep-preserve-session-context-154

Conversation

@ningsiyuan1024

Copy link
Copy Markdown

Why

SkillOpt-Sleep combines repeated tasks by ID. When two sessions asked for the same task, the saved task listed both session IDs but dropped the second session's follow-up, including any correction or withdrawal. This addresses the evidence retention gap in #154.

What changed

Record each heuristic-mined follow-up excerpt under its session ID, merge those entries during deduplication, and keep them in the task-file round trip. Replay continues to use the first record's excerpt.

Verification

Four existing scope cases fail on the baseline and pass through public mining and task-file reload with this fix. The focused run passed 71 tests and 130 subtests. Ruff and git diff --check passed.

On Windows with Python 3.11 and .[dev,parallel], the full suite passed 2,537 tests and skipped 76. The same 37 failures appear on upstream main.

Codex implemented and tested this change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant