Skip to content
youdede

Scheduled task mutation guard

OperationsHookv1.0.0

A deterministic Claude Code PreToolUse gate that distinguishes scheduler inspection from mutating cron, at, launchd, and Windows Task Scheduler commands.

Runs on

Scope
$npx @youdede/toolkit add scheduled-task-mutation-guard --target claude-code

What it does

Block direct creation, mutation, execution, and removal of operating-system scheduled tasks.

When it fires

  • setup
  • operations

How it behaves

Classify scheduler commands and refuse operations that alter scheduled execution.

It does not create, execute, alter, or delete scheduled tasks.

It does not inspect scheduler databases or existing task definitions.

It does not infer authorization from a task name, comment, or prompt.

Configuration

targets/claude-code/scheduled-task-mutation-guard.mjsnode · none

Version
1.0.0
Requires
Shell command guard
Licence
RiskThis automatic gate blocks direct creation, mutation, execution, and removal of operating-system scheduled tasks; a false denial can interrupt legitimate work, but it does not execute the blocked action.
Medium
ModeHow it works: fixed rules, model instructions, or both.
Deterministic only
Behaviour
Enforces, blocks on violation
On failure
Denies and blocks
LatencyThe entrypoint handles one intercepted event to block direct creation, mutation, execution, and removal of operating-system scheduled tasks without deferred work.
Immediate
Data retentionWhether data remains after use and who manages its storage.
Not retained

Often used with

All in Operations