What do omitted, null, [] and "" mean in this PATCH body under merge-patch, JSON Patch or a declared dialect?

$0.005 USDC per call · Agent infrastructure · POST /api/v1/update-dialect · Id update-dialect

For an agent about to send a PATCH or update body: states, per field, what omitted / null / [] / "" mean under the declared dialect (RFC 7396 merge patch, RFC 6902 JSON Patch, or caller-declared semantics) and checks the body against stated intents such as 'clear this field', 'leave this alone' or 'set to empty array'. With a target document it applies the patch and compares the result; without one it reasons about the patch alone and says when an intent cannot be verified. Does not know which dialect a given API uses: the caller declares it. Merge patch cannot store a null (null deletes); JSON Patch can.

What you get

Stops 'null means clear' being sent to an API where null deletes, or [] wiping a list the agent meant to leave alone.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/update-dialect. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/update-dialect \
  -H 'content-type: application/json' \
  -d '{"dialect":"merge-patch","payload":{"nickname":null,"tags":[]},"intents":[{"path":"/nickname","expect":"null"},{"path":"/email","expect":"unchanged"}]}'

Input

FieldTypeRequiredDescription
dialectstring; one of "merge-patch", "json-patch", "caller"yesmerge-patch = RFC 7396, json-patch = RFC 6902 (payload is an array of operations), caller = semantics in callerSemantics.
payloadanyyesThe PATCH body.
targetanynoCurrent document, if available. Enables applying the patch and exact checks.
intentsarray<object>; max 100 itemsno
callerSemanticsobjectnoRequired when dialect is 'caller': what each payload form means in that API.

Example request body

{
  "dialect": "merge-patch",
  "payload": {
    "nickname": null,
    "tags": []
  },
  "intents": [
    {
      "path": "/nickname",
      "expect": "null"
    },
    {
      "path": "/email",
      "expect": "unchanged"
    }
  ]
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
effectsarray<object>noAt most 500 listed, in payload order.
effectCountintegernoTotal effects found, which can exceed the number listed.
verdictsarray<object>no
appliedanynoThe document after applying the patch; present only when a target was given and the patch applied.
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the execution-safety-kit package.

Machine-readable