Skip to content

fix(daily): preserve malformed indexes and report refresh failures - #726

Open
fredheathcote007 wants to merge 3 commits into
agentscope-ai:mainfrom
fredheathcote007:upstream/fix-daily-index-unreadable-20261107
Open

fredheathcote007 wants to merge 3 commits into
agentscope-ai:mainfrom
fredheathcote007:upstream/fix-daily-index-unreadable-20261107

Conversation

@fredheathcote007

Copy link
Copy Markdown

Summary

  • Preserve the original bytes when an existing daily index contains invalid encoding or malformed front matter.
  • Return an explicit index-refresh error instead of replacing a damaged derived index.
  • Propagate that error through daily writes, automatic memory, resource processing and dream extraction without deleting or rolling back durable source notes.
  • Cover malformed indexes, byte-identical preservation, recovery after repair, repeated rebuilds and higher-level response handling.

Validation

  • Python 3.12: 383 passed, 52 skipped across daily steps, listing and links, frontmatter, file-store consistency, automatic dream, image resources and background-memory tests.
  • Python compilation, focused Ruff correctness checks and git diff --check passed.

Scope

Changes are restricted to daily-index refresh and its immediate callers and regression tests. No dependencies, configuration defaults or unrelated subsystems have changed.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants