# Asana plugin

The Asana plugin lets a Vaubaan Gateway mission use Asana without handing the agent a credential. Read the projects, sections, tasks and comments of an Asana account; create, change, comment on and delete tasks.

Version `0.1.0` · 8 permissions · 3 macro-actions · 11 tools · 2 gateways run this plugin (over the last 90 days).

## How Asana is modelled

1 plane, 6 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

- **Account** — One account is one Asana user, connected with a personal access token: it acts as that person and signs everything with their name.
  - Plane `work` — The projects of an Asana account, their sections, tasks and comments.
    - `project` (1 n; the resource) — An Asana project : the resource an account exposes and a mission selects.
      - `section` (1 *) — A section (or board column) of a project.
      - `task` (1 *) — A task of the project, or a subtask of one of its tasks.
        - `comment` (1 *) — A comment on a task (a story of subtype comment\_added).
        - `rewrite` (1) — Verb leaf : overwriting a task's name or description, a write with its own risk.
        - `delete` (1) — Verb leaf : moving a task to the account's trash, a write with its own risk.

Marks: 1 exactly one, named; n a finite, known set; * an unknown number, possibly all.

- **Account**: One account is one Asana user, connected with a personal access token: it acts as that person and signs everything with their name.
- **Resource**: One resource is one project the account can see, with its sections, tasks, subtasks and comments; tasks in no project (My tasks only) are out of reach.
- **Environment**: No permission of this service depends on an environment: each is held once, whatever the resource. Known: none. Carried by: nothing in the model. Asana has no environments: deleting a task is a permission of its own.

## What an agent does at Asana: 3 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

