Skip to content

Atomic programs: transactional rules/schema and explicit command boundaries #170

Closed

Description

@jsam

Problem

Fact-only transactions are insufficient for migrations and pack installation. Rule/schema changes and unsupported administrative boundaries must not leave partial effects.

Evidence

Source: 5c1f313379a5cb2995a43a66ddba0b5cc9798b7f (inspected 2026-10-03). These are source findings; the acceptance scenarios below still need implementation and execution.

Acceptance criteria

  • Extend staging and WAL replay to rule/schema changes using canonical typed operations.
  • Parse and authorize the complete program first; reject unsupported cross-KG/admin/network mixtures before any write.
  • Test failed migration/pack install, arity changes, mixed DDL/DML and unsupported commands; clients observe one rule generation or the complete old state.
  • Correct SDK atomic-load documentation to match supported boundaries; pass Performance: baseline and mandatory pre-PR regression pipeline #163 and affected behavior fixtures.

Delivery

Plan item: T03. R2 - Atomic programs + wire protocol.

Dependencies / related work: #169.

Contributes to #131; completing this slice alone does not close the broader issue.

Activity

  1. added
    backendBackend/server related
    P0Immediate correctness, data-safety or live-credential blocker
    on Oct 3, 2026
  2. jsam commented on Oct 4, 2026

    @jsam
    ContributorAuthor

    Delivered by #208 (transactional rules/schema via TxnOp::Catalog); verified on main 4adce1e.

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

    P0Immediate correctness, data-safety or live-credential blockerbackendBackend/server related

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions