Skip to content

Add the FSM contract sample: one asset, 1000 instances #22

Open

Description

@brmassa

Current State

State machines are the adversarial case for a graph core: they require cycles, typed triggers instead of strings, and many concurrent instances of one asset. This sample proves the core has no DAG assumption and that the asset/instance split holds under load.

Tasks:

  • Headless FSM sample with cyclic states, self-transitions and typed triggers
  • One asset driving 1000 concurrent instances with independent state and timers
  • Allocation measurement over repeated ticks as a permanent regression test
  • Interpreter and compiled results compared by the differential harness

Acceptance Criteria:

  • 1 asset, 1000 concurrent instances, zero per-tick allocations
  • Renaming a trigger through the registry keeps saved assets loading
  • Interpreter and compiled results are equal

Related:

Activity

  1. added
    c:stateState semantics: transitions, typed triggers and instance state
    c:samplesContract samples: shader, FSM and video compositor
    p:mediumMedium priority — fix in next sprint
    size:M~3-5 days — moderate effort
    t:featureNew feature implementation
    on Oct 27, 2026
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

    c:samplesContract samples: shader, FSM and video compositorc:stateState semantics: transitions, typed triggers and instance statep:mediumMedium priority — fix in next sprintsize:M~3-5 days — moderate effortt:featureNew feature implementation

    Type

    No type

    Projects

    • Status
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions