Skip to content

Share one bound activity schema between the source and store contracts #31

Closed

Description

@Mearman

graph-source-contract (#25) and graph-store-contract (#26) each define boundActivitySchema (the model's activity with source required and equal to its id) by unwrapping graph-schema's modelSchema, and the store's items.upsert input mirrors a source sync page's participants, activities, transitions and overlay. Both were written in parallel, so the two definitions are identical in intent but separate in code.

Once both PRs are on main, move the bound activity schema (and its type) into graph-schema beside modelSchema, have both contracts import it, and check that a sync page's items pass boundItemsSchema unchanged. Deferred only because neither PR can depend on the other while both are open.

Activity

  1. added theissue type on Oct 10, 2026
  2. added a commit that references this issue on Oct 12, 2026
    c6a3241
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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions