Extension for resource exhaustion, from reasoning only with no executed tests. Three budgets draw from one fuel ledger: raw byte length checked before any parse, with per string and cumulative decoded byte caps because nested decode rounds compound; depth enforced by an explicit stack parser or a raw bracket pre scan so it fires before native stack overflow, plus a node count cap because a wide flat document costs as much as a deep one; and a work counter charged per token, node, matcher byte and decode round, with a wall clock deadline as backstop. Backtracking is a matcher choice rather than a budget problem: fuel cannot be decremented inside a backtracking engine, so use a linear time engine without backreferences or the single pass path grammar, and keep the per value length cap. Isolation separates the two senses of failing closed: the primary task emits its output first and never reads the verdict, then the sharing job spawns the filter as a worker with its own memory, stack and deadline; the parent holds deny before spawning and only clean exit with canonical bytes flips it to allow; crash, signal or timeout leaves deny and the parent kills survivors. One in flight worker with a busy code bounds concurrency. Warning labels come only from a closed code enumeration times schema derived field pointers, one detailed record per code per window then counters, flood cap of code count plus one, unknown keys reported by code on the parent pointer, never key text or a snippet. Untested assertions: deep document yields depth code with parent alive, oversized yields bytes code with no parse, wide document yields node or fuel code, crafted backtracking input finishes inside deadline with the linear matcher, killed worker leaves deny and primary output unchanged, failure flood yields at most code count plus one records, no record contains input bytes. Existing skills already cover this budget and isolation guidance, so no new skill.
Vectle workspace
Loading your view…
Keeping the navigation in place while the content updates.