Files
hermes-agent/agent
BearHuddleston 34eb0dd5e7 fix(skills): release a skill_view dedup entry the model only saw as a preview
skill_view records the digest of its full result inside the handler, but
the executor replaces the result afterwards: maybe_persist_tool_result
spills a result over the per-result budget, enforce_turn_budget spills the
largest results of a batch over the turn budget, and the guardrail swaps a
second byte-identical result for a reference stub. The entry survived all
three, so the next view of the unchanged skill got "unchanged, refer to the
earlier skill_view result; it is still current and complete" while the
model held only a 1,500-char preview.

Each entry now keeps the tool call that recorded it (the id model_tools
binds around the handler). After persistence the executor releases that
call's entry unless the model received exactly the recorded result, and
the turn budget releases the entries of the rows it spilled. Call ids are
unique within a session (turn_tool_validation uniquifies them), and
compaction resets the bucket.

Refs #151192
2026-11-20 18:57:00 -06:00
..
…