Overview of the technical reference
Whathappensify is one system for four things: access for AI assistants, simulation, rules for the claims made from results, and Perspectives, the records of people's concerns. In this reference you will find the technical detail of each: the rules for claims, the record behind every result, the translation of a concern into a rule a computer can check, and the simulation methods.
The pages below have the full detail. The Perspectives reference includes worked examples, each evaluated with the platform's compiler.
Explore the mechanisms
| Reference | Contents |
|---|---|
| Epistemic Protocol Machine | Grades and claim strength, each operation's ceiling, the composition rules, the labeling of each result, refusals, provenance, validation and the limits of the approach. |
| Perspectives | The worked bridge example, the compiler, operationalization mappings, comparisons, authorship and sharing. |
| Simulation methods | Every model and technique under six subjects, the agent-based simulation of traffic, each model's measures, and the combinations of models. |
| AI assistant interface | The AI assistant's access to the platform through the Model Context Protocol (MCP): every operation, the software development kit (SDK) functions behind the analytical operations, and the surrounding controls. |
| Worked comparison | An illustrated comparison, with an example of a result's evidence and reasoning open to inspection. |
| The ambulance run in detail | The recorded comparison on the home page: the road network and its traffic, the flood and the closed streets, the engine's rules for queues and routing, the recorded times, and the scope of the recording as evidence. |
| Compiler | The step from an approved scenario to a run manifest: the fields of a specification, the manifest and its hash, and the typed errors. |
| Engine | The parts behind the Engine box of the map, the receipt of a run, and the mechanisms and tests of repeatable runs. |
| The web interface | The pages in your browser, sign-in and sessions, and the permission check on every request. |
| Direct calls from the browser | The groups of calls behind your actions in the workbench, the fields open to a change by hand, and the answers. |
| Accounts and control | Sign-in, API keys and their scopes, your approval of each setup, sharing by link, and the deletion of an account. |
| Data for a place | The path from a place name to streets, terrain and imports from the catalog, each with its source and its digest. |
| Your own data | The files of your account: the formats, the checks, the versions by digest, and their privacy. |
| Saved states | The state of a traffic run at one moment: its contents, the checks at a restore, and the runs from one saved state. |
The rows from Compiler to Saved states are the pages of single parts of the platform, each a box of the map. The simulation reference and the AI assistant reference are built from the platform's own registries, so every model, technique and operation of the platform is in them. The EPM reference has the rules for every result. The worked comparison is an illustrated example. For an everyday account of the questions people can bring and the models for them, read the public simulation overview.
The parts of the platform
Each part of the platform has a role in answering a question. Select a part to read about its role, or follow one question from start to finish.
The cooperative's question, step by step
- The cooperative asks its AI assistant about its rice losses when the city diverts floodwater onto the fields.
- The AI assistant works out the requirements of the question: each field's depth of water and its days under water.
- It prepares a setup through the ten operations, its only way into the platform.
- The question becomes a scenario: the fields, the city's schedule for the gates and another.
- The cooperative reviews and approves the setup in the browser. The platform starts the runs only then.
- The inputs of the run are public data about the river and the cooperative's records of its fields.
- Before the run, under the EPM, every input is checked: it must be of an acceptable kind for the operation and within the cooperative's access.
- The engine looks up the rice loss for each depth and duration.
- After the run, each result has its EPM label. The word for a simulation run is "suggests". The result is a loss range from a published table, and the cooperative's harvest is a separate question.
- Every step is recorded with its inputs, methods, assumptions and label.
- The cooperative watches the runs and compares both schedules side by side.
- The cooperative reads the comparison through its own Perspective, with its members' needs.
- The AI assistant explains the comparison, in the words of its labels.
- The cooperative makes the decision.
A result with an examinable basis
Every saved result is linked to its question, scenario, inputs, methods and execution settings, and to the computation and its interpretation. Each of these items has a content digest, a fingerprint of its exact content, so anyone can detect a change to it. From the record, people can go back to an assumption, examine a comparison, or build an alternative linked to the original.
Because a run can be repeated exactly, anyone can check its arithmetic. The fit of the model to the world and to the question is a separate matter, called model validation. An exactly repeatable run can still be wrong about the world. With the two kept apart, people can challenge a model and still know the exact computation behind its numbers.
Operation type and claim strength
The Epistemic Protocol Machine (EPM) is the set of rules for the claims an AI assistant may make from a result. Under the EPM, a claim's wording is limited to the strength supported by its method and its verified inputs. The EPM is a check on wording. The accuracy of the model about the world is a separate question, and validation is the way to answer it.
Every result with a claim has a two-part label. The first part is the grade, the kind of act behind the claim: observe (OBS), interpret (INT), reason (RSN), recommend (ACT) or revise (LRN). OBS, INT and RSN are a chain, in that order. ACT and LRN are both above RSN, and neither is above the other. A step with both ACT and LRN is refused, because the two grades have no common grade above them.
The second part is the claim strength, from CS0 to CS4. Each level has one word: speculative, suggests, indicates, strongly indicates and demonstrates, in order from the weakest to the strongest. The levels are ranks, and a level has no meaning as a probability. For each grade, only some strengths are possible: OBS has CS0 or CS1, and ACT has CS3 or CS4.
Each of the ten operations has a declared set of grades and a ceiling on its label. There are also rules for the order of operations, called composition checks. Of the hundred ordered pairs of operations, fifteen are refused before any computation, with one narrow exception described in the EPM reference. A sequence allowed by these checks is the start of a valid analysis. The worth of its conclusion depends on the methods, the assumptions and the evidence.
Within those bounds, each method has a fixed label and a written reason for it. The label is given to a result only when there is established support for the method. Without that support, the AI assistant's request is refused, or the run is saved without a claim. For a qualified simulation method with the declared label INT:CS1, the word is "suggests", and only with the evidence required by the method. When you or your AI assistant write a model and no scientist has reviewed it, its calculations are saved without a claim. Numerical checks and your approval to run the model are useful, and scientific review is still required for a claim. The highest claim strength of any method today is CS3.
A label is based on three things: the method, the provenance of the inputs, and checks of the method's application to those inputs. Three other matters are outside the label: the fidelity of the model, the width of an uncertainty estimate, and comparison with observed data.
For these ideas in an everyday example, read the public EPM explanation. For every operation's contract, the composition rules and the limits, read the EPM reference.
Perspectives and evidence
A Perspective has three layers: a person's concern in their own words, a mapping from that concern to something measurable, and a rule a computer can check, derived from the mapping. When a Perspective is compiled, the translation is checked, and the compiler's output includes a list of the points for human deliberation. The authored text and the compiled rule have separate identities, so a change in either one is visible on its own.
The diagram below is of the clinic-access example. Residents compare a supplied set of road closures with an alternative in which one connection stays open. Distance, step-free access and the distribution of benefits are measures for three different concerns.
People can read one completed result through different Perspectives. The computed quantities and the evidence are the same under each. A new concern can also be a reason to gather new evidence and run another simulation. Because the three layers are separate, anyone can examine the path from a person's meaning to the measure and to the computation.
Refusals, errors, and external explanations
A refusal and an execution error are two different things. A refusal is the answer to a request that is against the rules on evidence or authority, and it includes the reason. An execution error is a failure of the computation itself. Knowing which of the two happened, you and your AI assistant can decide on the next step: get more evidence, revise the question, or try another approach.
Every refusal has a typed code; COMPOSITION_CHAIN_REFUSED and GUARD_REFUSED are two examples. The AI assistant also receives a structured explanation: the conditions that failed, in words from a fixed vocabulary, and a remedy for each. The explanation has no identities of evidence records, so everything in a refusal is within your access.
A run can also finish successfully and have no claim. This happens when it has not been established that a step's method is valid for its inputs. The numbers are then saved without a label, together with the reason. A later claim can be based on results only, never on a refusal. A result is published whole or not at all. In each result, the unfinished and failed members are listed and the evidence behind each summary is named, so incomplete work is always visible as incomplete.
An AI assistant outside the platform explains the results in ordinary language. Anyone can check that explanation against the saved record. Approval, access permissions and decisions about publication stay with people, as explicit steps.
Evaluation and independent operation
When a model's results are compared with observed data, the pass thresholds are taken from the published literature. You approve each comparison before you see its outcome. For five reviewed methods, the label of a result can be raised one level after a record of passing comparisons; the conditions are in the EPM reference. A new claim can be based only on current evidence. A withdrawn result, or a result from a source with revoked access, is no longer current.
Whathappensify consists of a simulation engine written in Rust, a software development kit (SDK) written in Python, an MCP interface for AI assistants and a browser application for people. Developers build applications on the SDK. AI assistants reach the platform only through MCP, which is built on the SDK. Every MCP call is checked against the caller's permissions, and every result with a claim has an EPM label.
United Cities Foundation plans to publish the code as open source. As digital public infrastructure, Whathappensify has to be open to independent installation, examination and extension. Today Whathappensify is available as a hosted service and as an installation on one machine. People can share a result, a scenario or a Perspective for reuse by others, and its permissions and attribution stay with it.
Building on the platform
Developers connect their applications to the platform through the SDK. AI assistants reach the same capabilities through MCP, where every operation is subject to the evidence and authority controls described on this page. A developer can build a service for a particular group, such as a lender, a college or a neighborhood organization, with its own interface, data connections and relationships, and with models and Perspectives maintained by others.
Authored models
The platform has a system dynamics solver for models of stocks, flows and the equations behind them. Stocks are amounts such as people waiting, trained workers, usable equipment or money in a fund. Flows are the rates of change of those amounts. A model can also include delays, lookup tables, arrays and feedback loops. A delay can be smooth, or fixed: in a fixed delay, every amount has the same transit time. A lookup table can have its own points for each region or group, and a stated rule for values outside its range. The language has the standard mathematical functions and the standard test inputs: a step, a ramp, a pulse and a repeating pulse. The platform can also draw an input at random during a run from a seeded stream, and two runs with the same seed have identical results. Each model has its own declared units and its own time scale. For a model with no geography, the results have no location and no calendar date.
An AI assistant can find a suitable model in a shared library, write a draft from your description, or adapt one of your own models. An AI assistant can also import a model file in XMILE, the open standard for system dynamics models, or in the file formats of two commercial system dynamics programs. The platform refuses by name each part of the file outside its language, and lists each difference in meaning between the file and the imported model. In the browser, you can inspect the model's diagram, equations, assumptions and source, edit it, check it and prepare a proposal. The resulting run is linked to the draft and to the exact content approved by you. When a model is shared or reused, its authorship, permissions, evidence and limits stay the same.
A model is accepted only after checks of its names, its units, conservation of quantities, and its declared bounds. Fixed-step and adaptive integration are available for different time scales, and events and rate switches are located exactly in time. The platform also locates the time of each jump at a fixed delay's output. For a numerical assessment, the answers from declared refinements and from independent methods are compared under one work budget. In the extreme-condition tests, stocks are set to zero and to declared large values, and the checks are on flow directions and bounded behavior. These checks are about the calculation and the model in its written form. The fit of the model to the world is a question for scientific review.
A model can be prepared for scientific review, with its sources, assumptions, reproductions of reference results, numerical checks and intended use. An AI assistant prepares the review package; an authorized human reviewer approves the exact structure, the parameters and the intended use. A new validation is necessary after a change to the structure, a withdrawn decision or a reviewer's loss of authority. Until a model has been reviewed, its calculations have no claim, even beside a reviewed solver or a reviewed neighboring model.
One scenario, three kinds of model
One scenario can include all three kinds of model in the platform: physical models of flood, heat, noise, air, crowds and traffic; stock-and-flow models written by you or your AI assistant; and network science methods. Each kind is the source of some of the quantities and mechanisms in the question.
Arrivals from traffic can be the inflow of a service queue. The exposure at a stop can depend on the waiting time there. Under a conservative transfer rule, a declared quantity can be transferred across an identified graph. An investment trajectory can be an input to a physical calculation, and the outcome of that calculation can be an input to the next period of the dynamics model. The experiment's record has both the component results and their interaction.
Combinations of models
Every connection between models has a declaration of its source, quantity, units, population or geographic coverage, clock, transformation and provenance. The data are read from the authorized saved source. After a material change to a source, you approve again anything that depended on it. For a physical rate, the source must be a physical model or measured data. From a graph connection alone, only the existence of the link is certain. Each model, mapping and experiment has a declared effective resolution in space and time. Claims are limited to that level of detail, and interpolated values are treated as no finer than the declared resolution.
With a one-way mapping, a completed result is the input of a later model. For a feedback experiment, the declarations include the owner of each component's state, the exchange times, the update order, interpolation, events and stopping conditions. Long-term and event-scale models can be run in alternation, and the complete state of each is preserved between turns, including delays, reducers and pending events. Where calendar dates matter to the question, the correspondence between model time and the calendar is explicit.
The coupling itself is checked, as well as each component. Selected outputs are assessed against declared tolerances in three ways: agreement between split runs, refined integration of the components, and halved exchange intervals. After a failure and a retry, the completed upstream evidence and the consistent component states are still intact. A partial experiment is always marked as partial. Reproductions of reference results are checks of the component models; published comparisons of hybrid models are tests of the connections between them. The coupling of two models needs its own validation, beyond the evidence for each model.
Results from an external model can be brought in through documented connections, each bound to its source, with compatible quantities and authorized access. The record of such results includes the provider, the model version, the permitted use and the replay limits, as well as the source and the time support. Models with no declared interaction are independent of each other. The connection types and their inputs are listed in the simulation reference.
Bounded experiments under human control
An experiment is a finite set of runs, or a bounded sequence of runs, with declared dependencies, alternatives, observations, work limits and stopping rules. You approve that declared scope once, including the authorized inputs from earlier results. You can still watch and read each run of the experiment separately. For a material change outside the scope, you give a new approval.
In the record, proposals, approved models, component runs, source transformations, saved products and readings are linked to one another. In the browser you see them together. Products measured on different time scales are displayed on their own clocks. After a cancellation, a failure or a retry, completed evidence, unfinished work and a usable comparison are still clearly distinct.
Explanation, sensitivity and uncertainty
With feedback analysis, you can identify the loops behind a model's behavior and follow the change in their influence over time; during replay, the dominant loop is highlighted on the diagram. With a parameter sweep, you compare declared settings. With Morris screening, you search for the influential inputs. With a Saltelli design, you estimate first-order and total-order Sobol' indices under stated independent distributions, with bootstrap intervals and convergence comparisons. With Latin hypercube sampling, the platform spreads the members of an ensemble evenly over each uncertain input's range, so fewer runs are enough for the same coverage. With an equilibrium search, you find the states at which every stock is at rest, and the platform classifies each one as stable or unstable from the model's own equations. In replicated stochastic runs, the seeds and the member identities stay the same. In a comparison, the samples and chance conditions are matched across the alternatives, the correlation is declared, and every failed member is on the record.
Four kinds of uncertainty are reported separately: numerical, parameter, stochastic and structural. Each summary has a statement of its population, the sources included and excluded, the successful and failed members, and the assumptions behind its interpretation. When two calculations agree, the model still needs scientific review, and its evidence grade stays the same.
In a comparison, three effects are reported separately under an explicit estimand: the effect of an intervention on its own units, its effect on other units, and the total effect of the policy. In a distributional reading, an overall improvement and harm to one group can both be visible. A policy-rule comparison is among declared candidates, with declared observations, constraints and criteria. Its result is the best of those candidates; the best of all possible rules is a different and larger question. In a policy search, the platform tunes named parameters within declared bounds for one output, under a declared budget of runs, and the result is the best value among those runs. Each rule has declared observed quantities, observation delays, action delays and stopping conditions. Every firing of a rule is recorded and then reproduced in replay. A robustness reading consists of the number of members within a stated criterion, the number of declared members, and the distributions.
Learning from additional evidence
In a value-of-information calculation, a finite set of choices is compared under declared scenario weights, an observation model, and losses in one stated unit. The record has the expected loss before and after the specified information, with the assumptions behind the difference.
When a model is fitted, each parameter is checked for identifiability from the observations, and the fitting data are kept apart from the validation evidence. A model can be fitted to several observed series at once, each with its own stated scale. The platform reports a standard error for each fitted value, and a profile interval on request. It can start the fit from several seeded points and list every distinct solution, so a second good fit is visible. For a Bayesian estimate, the platform samples the posterior distribution of the parameters from seeded chains, and it labels the estimate as converged only when both standard diagnostics are within their published thresholds. In state estimation, the inferred state is updated under a declared observation model and process model, and the corrections driven by observations are recorded apart from the physical inflows and outflows. For a model with nonlinear equations, the platform estimates the state with an extended Kalman filter. The suitability of a model for an empirical use is settled by evidence, by review and by the intended use. Every observation is a real one, and scientific approval is given by a person.
With these capabilities you can keep an inquiry going: inspect an assumption, compare another intervention, collect a useful observation, and return to the same model with a clear record of the changes.
See the public purpose · Follow the experience · Contact Robert Kirkpatrick