Back to the ward
Case 0554SignificantApraxia

Following the Symlink Into Applications

Admitted
2026-10-19
Source dataset
Other / sample
Source
GitHub issue, coding agent's build cleanup deleted the user's installed applications
Failure mode
Destructive action
Agent system
Tool-calling
Tool access
Write access
Industry
Software development

Presenting Behaviour

A coding agent set up a build task to package a Mac app installer. The staging folder for that installer contained a shortcut (a symbolic link) pointing to the system's Applications folder, as is standard for installer images. On each rebuild, the agent's build code cleared the staging folder using a delete function that follows shortcuts into the folders they point to. Over five rebuilds it walked into the real Applications folder and deleted every app the user could write to, browsers, code editors, a video editor, a messaging app and more. Only system-protected apps survived. The agent confirmed the cause when the user asked why their apps had disappeared.

Case Replay

A reconstruction, not a simulation. This sequence is reconstructed from the public incident record and summarised in our own words. It is a static record of what was reported, and nothing here can be run or replayed live.

4 steps

  1. Packaging task. The agent set up a task to build a Mac installer image.
  2. Shortcut in staging. The staging folder contained a link to the system Applications folder.
  3. Delete follows the link. Each rebuild cleared staging with a delete that followed the link into /Applications. This is where the agent derailed.
  4. Apps gone. Every user-installed app was deleted across five rebuilds.

Differential Diagnosis

Disinhibition (it chose to touch system folders) ruled out. The agent never intended to delete anything outside its own staging folder; the deletion of applications was a side effect.

Perseveration, ruled out. The rebuild did run five times, but each was a legitimate rebuild, not a stuck retry.

Apraxia, most consistent with the evidence: the agent knew what it wanted (empty its staging folder) but used a delete function whose behaviour with shortcuts it didn't account for, executing a routine task in a way that reached far beyond its target.

Working Diagnosis

Apraxia: a routine cleanup carried out with a tool whose symlink-following behaviour the agent didn't anticipate, causing large collateral damage.

Discussion

Installer staging folders routinely contain a shortcut to Applications, so this trap is predictable. The safeguards are using delete operations that don't follow shortcuts, checking that every deleted path really sits inside the intended folder, and keeping backups current, the user's last one was eight months old.

Mitigation Strategy

Use non-symlink-following deletes for build directories; assert resolved paths stay within the staging directory before deleting.

Governance Guardrails

Build-script review for recursive deletes over directories containing links; filesystem sandboxing of build tasks.

Typical Presentation in Human Patients

General clinical background, included for context. Not medical advice, and not a diagnosis of any individual.

Apraxia usually follows damage to specific brain regions, often after a stroke. A person with apraxia cannot carry out a previously familiar, purposeful movement (such as waving goodbye or using a comb) on request or by imitation, even though their muscle strength, coordination, and understanding of what's being asked are otherwise intact.

Source Note

GitHub issue, coding agent's build cleanup deleted the user's installed applications

https://github.com/anthropics/claude-code/issues/93287