ReMe/reme/steps
yaozy2020 9c4f7621d7
Some checks failed
CI / Python quality / Pre-commit (push) Waiting to run
CI / Python quality / GitHub Actions (push) Waiting to run
CI / Python tests / Unit Tests - py3.14 (push) Waiting to run
CI / Python tests / Hermes embedded - ubuntu-latest (push) Waiting to run
CI / Python tests / Hermes embedded - windows-latest (push) Waiting to run
CI / Python tests / Unit Tests - py3.13 (push) Waiting to run
CI / Windows / CLI smoke - py3.11 (push) Waiting to run
CI / Python tests / Unit Tests - py3.11 (push) Waiting to run
CI / Python tests / Unit Tests - py3.12 (push) Waiting to run
Security / CodeQL / Analyze javascript-typescript (push) Waiting to run
Security / CodeQL / Analyze python (push) Waiting to run
CI / Python packages / Build and verify distributions (push) Has been cancelled
CI and Release / Docker / Build and test / amd64 (push) Has been cancelled
CI and Release / Docker / Build and test / arm64 (push) Has been cancelled
CI and Release / Docker / Publish multi-platform tags (push) Has been cancelled
fix(dream): strip YAML front matter from extraction input (#738)
* fix(dream): strip YAML front matter from extraction input

Daily notes carry YAML front matter (`name` / `description` / `tags`).
`pack_paths()` packed it verbatim into the auto-dream extraction prompt, so
the model mimicked that shape and emitted units without `bucket` / `summary`,
which then failed `DreamUnit` validation and produced 0 units (issue #730).

Move `strip_frontmatter` from `proactive/utils.py` into the shared evolve
helper module and use it in `pack_paths`, so only the body is packed. The
proactive flow already stripped front matter before feeding note content to
a model; dream did not.

The per-file `limit_per_file` budget now applies to the body as well, so a
long `description:` value can no longer consume the packing budget.

Regression tests live in their own module because `test_auto_dream.py` is
already at the pylint `too-many-lines` limit (1500).

Ref: #730

* fix(dream): 修复前置元数据剥离导致正文丢失和日期异常

仅在候选块成功解析为映射后消费内容;非映射、YAML 错误及时间戳 ValueError 均保留剩余原文。补充审查样本、畸形 Markdown 与配置化 Auto Dream 管线测试,保持空抽取的 checkpoint 语义。

验证:相关测试 176 passed;全量单测 3396 passed / 50 skipped;旧实现反向验证 7 failed / 4 passed。

* fix(dream): end the metadata run at the blank line, not at YAML parseability

`strip_frontmatter` consumed any following `---` block that happened to parse
as a mapping. Markdown body text can be valid YAML (`# heading` is a comment,
`Instruction: ...` is a mapping key), so parseability alone cannot separate
metadata from body: the body was merged into the metadata and the note was
sent to the extraction model with a heading and no content, then checkpointed
as processed.

A block is now consumed only when it is structurally part of the metadata run:
the first block may follow leading whitespace, every later block must follow
the previous closing `---` with no blank line in between. A blank line is the
metadata/body boundary, so the remaining text is kept verbatim. Consecutive
front-matter blocks (`---\n---`) still strip as before.

Adds packing- and pipeline-level regression cases for the mapping-shaped body.
2026-11-16 12:32:42 +08:00
..
common feat(proactive): add resource packages and application-owned chat (#714) 2026-11-06 16:32:05 +08:00
compaction fix(memory): preserve file consistency and decision client lifecycle (#672) 2026-10-26 13:08:02 +08:00
evolve fix(dream): strip YAML front matter from extraction input (#738) 2026-11-16 12:32:42 +08:00
file_io fix(daily): preserve malformed indexes and report refresh failures (#726) 2026-11-10 12:20:35 +08:00
index fix(tag-index): keep legacy Windows spellings consistent across index consumers (#717) 2026-11-12 12:09:43 +08:00
proactive feat(proactive): add resource packages and application-owned chat (#714) 2026-11-06 16:32:05 +08:00
transfer feat(benchmark): add lme benchmark steps (#326) 2026-07-07 18:53:39 +09:00
__init__.py feat(proactive): add resource packages and application-owned chat (#714) 2026-11-06 16:32:05 +08:00
base_step.py feat(studio): add Codex session history and proactive messages (#711) 2026-11-05 11:51:30 +08:00