withheld-max-output-token-errors-9eb3d3 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited withheld-max-output-token-errors-9eb3d3 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Domain: tool-orchestration Trigger: Use this when a user turn hits the max-output-token limit but the system keeps retrying so the recovery loop should finish before reporting an error. Source Pattern: Distilled from reviewed tool-loop and result-shaping patterns.
Detect the API’s max_output_tokens error inside the streaming loop, suppress it while recovery continues, and only expose it once all retries settle. During that delay, emit placeholder tool_result messages that say each tool is missing so the user sees a focused failure summary instead of a raw API error. This keeps recovery logic intact while still surfacing helpful, per-tool diagnostics after the recovery path finishes.
apiError === 'max_output_tokens' and only mark it for reporting once the recovery loop decides no more progress can happen.tool_result shape so downstream components can handle them like any other tool failure.isWithheldMaxOutputTokens returns true; do not surface the API error early or the SDK context may terminate the session.is_error: true so tooling knows it’s still an error.When the per-turn token budget is exceeded while streaming a multi-tool answer, let the recovery loop run; once it fails, emit one user-facing tool_result block per tool use with the stored error message instead of leaking the API’s max_output_tokens field.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.