Skip to main content
Patrick Colm Audley

Patrick Colm Audley

Hacker · Full-Spectrum Technologist · Polymath

Lemmas, Lambdas and Lattices for Executable Holons

A shipping container with its doors open on a harbour quay, crates of apples and machine parts inside, and a small figure in a bowler hat peering in

Towards executable holons

Put a crate of apples beside a crate of machine parts. Both fit inside the same shipping container. That gets us through the geometry. It does very little for the apples.

To decide whether the shipment makes sense, we need to know what the cargo requires, what the container can maintain, how long the journey will take, and what else is travelling with it. We also need to know who supplied that information and who is entitled to act on it. By the time the container reaches its destination, we may need to explain why an earlier decision looked reasonable.

This is the sort of problem that draws me to holons. A useful representation of a thing should carry enough information to participate in a larger system, including the conditions under which that participation makes sense.

Kurt Cagle’s work on holons is close to how I think about this. His account brings boundaries, changing state, history and the views exposed to other systems into the same architectural conversation. I want to follow that through to something we can package, host and execute. His account of the holon as a governed record is a useful starting point.

I have an obvious slant here. I publish the GMEOW-GTS specification and GMEOW Ontology, and develop PurRDF. The architecture I am proposing uses GTS to carry RDF and WebAssembly together, with a purrdf-based host providing a common place to query, validate and execute the resulting holons. As they run, they accumulate records of their execution and state changes.

Three ideas help explain why I think that is worth building: lemmas, lambdas and lattices.

A boundary with a job

A holon is something we can understand as a whole and also as part of a larger whole. The Holon Graph Community Group applies this idea to graph systems through knowledge, context and events, boundary constraints, and projections.

A crate has an identity, contents and internal structure. Put it into a container and it participates in a different set of relationships. The container, in turn, can be part of a shipment. Each level has questions that are useful at that level.

The boundary determines what another participant needs to know and what it may do. A carrier needs the cargo’s handling requirements. A customer may need its location and expected arrival. An inspector may need the observations supporting a compliance decision. Those are different views of a connected system.

There is also a distinction between the physical crate and our account of it. The owner, carrier and inspector may each maintain a representation. Their records can disagree, and the disagreement itself can matter. Giving the crate an identifier does not remove the need to say whose account we are reading.

For an executable representation, I want the boundary to answer practical questions. Which operations exist? What do they accept? What do they return? What can they change? What evidence would justify admitting this crate into this container?

That gives the boundary a job beyond collecting related triples. It becomes a contract other systems can inspect and use.

Lemmas make the assumptions visible

A question can sound straightforward while depending on a surprising amount of unstated knowledge.

“Can these apples travel in this container?” quietly assumes that we know the cargo’s requirements, have identified the container, understand its available configurations, and possess evidence relevant to the proposed journey. A confident answer can hide gaps in any of those assumptions.

In Competency Questions, Lemmas and Shapes, Cagle calls the necessary conditions extracted from such questions lemmas. Each has a source and an obligation level. He separates the obligation from whether the data currently satisfies it, and recognizes that some conditions need procedures or event history to evaluate.

I am using the term in that engineering sense here. A mathematical lemma is a proved result within a formal system. Our requirement lemma states a condition whose satisfaction still has to be established.

For the shipment, the conditions might include these:

  • The cargo must have applicable environmental requirements.

  • The selected container configuration must guarantee conditions within those requirements for the journey.

  • The combined load must satisfy the configuration’s capacity and compatibility constraints.

  • The evidence supporting the assessment must apply to the relevant equipment and period.

  • The actor committing the shipment must have authority to do so.

The interesting work starts when we ask how each condition is assessed.

Some checks are structural. Does an observation have a value, unit, source and time? Others relate several entities. Does the combined load exceed the selected configuration’s capacity? Still others concern behaviour across an interval. Did the required conditions hold throughout the journey?

I want a lemma to retain its connection to the question that produced it, the mechanism that checks it, and the evidence on which the assessment depends. Then a failed check can tell us something useful. We can distinguish a violated condition from a condition we lack enough information to assess.

