# supersede

URL: /business/nouns/decision/supersede · Id: `verb:Decision.supersede` · Call: `await $.Decision.supersede({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Supersede replaces a Decision with a newer one, keeping both on record with the reason for the change.

Supersede replaces a [Decision](/business/nouns/decision) with a newer one, keeping both on record with the reason for the change.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `decision` | [Decision](/business/nouns/decision) | Yes | The Decision to replace. |
| `by` | [Decision](/business/nouns/decision) | Yes | The newer Decision. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `decision` | [Decision](/business/nouns/decision) | Yes | The superseded Decision. |

## Effects
- Emits [`Decision.superseded`](/business/events/Decision.superseded).
- Performed by the [Strategist](/agents/founding/strategist).

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Decision.supersede](/business/nouns/decision/supersede) |
| The record is not in a state that allows this Verb, so the call is refused. | [`refused`](/code/api/errors/refused) | Read the record, run the Verb that moves it to an allowed state, then retry. | [Decision.supersede](/business/nouns/decision/supersede) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Supersede the latest decision.
```

**API**

```bash
curl -X POST https://api.sb/petpantry.shop/decisions/decision_1/supersede \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"by":"decision_1"}'
```

```json
{
  "api": "https://api.sb/petpantry.shop",
  "decision": {
    "$id": "https://api.sb/petpantry.shop/decisions/decision_1",
    "$type": "Decision",
    "choice": "Example choice",
    "reason": "Example reason"
  },
  "action": {
    "$id": "https://api.sb/petpantry.shop/actions/action_1",
    "operation": "Decision.supersede",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/petpantry.shop/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const decision = await $.Decision.supersede({ decision: 'decision_1', by: 'decision_1' })
```

**CLI**

```bash
npx startup-builder do Decision.supersede --json '{"decision":"decision_1","by":"decision_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Decision.supersede({ decision: 'decision_1', by: 'decision_1' })"
  }
}
```