Skip to content
Back to skills

Tool Result Status Declaration

ASecurity

Use when you are about to state a fact, fill in a value or take the next step on the strength of a tool result (a file read, a search, a fetch, a command, a subagent report). A result can arrive as a success and still be unusable (empty, cut short, off target, an error page), and an agent given no named failure state tends to fill the gap with a plausible value. Before the claim, declare each retrieval it rests on as OK, PARTIAL or FAILED with the evidence, check what a success code does not ...

  • 72 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentsrustgo

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add Tibsfox/gsd-skill-creator --skill tool-result-status-declaration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tool Result Status Declaration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tool Result Status Declaration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tibsfox-tool-result-status-declaration/badge)](https://www.skillsdirectory.com/skills/tibsfox-tool-result-status-declaration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tool-result-status-declaration
description: >
  Use when you are about to state a fact, fill in a value or take the next
  step on the strength of a tool result (a file read, a search, a fetch, a
  command, a subagent report). A result can arrive as a success and still be
  unusable (empty, cut short, off target, an error page), and an agent given
  no named failure state tends to fill the gap with a plausible value. Before
  the claim, declare each retrieval it rests on as OK, PARTIAL or FAILED with
  the evidence, check what a success code does not (size, a cut notice, the
  field you need, the right target and context), and on anything but OK retry
  differently or say the value is unavailable. Make the tools and briefs you
  write signal failure explicitly. Distinct from relay-sufficiency-gate (sizing
  a brief and a report) and taint-capability-narrowing (authority after
  untrusted content). Backed by arxiv 2609.14758, 2610.36114 and 2610.16333.
  Triggers on building on a tool result and on writing a tool wrapper or a
  return shape.
description-frequency: on-demand
user-invocable: true
version: 1.1.0
format: 2025-10-02
triggers:
  - "the file read came back, now summarize what it says"
  - "the search returned nothing, so it does not exist"
  - "what should this script return when the fetch comes back empty"
updated: 2026-11-29
status: ACTIVE
source: arxiv 2609.14758 (unsignalled tool failure and fabrication), arxiv 2610.36114 (tool-output attrition in agent harnesses), arxiv 2610.16333 (tool-result misbinding)
---

# Tool Result Status Declaration

A one-line habit placed between a tool result and the claim built on it. Say
whether the retrieval worked before you say what it found.

## Why

Whether an agent reports honestly after a tool fails depends on whether the
failure is signalled. A benchmark of 1,024 items across eight tool-failure
types (arxiv 2609.14758) enforces a tool call whose returned payload is
guaranteed unusable. Under a deployment-style system prompt 14.10% of
responses are dishonest: they assert a value the payload cannot support, or
decline while citing a fabricated policy or capability limit. The rate is
governed almost entirely by signalling: 0.0% when the tool returns
`status:error`, reaching 45.3% when it returns `status:ok` with an unusable
value.
One appended sentence requiring `retrieval_status: OK` or `FAILED` before
the answer reduces dishonesty from 14.10% to 0.87%, and the flag is faithful
in 99.7-99.9% of declarations, so it also works as a detector.

On this system the unsignalled case is common, and most of it is truncation.
A read tool returns the first part of a large file as an ordinary result. A
script's returned value is cut at a size limit. A search run in the wrong
directory returns nothing, exactly like a search with no hits. A fetch
returns HTTP 200 with a sign-in page. A subagent reports "done" and names no
file. In this project's September-2026 arXiv campaign a subagent's single
read of a 94 KB digest of existing concepts delivered its first 66,400
characters, 320 of 493 lines, as an ordinary successful result with no error
status.

Loss also happens before the model reads anything. An attrition study of a real
tool-using agent (arxiv 2610.36114) found the context window almost empty
(across 720 runs the single largest prompt used 5.75% of it) while a third of
all tool results (3,827 of 11,189) were cut before they reached the model, and
every cut result became broken JSON. The harness cut each result by slicing its
JSON text at a fixed length, which does not shorten a result evenly: it deletes
whatever sits near the end. One field reached the model in 4.7% of calls, and a
second field, in the very same results, in 99.3%. In a controlled experiment the
cost appeared first as extra work (43% more tool calls, yield falling from 0.61
to 0.31), not as wrong answers; whether the cut causes the drop in accuracy the
paper leaves open.

A result can also be whole and genuine and still not belong to the present step.
Results persist across caches, recovery mechanisms and shared runtime state, and
a real, unmodified result consumed in an incompatible execution context is
*tool-result misbinding* (arxiv 2610.16333). On ReplayBench, under cross-task
replay, the mean Final-State Error Rate is 0.649 across eight LLMs and three
agent frameworks, and susceptibility remains high under result staleness and
implicit environment changes.

## Data classes touched

Governs how tool results are reported; it reads and writes nothing itself.
Boundary rule: a status line describes the retrieval (what was asked, how
much came back) and does not copy credentials or `never-surface` content out
of a payload in order to prove the point.

## How

1. **Name the retrievals the claim rests on.** For the statement you are
   about to make, list the tool results it depends on. One claim, one or more
   retrievals.
2. **Check what a success code does not tell you.**

   | Check | Unusable when | How to check |
   |---|---|---|
   | exit or status | non-zero, an error field, an exception text in the body | read the exit code, not only the output |
   | completeness | a cut notice, fewer lines or items than exist, output that stops mid-record | compare with `wc -l`, `wc -c` or a count the source reports |
   | emptiness | an empty result where content was expected | confirm the query could have matched: the path exists, the pattern matches a known case |
   | target | the right shape from the wrong place: another file, a sign-in or error page | check the path, id, title or date inside the payload |
   | scope | a slice, a head or a keyword filter you applied yourself | if you read part, the status is PARTIAL, whatever the tool reported |
   | field | most of the payload arrived and the part the claim needs did not: a cut removes what sits last, not a share of everything | look for the specific field, key or last record; if it is missing the status is PARTIAL, however much arrived |
   | binding | a genuine result that does not belong to this step: produced for another task, or before a change to the state it describes (a stale cache, a replayed result, an old version) | check what produced it and when: the command, the id, the time; if it belongs to another task or the state has changed since, the status is FAILED: run it again if repeating it is safe, otherwise ask |

3. **Declare the status before the claim**, one line per retrieval:

   ```text
   retrieval_status: OK       README.md, 212 of 212 lines
   retrieval_status: PARTIAL  search over src/, first 100 of 412 matches
   retrieval_status: FAILED   fetch returned 200 with a sign-in page
   ```

   `OK` means the payload contains what was asked for, whole. `FAILED` means it
   does not, or that it does not belong to this step (the binding row).
   `PARTIAL` means part of it arrived. The flag in arxiv 2609.14758 has the two
   values `OK` and `FAILED`; `PARTIAL` is this skill's addition for truncation.
4. **Act on the status.**
   - `OK`: proceed.
   - `PARTIAL`: fetch the rest (a range, a smaller unit, a different tool),
     or limit the claim to the part you hold and say so in the claim itself.
   - `FAILED`: retry in a way that addresses the cause when repeating the
     action is safe (otherwise ask), or state that the value is not
     available. Do not supply it from memory, from the shape of
     the expected answer or from an earlier result. If you decline, give the
     real reason, that the tool result was unusable, and not a policy or a
     capability limit.
   - A refusal is none of these. When a guard, hook or permission prompt refused
     the call, report it as refused and follow `guard-refusal-protocol`. "A
     different tool" above is another way to read the same content, never
     another route to an action that was refused.
5. **Signal failure where you write the tool.** A script or wrapper you
   author exits non-zero, throws, or returns an explicit status field when it
   gets nothing usable; it does not return an empty success. A brief for a
   subagent names the status line as part of the return shape, so that the
   report can be checked with a pattern match. A tool that must shorten its
   output cuts at record boundaries, leaves what it returns parseable, says how
   many records it dropped, and puts the fields a reader will act on first. Have
   it return the identity of what it read (path, id, time), so that a result can
   be bound to the call that produced it.
6. **Read reports the same way.** A report with no status line for a claim
   has an unknown status for that claim: check the disk or rerun before
   building on it (the per-claim form of step 7 of
   `relay-sufficiency-gate`).

### Robustness rule

Judge a retrieval by what arrived, not by the absence of an error. A success
status with an unusable payload is the condition under which the benchmark's
dishonesty rate was highest.

## Confidence / failure model

Steps 2 and 3 are partly deterministic (an exit code, a line count) and partly
an **LLM judgment** (whether a payload is on target). The honesty figures are
those of arxiv 2609.14758, for enforced tool calls with payloads guaranteed
unusable and a sentence appended to the system prompt; they are not a
measurement of this skill, and a system prompt is a stronger channel than a
skill the agent chooses to apply. The attrition and replay figures are those
papers' (arxiv 2610.36114, arxiv 2610.16333), for one kernel-trace agent and for
a replay benchmark; the field and binding rows, and the rules in step 5 for a
tool that shortens its output, are this skill's reading of them. `PARTIAL`, the
check table and the rule for reports are this skill's design. Fail-closed
defaults: (a) a result you cannot classify is not `OK`; (b) a claim resting on a
`PARTIAL` result carries the limit in its own sentence; (c) writing `OK` without
having checked completeness is the failure this skill exists to prevent, not a
formality.

## When to skip

- The result is consumed by a deterministic check whose outcome is the
  answer (a test run, a type-check, a gate script): report its exit code.
- A lookup whose whole payload is visibly the answer and on which nothing
  will be built.
- Reads made while orienting, before any claim rests on them. The status is
  owed at the point a claim is made.

## Integration

- **relay-sufficiency-gate** — its step 4 specifies a report's return shape,
  including what was not checked; the status line is the per-retrieval form
  of that.
- **weakest-runner-skill-check** — a weaker runner is more likely to work
  from a slice; require the status line in its return shape.
- **redundancy-independence-check** — prefers a deterministic check; the
  completeness checks in step 2 are of that kind.
- **taint-capability-narrowing** — a tool result that carries third-party
  text is also a taint event: status says whether it arrived, taint says
  what it may steer.
- **cue-anchored-memory** — a wrapper that fails loudly is the enforce tier
  of this rule; propose it instead of relying on the habit.

Files in this skill

  • SKILL.md8.2 KB
  • triggering.test.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.