That distinction runs through GMEOW’s treatment of standpoints. Whose frame a claim belongs to, which source recorded it, and how much confidence attaches to it are separate dimensions. An observation and a conclusion drawn from that observation should remain distinguishable.

Now suppose the container reports a temperature excursion. The observation can be well formed, correctly attributed and entirely worth recording. It may also establish that a shipment requirement has been breached.

Rejecting that observation would make the record less useful precisely when we need it most. The shape of a valid observation and the conditions of a successful shipment have different jobs.

SHACL makes the boundary available to others

For the interfaces I am proposing, input and output specifications should be available in SHACL.

That gives another system something concrete to inspect before making a call. It can determine the expected graph structure, prepare a candidate input, and validate the result against a declared output contract. SHACL describes constraints on RDF graphs and defines validation machinery; the surrounding host still has to decide what a result permits it to do.

The canonical contract can be richer than that public surface. In GMEOW’s validation design, conditions are authored in the canonical logic and projected into SHACL, with preservation limits made explicit.

I like that arrangement because it gives us a shared interface without pretending every useful obligation fits into one validation language. A temporal condition may need an evaluator over the history. A behavioural guarantee may need a proof, a test regime, or an explicit assumption about the implementation.

The host should be able to say which of those it used. A successful shape check establishes something specific, and that specificity is useful. We lose it when every kind of success is flattened into the same green tick.

Lambdas give the boundary something to do

Once the conditions are explicit, we can describe the operations that work under them. I use lambda here for that functional view of an operation.

An operation takes inputs and produces outputs. For a stateful holon, we also need the starting state, the execution context and the changes being proposed.

An explanatory model is:

fv(S,I,C)→(O,Δ,E) f_v(S,I,C)\longrightarrow(O,\Delta,E)

Here, v identifies the executable version; S is the selected state; I is the input; and C is the execution context. The result contains output O, a proposed state change Δ, and any requested external effects E.

That is enough notation for the moment. The practical point is that the operation has identifiable dependencies and effects. The host can decide whether to admit the invocation and whether to commit its result.

Our shipment holon might expose an operation to assess a proposed load, another to record an observation, and another to produce a customer’s view. Each has a semantic identity, input and output shapes, and a binding to an implementation.

In the architecture I am proposing, that implementation can be a WASM module carried in the GTS package.

RDF describes what the operation means. WASM carries the code that performs it. The package identifies the relationship between them, including the selected code version and interface.

There are two contracts at work here. SHACL describes the RDF payloads at the semantic boundary. A binary interface describes how those values cross into and out of the executable. WIT, for example, describes interfaces and types in the WebAssembly Component Model. The package needs to bind those contracts together.

A useful analogy is a closure: code associated with an environment. Our holon package carries the implementation and identifies the knowledge scope on which it operates. It also declares the capabilities it requires from the host.

Those capabilities matter. WebAssembly supplies an isolated execution environment, while the embedding determines which external APIs the module can use. Reading a clock, querying another service, sending a message and changing durable state all need an account in the host’s execution model.

I would keep read operations and commands distinct. A suitable read-only WASM operation can be bound as a SPARQL extension function, with its state scope and any external dependencies declared. A command that changes state gets an explicit invocation and commit boundary. The host can then distinguish a repeated query from a command being retried.

A function name alone is a thin interface. A function with a declared meaning, shapes, implementation, state scope and effects gives another system considerably more to reason about.

Lattices make composition precise

Once two holons can describe their boundaries, we can ask whether they fit together.

This is where I want the word lattice to do some actual work. A graph or a containment hierarchy does not automatically supply the mathematical structure. We have to name what is ordered and define the operations.

Start with a fixed universe of operating scenarios. A requirement picks out the scenarios it permits. We can order those sets by inclusion: A is below B when every scenario in A is also in B. In this ordering, a smaller set is a more restrictive requirement.

Taking all subsets gives us a lattice with two familiar operations:

A∧B=A∩B,A∨B=A∪B A\wedge B=A\cap B,\qquad A\vee B=A\cup B

Intersection combines requirements. Union supplies alternatives. If the combined admissible set is empty, there is no satisfactory scenario within the universe we have chosen.

