ReMe/reme
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
..
components fix(hermes): preserve host dependencies in embedded installs (#742) 2026-11-13 11:18:48 +08:00
config feat(traverse): return readable traversal summaries (#716) 2026-11-12 11:10:21 +08:00
enumeration refactor(agent)!: unify lossless streaming and collected replies (#713) 2026-11-05 16:04:27 +08:00
schema feat(proactive): add resource packages and application-owned chat (#714) 2026-11-06 16:32:05 +08:00
steps fix(dream): strip YAML front matter from extraction input (#738) 2026-11-16 12:32:42 +08:00
utils fix(sandbox): enforce write grants and repair network isolation checks (#749) 2026-11-16 12:24:20 +08:00
__init__.py chore(release): bump ReMe version to 0.4.2.3 (#723) 2026-11-06 11:21:20 +08:00
application.py fix(core): finish application cleanup before propagating cancellation (#636) 2026-11-05 16:20:03 +08:00
constants.py fix(client): format IPv6 service URLs correctly (#719) 2026-11-11 11:43:02 +08:00
entry_point.py feat: simplify plugin setup and add management CLI (#485) 2026-08-23 17:58:20 +08:00
plugin.py feat: simplify plugin setup and add management CLI (#485) 2026-08-23 17:58:20 +08:00
plugin_cli.py feat: simplify plugin setup and add management CLI (#485) 2026-08-23 17:58:20 +08:00
plugin_manifest.py feat: simplify plugin setup and add management CLI (#485) 2026-08-23 17:58:20 +08:00
reme.py feat: simplify plugin setup and add management CLI (#485) 2026-08-23 17:58:20 +08:00