# `tartan bug`

_For tartan 0.9.36._

## `tartan bug collect`

write a redacted bug report folder from the person's draft (secrets removed, identifiers masked); sends nothing

```
tartan bug collect --draft <file> [--device] [--unmask <kinds>]
```

**Role:** anyone · **Writes:** no · **Steps up:** never · **Local:** this CLI runs it, outside control's verb table · **Offline:** sends nothing

**Person acts:** the person reads the preview and chooses what to unmask; tech diag on this computer asks for admin rights

| Flag | Type | Required | What |
|---|---|---|---|
| `--draft` | string | yes | the person's report, the `tartan bug guide` template filled in (required) |
| `--agent-exe` | string | no | the agent's exe, an absolute path, when it isn't installed in the usual place |
| `--device` | bool | no | also collect this computer's agent diagnostics (`tartan tech diag --json`, run by its installed path) |
| `--json` | bool | no | the summary as JSON in the {ok,result} envelope |
| `--out` | string | no | the folder to write (default ./tartan-bug-&lt;UTC time>/) |
| `--profile` | string | no | a network profile, read from its file only: its org handle and sign-in name are masked too |
| `--unmask` | string | no | kinds to leave as they are: host, ip, user, org, mac (secrets are always removed) |

## `tartan bug guide`

the bug report recipe for the person's AI (tartan.bugguide.v1); sends nothing

```
tartan bug guide [--json]
```

**Role:** anyone · **Writes:** no · **Steps up:** never · **Local:** this CLI runs it, outside control's verb table · **Offline:** sends nothing

| Flag | Type | Required | What |
|---|---|---|---|
| `--json` | bool | no | the guide as JSON (tartan.bugguide.v1) in the {ok,result} envelope |

## `tartan bug list`

your bug reports (an Admin or Owner: the org's), newest first: id, title, status, fixed_in, this org's duplicate count and dup_of (the earlier report it was folded onto)

```
tartan bug list --org <string>
```

**Role:** viewer · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |

## `tartan bug show`

one bug report as it was filed (redacted), with its status and fixed_in; the same scope as bug list

```
tartan bug show --org <string> --id <string>
```

**Role:** viewer · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--id` | string | yes | the report's id (bug_...) |

## `tartan bug submit`

send a bug report `tartan bug collect` made (report.json, as @file) to Tartan: scanned again on arrival, refused if it still holds a secret, queued for filing; --dry-run with no --report asks whether this instance takes reports

```
tartan bug submit --org <string>
```

**Role:** viewer · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--report` | json | no | the report: tartan.bugreport.v1 (@report.json); required but for the --dry-run probe |

## `tartan bug withdraw`

withdraw a bug report (yours; an Admin or Owner: any of the org's): its text leaves Tartan at once, and its issue soon after

```
tartan bug withdraw --org <string> --id <string>
```

**Role:** viewer · **Writes:** yes · **Steps up:** always

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--id` | string | yes | the report's id (bug_...) |
