Skip to content

ReaffirmOperation

Reaffirm operation accepted by client.commit.apply. Edits an assertion’s affirmation snapshot — the set of pinned target versions the claim is affirmed for — without changing claim data. Mints a new assertion version with body and dataHash copied from the current one.

https://docs.warmhub.ai/writes/operations/#reaffirm-operations

operation: "reaffirm"

Operation discriminator. Required.


name: string

Assertion to reaffirm: Shape/name.


optional kind?: "assertion"

Optional kind safety hint; reaffirm applies only to assertions.


optional add?: string[]

Pinned target wrefs (Shape/name@vN) to affirm. A target already in the set is reported as ignored, not an error.


optional remove?: string[]

Pinned target wrefs to stop affirming. A target not in the set is reported as ignored, not an error. Prior versions keep their snapshots.


optional expectedVersion?: number

Optional optimistic-concurrency precondition, as on revise/retract. The new set is computed from the live current snapshot, so concurrent deltas merge without it; supply it when the edit must apply to the exact version you read.


optional leaseId?: string

Optional read-lease token (#3625), as on revise/retract.