fix/yrs-gc-undo-kept
core/Cargo.toml
+1 −1
core/Cargo.tomlLoading diff…
internal/core/testdata/docs_core.wasm
binary
internal/core/testdata/docs_core.wasmLoading diff…
internal/core/testdata/docs_core.wasm.stamp
+2 −2
internal/core/testdata/docs_core.wasm.stampLoading diff…
native/BUILDING.md
+2 −1
native/BUILDING.mdLoading diff…
native/apple/Sources/DocsKit/CRDTReplica.swift
+70 −2
native/apple/Sources/DocsKit/CRDTReplica.swiftLoading diff…
native/apple/Sources/DocsKit/DocsModel.swift
+53 −10
native/apple/Sources/DocsKit/DocsModel.swiftLoading diff…
native/apple/Sources/DocsKit/DocsOfflineAccount.swift
+7 −2
native/apple/Sources/DocsKit/DocsOfflineAccount.swiftLoading diff…
native/apple/Sources/DocsKit/DocsPersistence.swift
+18 −1
native/apple/Sources/DocsKit/DocsPersistence.swiftLoading diff…
native/apple/Sources/DocsKit/DocsReplicaCache.swift
+2 −1
native/apple/Sources/DocsKit/DocsReplicaCache.swiftLoading diff…
native/apple/Tests/DocsKitTests/OfflineDurabilityTests.swift
+220 −1
native/apple/Tests/DocsKitTests/OfflineDurabilityTests.swiftLoading diff…
native/crdt/src/bin/gc_undo_kept_probe.rs
+73 −0
native/crdt/src/bin/gc_undo_kept_probe.rsLoading diff…
native/crdt/src/lib.rs
+52 −2
native/crdt/src/lib.rsLoading diff…
native/crdt/tests/damaged_snapshots.rs
+88 −0
native/crdt/tests/damaged_snapshots.rsLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-105-56.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-105-56.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-107-179.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-107-179.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-110-125.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-110-125.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-116-24.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-116-24.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-119-81.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-119-81.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-123-65.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-123-65.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-141-36.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-141-36.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-2-62.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-2-62.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-21-65.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-21-65.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-22-59.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-22-59.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-24-105.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-24-105.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-27-72.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-27-72.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-31-66.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-31-66.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-33-110.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-33-110.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-38-74.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-38-74.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-40-85.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-40-85.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-43-86.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-43-86.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-59-43.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-59-43.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-61-76.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-61-76.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-69-191.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-69-191.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-71-193.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-71-193.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-72-42.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-72-42.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-78-28.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-78-28.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-81-33.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-81-33.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-86-51.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-86-51.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-88-64.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-88-64.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-9-27.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-9-27.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-96-175.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-96-175.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/damaged-99-15.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/damaged-99-15.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-105-56.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-105-56.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-107-179.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-107-179.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-110-125.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-110-125.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-116-24.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-116-24.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-119-81.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-119-81.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-123-65.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-123-65.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-141-36.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-141-36.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-2-62.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-2-62.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-21-65.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-21-65.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-22-59.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-22-59.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-24-105.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-24-105.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-27-72.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-27-72.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-31-66.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-31-66.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-33-110.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-33-110.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-38-74.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-38-74.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-40-85.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-40-85.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-43-86.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-43-86.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-59-43.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-59-43.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-61-76.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-61-76.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-69-191.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-69-191.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-71-193.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-71-193.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-72-42.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-72-42.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-78-28.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-78-28.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-81-33.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-81-33.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-86-51.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-86-51.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-88-64.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-88-64.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-9-27.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-9-27.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-96-175.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-96-175.binLoading diff…
native/crdt/tests/fixtures/damaged-snapshots/good-99-15.bin
binary
native/crdt/tests/fixtures/damaged-snapshots/good-99-15.binLoading diff…
native/crdt/tests/gc_undo_kept.rs
+152 −0
native/crdt/tests/gc_undo_kept.rsLoading diff…
native/crdt/tests/gc_undo_kept_fuzz.rs
+233 −0
native/crdt/tests/gc_undo_kept_fuzz.rsLoading diff…
native/crdt/tests/insert_into_deleted_parent.rs
+154 −0
native/crdt/tests/insert_into_deleted_parent.rsLoading diff…
native/host/tests/gc_undo_kept.rs
+42 −0
native/host/tests/gc_undo_kept.rsLoading diff…
native/scripts/check-gc-undo-kept-wire.mjs
+106 −0
native/scripts/check-gc-undo-kept-wire.mjsLoading diff…
native/scripts/check-mutations.py
+11 −3
native/scripts/check-mutations.pyLoading diff…
native/scripts/check-native.sh
+6 −0
native/scripts/check-native.shLoading diff…
native/vendor/yrs-0.23.5/PATCHES.md
+47 −3
native/vendor/yrs-0.23.5/PATCHES.mdLoading diff…
native/vendor/yrs-0.23.5/src/block.rs
+34 −2
native/vendor/yrs-0.23.5/src/block.rsLoading diff…
native/vendor/yrs-0.23.5/src/block_iter.rs
+7 −1
native/vendor/yrs-0.23.5/src/block_iter.rsLoading diff…
native/vendor/yrs-0.23.5/src/gc.rs
+7 −3
native/vendor/yrs-0.23.5/src/gc.rsLoading diff…
native/vendor/yrs-0.23.5/src/transaction.rs
+7 −1
native/vendor/yrs-0.23.5/src/transaction.rsLoading diff…
native/vendor/yrs-0.23.5/src/undo.rs
+8 −2
native/vendor/yrs-0.23.5/src/undo.rsLoading diff…