Directories
¶
| Path | Synopsis |
|---|---|
|
Composable form of ActorSystem on the metamodel composition layer.
|
Composable form of ActorSystem on the metamodel composition layer. |
|
Package cache provides memoization for ODE simulations.
|
Package cache provides memoization for ODE simulations. |
|
cmd
|
|
|
bundle-goldens
command
Command bundle-goldens writes flatten goldens for metamodel.Bundle inputs — metamodel/testdata/bundle/<name>.flatten.json, one per source bundle: the single Model that Bundle.Flatten() produces, serialized as canonical JSON (keys sorted alphabetically at every level, via a generic re-encode) so a byte diff reflects a change in the flattened net and nothing else — no struct-field-order noise, no incidental @id churn from the source bundle's JSON-LD envelope, since Flatten's output is a plain metamodel.Model and carries none.
|
Command bundle-goldens writes flatten goldens for metamodel.Bundle inputs — metamodel/testdata/bundle/<name>.flatten.json, one per source bundle: the single Model that Bundle.Flatten() produces, serialized as canonical JSON (keys sorted alphabetically at every level, via a generic re-encode) so a byte diff reflects a change in the flattened net and nothing else — no struct-field-order noise, no incidental @id churn from the source bundle's JSON-LD envelope, since Flatten's output is a plain metamodel.Model and carries none. |
|
pflow
command
|
|
|
properties-goldens
command
Command properties-goldens writes the verify golden — verify/testdata/showcase/properties.json — that pflow-rs's pflow-verify crate replays field for field against the showcase's cafe-order.json (ROADMAP.md Phase 2 exit criterion: "petri_verify-equivalent output for cafe-order.json matches Go field for field").
|
Command properties-goldens writes the verify golden — verify/testdata/showcase/properties.json — that pflow-rs's pflow-verify crate replays field for field against the showcase's cafe-order.json (ROADMAP.md Phase 2 exit criterion: "petri_verify-equivalent output for cafe-order.json matches Go field for field"). |
|
scheduled-goldens
command
Command scheduled-goldens writes a deterministic golden for the scheduled+staged SSA engine — stochastic/testdata/scheduled/<name>.json — against the pflow showcase's cafe-service.json (Variation II: stages, schedules, guard/inhibitor/read arcs, a per-parameter bean arc).
|
Command scheduled-goldens writes a deterministic golden for the scheduled+staged SSA engine — stochastic/testdata/scheduled/<name>.json — against the pflow showcase's cafe-service.json (Variation II: stages, schedules, guard/inhibitor/read arcs, a per-parameter bean arc). |
|
sde-goldens
command
Command sde-goldens writes the portable chemical Langevin (SDE) goldens — stochastic/testdata/sde/<name>.json — the SDE counterpart of cmd/ssa-goldens.
|
Command sde-goldens writes the portable chemical Langevin (SDE) goldens — stochastic/testdata/sde/<name>.json — the SDE counterpart of cmd/ssa-goldens. |
|
shape-goldens
command
Command shape-goldens writes the editor-shape parse goldens under parser/testdata/editor-shape/, one per input document: the parsed colored net, its color expansion and its unfolded metamodel, as go-pflow reads them.
|
Command shape-goldens writes the editor-shape parse goldens under parser/testdata/editor-shape/, one per input document: the parsed colored net, its color expansion and its unfolded metamodel, as go-pflow reads them. |
|
ssa-goldens
command
Command ssa-goldens writes the portable SSA goldens — stochastic/testdata/portable/<name>.json — that pflow-rs, pflow-xyz and pflow-jl replay byte for byte.
|
Command ssa-goldens writes the portable SSA goldens — stochastic/testdata/portable/<name>.json — that pflow-rs, pflow-xyz and pflow-jl replay byte for byte. |
|
zk-field-parity
command
Command zk-field-parity emits a deterministic digest of BN254 field arithmetic and gnark circuit artifacts.
|
Command zk-field-parity emits a deterministic digest of BN254 field arithmetic and gnark circuit artifacts. |
|
codegen
|
|
|
solidity
Package solidity generates Solidity smart contracts from token model schemas.
|
Package solidity generates Solidity smart contracts from token model schemas. |
|
Package compat bridges the two Petri implementations in this repo so facades built on either side can interoperate during migration.
|
Package compat bridges the two Petri implementations in this repo so facades built on either side can interoperate during migration. |
|
Package derive builds evaluation variants of a declared Petri net.
|
Package derive builds evaluation variants of a declared Petri net. |
|
Package engine provides a state machine harness for continuous Petri net simulation.
|
Package engine provides a state machine harness for continuous Petri net simulation. |
|
Package eventlog provides parsing and analysis of process event logs.
|
Package eventlog provides parsing and analysis of process event logs. |
|
Package eventsource provides event sourcing infrastructure for CQRS applications.
|
Package eventsource provides event sourcing infrastructure for CQRS applications. |
|
examples
|
|
|
basic
command
|
|
|
cafe
command
Command cafe is go-pflow's canonical end-to-end example: one café model, the same one the pflow ecosystem showcase uses, taken through the whole stack in a single run — declare, observe, fit, ODE / SSA / SDE, compare, sensitivities, verify, and the MCP calls that expose the same model.
|
Command cafe is go-pflow's canonical end-to-end example: one café model, the same one the pflow ecosystem showcase uses, taken through the whole stack in a single run — declare, observe, fit, ODE / SSA / SDE, compare, sensitivities, verify, and the MCP calls that expose the same model. |
|
chess/cmd
command
|
|
|
coffeeshop
Package coffeeshop demonstrates a fully automated coffee shop using go-pflow.
|
Package coffeeshop demonstrates a fully automated coffee shop using go-pflow. |
|
coffeeshop/cmd
command
Coffee Shop Automation Demo
|
Coffee Shop Automation Demo |
|
coffeeshop/cmd/sim
command
Coffee Shop Simulator CLI
|
Coffee Shop Simulator CLI |
|
coffeeshop/dataflow
Package dataflow expresses the coffeeshop simulation as an Apache Beam / Cloud Dataflow style multi-stage pipeline whose internals lower to a subnet bundle of tokenmodel/petri nets.
|
Package dataflow expresses the coffeeshop simulation as an Apache Beam / Cloud Dataflow style multi-stage pipeline whose internals lower to a subnet bundle of tokenmodel/petri nets. |
|
coffeeshop/dataflow/cmd
command
Demo: coffeeshop expressed as a Beam-style Dataflow pipeline whose internals are tokenmodel/petri subnets.
|
Demo: coffeeshop expressed as a Beam-style Dataflow pipeline whose internals are tokenmodel/petri subnets. |
|
connect4/cmd
command
|
|
|
erc
command
Package main demonstrates defining ERC token standards as Petri net schemas and generating Solidity contracts from them.
|
Package main demonstrates defining ERC token standards as Petri net schemas and generating Solidity contracts from them. |
|
eventlog_demo
command
|
|
|
f91w
Package f91w provides a Petri net simulation of the Casio F-91W digital watch.
|
Package f91w provides a Petri net simulation of the Casio F-91W digital watch. |
|
f91w/cmd
command
Casio F-91W Watch Simulator Based on the XState machine from https://github.com/dundalek/casio-f91w-fsm
|
Casio F-91W Watch Simulator Based on the XState machine from https://github.com/dundalek/casio-f91w-fsm |
|
incident_simulator
command
|
|
|
knapsack/cmd
command
|
|
|
mining_demo
command
|
|
|
monitoring_demo
command
|
|
|
neural/cmd/demo
command
|
|
|
neural/cmd/main
command
|
|
|
neural/cmd/reverse
command
|
|
|
nim/cmd
command
|
|
|
poker/cmd
command
|
|
|
stoplight
command
|
|
|
sudoku/cmd
command
|
|
|
tictactoe/cmd
command
|
|
|
tictactoe/metamodel
Package metamodel demonstrates the struct tag DSL for Tic-tac-toe.
|
Package metamodel demonstrates the struct tag DSL for Tic-tac-toe. |
|
trafficlight
command
|
|
|
visualization_demo
command
Visualization demo - generates example SVG files for workflows and state machines
|
Visualization demo - generates example SVG files for workflows and state machines |
|
Package graphql provides a GraphQL server for Petri net models.
|
Package graphql provides a GraphQL server for Petri net models. |
|
example
command
Example GraphQL server for Petri net models.
|
Example GraphQL server for Petri net models. |
|
Package hypothesis provides utilities for evaluating hypothetical states via ODE simulation.
|
Package hypothesis provides utilities for evaluating hypothetical states via ODE simulation. |
|
Package learn fits the unknown parameters of continuous Petri-net models to observed data — mechanistic system identification.
|
Package learn fits the unknown parameters of continuous Petri-net models to observed data — mechanistic system identification. |
|
Package metamodel provides compatibility utilities for migrating from the legacy Model type to the modern generic PetriNet types.
|
Package metamodel provides compatibility utilities for migrating from the legacy Model type to the modern generic PetriNet types. |
|
metapetri
Package metapetri is the bridge from a metamodel.Model to the petri.PetriNet that reachability, invariants and verify consume.
|
Package metapetri is the bridge from a metamodel.Model to the petri.PetriNet that reachability, invariants and verify consume. |
|
Package mining provides process mining algorithms including discovery and conformance checking.
|
Package mining provides process mining algorithms including discovery and conformance checking. |
|
Package monitoring provides real-time predictive process monitoring.
|
Package monitoring provides real-time predictive process monitoring. |
|
Package parser handles JSON import/export for Petri nets.
|
Package parser handles JSON import/export for Petri nets. |
|
Package petri implements core Petri net data structures.
|
Package petri implements core Petri net data structures. |
|
Package plotter provides SVG visualization for ODE solutions.
|
Package plotter provides SVG visualization for ODE solutions. |
|
Package reachability provides state space analysis for Petri nets.
|
Package reachability provides state space analysis for Petri nets. |
|
Package results defines the structured output format for simulations
|
Package results defines the structured output format for simulations |
|
Package sensitivity provides tools for analyzing how Petri net behavior changes with different parameters.
|
Package sensitivity provides tools for analyzing how Petri net behavior changes with different parameters. |
|
Package solver implements ODE (Ordinary Differential Equation) solvers for Petri net simulation using mass-action kinetics.
|
Package solver implements ODE (Ordinary Differential Equation) solvers for Petri net simulation using mass-action kinetics. |
|
Composable form of Chart on the metamodel composition layer.
|
Composable form of Chart on the metamodel composition layer. |
|
Package stateutil provides utility functions for manipulating Petri net state maps.
|
Package stateutil provides utility functions for manipulating Petri net state maps. |
|
Package stochastic simulates a metamodel.Model as a continuous-time Markov chain (Gillespie's direct method) and dispatches the same declared net to either that engine or the mass-action ODE in solver — Petri.jl's ODEProblem/JumpProblem choice, off one structure.
|
Package stochastic simulates a metamodel.Model as a continuous-time Markov chain (Gillespie's direct method) and dispatches the same declared net to either that engine or the mass-action ODE in solver — Petri.jl's ODEProblem/JumpProblem choice, off one structure. |
|
markingguard
Package markingguard is a GuardFunc for guards written over the marking alone — the tokens("place") op n form that metamodel's composition and queue patterns emit, and anything the tokenmodel/guard grammar accepts as long as it references nothing but tokens(...).
|
Package markingguard is a GuardFunc for guards written over the marking alone — the tokens("place") op n form that metamodel's composition and queue patterns emit, and anything the tokenmodel/guard grammar accepts as long as it references nothing but tokens(...). |
|
Package templates provides common Petri net patterns
|
Package templates provides common Petri net patterns |
|
Package tokenmodel defines abstract building blocks for formal models.
|
Package tokenmodel defines abstract building blocks for formal models. |
|
dataflow
Beam-style fluent source chaining.
|
Beam-style fluent source chaining. |
|
dataflow/transport
Package transport is the L3.1 wire layer for subnet.Bundle execution.
|
Package transport is the L3.1 wire layer for subnet.Bundle execution. |
|
dsl
Package dsl implements an S-expression DSL for defining token model schemas.
|
Package dsl implements an S-expression DSL for defining token model schemas. |
|
guard
Package guard implements a secure guard expression evaluator for Petri net transitions.
|
Package guard implements a secure guard expression evaluator for Petri net transitions. |
|
petri
Package petri provides structural analysis for Petri net invariant proofs.
|
Package petri provides structural analysis for Petri net invariant proofs. |
|
subnet
Graphviz DOT rendering for Bundles.
|
Graphviz DOT rendering for Bundles. |
|
windowing
Package windowing scaffolds Apache Beam-style streaming windowing as a modeled feature over tokenmodel/petri.
|
Package windowing scaffolds Apache Beam-style streaming windowing as a modeled feature over tokenmodel/petri. |
|
Package validation provides structural analysis and validation for Petri nets
|
Package validation provides structural analysis and validation for Petri nets |
|
Package verify turns questions about a Petri net into verdicts with evidence.
|
Package verify turns questions about a Petri net into verdicts with evidence. |
|
Package visualization provides utilities for visualizing Petri nets as SVG.
|
Package visualization provides utilities for visualizing Petri nets as SVG. |
|
Composable form of Workflow on the metamodel composition layer.
|
Composable form of Workflow on the metamodel composition layer. |
|
Package zkcompile transforms Petri net models into ZK circuit constraints.
|
Package zkcompile transforms Petri net models into ZK circuit constraints. |
|
petrigen
Package petrigen generates gnark ZK circuits from Petri net models.
|
Package petrigen generates gnark ZK circuits from Petri net models. |
Click to show internal directories.
Click to hide internal directories.