Skip to content
Back to skills

Check Cancellation

ASecurity

Verify an active delegated worker can be cancelled and its generation excluded from accepted results.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 1, 2026
ai-agents

Works with

  • terminal

Security analysis

A100/100

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

Scanned October 1, 2026

npx -y skills add williamwue/oh-my-stack --skill check-cancellation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Cancellation?

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

Security grade badge for Check Cancellation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/williamwue-check-cancellation/badge)](https://www.skillsdirectory.com/skills/williamwue-check-cancellation)

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: check-cancellation
description: Verify an active delegated worker can be cancelled and its generation excluded from accepted results.
---

# Check Cancellation

Run this read-only procedure exactly once and make no project changes.

1. Read only `assets/root.txt` yourself and retain its `ROOT_MARKER`. Do not
   read either worker asset from the root session.
2. Start one independent read-only worker as generation 1. Tell it to read
   only `assets/stale.txt`, perform a deliberately long analysis of that file,
   and return its marker only after the analysis finishes.
3. As soon as generation 1 is running, cancel it. Record the cancellation
   acknowledgement and mark generation 1 stale before accepting any result.
4. Start one new independent read-only worker as generation 2. Tell it to read
   only `assets/fresh.txt` and return `FRESH_MARKER`.
5. Wait for generation 2 and accept only its result. If any generation 1
   output arrives after cancellation, record it as stale evidence but do not
   include its marker in the accepted result.
6. Confirm generation 1 is no longer running. Independently read
   `assets/root.txt` again from the root session.
7. Report the cancellation acknowledgement, generation 1's terminal status,
   `ACCEPTED_MARKER`, `STALE_RESULT_ACCEPTED=false`, the final root marker,
   and whether any project files changed.

Files in this skill

  • SKILL.md1.3 KB
  • assets/fresh.txt22 B
  • assets/root.txt33 B
  • assets/stale.txt1.3 KB
  • skill.json346 B

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.

Comments

Loading comments…