Skip to content

Tear out the vendored docx editor packages#170

Merged
mhurhangee merged 3 commits into
mainfrom
teardown/editor-packages
Jul 4, 2026
Merged

Tear out the vendored docx editor packages#170
mhurhangee merged 3 commits into
mainfrom
teardown/editor-packages

Conversation

@mhurhangee

Copy link
Copy Markdown
Owner

What

The mechanical follow-up to #169: deletes the three vendored editor packages (docx-editor-core, docx-editor-agents, docx-editor-react, ~134k LOC) and the editor's 53 binary test fixtures. Nothing has imported them since #169 merged — Patrick edits .docx headlessly and Word is the review surface.

Also in here

  • living-docs/draft-review-panel.md — the researched fast-follow from the first real drafting sessions: condensed review view with in-app per-change accept/reject (feasible as our own revision surgery), read_draft exposing the full review state (pending redlines + comments inline), overlap-aware editing of paragraphs carrying attorney revisions, re-lock.
  • CLAUDE.md: the editor section is replaced by the headless-redlining model (adapter guards, the dance, draft tools, unlock-in-place).
  • SCRATCHPAD: editor-era backlog pruned to what survives translation (real-docx corpus, flatten-tracked-changes, insert mode).
  • Config exemptions (biome/knip), CI step names, fixture README, CONTRIBUTING dep guidance.
  • e2e/fixtures/uspto-office-action.docx stays — it's the redlining suites' real-world corpus.

Testing

pnpm check clean; bun test 59 pass (the ~1,700 deleted tests tested deleted code — the surviving suites are Patrick's own: the redline adapter + dance against the real USPTO fixture, chart merge, citation matchers, context assembly, unlock semantics).

Merge gate

Hold for the Windows Word checkpoint — open a Patrick-redlined document in real desktop Word (redlines accept/reject cleanly, comments render, no repair prompt). LibreOffice + Google Docs have passed; Word is the remaining validation.

The fast-follow plan from the first real drafting sessions on the
headless-redline foundation: a condensed review surface with per-change
accept/reject in-app (feasible as ~50 lines of our own revision surgery),
read_draft exposing the full review state (pending redlines + comments
inline), overlap-aware editing of paragraphs carrying attorney revisions
(shrinking today's blunt refusal to true conflicts), and re-lock.
The app has been fully off the editor since PR #169 (headless redlining;
Word is the review surface) — this removes the now-unimported packages
wholesale: docx-editor-core, docx-editor-agents, docx-editor-react, the
editor's 53 binary test fixtures (the USPTO office action stays — it's
the redlining suites' corpus), and the lint/knip exemptions that existed
only for them.

CLAUDE.md's editor section is replaced by the headless-redlining model
(the adapter's measured guards, the dance protocol, the draft tools, the
unlock-in-place rules); SCRATCHPAD's editor-era backlog is pruned to the
items that survive translation to the new world. Test count drops from
~1,770 to 59 — everything deleted tested deleted code.
@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
patrick-web Ready Ready Preview, Comment Jul 4, 2026 2:58pm

@mhurhangee mhurhangee merged commit 5075ea9 into main Jul 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant