Freshware · Interactive Workbook
MDX Source Edition Residual Systems & Verified Compilation Learning Center & Videos
Learning Center · Primary Sources & Talks

Theoretical Learning Center & Video Library

Primary talks, papers, monographs, and historical threads from Residuality Theory, complexity science, partial evaluation, formal methods, and domain-driven engineering.

Updated: 2026-11-23 5 Conceptual Pillars · 41 Verified Entries · 21 Talks Source: src/content/resources/learning-center.mdx

Freshware does not invent new computer science out of thin air. Every mechanism in this workbook — read-only holdout oracles, zero-copy conflict forks, three-tier macro hygiene, Reverse-JIT intelligence lowering, and runtime stressor triage — sits on shoulders built between 1971 and 2026 across programming language theory, complexity science, formal verification, and adaptive systems.

You can edit this curatorial guide directly in src/content/resources/learning-center.mdx or add new verified entries to src/data/resources.ts.

Section A · Featured Video Theater

Foundational Talks: Residuality Theory, Attractors, Futamura & CEGIS

5 Curated Keynotes
Barry O'Reilly · NDC London · 2024

An Introduction to Residuality Theory

Core walkthrough replacing bottom-up requirements prediction with naive architectures, random stressor simulation, contagion mapping, and the Incidence Matrix.

Why watch for Freshware: Blueprint for Lab 01 (Incidence Matrix) and our 60-minute stressor drill in the 30-day brownfield conversion protocol.
Section B · Chronological Intellectual Lineage

Fifty-Five Years Leading to Freshware (1971–2026)

12 Milestones

Click any historical milestone to filter the primary-source archive below to its conceptual pillar, or jump directly to the workbook chapter that puts it into code.

1971 Yoshihiko Futamura

First Futamura Projection

Partially evaluating an interpreter against a fixed spec yields a fast residual executable.

Chapter →
1987 David Harel

Visual Statecharts

Hierarchical state machines tame state explosion in reactive software.

Chapter →
1992 Bertrand Meyer

Design by Contract

Preconditions, postconditions, and invariants turn obligations into runtime guards.

Chapter →
2002 Matthew Flatt

Macro Phase Separation

Keep expansion-time meta-computation strictly separated from runtime execution.

Chapter →
2003 Kephart, Chess & Eric Evans

Autonomic MAPE-K Loop & DDD

Monitor-Analyze-Plan-Execute over Knowledge pairs with Bounded Context walls.

Chapter →
2005 Michael Hicks & Scott Nettles

Dynamic Software Updating

Safe points and type checks let running systems swap verified bundles atomically.

Chapter →
2006 Dan North

Behavior-Driven Development

Concrete behavioral examples establish shared vocabulary between operators and builders.

Chapter →
2008 Armando Solar-Lezama

Sketching & CEGIS

Decouple synthesis from formal verification via counterexample feedback.

Chapter →
2009 Blair, Bencomo & France

Models@run.time

Maintain a live reflective specification graph to govern safe adaptation.

Chapter →
2020 Barry M. O'Reilly

Residuality Theory & Attractors

Simulate random stressors to expose contagion and build systems out of surviving residues.

Chapter →
2024 Barry M. O'Reilly

Residues Monograph & NDC Talks

Codifies hyperliminality, incidence matrices, and stress-tested Bounded Contexts.

Chapter →
2026 Appleton, Pocock & Almeida

Zero Alignment & Decision Models

Pre-build alignment skills plus sub-second System One gates complete the Freshware stack.

Chapter →
Section C · Primary-Source & Video Archive

Complete Theoretical Catalog (41 Verified Entries)

Showing 41 of 41
Barry O'Reilly · Code BEAM Lite Stockholm · 2026

Keynote: Residuality Theory in Software Architecture

Synthesizes software architecture as interconnected residues rather than static component boxes, showing how actor and message-passing designs absorb unpredictable real-world disturbances.

Freshware link: Directly informs Freshware's First Residue: isolate Tier 2 perception and endpoint adapters so stressors do not cascade across Bounded Contexts.
ResiduesStressorsFault isolationComplexity science
Barry O'Reilly · NDC London · 2024

