Skip to content

feat: add optimistic JSON Patch rebase lab#225

Merged
developer-1px merged 1 commit into
mainfrom
feat/patch-rebase-lab
Jul 10, 2026
Merged

feat: add optimistic JSON Patch rebase lab#225
developer-1px merged 1 commit into
mainfrom
feat/patch-rebase-lab

Conversation

@developer-1px

Copy link
Copy Markdown
Owner

Summary

  • add a private patch-rebase lab that plans conservative delayed local changes over ordered concurrent JSON Patch batches
  • shift local operation targets and one headless selection across concrete array insertions/removals while keeping numeric object keys distinct
  • reject overlapping, root, move/copy, and other unsupported cases as structured conflicts instead of silently overwriting data
  • prepend value guards so the plan remains atomic across the planning-to-commit gap, then revalidate the combined schema result
  • canonicalize ordinary and URI-fragment JSON Pointers before path arithmetic, including encoded delimiters and root aliases
  • keep the core public API unchanged and document CRDT, transport, causal ordering, stable identity, and ABA detection as non-goals

Validation

  • npm run verify in labs/extensions/patch-rebase (18 passed)
  • npm run labs:extensions:verify (39/39 verified)
  • npm run standard:check
  • npm run docs:check
  • npm run docs:evaluate
  • package build and self-import
  • independent blocker review of transform, guard, selection, and URI-fragment behavior
  • git diff --check

@developer-1px
developer-1px merged commit e1d4f1e into main Jul 10, 2026
3 checks passed
@developer-1px
developer-1px deleted the feat/patch-rebase-lab branch July 10, 2026 14:54
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