docs: editing design (op-log, stable ids) + implementation plan#598
Closed
andiwand wants to merge 1 commit into
Closed
docs: editing design (op-log, stable ids) + implementation plan#598andiwand wants to merge 1 commit into
andiwand wants to merge 1 commit into
Conversation
Records the accepted direction for in-browser editing of ODF/OOXML: - Architecture A (fat browser, replay-on-save) over a live C++ model - JSON over the WebView bridge, not HTTP - An operation log, not a computed diff - Address by session-stable ElementIdentifier, not DocumentPath (append-only registry + tombstone deletes) - One-way, non-invertible, coalesced payload; symmetry stays in the browser - C++ replay as authoritative validator; atomic save; conformance corpus - Hand-rolled, model-first browser editor (no contenteditable-diffing, no JS dep) Includes a phased implementation plan (id spike -> op replay -> write-side adapters -> browser editor) and open questions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Generated with Claude Code
Draft design doc capturing the decisions we made for in-browser editing of ODF/OOXML, why we took them, and a preliminary implementation plan. No code changes —
docs/design/editing.mdplus an index link.Decisions (with rationale in the doc)
translate/back_translatepipeline; write-side adapter work is identical either way, so B only buys drift-avoidance, which we handle with a conformance corpus.ElementIdentifier(data-odr-id), notDocumentPath. Session-stability reduces to append-only registry + tombstone deletes.id + anchor + offset), so inserts and inline formatting are expressible.Plan
Phased: Phase 0 stable-id spike (linchpin) → Phase 1 op-log replay reworking
html::edit→ Phase 2 write-side adapter API for ODF/OOXML (the real cost) → Phase 3 browser editor → Phase 4 formatting UI.Open questions listed at the end.