---
title: "news.cluster-audit@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/news.cluster-audit"
updated: null
---

# news.cluster-audit@1 · OpenVibe.Services

HTML: [news.cluster-audit@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/news.cluster-audit)

# NewsClusterAudit `news.cluster-audit@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: news
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/news/cluster-audit.v1.json`](/docs/contracts/news.cluster-audit.json)

news.cluster-audit@1: one audited cluster change on OpenVibe.News (server/domain/clusters.js shapeAudit): a merge, a split or the reversal of one, with exactly which source items moved, who did it and why. Merge: cluster\_id survived and other\_id was absorbed; split: other\_id is the new cluster.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  | - `pattern ^cla_[0-9A-HJKMNP-TV-Z]{26}$` |
| `action` | enum | yes |  | - `one of "merge", "split", "reverse_merge", "reverse_split"` |
| `cluster_id` | string | yes |  |  |
| `other_id` | string | yes |  |  |
| `item_ids` | array of string | yes |  |  |
| `reason` | string \| null | yes |  |  |
| `actor` | string | yes | The editor (usr\_…) or the service that acted. |  |
| `reverses` | string \| null | yes | The audit entry this one reverses. |  |
| `reversed_by` | string \| null | yes | The audit entry that reversed this one. |  |
| `at` | string | yes |  | - `format date-time` |

## Examples

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

 Valid: merge

~~~~
{
  "id": "cla_01JAB4A5B6C7D8E9F0G1H2J3KM",
  "action": "merge",
  "cluster_id": "clu_01JAB2X3C4D5E6F7G8H9J0KMNP",
  "other_id": "clu_01JAB2X4C4D5E6F7G8H9J0KMNP",
  "item_ids": [
    "nsi_01JAB2Z8Y6X5W4V3T2S1R0QPNM"
  ],
  "reason": "Same bridge closure",
  "actor": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "reverses": null,
  "reversed_by": null,
  "at": "2026-09-24T09:40:12.000Z"
}
~~~~

Rejected: bad-action

~~~~
{
  "id": "cla_01JAB4A5B6C7D8E9F0G1H2J3KM",
  "action": "rename",
  "cluster_id": "clu_01JAB2X3C4D5E6F7G8H9J0KMNP",
  "other_id": "clu_01JAB2X4C4D5E6F7G8H9J0KMNP",
  "item_ids": [
    "nsi_01JAB2Z8Y6X5W4V3T2S1R0QPNM"
  ],
  "reason": "Same bridge closure",
  "actor": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "reverses": null,
  "reversed_by": null,
  "at": "2026-09-24T09:40:12.000Z"
}
~~~~

## Validate

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