ReMe/reme/steps/evolve/dream
Licence to Drop 7b2317584f
fix(auto-dream): report digest changes left by failed units (#763)
* fix(auto-dream): report digest changes left by failed units

When an integration unit fails, list every digest file that changed while
it ran, including files outside the bucket folders that _snapshot_digest
does not watch (#759). Files are never reverted or removed: the job cannot
tell whether the agent or the user wrote them.

- Each failed unit records its changed_paths.
- DreamState.failed_unit_changed_paths lists each path once, filtered to
  paths that still differ from the start of the run.
- The digest root must resolve inside the workspace, and symlinks are not
  followed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(auto-dream): list files removed during failed units separately

A pre-existing digest file deleted while a failed unit ran was listed as
"left in place". Report it on its own "Removed during failed units" line
and in DreamState.failed_unit_removed_paths instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(auto-dream): report missing files without inferring when they were removed

A path that changed during a failed unit and is gone at the end of the run
may have been removed later, by a successful unit or by the user. Report it
as "Changed during failed units, missing at end of run" (field
failed_unit_missing_paths) instead of "Removed during failed units", in both
the summary and the integration answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: re-run checks outside the proactive cron test's 09:00-09:59 Asia/Shanghai window

No code changes. test_proactive_run.py::test_cron_can_finish_with_a_skip_record
fails on main during that hour (fixed by #776).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:14:35 +08:00
..
__init__.py feat(proactive): separate proactive refresh from auto dream (#488) 2026-09-07 17:23:37 +08:00
extract.py refactor(core): reorganize the ReMe runtime and shared helpers (#769) 2026-11-20 22:06:46 +08:00
extract.yaml fix(auto-dream): validate extraction before checkpointing inputs (#649) 2026-10-21 16:13:04 +08:00
finish.py fix(auto-dream): report digest changes left by failed units (#763) 2026-11-26 11:14:35 +08:00
integrate.py fix(auto-dream): report digest changes left by failed units (#763) 2026-11-26 11:14:35 +08:00
integrate.yaml feat: weave dream wikilinks into contextual prose (#428) 2026-08-06 17:40:01 +08:00
utils.py fix(dream): strip YAML front matter from extraction input (#738) 2026-11-16 12:32:42 +08:00