Skip to content

MUXUE-72: optimize AI context reads - #451

Merged
musnows merged 3 commits into
developfrom
mutlica/refactor/MUXUE-72
Aug 14, 2026
Merged

MUXUE-72: optimize AI context reads#451
musnows merged 3 commits into
developfrom
mutlica/refactor/MUXUE-72

Conversation

@musnows

@musnows musnows commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • implement SVE-4-006 by paging story_index directory fields and loading insights only for the returned chapter IDs
  • implement SVE-4-007 by reading conversation counts, compaction boundaries, and uncompacted tails separately
  • reuse one conversation-tail snapshot across context estimation, message building, generation, and compaction
  • keep full conversation history APIs unchanged and add regression coverage for ordering, boundaries, appends, and large fixtures

Verification

  • npm run typecheck
  • npm run test:unit (500 tests)
  • integration suite split into bounded Vitest groups (374 tests)
  • npm run test:system (77 tests)
  • npm run build
  • isolated SQLite PRAGMA integrity_check and PRAGMA foreign_key_check
  • isolated production health check at /api/health

The aggregate npm test process was interrupted by the local resource limit without a Vitest assertion failure; the same 951 unit, integration, and system tests passed in bounded invocations.

musnows and others added 2 commits August 14, 2026 17:15
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
scriverse Ignored Ignored Preview Aug 14, 2026 9:58am
scriverse-showcase-demo Ignored Ignored Preview Aug 14, 2026 9:58am

@musnows
musnows merged commit 5d9c17d into develop Aug 14, 2026
3 checks passed
@musnows
musnows deleted the mutlica/refactor/MUXUE-72 branch August 14, 2026 14:16
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.

1 participant