scheduled-fallback-check-cites-stale-task-id

scheduled-fallback-check-cites-stale-task-id is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 310 tokens per session (2,888 once invoked), scanned A, original, MIT.

A guide for verifying that a background task identifier still refers to the current run before using its result. A background task is work that continues while the main session does something else.

In plain words
What is it for?
Use it when checking builds, tests, deployment verification, or other long-running jobs before publishing results or taking the next release action.
Why use it?
A newer rerun may have replaced the task named in an earlier reminder, so an old successful result may describe an outdated code state or no longer exist.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Claude Code.

Part of the agent-traffic-control plugin — 124 skills shipped together

Good fit Use it when checking builds, tests, deployment verification, or other long-running jobs before publishing results or taking the next release action.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/scheduled-fallback-check-cites-stale-task-id
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wan-huiyan/agent-traffic-control --skill scheduled-fallback-check-cites-stale-task-id
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 124 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scheduled-fallback-check-cites-stale-task-id

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/scheduled-fallback-check-cites-stale-task-id/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/scheduled-fallback-check-cites-stale-task-id)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/scheduled-fallback-check-cites-stale-task-id"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/scheduled-fallback-check-cites-stale-task-id/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scheduled-fallback-check-cites-stale-task-id

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/scheduled-fallback-check-cites-stale-task-id"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/scheduled-fallback-check-cites-stale-task-id.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 310 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,888 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00310 $0.02888
Opus 5.5 $0.00124 $0.01155
Sonnet 5.5 $0.00062 $0.00578
Haiku 4.5 $0.00031 $0.00289

Measured 1mo ago against content hash 3fbc9ff89351, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scheduled-fallback-check-cites-stale-task-id scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-traffic-control/skills/scheduled-fallback-check-cites-stale-task-id/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scheduled fallback check cites a stale, superseded task ID

Problem

You dispatch a long-running background task — a local gate run, a build, a deploy-verification watcher — under some task ID. Before it (or its successor) is expected to finish, a check-in message arrives asking you to look at that ID and, if it's finished green, take a consequential next step:

"Check whether the fresh gate_receipt.py run (background task b5eomsgw3, output at .../tasks/b5eomsgw3.output) has finished. If it finished green, publish the receipt ... then push."

The trap: between when that check was WRITTEN/SCHEDULED and when it FIRES, the world moved. You found a bug, fixed it, and had to re-run the same class of task from scratch — under a brand-new task ID. The cited ID didn't update; it's a snapshot frozen at scheduling time. By firing time it may refer to a run that:

  • already finished (against an OLDER, now-superseded tree), or
  • was killed/abandoned, or
  • never existed under that exact ID at all (a copy/paste from an earlier turn).

Acting on the cited ID at face value — reading its output, treating "exit 0" there as "the current work is done" — produces a report or an action about the WRONG run. If the follow-on action is consequential (publish a gate receipt, merge, deploy, delete), you've just certified or shipped the wrong tree while believing you verified the current one.

Context / Trigger Conditions

ALL of the following:

  1. You (or a peer, or a scheduled wakeup) previously dispatched a long-running background task under task ID A, doing CI-equivalent or otherwise gating work (a full local test/gate run, a build, a deploy watcher).
  2. Before A's relevant successor state is reached, something required restarting the SAME class of work — new commits landed, a review round asked for fixes, a merge brought in origin/main, a prior run failed and needed a retry. You started a NEW background task under ID B (or C, or D — this can repeat every time the underlying tree changes again).
  3. An incoming message — self-scheduled (ScheduleWakeup/CronCreate firing), a peer session's coordination ping, or a copy-pasted human reminder — names task ID A specifically, often with its output-file path baked in, and gives instructions conditional on A's outcome ("if finished green, do X").
  4. The message may explicitly say it's "not a fresh invocation, just a fallback check" — this describes the ORIGIN of the check, not the CURRENCY of the ID inside it. Don't read that framing as license to trust the ID; it's actually the tell that the ID could be stale, because a genuinely fresh check would name whatever is running NOW.

Read the full file on GitHub · 224 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 224 lines · 310 tokens per session scan A 3fbc9ff89351

Subscribe to this mod's changes

scheduled-fallback-check-cites-stale-task-id is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed 1mo ago), licensed MIT. It adds 310 tokens to every session and 2,888 once invoked, about $0.0012 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-18.