Reaktor V2 (Deprecated)
Reaktor Graph: Typed Port Hypergraphs, Traversals and Patches for Multi-Runtime Systems. A design paper by Shibasis, 8 October 2026, 115 pages as a PDF.
Today's Reaktor builds an app as a graph of typed ports. Screens, services and stores declare what they provide and what they need, and the graph wires them together on each platform. The paper takes that idea to a whole system: one typed graph describes every phone, browser, edge Worker, server and database the system runs on. The graph is written in RGL, a language embedded in Kotlin. It is stored in a kernel laid out the way game engines lay out their data, shared between its holders over a protocol called RGP, and changed by patches that can be reviewed, combined and pushed to running code.
Status on 16 November 2026: design study. The paper will not be built as written. Reaktor moves from the graph that runs today directly to a later design, which keeps this paper's typed port hypergraph and replaces its kinds, families and layers. The paper stays here as the record of that exploration.
Its abstract ends with the status of each claim as the paper stood: the current graph runtime runs in production, while Reaktor Graph and RGL were specified and not built. Chapter 14 maps each existing module onto the paper's model, and chapter 22 is the build plan the paper proposed, which is not in force.
Reading paths#
- First read: Abstract and status of claims · 1. Introduction · 2. The current runtime and what it cannot express · 24. Conclusion
- For practitioners: 13. A reference realization · 16. Problems of multi-runtime systems · 17. Systems in scope · 18. Programming at the scale of systems · 22. Implementation plan
- The graph model: 3. Preliminaries · 5. The Reaktor Graph · 6. The type system · 7. Composition and behaviour · 8. Traversals: one computational primitive · 9. Change: patches, transactions, diffs and code push · Appendix A. Proofs
- Language and runtime: 10. RGL: the Reaktor Graph Language · 11. The kernel: a data-oriented realization · 12. RGP: the Reaktor Graph Protocol · 13. A reference realization · 14. Reaktor: modules and tools around the graph
- Evaluation and implementation: 15. Assurance inside the graph · 20. Evaluation · 22. Implementation plan · 23. Limitations and open problems · Appendix C. The bounded models and the corpus script · Appendix G. Roadmaps for learning and building
- Background: 4. Precedents: what game engines already know · 21. Related work · Appendix D. Study plan · Appendix E. Primers · Appendix F. Glossary
Chapters#
- 1. Introduction: Why an application that spans phones, browsers, edge Workers, servers and databases needs one typed model of the whole system.
- 2. The current runtime and what it cannot express: How the graph in today's Reaktor works, and what it cannot express.
- 3. Preliminaries: The graph theory, category theory and engineering practice the design builds on, and the notation the paper uses.
- 4. Precedents: what game engines already know: What game engines, Unreal Engine's Blueprints above all, already know about typed graphs over a native core, and where the analogy stops.
- 5. The Reaktor Graph: The formal definition of a Reaktor graph: nodes, owned ports, role-labelled hyperedges and one containment forest.
- 6. The type system: The standard signature of fourteen base kinds, the component profiles and the rules that check a graph.
- 7. Composition and behaviour: Open graphs, composing them as string diagrams, and the operational semantics with its TLA+ projection.
- 8. Traversals: one computational primitive: Traversals, the one computational primitive behind dependency injection, navigation, rendering and capability resolution.
- 9. Change: patches, transactions, diffs and code push: Changing a graph: typed double-pushout patches, transactions, graph diffs and pushing code to a running system.
- 10. RGL: the Reaktor Graph Language: RGL, the Reaktor Graph Language embedded in Kotlin: definitions, behaviour, queries and changes in one syntax.
- 11. The kernel: a data-oriented realization: The kernel as a data-oriented store: one table per sort, foreign-key columns and sparse facets.
- 12. RGP: the Reaktor Graph Protocol: RGP (rgp/1), the protocol through which the graph's holders exchange facts and changes.
- 13. A reference realization: The first realization the design commits to, on Cloudflare, Google Cloud and Postgres, the capabilities any host must offer, and four further stacks.
- 14. Reaktor: modules and tools around the graph: How Reaktor's modules and tools map onto the standard signature, and how far each one is built.
- 15. Assurance inside the graph: Claims, evidence and verifiers as elements of the graph, with a status vector instead of a single colour.
- 16. Problems of multi-runtime systems: The problems that systems spanning many runtimes add to the classic fallacies of distributed computing.
- 17. Systems in scope: Eleven classes of multi-runtime systems, what makes each one hard, and the mechanisms that address it.
- 18. Programming at the scale of systems: Why agents, many runtimes and limited human attention call for programming whole systems at once.
- 19. Tools, agents and teams on one graph: How compilers, test and analysis tools, agents and teams can work on one graph instead of rebuilding fragments of it.
- 20. Evaluation: What can be measured before implementation: the type system applied to the design corpus, bounded protocol checks, and the hypotheses to test.
- 21. Related work: Bigraphs, port graphs, graph transformation and the other work the design builds on or departs from.
- 22. Implementation plan: The build order: identity and the kernel first, then services moved over one by one, with a chat feature as the pilot.
- 23. Limitations and open problems: Where the design falls short: opaque code, liveness and performance, an evolving signature and other open problems.
- 24. Conclusion: The argument in brief: a typed, layered port hypergraph as the object model for applications that span many runtimes.
References#
References: the 366 works the paper cites.
Appendices#
- Appendix A. Proofs: Proofs of the propositions and theorems on composition, patches and traversals.
- Appendix B. From the 2026 catalogue to the standard signature: How the 40 node kinds, 24 port profiles and 36 hyperedge kinds of the 2026 catalogue map onto the standard signature.
- Appendix C. The bounded models and the corpus script: The explicit-state models behind the protocol checks, and the script that applies the type system to the design corpus.
- Appendix D. Study plan: Five reading paths through the background, a map of the concepts, and what to read for each one.
- Appendix E. Primers: The background of the preliminaries again, with worked examples.
- Appendix F. Glossary: The paper's terms and the section that defines each one.
- Appendix G. Roadmaps for learning and building: Two roadmaps, one for learning what the design draws on and one for building it, both drawn as Reaktor graphs.