Home

HPC

This page lists the safe and destructive patterns in the HPC Containers and HPC Schedulers shell guard packs. See Shell Tool for how these patterns are evaluated.

HPC Containers

Pack ID: hpc.apptainer

Guards against destructive Singularity/Apptainer container operations

Destructive patterns

Rule IDReasonSuggestionConfidence
hpc.apptainer.singularity_deletePermanently removes a container image from a remote libraryUse singularity inspect to review the image firstHigh
hpc.apptainer.singularity_cache_clean_allRemoves all cached container images, requiring re-downloadUse singularity cache list to review cached images firstMedium

HPC Schedulers

Pack ID: hpc.schedulers

Guards against destructive HPC job scheduler operations

Safe patterns

Rule IDPattern
hpc.schedulers.squeue^squeue\b[^|><]*$
hpc.schedulers.sinfo^sinfo\b[^|><]*$
hpc.schedulers.sacct^sacct\b[^|><]*$
hpc.schedulers.qstat^qstat\b[^|><]*$
hpc.schedulers.bjobs^bjobs\b[^|><]*$
hpc.schedulers.bhist^bhist\b[^|><]*$
hpc.schedulers.bqueues^bqueues\b[^|><]*$
hpc.schedulers.module_list^module\s+list\b[^|><]*$
hpc.schedulers.module_avail^module\s+avail\b[^|><]*$
hpc.schedulers.module_show^module\s+show\b[^|><]*$
hpc.schedulers.module_spider^module\s+spider\b[^|><]*$
hpc.schedulers.module_whatis^module\s+whatis\b[^|><]*$

Destructive patterns

Rule IDReasonSuggestionConfidence
hpc.schedulers.slurm_cancel_allCancels all jobs for a user, including long-running computationsCancel specific jobs by ID with scancel <jobid>; review with squeue -u $USER firstMedium
hpc.schedulers.pbs_qdel_allCancels all PBS/Torque queued and running jobsDelete specific jobs by ID; review with qstat firstHigh
hpc.schedulers.slurm_scontrol_shutdownShuts down the Slurm controller daemonThis operation should not be performed by an agentHigh
hpc.schedulers.lsf_bkill_allCancels all LSF jobs for the current userCancel specific jobs by ID with bkill <jobid>; review with bjobs firstHigh
hpc.schedulers.lsf_bkill_userCancels all LSF jobs for a user, including long-running computationsCancel specific jobs by ID with bkill <jobid>; review with bjobs -u $USER firstMedium
hpc.schedulers.sge_qdel_userCancels all SGE/UGE jobs for a userDelete specific jobs by ID; review with qstat -u $USER firstMedium

This documentation was generated from rust/agents/src/tool_guard/shell/packs/hpc.rs.

© 2026 Stencila