Skip to main content
Glama

sim_conformance_stream

Destructive

Online conformance: replay an ORDERED event stream against a stored model and get a running verdict — does the model still match, or which event was the first that did not, and why. Unlike sim_conformance (whole finished cases, aggregate fitness) the order of events IS the stream's order, cases may interleave, and the answer names the first non-conforming event: its position, case, activity, whether the activity is unknown to the model or the transition was not enabled, the places that blocked it (need vs have), the case's marking just before it, and repair — the shortest unobserved transitions that would have enabled it (a local alignment of that one step, bounded; absent when none is found within repairDepth). This is token replay, not trace alignment. A divergent event is force-fired so the case resynchronises and later events are judged on their own. fitness is conforming events / events; tokenFitness is 1 - missing/consumed tokens. Give the stream as events (JSON array of {case, activity, timestamp?}) or log (CSV with a case_id, activity header, timestamp optional; rows are taken in the order given, not sorted). Activities are transition ids. Each case replays from the model's initial marking, so the model should be the per-case workflow; guard expressions are not evaluated and timestamps are not checked against delays (caveats says so). keepSteps adds the per-event running signal. Costs 2 tokens from your account's compute bucket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesmodel id
logNothe stream as CSV text (case_id, activity[, timestamp]) in stream order; used when events is not given
eventsNoJSON array of {"case": ..., "activity": ..., "timestamp": ...} in stream order
keepStepsNoinclude the per-event running fitness (one entry per event)
repairDepthNomost unobserved transitions a repair may use (default 4, at most 64; negative turns repair off)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / repairDepth / description
      Previous value: -"most unobserved transitions a repair may use (default 4; negative turns repair off)"New value: +"most unobserved transitions a repair may use (default 4, at most 64; negative turns repair off)"
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources