quality_policy_publish
Publish a new immutable policy version. Pin expectedCurrentVersion to prevent overwriting a concurrent update. Publishing invalidates unclaimed handoffs pinned to the old version. Reuse operationId only for exact retries. Example: invoke quality_policy_publish with the required arguments shown in its input schema; use the workspace or resource credentials issued by Zorqelio, never placeholder credentials in production.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceToken": "<workspaceToken>",
"policyId": "<policyId>",
"expectedCurrentVersion": "<expectedCurrentVersion>",
"rules": "<rules>",
"operationId": "<operationId>"
},
"name": "quality_policy_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Quality policy rules encoded as JSON text. | |
| policyId | Yes | Unique identifier of the quality policy. | |
| operationId | Yes | Stable unique request identifier. Reuse it only for an exact retry. | |
| workspaceToken | Yes | Secret API token for the workspace; keep it private. | |
| expectedCurrentVersion | Yes | Current version number expected before updating; prevents conflicting writes. |