For the shipment, that means we can combine the requirements of the apples, the machine parts, the journey and the containing system. Any remaining scenarios are candidates for a feasible arrangement.

The container’s promise needs equal care. A container can offer several configurations. Admission depends on the guarantee of the configuration we select.

If R is the cargo’s allowed operating envelope and G(k) is the envelope guaranteed by configuration k, we need G(k) ⊆ R, together with the other applicable conditions.

A container’s ability to reach a suitable temperature tells us much less than its ability to maintain suitable conditions throughout the journey. An overlap between possible and acceptable conditions leaves plenty of room for spoiled apples.

This also keeps feasibility separate from optimization. Once we have configurations that satisfy the requirements, we can choose among them using cost, energy, time or another declared objective. The preferred configuration may change while the requirements stay the same.

The same reasoning applies to a pipeline of functions. To establish compatibility across the declared domain, the outputs promised by one function must fall within the inputs accepted by the next. Checking one actual result establishes that particular handoff. The broader claim needs a broader argument.

There is a limit worth keeping visible: this is a semantic construction over sets of scenarios. Whether a particular contract language can express those sets, or a particular implementation can decide their relationships, is a further question. A host can report an unsupported or unresolved comparison.

That is still useful information. It tells the next participant where an adapter, more evidence or a stronger evaluator is needed.

Evidence has an order of its own

The set of feasible configurations is one useful lattice. Evidence gives us another.

For a particular proposition in a fixed context, we can distinguish four summaries: no admitted evidence on either side, supporting evidence only, opposing evidence only, or evidence on both sides.

The information order in Belnap’s four-valued structure captures that distinction. Supporting and opposing evidence occupy incomparable positions. Combining them increases the information represented, even though it may make a decision harder.

That fits the kind of record I want a holon to maintain. If two relevant sensors disagree, preserving both reports gives us something to investigate. Choosing whichever arrived last can erase the reason the decision became uncertain.

The scope has to be fixed before we combine the reports. Different times, jurisdictions, standpoints or definitions can explain an apparent disagreement. A four-state summary also cannot tell us whether sources are independent or reliable. The underlying claims and their provenance must remain available.

For the shipment, the feasibility calculation asks which configurations satisfy the requirements. The evidence assessment asks what supports our belief that the selected configuration can deliver those guarantees.

Those questions can change independently. A requirement can stay fixed while new evidence undermines an earlier assessment. A revised requirement can alter admissibility without changing any observation.

The historical record can continue growing through all of this. The current assessment is a view we construct from that record under an identified policy and context.

GTS gives the holon something to travel in

To make this operational, I want the description, contracts, executable behaviour and history to travel together.

GTS provides a carrier for graph content and binary payloads. Its application guide already describes a tool capsule that selects a module, interfaces and schemas, knowledge scope, binary interface, permissions and tests. The host retains responsibility for execution and granting capabilities.

My proposal is to use that foundation for an executable holon package. Its RDF describes the holon and its operations. Its payloads carry the selected WASM implementation and other required material. Its manifest binds a coherent release.

The package also has room for the record of what happens next.

An invocation can append its input, observations, results and proposed changes, then commit a new state. A later reader should be able to identify the operation, the code and contract versions, the relevant evidence, and the starting state used for that execution.

There is a useful precision in the GTS state model: a graph state is obtained by folding the relevant frames through a qualifying commit. There is no dedicated graph-state frame. The application describes its execution and state transitions in the content carried by those frames.

That gives us two identities to preserve. The holon has an identity through time. A particular state has an identity that lets us say exactly which version of its record an operation used.

A receipt of execution can support an explanation without guaranteeing that every external circumstance can be reproduced. Where replay matters, the execution contract needs to identify the observations, clock values, randomness and other inputs on which the result depended.

I want to be able to ask why a shipment was admitted on Tuesday using the information available on Tuesday. New knowledge on Friday should help us understand that decision without silently rewriting its premises.

One host for queries and execution

PurRDF is where I would bring these pieces together.

Its existing toolkit provides RDF, SPARQL, validation, reasoning, GTS transport and extension mechanisms. Its kernel leaves filesystem and network access to the surrounding host. A complete service for hosting and upgrading executable holons is the integration I am proposing around those capabilities.

