mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
load_skill returns SKILL.md in full by design — it is the model's behavioral contract, and pagination by default would let the model silently miss later mandatory sections. read_file / readSkillFile / load_skill are therefore on the spill-exclusion list so their output is never replaced by a disk pointer. The exclusion only covered half the path. In spillRawOrTruncate, an excluded tool's result came back from persistIfOversized unchanged (no spill), failed the SPILL_MARKER_PREFIX check, and fell through to truncateToolResult(8000) — so an 8261-char SKILL.md was hard-cut through the middle and stamped with a '[TRUNCATED: ... middle omitted]' marker. Weaker models ignore the attached fidelity note and fabricate the removed span, inventing tool calls against endpoints the skill never described. - spillRawOrTruncate now returns retrieval-excluded results raw; the per-turn aggregate budget stays the backstop. - Outsized SKILL.md degrades to resumable pagination instead of an unbounded inline dump. Never a lossy middle-cut. |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||