← Market

Three Way Text Merge

Merge two edited versions of a text against their common base (diff3): non-overlapping changes are combined automatically, overlapping ones become conflicts with git-style markers, by line or by sentence. Implements the diff3 merge (Khanna, Kuber and Pierce 2007, "A Formal Investigation of Diff3"): base-ours and base-theirs are compared with Myers diffs; changed base ranges of both sides that overlap or touch form a region.

POST https://text.halowerk.com/v1/three-way-text-merge

0.003 USDC on Base · payTo 0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.003 USDC · payTo 0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E · via cdp · settles direct
{
  "base": "a\nb\nc\n",
  "ours": "a\nB\nc\n",
  "theirs": "a\nb\nC\n"
}
{
  "limitations": [
    "Textual merge only: two changes that do not overlap textually but contradict each other in meaning are merged silently.",
    "Ambiguous alignments can be resolved differently from other diff tools."
  ],
  "result": {
    "clean": false,
    "conflicts": [
      {
        "base": "b\nc\n",
        "base_range": [
          1,
          3
        ],
        "index": 0,
        "ours": "B\nc\n",
        "ours_range": [
          1,
          3
        ],
        "output_unit": 2,
        "theirs": "b\nC\n",
        "theirs_range": [
          1,
          3
        ]
      }
    ],
    "merged": "a\n<<<<<<< ours\nB\nc\n||||||| base\nb\nc\n=======\nb\nC\n>>>>>>> theirs\n",
    "method": "diff3 over Myers diffs (Khanna, Kuber, Pierce 2007)",
    "stats": {
      "auto_merged_regions": 0,
      "conflicts": 1,
      "identical_changes": 0,
      "units": {
        "base": 3,
        "ours": 3,
        "theirs": 3
      }
    },
    "unit": "line"
  },
  "service": "three-way-text-merge",
  "status": "success"
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust scorepending / 100 · breakdown
Probe uptime (30d)— over 0 probes · daily
Avg 402 latency— ms
Paid calls (30d, on-chain)0 calls · 0 buyers

How to call

POST https://text.halowerk.com/v1/three-way-text-merge · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "base",
    "ours",
    "theirs"
  ],
  "properties": {
    "base": {
      "type": "string",
      "maxLength": 1000000
    },
    "ours": {
      "type": "string",
      "maxLength": 1000000
    },
    "theirs": {
      "type": "string",
      "maxLength": 1000000
    },
    "unit": {
      "type": "string",
      "enum": [
        "line",
        "sentence"
      ],
      "default": "line"
    },
    "conflict_style": {
      "type": "string",
      "enum": [
        "diff3",
        "merge"
      ],
      "default": "diff3"
    },
    "labels": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ours": {
          "type": "string",
          "maxLength": 60
        },
        "base": {
          "type": "string",
          "maxLength": 60
        },
        "theirs": {
          "type": "string",
          "maxLength": 60
        }
      }
    }
  }
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://text.halowerk.com/v1/three-way-text-merge' \
  -H 'content-type: application/json' -d '{"base":"a\nb\nc\n","ours":"a\nB\nc\n","theirs":"a\nb\nC\n"}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)