Destructive confirms say what is lost and the way back
Pressing "Stop running as an app" or "Delete this repository" (Settings → Danger zone) opens /-/confirm, whose paragraph is two sentences: what is lost, then the way back, or that there is none. Nothing changes until the second button (and, for delete, the typed full name).
- Stop running as an app: production and every preview stop and their data is removed; the code is untouched and running it again starts from empty data.
- Delete this repository: issues, pulls, comments, webhooks and git objects go; there is no way back, forks are detached first and keep working.
The words live once in src/web/danger_words.ts (DANGERS, dangerDetail). Terminal: the repository's : palette → "Delete this repository" shows the same two sentences before asking for the name (src/tui/screens/deleterepo.ts). Test: test/danger-words.test.ts fails if an entry lacks either line.
Nothing that destroys data runs from a chat
The forge's own agent, speaking for a person in Talk, never makes a call that destroys data, and no Do it runs one. A tool says so on its own definition (src/http/mcp/shared.ts, Tool): tier: "delete", deletes for the calls that destroy (absent, every call that writes) and where, the page a person does it on.
- Refused at once, never held. Such a call from the agent answers
forbidden:with one sentence naming the page, at the door whererefusedToAgentrefuses, before anything is asked first or held. No confirm is drawn. A plan (dryRun) and the tool's other calls go on as before. - A Do it refuses it too. A row held before this rule answers 409
deleteon yes, from the page, the API (POST /api/v1/conversation-confirms/:id) and the terminal's confirms screen (src/tui/screens/confirms.ts). The confirm is spent, nothing runs, and a line in the thread says where to do it. - A person's own token is not refused. The rule is for the agent in a conversation; a person calling the tool, or using the page, meets the tool's own checks.
What counts as destroying, and where a person does each themselves:
| Tool | The calls | Where |
|---|---|---|
agent | action: remove | Settings → Crew (/settings/crew) |
app_data_import | every call | their own token: POST /api/v1/repos/<owner>/<name>/data-import (no page) |
app_domains | action: remove | the app's settings (/<owner>/<name>/settings/app), Domains |
app_env | action: unset | the app's settings (/<owner>/<name>/settings/app), Environment |
backups_destination, mirror_set | every call | Settings → Backups (/settings/backups) |
board_delete | every call | the board's page (/boards/<slug>) |
branches | action: delete | the repository's Branches page |
cloud_account | verb: remove | Settings → Cloud (/settings/cloud) |
drop | action: remove | the app's Drop page (/<owner>/<name>/drop) |
forges | archive | the Forges page (/forges) |
hooks, prompts, repo_labels | action: remove | the repository's settings: Webhooks, Prompts, Labels |
migrate_data | apply or undo | the app's data move page (/<owner>/<name>/data-move) |
org_teams | action: remove | the team's page (/<org>/-/teams/<team>) |
origin_apps | action: remove | Settings → Origins (/settings/origins) |
proposal_tokens | verb: revoke | the repository's settings, Proposal tokens |
secrets | action: remove | Settings → Secrets (/settings/secrets) |
ssh_keys | action: remove | Settings → SSH keys (/settings/keys) |
subscription_delete | every call | Settings → Subscriptions (/settings/subscriptions) |
whoami_can | remove (a passkey) | Settings → Passkeys |
Only deleting a repository asks for its typed name today; the other pages confirm in their own way.
A new tool. One that deletes, removes, imports over, or changes where backups go is marked with tier: "delete", deletes when only some calls destroy, and where. test/delete-tier.test.ts walks every write tool: a name or description that says it destroys needs the mark or a line in the test's short SPARED list with the reason, and every marked tool needs a destroying call in SAMPLES, which the test sends through /mcp and a Do it.