mt allow

A config can name commands for mt to run. A [[tasks.waits]] checker runs while mt reads, a [[on.flip]] or [[on.rm]] run action runs when mt flip changes a status or mt rm removes a task, and the [go] editor and [add] editor programs open when you ask for an editor. mt runs none of them in a repo until you run mt allow there. Read them first. They run with your rights. An editor declared in your own mindtape/defaults.toml doesn’t need approval.

mt allow prints every command under one line saying whether the repository allows them, then records the approval. mt allow --status prints the same table and doesn’t record anything, so you can read what the config runs before you trust it. --json prints that list for a script: each site’s kind (gate or editor), its moment, the hook’s label when it has one, and its command.

Trust the commands your config runs in this repo

Those are its [[tasks.waits]] checkers, its [[on.flip]] and [[on.rm]] run actions, and its [go] and [add] editors. It prints each command and records them for this repository and every worktree of it. Until you do, mt runs none of them, and a changed command asks again. Read them first: they run with your rights. --status prints the list without recording anything, and --json prints it as JSON.

Until you allow them, each command that would run one warns once and lists them. A task that waits on a checker stays blocked, its why reading unknown: not allowed, and mt wip --force still starts it. A flip gate refuses the flip, and --force takes it past. mt skips a flip run without gate. It skips an editor that isn’t allowed too. mt go, the mt ls picker and mt add --edit try $VISUAL, then $EDITOR. With neither, mt go fails and mt add opens vi. mt allow --status lists the same commands under one status line without recording anything, and --json prints that list. Bare mt allow records the approval and prints the list under an allowed line. The record holds a hash of them all in allowed/ under mt’s data directory, outside the repo, so no clone can approve its own commands. The record belongs to the repo’s git directory, so every worktree of it shares one approval. Change a command and mt asks again.

Runs on one project and refuses a set.

--status

List the commands without recording anything

It prints whether this repository allows them all, then one row per command.

--jsonPrint the list as JSON. Implies --status
$ mt ls blocked --columns title,why
TITLE WHY
Verify webhooks with the acme-pay SDK waits on: locked:acme-pay@2.4.0 (unknown: not allowed)
Throttle failed logins per IP waits on: add-redis-client (proposed)

2 of 14 tasks · your filter
warning: not running the commands your config declares until you allow them
hint: read them, then run mt allow
note: command: 'scripts/locked {id}'
note: command: 'scripts/test'
$ mt allow --status
not allowed in this repository and its worktrees:
waits scripts/locked {id}
on.flip scripts/test
$ mt allow
allowed in this repository and its worktrees:
waits scripts/locked {id}
on.flip scripts/test

Every command also takes the global flags.