mateclaw/mateclaw-server/src/test/java/vip/mate/agent/graph
matevip fcf5f3960b fix(agent): stop lossy-truncating retrieval tool results that must arrive whole
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.
2026-07-28 05:06:24 -04:00
..
edge Harden goal approval and workspace flows 2026-05-23 22:55:16 +08:00
executor fix(agent): stop lossy-truncating retrieval tool results that must arrive whole 2026-07-28 05:06:24 -04:00
guard feat(agent): tool-call loop guard, post-mutation verify reminder, warning chips 2026-07-08 18:18:34 +08:00
node feat(agent): tool-call loop guard, post-mutation verify reminder, warning chips 2026-07-08 18:18:34 +08:00
plan feat(team): plan-execute leads orchestrate through the task board — hand-off bridge, resume gate and step dependencies 2026-07-25 22:22:38 +08:00
state feat(plans): per-step agent delegation + fix kanban pending column (issue #385) 2026-06-21 21:20:58 +08:00
ContentRepetitionGuardTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00
ErrorClassificationTest.java feat(llm): smarter failover — overload-aware retries, provider retry windows, provider pool auto-recovery 2026-07-22 11:12:47 +08:00
ErrorTypePolicyTest.java feat(llm): smarter failover — overload-aware retries, provider retry windows, provider pool auto-recovery 2026-07-22 11:12:47 +08:00
LaneDPerformanceFixesTest.java feat(agent): loop-engineering robustness — goal continuation, plan re-plan, stall detection 2026-06-17 06:37:08 +08:00
MessageNormalizerTest.java fix(agent): collapse SystemMessages at egress to fix LM Studio 400 (#218) 2026-05-25 17:57:03 +08:00
NodeStreamingChatHelperFailoverTest.java fix(agent): fail over to backup providers when the primary is rate-limited 2026-05-19 20:06:21 +08:00
NodeStreamingChatHelperFallbackChainTest.java chore: sync multiple commits from private dev 2026-04-19 18:37:44 +08:00
NodeStreamingChatHelperNormalizerWiringTest.java fix(agent): collapse SystemMessages at egress to fix LM Studio 400 (#218) 2026-05-25 17:57:03 +08:00
NodeStreamingChatHelperPoolTest.java fix(chat): resilient retry for transient AI gateway errors 2026-06-15 08:02:02 +08:00
NodeStreamingChatHelperThinkingCapTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00
NodeStreamingChatHelperToolCallArgsTest.java fix(agent): normalize replayed tool-call arguments to valid JSON (#410) 2026-06-26 11:19:19 +08:00
RetryAfterExtractionTest.java feat(llm): smarter failover — overload-aware retries, provider retry windows, provider pool auto-recovery 2026-07-22 11:12:47 +08:00
ReturnDirectEndToEndTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00
StateGraphReActAgentStreamedContentDeltaTest.java fix(agent): structured tool-call replay + final-answer-only content (#120) 2026-05-14 07:46:30 +08:00
StripThinkingBoundaryTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00