An Introduction to Residuality Theory

Core walkthrough replacing bottom-up requirements prediction with naive architectures, random stressor simulation, contagion mapping, and the Incidence Matrix.

Freshware link: Blueprint for Lab 01 (Incidence Matrix) and our 60-minute stressor drill in the 30-day brownfield conversion protocol.
Naive architectureIncidence matrixContagion analysisHyperliminal systems
Barry O'Reilly · NDC Porto · 2024

An Introduction to Residuality Theory (Porto Edition)

Walks through concrete architectural stress simulations and demonstrates how random disruptive scenarios reveal hidden structural couplings missed by standard component diagrams.

Freshware link: Illustrates why static module boundaries fail during supplier PDF layout shifts and API renames unless stress-tested beforehand.
Random simulationHidden couplingAttractor discovery
Barry O'Reilly · Jfokus · 2022

Residuality Theory: Stressors, Residues, and Contagion

Early canonical presentation linking Stuart Kauffman's NK landscapes and aerospace contagion methods to resilient software engineering under deep uncertainty.

Freshware link: Provides the formal intuition behind tracking contagion count and blast-radius ratio across modules per shock.
NK landscapesAttractorsContagionSurvivability
Barry O'Reilly & Eberhard Wolff · Software Architecture TV · 2025

Residuality Theory Deep-Dive Conversation

Long-form technical Q&A examining why requirements-first design breaks down in complex environments, how architects build incidence matrices in practice, and how residues relate to Bounded Contexts.

Freshware link: Clarifies the exact marriage between DDD context walls and Residuality stress testing developed in Chapters 01 and 02.
Requirements uncertaintyBounded contextsArchitectural residues
Complexity Explorer · Complexity Explorer Lecture Series · 2019

The Kauffman Model: Random Boolean Networks & Attractors

Explains how high-dimensional Boolean networks converge into a tight set of stable cyclic attractors and how connectivity K governs order vs. chaos.

Freshware link: Explains why Freshware distinguishes temporary perturbations inside one attractor from structural shifts into a new attractor.
Boolean networksAttractorsConnectivity KPhase transitions
Stuart Kauffman · Closer To Truth · 2020

Why Complex Evolutionary Systems Cannot Be Fully Predicted

Kauffman explains non-ergodic phase spaces where adjacent possibilities cannot be pre-listed mathematically, requiring adaptive structure instead of exhaustive prediction.

Freshware link: Justifies why Freshware keeps a Phase 1 compilation loop alive instead of pretending upfront specifications can anticipate every future vendor quirk.
Adjacent possibleNon-ergodicityUnpredictable change
Stuart Kauffman · Closer To Truth · 2020

NK Fitness Landscapes and Emergent Order

Explores how coupling density K reshapes fitness landscapes from smooth single peaks into rugged, unpredictable terrain.

Freshware link: Provides the complexity intuition behind keeping module coupling K low via read-only Tier 0 standards and isolated Tier 2 adapters.
NK modelCoupling densityEmergent stability
book 2024 · Book

Residues: Time, Change, and Uncertainty in Software Architecture ↗

Barry M. O'Reilly · Leanpub Monograph

Foundational book formulating Residuality Theory from first principles: hyperliminality, stressor simulation, residue engineering, contagion graphs, and empirical incidence scoring.

Freshware link: Primary theoretical source for Part II and for separating surviving Tier 0 cores from mutable operational policies.
Residuality theoryHyperliminal systemsIncidence matrixResidues
paper 2020 · Academic paper

An Introduction to Residuality Theory: Software Design Heuristics for Complex Systems ↗

Barry M. O'Reilly · Procedia Computer Science

Peer-reviewed paper introducing architectural residues as a design heuristic for systems embedded in complex, non-linear business and social environments.

Freshware link: Establishes the formal vocabulary connecting naive architecture baselines to verified invariant survival.
Software design heuristicsComplex adaptive systemsResiduals
essay 2024 · Deep-dive essay

Residuality Theory Explained for Functional Architects ↗

Eric Normand · Architecture Essay Series

Walks step-by-step through O'Reilly's method, showing how simulating arbitrary stressors produces clearer architectural boundaries than speculating about future feature roadmaps.