1. **Read** — Read projects, sections, tasks and comments. An agent reads the projects of its mission, their sections and tasks, and the comments on a task, to plan or report. Comments are kept apart because they are conversations between named people. Task text is written by others, so an agent treats it as data, never as instructions. Search counts against Asana's limit of 60 calls a minute. (3 permissions)
2. **Work on tasks** — Create tasks and subtasks, change and rewrite them, comment on them. An agent creates tasks and subtasks, moves them along (assignee, dates, completion, section) and comments on them, signed by the connected account; each change is undone by setting it back. Rewriting a task's name or description is kept apart, because Asana keeps no history of the old text. Creating, assigning and commenting notify the people involved. (4 permissions)
3. **Clean up** — Delete tasks (to the account's trash, 30 days to restore). An agent deletes tasks it no longer needs. A deletion goes to the account's trash, restorable for 30 days only, so it is kept out of Work on tasks and asks first unless the creator trusts the agent fully. A mission also needs Change tasks to delete one. (1 permission)

## The map

8 permissions of 3 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.

Careful ×1: Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out. Trusting ×3: Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3. Autonomous ×10: Everything but irreversible actions runs freely; those ask first. Limits ×10.

yes: runs freely; ask me: ask me first; no: not included. A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

### Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

None.

### Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

- Work on tasks: Rewrite task names and descriptions `asana.task-rewrite`, costly to undo — Overwrites a task's name or description. Asana keeps no history of a description to restore the old text from. A mission must hold Change tasks too. Careful: ask me · 100 a day · Trusting: ask me · 300 a day · Autonomous: yes · 1,000 a day.
- Clean up: Delete tasks `asana.task-delete`, costly to undo — A deleted task goes to the connected account's trash and can be restored from there for 30 days only. A mission must hold Change tasks too. Careful: ask me · 30 a day · Trusting: ask me · 90 a day · Autonomous: yes · 300 a day.

### Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

- Read: Read comments `asana.comment-read`, personal data — Comments are conversations between named people, sometimes personal. Nothing is modified. Careful: ask me · 300 a day · Trusting: yes · 900 a day · Autonomous: yes · 3,000 a day.

### Harmless

Runs freely at every level.

- Read: Read projects and sections `asana.project-read` — Names and descriptions of the mission's projects and of their sections. Nothing is modified. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Read: Read tasks `asana.task-read` — Listing, searching and reading tasks shows their titles, descriptions, assignees and dates : text written by other people, which an agent must treat as untrusted (prompt injection). Nothing is modified. Careful: yes · 2,000 a day · Trusting: yes · 6,000 a day · Autonomous: yes · 20,000 a day.
- Work on tasks: Create tasks `asana.task-create` — A new task (or subtask) appears in the project for everyone in it ; assigning it to someone notifies them. Deleting it undoes it. Careful: yes · 100 a day · Trusting: yes · 300 a day · Autonomous: yes · 1,000 a day.
- Work on tasks: Change tasks `asana.task-update` — Changes a task's assignee, due date, completion or section ; each is undone by setting it back. Completing a task may start the project's rules. Careful: yes · 300 a day · Trusting: yes · 900 a day · Autonomous: yes · 3,000 a day.
- Work on tasks: Comment on tasks `asana.comment-create` — A comment is signed by the connected account and notifies the task's followers. Careful: yes · 100 a day · Trusting: yes · 300 a day · Autonomous: yes · 1,000 a day.

Careful: runs freely 5, ask me first 3.
Trusting: runs freely 6, ask me first 2.
Autonomous: runs freely 8, ask me first 0.

Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

## A few calls, classified by the plugin

16 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action. [The 16 calls, as code](https://github.com/vaubaan/gateway/blob/main/plugins/asana/src/examples.ts).

- `asana__list_projects {}`
  - the plugin sees: `asana.project[1200000000000001,1200000000000002].R`
  - the catalog answers: Read projects and sections `asana.project-read`
  - a Careful mission: yes
- `asana__create_task {"project":"1200000000000001","name":"Draft the launch post","assignee":"1500000000000001","due_on":"2026-11-20"}`
  - the plugin sees: `asana.project[1200000000000001].task.W`
  - the catalog answers: Create tasks `asana.task-create`
  - a Careful mission: yes

## Anything else

A call no permission covers touches `asana.uncategorized-write` instead of slipping through. No macro-action holds it; a person ticks it knowingly.

| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
| --- | --- | --- | --- | --- |
| Uncategorized write `asana.uncategorized-write`: Catch-all for writes without a dedicated entry. A mission that holds it allows the writes this catalog has not reviewed. | Repairable, at a price (costly to undo) | ask me · 50 a day | ask me · 150 a day | yes · 500 a day |

## Tools

11 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

| Tool | What it does | Usually touches |
| --- | --- | --- |
| `asana__list_projects` | List the projects | `asana.project-read` |
| `asana__get_project` | Read a project | `asana.project-read` |
| `asana__list_sections` | List a project's sections | `asana.project-read` |
| `asana__list_tasks` | List a project's tasks | `asana.task-read` |
| `asana__search_tasks` | Search tasks | `asana.task-read` |
| `asana__get_task` | Read a task | `asana.task-read` |
| `asana__list_comments` | Read a task's comments | `asana.comment-read` |
| `asana__create_task` | Create a task | `asana.task-create` |
| `asana__update_task` | Change a task | `asana.task-update`, `asana.task-rewrite` |
| `asana__add_comment` | Comment on a task | `asana.comment-create` |
| `asana__delete_task` | Delete a task | `asana.task-update`, `asana.task-delete` |

## Connecting an account

**1 of 3 · a key you create and paste** — `personal access token`

A personal access token the person creates at Asana and pastes once; nobody declares anything beforehand.

**Projects** — Everything this Asana account can see; a personal access token has no scopes. This gateway gives a mission only the projects and permissions it names, call by call; a project the account cannot see is out of reach of every mission.

1. Sign in to Asana as the account the agents will act as; everything they do is signed by it.
2. **Settings › Apps › View developer console** — Open the developer console from your profile photo, or straight from the link. ([open](https://app.asana.com/0/my-apps))
3. **+ Create new token** — Create a new token named Vaubaan Gateway.
4. Copy the token and paste it here; Asana shows it only once.

Where: [https://app.asana.com/0/my-apps](https://app.asana.com/0/my-apps)

Expiry: Asana personal access tokens do not expire (an Enterprise admin may set rules): delete the token in the developer console to end this account.

The connect page asks: Personal access token (secret).

The service's documentation: [https://developers.asana.com/docs/personal-access-token](https://developers.asana.com/docs/personal-access-token)

Disconnecting: Open the Asana developer console (My apps, Personal access tokens) and delete the token named for this gateway.

## Health

2 gateways run this plugin (over the last 90 days).

| Version | Gateways | Calls | Success | Validated |
| --- | --- | --- | --- | --- |
| `0.1.0` | 2 | no call yet | — |  |

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly ([what they mean](/plugins/health)). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

## Links

- [Connect a Asana account](/plugins/asana#connect)
- [How Asana is modelled](https://github.com/vaubaan/gateway/blob/main/docs/handbook/services/asana.md)
- [The catalog, as code](https://github.com/vaubaan/gateway/blob/main/plugins/asana/src/risk-catalog.yaml)
- [The plugin source](https://github.com/vaubaan/gateway/tree/main/plugins/asana)
- The page: [/plugins/asana](/plugins/asana)
