Skip to content

Defensive deletion with materialized state #32

@Antonov548

Description

@Antonov548

Inconsistent Deletion Behavior Across Packages

Problem

Deletion behavior differs across packages:

  • treecrdt-core: Defensive deletion with version vector awareness
  • treecrdt-wasm-js: Simple boolean tombstone
  • treecrdt-sqlite-ext: Simple boolean tombstone

This causes inconsistent visibility behavior and potential data loss.

Current Issues

  • No view abstraction - visibility logic embedded per implementation
  • Materialized state handles deletion differently
  • No consistent is_tombstoned() behavior

Proposal

Standardize on materialized state for deletion across all packages:

  • Use materialized state consistently for node deletion status
  • Provide consistent visibility API for all packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions