UseJunior Book a Demo

Evals & Deep Dives

Safe-DOCX: MCP for Microsoft Word (DOCX)

Evaluation scenarios from implementing TypeScript-native DOCX editing primitives — illustrated with fixtures, expected results, and tests drawn from the package's own traceability suite.

990+
Automated tests
100%
OpenSpec traceability
Full public test report

The 34 pages below are curated exemplars, not the full suite — hand-picked to show how each primitive behaves. The complete run lives in the Allure report.

How to read this evidence

From a claim to a line of code

  1. 990+ automated tests run on every change to the safe-docx engine.
  2. 100% OpenSpec traceability means each behavior maps to a named spec scenario.
  3. The Allure report is the full, machine-generated run of all of them.
  4. The curated scenario pages below walk representative cases with real fixtures and expected output, each footnoted to its test, implementation, and ECMA-376 reference.
  5. The cross-implementation matrix runs the spec-anchored subset of these scenarios against other OOXML libraries, wpt.fyi-style.
  6. Known limitations states plainly where the edges still are.

Accept Tracked Changes

Comments

  • Threaded replies from addCommentReply

    When reading threaded comments from a Word document, root comments need to stay separate from replies so the thread tree stays nested.

  • Comment readback after addComment

    When reviewing comments that were just added to a Word document, the comment reader must return the saved metadata and comment text from the document package.

  • Single-paragraph comment range metadata

    When reviewing comments anchored to a paragraph range, editors need the comment body and the range metadata to describe the same marked span.

Compare Documents

Detect Tracked Changes

Extract Revisions

Layout

Move Detection

  • Exact move detection

    When reviewing tracked edits in a Word document, moved content needs linked source and destination markings so the relocation is not treated as unrelated deletion and insertion.

  • Similarity threshold for move detection

    When detecting moved document content, similarity thresholds prevent unrelated deleted and inserted atoms from being marked as the same move.

Parsing Heuristics

Reject Tracked Changes

Text Matching

XML Parsing