mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-30 00:47:36 +00:00
* test(dream): accept contextual provenance links in auto_dream assertion integrate.yaml (since #428) requires every `## Sources` entry to be a complete sentence containing the wikilink and explicitly forbids bare `- [[...]]` lines, but the integration assertion only matched the bare line form, so prompt-conformant digests fail the provenance check (reported in #739). Match the provenance link target with or without an alias instead of a specific line form. * test(dream): check provenance with the shared wikilink parser The prefix-based check ("\[[[P]]\]" or "\[[[P|") kept a partial grammar in the assertion and still mismatched the repository's wikilink syntax in both directions: an unterminated aliased span like "[[P|the session record" (no closing brackets) was accepted even though it produces no source link, while valid anchored links such as "[[P#Decision]]" and "[[P#Decision|the decision]]" were rejected even though the shared parser resolves them to the expected target. The assertion now delegates to a small dependency-light helper (tests/integration/_provenance.py) that asks WikilinkHandler.iter_matches whether any parsed link's target equals the changed daily note. Bare links, contextual sentences, aliases, embeds, and anchors all count; unterminated spans and links to other targets do not. Because tests/integration never runs in CI, the helper is also exercised by tests/unit/test_auto_dream_provenance.py with uncredentialed, parameterized cases for each accepted and rejected form, plus a multi-target selection case. --------- Co-authored-by: RerankerGuo <RerankerGuo@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _provenance.py | ||
| _workspace_fixture.py | ||
| run_reme_e2e_local.py | ||
| test_agent_session.py | ||
| test_auto_dream.py | ||
| test_auto_memory.py | ||
| test_auto_resource.py | ||
| test_auto_tag.py | ||
| test_benchmark_docker.py | ||
| test_codex_agent_wrapper.py | ||
| test_codex_demo.py | ||
| test_codex_plugin_install.py | ||
| test_codex_plugin_status_ui.py | ||
| test_codex_token_usage.py | ||
| test_codex_wrapper_capabilities.py | ||
| test_decision_compaction.py | ||
| test_embedding.py | ||
| test_home_wheel.py | ||
| test_llm.py | ||
| test_reme_e2e.py | ||
| test_seatbelt_backend.py | ||
| test_stream_llm.py | ||