Skip to content

COOL IDEA: deterministic multi-writer scenario corpus #684

Description

@flyingrobots

Idea

Build a source-controlled corpus of deterministic multi-writer graph scenarios that can be reused across reducer, materialization, optic, sync, and documentation-example tests.

This is the constructive version of #681: instead of ad hoc random fixture generation inside integration tests, name the causal scenarios we care about and make them replayable.

Shape

Each scenario should describe:

  • writers and Lamport timelines
  • patch operations and expected dots
  • intended causal relationships
  • expected materialized state
  • expected index/read-basis observations where relevant
  • regression names explaining what invariant the scenario protects

Why it is cool

A corpus like this gives us reusable behavioral truth:

Suggested first slice

Start with 5 to 8 compact scenarios:

  • independent writer convergence
  • concurrent property overwrite
  • node remove with observed dots
  • edge add/remove race
  • checkpoint then post-checkpoint continuation
  • divergent writer branch with common basis

Then wire one consumer, likely JoinReducer, before expanding to materialization or optic readers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:testingPrimary work area: testing.priority:laterDeferred or speculative work.status:availableOpen and available for prioritization; not blocked or actively in progress.type:featureNew capability or product behavior.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions