Pilot program

Stemma for negotiated documents: API and private deployment (pilot)

Compare two versions of a document into one Word redline with word-level marks, and find what a counterparty changed without marking it. Both run on a comparer that is separate from the open-source one, as an API we host or a private container you run.

Apply for the pilot Use the open-source engine

Status: pilot. Access is arranged case by case; no generally available service or stable API contract is offered yet.


1 · Compare

A separate comparer, built for word-level marks

Stemma has two comparers. They are different engines, and the pilot is about the second.

Open source

stemma compare

  • Part of the public release. Runs locally.
  • Basic: one presentation, which does not try to reproduce the marks Word's own Compare would draw.
  • Guarantees both readings: reject all gives the original, accept all the revision.
  • Refuses a pair whose differences it cannot represent.

Pilot only

The word-level comparer

  • A separate engine. It is not in the open-source release.
  • Built for word-level marks: a change is marked as whole words, closer to how Word's own Compare reads.
  • Guarantees the text of both readings, and names anything it could not restore.
  • Refuses with a named reason when it cannot represent a pair.

Both write their output through the same open-source document engine, so either way the result is a .docx with native Word revisions.

What the word-level comparer guarantees

  • The text of both readings. Rejecting every change gives back the original's text, and accepting every change gives the revised text.
  • Named departures. Some differences have no tracked-change form in Word's file format, such as a content control added around existing text. Word's own Compare then follows the revised document without marking it. The comparer does the same and says so: the receipt names each such departure and counts it.
  • Checked before it is returned. Each redline must validate as a DOCX, and resolving it both ways must give back the wording of the two inputs. A redline that fails either check is withheld.
  • A refusal with a named reason. When the comparer cannot represent the difference between two documents, the response is a refusal that says why, not a partial or approximate redline. A refusal is reported separately from a fault on our side.
  • A native Word file. Reviewers open the result in Word and accept or reject changes as usual. Microsoft Word does not run on the server.
  • A receipt. Each response names the comparer and the versions that produced it, how each input was read, and the number of revisions it wrote.

We have published no speed or accuracy figures for this comparer yet. The most direct test is a pair of your own documents.


2 · Counterparty audit

Find what changed without being marked

A counterparty returns your draft with tracked changes. Send the version you sent out and the draft that came back, and ask one of two questions:

What did they change in total?
The returned draft is read with its tracked changes accepted. The redline shows every change against what you sent, whether they marked it or not.
What did they change without marking it?
The returned draft is read with its tracked changes rejected, which should give back what you sent. Whatever the redline still shows was changed without being tracked. An empty redline means every change they made is one they marked.

The open-source stemma verify answers the second question as a pass or fail, with the affected paragraphs listed as JSON. The audit returns it as a word-level redline to read in Word.


3 · Also in the API

The operations around a comparison

A negotiation needs more than a comparison, and the API is meant to carry the rest of the round trip:

  • apply explicit edits as tracked changes;
  • list the revisions in a document;
  • accept or reject them by identity, author, or all at once;
  • verify that a result contains no untracked change.

These are the open-source operations behind one interface. Nothing in this list is exclusive to us: each one runs locally today from the open-source release. The pilot endpoint serves comparison and the audit today; tell us which of these you need beside them.

Exploring, not offered

A type and significance label for each revision, so a reviewer can tell a renumbered clause from a changed liability cap. We are exploring it. It is not part of the pilot.


Deployment

Hosted endpoint

We operate it. Your application sends the documents in one request and receives the redline, or a refusal and its reason.

Private container

You run it inside your own infrastructure, with no outbound network access. Documents do not leave your environment.

Tell us which one you need. For the hosted endpoint, retention, region, and authentication are still being settled with pilot users.

Either way the call can sit as one step in a document workflow: a Copilot Studio agent, a SharePoint or Azure storage flow, or a CLM system sends two versions and stores the returned redline. None of these integrations is documented as a supported surface yet.

The repository includes a local demonstration HTTP adapter. It has no authentication, authorization, or rate limiting and is not the service described here.


Tell us what you compare

Your pre-addressed pilot email asks for:

  • Roughly how many comparisons you run each month
  • Whether the documents already carry tracked changes when you compare them
  • Typical and largest document size
  • Deployment, hosted or private, and the region you need

Try it on your own pair

If you have an original and a revised document that you are free to share, say so in the email. We will run the pair through the word-level comparer and send back the result: the redline, or the refusal and its reason.

Open the pilot brief Sent to hello@stemma.sh.


Frequently asked questions

What does the pilot offer?

Two things that are not in the open-source release: a comparer built for word-level marks, and an audit of what a counterparty changed in a returned draft without tracking it. Both are available through an API we host or a private container you run. It is a pilot with a small number of users, not a generally available service.

Which parts are open source, and which come only from the pilot?

Applying explicit edits, listing revisions, accepting or rejecting them, stemma verify, and a basic comparer are in the open-source engine and run locally today. The word-level comparer and the counterparty audit built on it are available only through the pilot.

How is the word-level comparer different from stemma compare?

They are separate engines. The comparer in the open-source release is basic: it guarantees the accept-all and reject-all readings and refuses pairs it cannot represent. The pilot comparer is built for word-level marks and is not part of the open-source release. Both write their output through the same open-source document engine.

What is the counterparty audit?

You send the version you sent out and the draft that came back. The comparer reads the returned draft with its tracked changes rejected, which should give back what you sent, and compares. The redline shows only what changed without being marked. An empty redline means every change was tracked.

Does it produce real Microsoft Word tracked changes?

Yes. The result is a DOCX with native revisions, not annotations tied to a proprietary viewer. Reviewers open it in Word and accept or reject changes as usual.

Does Microsoft Word need to run on the server?

No. The comparer reads and writes DOCX files directly and does not automate Microsoft Word.

What happens when two documents cannot be compared?

The response is a refusal with a named reason, not a partial or approximate redline. A refusal is reported separately from a fault on our side.

Can it run in our own environment?

Yes. The pilot offers a private container that runs inside your infrastructure with no outbound network access, beside the endpoint we host. Tell us which you need.

Do you label revisions by type or significance?

Not today. We are exploring a type and significance label for each revision. It is not offered.

Are there benchmark numbers for the word-level comparer?

Not yet. We have published no speed or accuracy figures for it. The most direct test is a pair of your own documents, which we can run for you during the pilot.

Can I call it from Microsoft Copilot Studio or another workflow tool?

A compare call can sit as one step in a workflow that sends two versions and stores the returned redline. We would like to hear about Copilot Studio, SharePoint, and CLM integrations, but none is documented as a supported surface yet.

Is the API production-ready?

No. This is a pilot, not a generally available API. The API shape, authentication, retention, and deployment model are still being settled with pilot users.