The attraction is having one place where the package’s declared boundary becomes operational.

The host selects a release and state, establishes the caller’s authority, constructs the permitted view, validates an input, runs the selected implementation, checks the proposed result and commits an accepted transition. External effects need their own invocation identities and reconciliation rules so retries can be handled deliberately.

There should be two complementary ways in.

Named operations let a caller express an intention through an interface someone has defined: assess this shipment, submit this observation, produce this view.

Authorized SPARQL lets the caller ask questions the author did not anticipate individually. That matters for inspection, exploration and reasoning across relationships. I would want both surfaces available under the same account of identity, scope and authority.

The permissions need to describe the action. Reading a record, invoking a function, changing state, replacing code and releasing a derived result are separate capabilities.

A customer might receive an approved summary without access to the observations behind it. An auditor might inspect the history without being able to alter it. A function with broader internal access needs an explicit rule for what it may disclose.

GTS sealing can restrict access to packaged frames through recipient keys. The live host still decides what a caller may do with the content and which capabilities an executable receives.

I also want the result to state enough about its scope to be interpreted correctly. An empty answer over an authorized subset is an answer about that subset. Missing evidence, a completed negative assessment and an evaluation that could not finish should remain distinguishable.

By “single point”, I mean one coherent execution and policy boundary for a deployment. Independent hosts can implement the same profile and apply their own authority. Portability becomes useful when a receiving host can understand the package well enough to accept it, refuse it, or explain what it cannot support.

Self update needs an account of what changed

There are several different things a running holon can change.

It can accumulate observations and revise its operational state. It can adopt a new executable implementation. It can change the contract under which future actions are evaluated.

I would record those as distinct transitions.

An observation should not require a software release. A software release should identify the contracts and permissions it expects. A contract change should say how it applies to existing state and pending work.

Appending a new module leaves the old module present. The GTS application guide therefore makes release selection explicit: the manifest identifies which components belong together. That prevents an accidental mixture of one release’s implementation with another release’s permissions.

In the proposed host, an update is an operation exercised under existing authority. The holon can adopt a permitted release, perform a declared migration and record the result. Its ability to evolve comes from delegated capabilities that the host enforces.

We can also ask a new question of the same old evidence under a revised contract, provided the result identifies that different basis.

This is the kind of self-update I find interesting: enough autonomy to continue useful work, with an inspectable account of how the system changed.

Agents can work through the same boundary

An agent interacting with this system has something better than a collection of loosely described tools.

It can inspect the operations, find the expected input shapes, discover the relevant conditions and submit a candidate action. If the action fails, the result can identify an unmet condition, missing evidence or absent authority. Those are things an agent can use to decide what to do next.

The model can also help draft candidate lemmas, contracts and implementations. The benefit is in turning useful reasoning into artefacts that can be reviewed, versioned and reused. Subsequent invocations can execute those artefacts under the host’s declared rules.

Moving the holon

The test I would like to run is straightforward.

Take the shipment’s GTS package and move it to another conforming host. Give that host the access and capabilities required for the selected release. Ask it to reconstruct the relevant state, identify the available operations and explain why the apples were admitted to the container.

Then submit the next observation.

The receiving host should be able to continue the record coherently, or give a specific account of what prevents it from doing so. The contract, executable behaviour and evidence should give it enough to make that decision.

That is why I am interested in putting lemmas, lambdas and lattices together. The conditions behind an action become explicit. The operation has an identifiable implementation and an inspectable contract. The relationships that let it compose with other things acquire a precise meaning.

Eventually the container arrives. Someone opens the doors, looks at the apples, and asks what happened.

I would like the software to have kept a useful answer.

Implementation note: this is a proposed hosting architecture. GTS v2 is published for implementation and review, and SHACL 1.2 Core is a Working Draft. This proposal is my contribution to the discussion, alongside the independent architectures being developed through the Holon Community Group.

Permalink: https://patrickaudley.com/posts/executable-holons.html · Markdown · JSON-LD · CSL-JSON · RDF 1.2 · SPARQL