mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-30 00:47:36 +00:00
|
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 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. |
||
|---|---|---|
| .. | ||
| common | ||
| compaction | ||
| evolve | ||
| file_io | ||
| index | ||
| proactive | ||
| transfer | ||
| __init__.py | ||
| base_step.py | ||