---
title: "bot.command.refused@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/bot.command.refused"
updated: null
---

# bot.command.refused@1 · OpenVibe.Services

HTML: [bot.command.refused@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/bot.command.refused)

# BotCommandRefusedPayload `bot.command.refused@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: bot
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-043](/docs/adr/ADR-043)
- Schema: [`https://openvibe.network/contracts/events/payloads/bot.command.refused.v1.json`](/docs/contracts/bot.command.refused.json)

bot.command.refused v1 (OpenVibe.Bot server/domain/index.js auditCommand). The gate refused a command (role, allowlist, limits, policy, cooldown, turn, device offline). reason is Bot's refusal code; ids, kinds and codes only, never the value. Envelope: subject { type: robot, id: <robot id> }, visibility internal, priority important, actor service:bot.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `robot_id` | string | yes |  | - `pattern ^rob_[0-9A-HJKMNP-TV-Z]{26}$` |
| `kind` | string \| null | yes |  |  |
| `reason` | string \| null | yes |  | - `pattern ^bot\.[a-z_]+$` |
| `role` | string \| null | yes |  |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: cooldown

~~~~
{
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "kind": "drive",
  "reason": "bot.cooldown",
  "role": "operator"
}
~~~~

Valid: device-estop-elsewhere

~~~~
{
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "kind": "estop_state",
  "reason": "bot.forbidden",
  "role": null
}
~~~~

Rejected: carries-value

~~~~
{
  "robot_id": "rob_01J8Z4M2Q0R7T9YV3K6N8P1W2X",
  "kind": "drive",
  "reason": "bot.cooldown",
  "role": "operator",
  "value": {
    "throttle": 1
  }
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('bot.command.refused@1', value);   // { valid, errors: [{ path, message }] }
~~~~
