Diff an original vs. proposed revision and mint a diff receipt
redline_diffAn agent proposes an edit: diffs original text/markdown against its own revised version and returns the line-level hunks plus a diff receipt (original/revised digests, diff-algorithm declaration, per-hunk digests). Byte-identical to what the tools/552 browser workbench computes for the same inputs -- a human can paste the SAME original/revised text into that workbench, disposition each hunk (accept/reject/comment), and their resulting hunk/disposition receipts will reference this diff_receipt's execution_hash. Pass the whole bundle (this diff_receipt + the human's hunk_receipts + disposition_receipt) to redline_verify to check the interleaved chain end-to-end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revised | Yes | Proposed revised text or markdown document. | |
| original | Yes | Original text or markdown document. | |
| generated_at | No | ISO 8601 timestamp (caller-supplied for determinism). Defaults to the call time. |