Fail-safe
Active
While DELETE-TO-ACTIVATE.md exists, all operations run in
dry-run mode only.
Public Fabric
Emergency Control
Account-wide intelligence repo emergency control. Searches for
.github-*-intelligence folders across all repositories and provides
last-line-of-defence workflow modification and deletion for total agent control.
This repository acts as a kill switch for all GitHub Intelligence agents running across a GitHub organisation. If an AI agent misbehaves, or you simply need to stop every intelligence workflow at once, deleting a single file in this repo triggers an automated emergency response.
Two protocols are available — a reversible disable that moves workflows aside, and an irreversible kill that permanently deletes workflows and intelligence folders.
Key signals about the emergency control surface.
Active
While DELETE-TO-ACTIVATE.md exists, all operations run in
dry-run mode only.
Org-wide
Scans every repository visible to the token for
.github-*-intelligence folders.
repo
Requires a PAT with repo scope stored as
INTELLIGENCE_EMERGENCY_TOKEN.
Committed
Every dry-run produces a timestamped receipt in dry-run-log/.
Two levels of emergency response, plus a fail-safe that guards them both.
Moves all .github/workflows/*.yml files to
.github/workflows-DISABLED/ in every repo that contains a
.github-*-intelligence folder. Workflows stop executing but
the files remain intact and can be moved back.
Trigger: Delete
DELETE-TO-DISABLE-ALL-INTELLIGENCES.md
git diff --diff-filter=D).DELETE-TO-ACTIVATE.md still exists..github-*-intelligence folders, moves workflows to workflows-DISABLED/.
Permanently deletes all .github/workflows/*.yml files
and recursively removes every
.github-*-intelligence folder from affected repos. This action
cannot be undone.
Trigger: Delete
DELETE-TO-KILL-ALL-INTELLIGENCES.md
git diff --diff-filter=D).DELETE-TO-ACTIVATE.md still exists..github/workflows/..github-*-intelligence folder.While this file exists, both protocols are forced into dry-run mode. No live changes will be made to any repository regardless of which trigger file is deleted.
Delete DELETE-TO-ACTIVATE.md first to enable live
execution. Scripts default DRY_RUN to true if the
environment variable is unset.
Simulate either protocol at any time without deleting any trigger files. Uses
workflow_dispatch so it can only be triggered via the Actions UI.
Navigate to Actions → 🔍 Dry-Run → Run workflow, choose
disable-all-intelligences or kill-all-intelligences,
and a receipt is committed to dry-run-log/.
Five independent layers that must all be deliberately bypassed before any live operation takes place.
While DELETE-TO-ACTIVATE.md exists, all operations run in dry-run mode.
Both workflows and scripts enforce this. Dry-run receipts are committed to
dry-run-log/ for auditing. Scripts default DRY_RUN to
true if the environment variable is unset.
Each protocol requires deleting its own DELETE-TO-*.md file.
Workflows verify deletion via git diff --diff-filter=D — renaming,
editing, or merely touching the file will not activate the protocol.
A PAT with repo scope must be stored as
INTELLIGENCE_EMERGENCY_TOKEN. Without it the scripts cannot
enumerate repositories or read, move, or delete files in other repos.
The emergency workflows fail harmlessly.
The agent installs companion workflows into .github/workflows-new/
— not the active .github/workflows/ directory. Trigger workflows
cannot become active without deliberate manual action by a human.
The 🔍 Dry-Run workflow (workflow_dispatch only) lets
you preview either protocol at any time without deleting any files. It always
forces DRY_RUN=true regardless of whether the fail-safe exists.
Three steps to activate the emergency system.
INTELLIGENCE_EMERGENCY_TOKEN
containing a Personal Access Token (PAT) with repo scope
across the organisation.
DELETE-TO-ACTIVATE.md to remove the final fail-safe.
While present, all operations run in dry-run mode only.
DELETE-TO-DISABLE-ALL-INTELLIGENCES.md for disable, or
DELETE-TO-KILL-ALL-INTELLIGENCES.md for kill.
GitHub Actions workflows that power the emergency protocols.
Triggered on push when
DELETE-TO-DISABLE-ALL-INTELLIGENCES.md is deleted.
Verifies the file was actually deleted, checks the fail-safe, then runs
scripts/disable-all-intelligences.sh.
Triggered on push when
DELETE-TO-KILL-ALL-INTELLIGENCES.md is deleted.
Verifies the file was actually deleted, checks the fail-safe, then runs
scripts/kill-all-intelligences.sh.
Manual-only workflow via workflow_dispatch. Always forces
DRY_RUN=true regardless of fail-safe status. Choose between
simulating disable or kill.
Self-installer and upgrader. On workflow_dispatch, checks
the VERSION file against the latest release and installs or
upgrades the emergency system — scripts, trigger files, and companion
workflows — into .github/workflows-new/. Also publishes the
public-fabric site on every push to main.
Deploys public-fabric/ to GitHub Pages whenever its
contents change on main. Runs independently of the agent
workflow so page updates are published immediately without a full
installation run.
Bash scripts that implement the emergency logic.
Enumerates all repos for the owner, finds those with
.github-*-intelligence folders, and moves their workflow files
to .github/workflows-DISABLED/. Extracts workflow version
comments for the dry-run receipt.
Enumerates all repos, deletes workflow YAML files, then recursively
deletes every .github-*-intelligence folder via the GitHub
Contents API. Includes version extraction for receipts.
Complete file tree of the emergency control repo.