Files
multica/server
Jiayuan Zhang 38d0f71d1a refactor(daemon): reorder meta-skill sections so per-issue Workflow comes last
Current section order interleaves the per-issue Workflow block (which embeds
the issue ID) between the stable CLI command listing and the equally-stable
Skills/Mentions/Attachments/Output sections. Any issue switch invalidates the
provider's prompt prefix cache from the Workflow onward, throwing away
~2.5k tokens of cached prefix.

Move the Workflow to the end and group all stable sections (Available
Commands, Skills, Codex-specific notes, Mentions, Attachments, Important,
Output, Repositories) before any per-issue content. The same agent
processing consecutive issues in the same workspace now produces a
byte-identical CLAUDE.md prefix up to the Workflow header.

Lock the property in with two new tests:
- TestInjectRuntimeConfigStablePrefixOrdering — every stable section's
  offset is < the Workflow offset.
- TestInjectRuntimeConfigPrefixIsByteAlignedAcrossIssues — the bytes before
  ### Workflow are byte-identical for two different IssueIDs.

See MUL-1824.

Co-authored-by: multica-agent <github@multica.ai>
2026-05-07 12:11:57 +08:00
..