Freshware link: Pairs directly with Dexter Horthy's expected-pain heuristic in Chapter 01 to avoid over-specifying volatile UI glue while locking core edges.
Stressor simulationAnti-fragilityDesign simplicity
essay 2025 · Technical briefing

Designing Resilient Architectures with Residuality Theory ↗

Architectural Practice Desk · InfoQ Architecture Review

Field synthesis showing how engineering teams adopt incidence matrices and stress simulations during architecture reviews instead of guessing component splits.

Freshware link: Illustrates practical incidence scoring in production teams and motivates automating matrix checks against extracted specs.
Architecture reviewIncidence matrixStructural risk
essay 2024 · Session archive

Residuality Theory Meets Domain-Driven Design ↗

Barry M. O'Reilly · Virtual DDD Session Notes

Directly compares Bounded Context discovery from static domain language against boundary refinement driven by stressor and contagion analysis.

Freshware link: Bridges Chapter 01 (DDD Ubiquitous Language) and Chapter 02 (Residuality Boundaries) into a single design loop.
Bounded contextsContagionStressor-driven refactoring
Edoardo Vacchi · DevConf · 2023

Dr. Futamura's Projection Machine!

Clear visual exposition of partial evaluation and all three Futamura projections, showing how specializing an interpreter around a fixed program collapses runtime interpretation overhead.

Freshware link: Core metaphor for Chapter 04: specialize the reasoning LLM against an operator playbook once at compile time, leaving a fast residual program at runtime.
Partial evaluationFirst projectionResidual programSpecialization
Guannan Wei · Type Theory Forall #37 · 2024

Compilers, Staging, and Futamura Projections

Examines multi-stage programming, homogeneous code/data representations, and why explicit staging gives programmers predictable compile-vs-runtime boundaries.

Freshware link: Connects multi-stage programming directly to Freshware's explicit Phase 1 compiler stage and Reverse-JIT intelligence lowering.
Multi-stage programmingProgram stagingSymbolic execution
Matthew Flatt · PLSE Seminar Series · 2016

Let's Build a Hygienic Macro Expander!

Demonstrates hygienic macro expansion using scope sets so compile-time code transformation never accidentally captures or corrupts caller bindings.

Freshware link: Inspires Chapter 03's Three-Tier Mutation Hygiene: Phase 1 compilation must never capture or overwrite Tier 0 caller invariants.
Macro hygieneScope setsExpansion boundaries
Matthew Flatt · Lambda Lounge · 2013

Macros, Modules, and Languages in Racket

Shows how syntactic towers and phase-separated module boundaries let domain-specific abstractions compile into efficient target code.

Freshware link: Matches Freshware's three meta-level phases: Intent DSL (Phase 2) expanding into verified Smart Software (Phase 0).
Syntactic towersDomain languagesCompile-time phases
paper 1971 · Foundational paper

Partial Evaluation of Computation Process — An Approach to a Compiler-Compiler ↗

Yoshihiko Futamura · Higher-Order and Symbolic Computation (1999 reprint)

Original formulation proving that partially evaluating an interpreter with respect to a source program produces an optimized residual executable.

Freshware link: Provides the mathematical identity mix(I, spec) -> P_spec(input) driving Freshware's Computational Residue.
Futamura projectionsPartial evaluationResidual executable
paper 2002 · ICFP paper PDF

Composable and Compilable Macros: You Want It When? ↗

Matthew Flatt · ACM SIGPLAN ICFP '02 (PDF)

Establishes strict phase separation between compile-time evaluation and run-time execution so separate compilation and tooling stay predictable.

Freshware link: Answers the central question for AI harnesses: put heavy open-ended reasoning at macro-expansion time, not inside runtime event loops.
Phase separationCompile-time vs runtimeModule towers
Eric Evans · DDD Europe · 2020

Bounded Contexts

Explains why one universal domain model always collapses under scale, and how explicit context boundaries keep terminology and invariants coherent inside each module.

