Request/response protocol for transactional document editing — engines return certificates proving minimal mutation, plus hash-chained journal entries for audit and undo.
{
"dcp": "1.0",
"doc": "/abs/path/invoice.pdf",
"ops": [
{
"op": "replace_text",
"target": "text:'invoice #42'",
"text": "invoice #43"
}
],
"contract": {
"only_touch": ["e12"],
"max_mutations": 1
},
"journal": true,
"strict": true
}
…PDFDTP defines a request/response protocol for transactional document editing, designed for AI agents. Where current tooling answers "ok", a conforming engine answers with a certificate: machine-checkable proof of what the edit did — and the data to undo it. Transport-agnostic: MCP tools/call, stdio, HTTP, or in-process.
The agent declares what may be touched before the edit: only_touch, max_mutations.
Proof that only authorized nodes changed — touched, untouched_changed, render_diff_zones.
Hash-chained provenance carrying inverse_ops — audit and rollback to any seq.
Failed verification under strict: true rolls the document back — atomicity by default.
Rides on MCP tools/call, stdio, HTTP or in-process calls.
Same typed issues as PDFSP — one error model across the suite.