Visualization and audit evidence
Render an instance as a standalone vertical DAG:- wall-clock ordering on the vertical axis;
- dependency edges;
- participant-specific colors;
- question-type glyphs;
- work-item status;
- rendered question text and options;
- submitted responses;
- shared-state snapshots and transitions;
- lifecycle timestamps;
- execution attempts and error classifications; and
- the ordered workflow event timeline.
Pattern: parallel brainstorm and selection
Pattern: blind review
An author writes an artifact. Several reviewers can read it but cannot read one another’s reviews. An editor receives the collected reviews. Use output visibility for sealed responses and shared-state capabilities for durable artifacts. Be explicit about which layer protects which information.Pattern: approval with revision
Pattern: Delphi forecasting
A Delphi workflow combines several features:- experts answer independently;
- only the facilitator sees identity-bearing source work;
- the facilitator returns an anonymous synthesis;
- derived expressions calculate authoritative statistics;
- a bounded repeat continues for at least two rounds; and
- a typed range condition stops later rounds after convergence.
Pattern: probabilistically ending public-goods game
Pattern: peer prediction
Peer prediction requires identity-preserving sealed reports, deterministic matching, and deterministic scoring. The current workflow can deliver sealed submissions to a scorer, but scoring arithmetic should be a derived expression or a future allowlisted algorithm—not prose delegated to an LLM. Per-recipient output projection is also important: respondents should receive their own score rather than the full scoring table.Testing workflows
Use scripted answerers for semantic tests:- definition serialization and reconstruction;
- initial ready fan-out;
- delivery order;
- exact rendered downstream context;
- completed and skipped work-item statuses;
- condition decisions;
- shared-state results and versions;
- submission idempotency;
- restart behavior using a new store and coordinator object;
- retry exhaustion and workflow failure; and
- visualization generation.
Operational checklist
Before a real deployment:- Serialize and reconstruct the workflow in a fresh process.
- Verify every role matches the intended participant count.
- Audit every
visible_todeclaration and identity-bearing submission. - Use stable idempotency keys in delivery and submission adapters.
- Put the SQLite database on durable, access-controlled storage.
- Choose lease durations longer than expected provider latency.
- Restrict retryable errors and set a finite attempt budget.
- Test a crash after delivery and a crash during answer retrieval.
- Use deterministic expressions for arithmetic and authoritative decisions.
- Render and inspect the DAG and event history.
- Verify Humanize surveys are private where required.
- Decide how operators are alerted when an instance fails.