Freshware link: Maps directly onto modular docs/specs/<layer>/*.md packs and Anti-Corruption Layers shielding accounting invariants from supplier format drift.
Bounded contextsUbiquitous languageAnti-corruption layers
Eric Evans · DDD Europe · 2019

What Is Domain-Driven Design?

Revisits the essence of DDD: domain experts and builders cultivating a single shared model encoded simultaneously in conversation and working software.

Freshware link: Explains why Ubiquitous Language stored in CONTEXT.md and extracted into SQLite acts as semantic compression for AI compilers.
Ubiquitous languageDomain modelingShared vocabulary
Daniel Terhorst-North · PHP UK Conference · 2024

20 Years of Behavior-Driven Development

Looks back on two decades of BDD, diagnosing how teams mistook BDD for automated UI scripting and reaffirming its real purpose: discovering edge behavior through shared examples.

Freshware link: Motivates Chapter 01's synthesis: keep BDD's concrete plain-English examples (Golden Pins) while deleting heavy step-definition glue.
BDDShared examplesMisunderstandings of test glue
Dan North · Beauty in Code · 2019

BDD Is Not About Testing

Demonstrates how structured curiosity and concrete scenarios eliminate misunderstandings before an engineer touches implementation code.

Freshware link: Parallel to pre-build grilling sessions that capture both what a system does and why an edge exception exists.
Structured curiosityBehavior specificationDomain alignment
Gojko Adzic · Avanscoperta · 2020

Specification by Example

Distills how living documentation built from realistic examples aligns business operators and engineering verification around a single source of truth.

Freshware link: Directly shapes Freshware's plain-English playbooks paired with frozen Golden Pin fixtures in Gate 2 verification.
Living documentationSpecification by exampleKey examples
Maggie Appleton · AI Engineer Conference · 2026

Collaborative AI Engineering: One Dev, Two Dozen Agents, Zero Alignment

Diagnoses how rapid coding-agent execution collapses the slow middle of software delivery, pushing unaligned design debates onto overloaded pull requests.

Freshware link: Framing diagnosis for Chapter 01: shifting alignment surfaces ahead of compilation and capturing rationale threads in SQLite.
Zero alignmentShrinking middleCollaborative surfaces
Matt Pocock · Alignment Skills Walkthrough · 2026

End-to-End AI Coding Alignment Workflow

Live demonstration of /wayfinder, /grill-with-docs (CONTEXT.md), /to-spec, dependency-ordered /to-tickets, and seam-level TDD loops.

Freshware link: Provides the Phase 2 interrogation and specification protocol practiced in Chapter 01 and extracted by pi-durable in Chapter 03.
Pre-build grillingUbiquitous languageVertical slice tickets
essay 2006 · Foundational essay

Introducing Behaviour-Driven Development ↗

Dan North · Original BDD Essay

The 2006 article reframing unit tests as executable behavioral sentences written in shared domain vocabulary.

Freshware link: Shows the lineage from behavioral test names to kebab-slug acceptance criteria inside session-spec-verify.
Given-When-ThenExecutable behaviorUbiquitous terminology
essay 2026 · Illustrated essay

One Developer, Two Dozen Agents, Zero Alignment ↗

Maggie Appleton · Interactive Essay

Visualizes before-and-after alignment timelines showing why PR-time review fails when implementation collapses to minutes.

Freshware link: Directly anchors Freshware's Phase 2 thread preservation and durable decision logging.
Alignment graphsIntent captureAgent workflows
Armando Solar-Lezama · Yet Another Science Podcast #3 · 2023

Program Synthesis, Sketching, and CEGIS

Unpacks the Sketch synthesis paradigm and Counterexample-Guided Inductive Synthesis (CEGIS), separating candidate generation from formal counterexample verification.

Freshware link: Exact architectural pattern behind Freshware's Phase 1 compile loop: LLM compiler synthesizes candidates; Gate 1/2 verifiers return failing counterexamples until green.
CEGISProgram synthesisSketchingNeurosymbolic loops
Armando Solar-Lezama · INSAIT Tech Series · 2024

AI Will Program Itself: Synthesis, Learning and Beyond

Explores using structured code and explicit specifications as reliable knowledge representations that neural synthesizers can evolve safely.

Freshware link: Reinforces why Freshware lowers learned behaviors into typed code and rules checked against immutable specifications.
Neurosymbolic synthesisCode as knowledgeVerification loops
Leslie Lamport · TLA+ Video Course · 2017

TLA+ Video Course, Lecture 1: Introduction to TLA+

Introduces state machines, safety invariants, and high-level mathematical modeling to catch design flaws before a single line of implementation runs.

Freshware link: Foundation for Freshware's Gate 1 formal statechart checks that forbid unsafe state transitions across billing and promotion lifecycles.
TLA+State machinesSafety invariantsAbstraction
Leslie Lamport · Heidelberg Laureate Forum · 2019

How to Think Clearly as a Programmer with Mathematics and TLA+

Argues that writing formal specifications above the code level prevents entire classes of concurrency and state-corruption defects.

Freshware link: Supports keeping Tier 0 invariants outside generated code so Phase 1 compilers treat safety laws as immutable mathematical boundaries.
Formal thinkingDistributed stateSpecification above code
paper 2008 · PhD Thesis PDF

Program Synthesis by Sketching ↗

Armando Solar-Lezama · UC Berkeley PhD Dissertation (PDF)

Defines SAT-backed CEGIS loops where a human provides structural invariants and holes while an automated solver synthesizes valid completions.

Freshware link: Canonical reference for Freshware's Phase 1 compile-and-verify loop with counterexample rejection.
CEGISConstraint solvingStructural sketches
paper 1992 · Journal paper

Applying "Design by Contract" ↗

Bertrand Meyer · IEEE Computer, Vol. 25, No. 10

Establishes preconditions, postconditions, and class invariants as executable software contracts binding callers and callees.

Freshware link: Precursor to Tier 0 invariants and deoptimization bailout checks at runtime stage boundaries.
Design by ContractPre/postconditionsClass invariants
course 2017 · 10-lecture course

Complete TLA+ Video Course & Written Lecture Scripts ↗

Leslie Lamport · Official TLA+ Course Archive

Complete curriculum covering state machines, PlusCal, temporal logic, safety vs. liveness, and implementation refinement.

Freshware link: Self-study foundation for teams authoring Tier 0 state invariants before enabling Phase 1 autonomous compilation.
TLA+ curriculumSafety & livenessRefinement
Diogo Almeida · TWIML AI Podcast · 2026

System One Decision Models & Reliable Automation

Contrasts RLHF conversational assistants ('Einstein 95% of the time, Mr. Bean 5%') against fast, calibrated decision models embedded inside deterministic code.

Freshware link: Defines Rung 1 of Freshware's Phase 0 runtime and motivates confidence abstain bands that bail out safely on uncertain predictions.
System One modelsFourth logic gateCalibrationSmart software
paper 2003 · Foundational paper

The Vision of Autonomic Computing ↗

Jeffrey O. Kephart & David M. Chess · IEEE Computer, Vol. 36, No. 1

Formulates the MAPE-K (Monitor, Analyze, Plan, Execute over shared Knowledge) control loop for self-configuring, self-healing, and self-protecting software.

Freshware link: Maps cleanly onto Freshware: Stressor Triage monitors/analyzes, Phase 1 compiles plans, atomic promote executes, and session-spec-verify holds Knowledge.
MAPE-KSelf-healing systemsShared knowledge base
paper 2009 · Journal paper

Models@run.time ↗

Gordon Blair, Nelly Bencomo & Robert B. France · IEEE Computer, Vol. 42, No. 10

Introduces causally connected runtime models that track live structural health and allow principled adaptation without discarding architectural invariants.

Freshware link: Mirrors Freshware's SQLite ExtractedConstraintsDoc + Incidence Matrix driving runtime stressor analysis and safe recompilation.
Models@run.timeCausal reflectionRuntime adaptation
paper 2005 · Journal paper

Dynamic Software Updating ↗

Michael Hicks & Scott Nettles · ACM TOPLAS, Vol. 27, No. 6

Demonstrates type-safe hot code and state transformation at verified safe points in running applications with low runtime overhead.

Freshware link: Theoretical ancestor of Freshware's content-addressed atomic bundle promotion and instant version rollback.
Dynamic software updatingSafe pointsAtomic promotion