Eventkdeps asset
kdeps-events-task-round-budget
v1.0.2kdeps event: task-round-budget
Install
A kdeps asset: kdeps installs it on first run and updates it without a new release.
kdeps update events/task-round-budget
Also installs what it requires, when missing or older: actions/fail_task.
Pin a version with kdeps update events/task-round-budget@<version>.
Contents
- name
- task-round-budget
- run
- fail_task
requires:
actions/fail_task: ""
on:
rounds: 25
version: 1.0.2
# kdeps update installs these with this event: the action it runs
requires:
actions/fail_task: ""
name: task-round-budget
on:
# --- All possible trigger fields (an event sets only the ones it uses) ---
# tokens: <int> flat token-count threshold (session-wide measurement)
# ctxWindowFraction: <float> fraction of the model's context window, e.g. 0.75 = 75% full
# tokensSinceCheckpoint: <int> tokens accumulated since the last fold checkpoint
# minTurns: <int> gate: never fire before this many turns exist (token events only)
# rounds: <int> round/repeat-count threshold (stuck-loop/task/judge/handshake events)
# bytes: <int> byte-length threshold (truncation-cluster events)
# distinctCalls: <int> distinct-call-count threshold (web/bash/file/code call-budget events)
# Tool rounds spent on one goal-directed task before it is force-closed.
rounds: 25
# run: selects the action fired once the trigger above is met.
# Valid actions (assets/actions/*.yaml -- override at ~/.kdeps/actions/*.yaml):
# compact summarize older history into a checkpoint
# truncate shorten oversized content to a budget, marking what was cut
# reject refuse an operation that exceeds a size limit
# block refuse further distinct tool calls once a budget is spent
# drop_oldest drop the oldest entries from a growing collection
# cap bound a collection to a fixed count while building it
# force_answer end the tool loop and force a final text answer
# fail_task escalate and eventually close a stalled goal-directed task
# fail_handshake end a session-integrity handshake challenge as failed
# accept_last accept the last judge-panel response once the budget is spent
# NOTE: fail_task here actually drives a 4-step escalation ladder in
# goal_enforce.go (reanchor -> narrow tools -> force close -> fail forward),
# not a single function call -- see docs/v2/agent/events.md.
run: fail_task
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.2 | 10/13/2026 | active |
| 1.0.1 | 10/12/2026 | active |
| 1.0.0 | 10/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.2
- Published
- 10/11/2026
Tags
kdepsevent