1. Introduction

The agential semioverse defines individual agents and their execution semantics: an internal agent selects interaction operators from its skillset according to its policy and applies them to a partial state . The specification addresses single-agent execution in detail but does not address what happens when multiple agents act on the same state concurrently.

In practice, this vault uses parallel agent sessions for performance. Three patterns recur:

  1. Fan-out across directory subtrees. A coordinator agent partitions the vault into disjoint directory subtrees and spawns worker agents, one per subtree. Each worker applies the same skill template (e.g., cross-linking, style checking, reference auditing) to its subtree. Workers run concurrently and do not touch each other’s files.

  2. Pipeline composition. One agent’s output feeds the next. For example, an audit agent produces a list of broken references; a repair agent reads that list and creates stubs; a style-check agent then verifies the stubs conform to PTGAE.

  3. Config-driven batch operations. Multiple agents share a configuration artifact (e.g., a JSON file specifying cross-link targets). Each agent reads the config but only modifies files in its assigned region. Only the coordinator may update the config itself.

Formalizing these patterns requires extending the existing framework with region ownership, non-interference conditions, and composition theorems. This document provides that extension.

We assume familiarity with the base structures: the complete Heyting algebra with modal closure and trace comonad ; the definable operator algebra ; fragments as finitely generated modal-temporal Heyting subalgebras; partial states ; the composite closure operator with least fixed point ; thing handles with semantic seeds ; thing fragments ; footprints ; and interaction operators as monotone endomorphisms of satisfying fragment-preservation, closure-compatibility, provenance extension, and failure monotonicity. We also assume the agential extension: agent profiles , internal agents , the skill calculus , policy-restricted interpretation , and the agential closure operator with its least fixed point .


2. Regions

We formalize the notion of a “region” within the fragment lattice that corresponds to a directory subtree in the ASR implementation.

Definition 2.1 (Region). A region is a downward-closed subset of the fragment lattice: if and with , then .

Downward closure captures the intuition that if a region owns a fragment, it also owns all subfragments of that fragment. In the ASR implementation, a region for directory contains all fragments whose thing handles lie under in the filesystem hierarchy.

Definition 2.2 (Region generated by a directory). Given a directory path and the set , define the directory region:

Then is downward-closed by construction, since subfragments of fragments generated by things under are themselves generated by elements from things under .

Definition 2.3 (Disjoint regions). Two regions are disjoint if : no fragment belongs to both regions.

Definition 2.4 (Region cover). A region cover of is a finite family such that every fragment belongs to at least one . A region cover is disjoint if the are pairwise disjoint.

Lemma 2.5 (Directory subtrees give disjoint regions). If are directories with pairwise disjoint filesystem subtrees (no is an ancestor of for , and their subtrees do not overlap), then are pairwise disjoint regions.

Proof. A thing handle lies under at most one (since the subtrees are disjoint in the filesystem), so belongs to at most one . Fragments are generated by thing-handle denotations; a fragment whose generators come from disjoint thing-handle sets cannot belong to two distinct directory regions.


3. Region-Restricted Agents

We define what it means for an agent to operate within a region.

Definition 3.1 (Region-restricted skillset). Given an agent and a region , define the region-restricted skillset:

That is, contains exactly those interaction operators in that act as the identity on fragments outside .

Definition 3.2 (Region-restricted agent). The region-restricted agent where:

  • is unchanged (the agent retains its internal state space);
  • is the restricted skillset from Definition 3.1;
  • restricts operator selection to .

Lemma 3.3 (Fragment identity outside region). If , then is fragment-preserving on : for every fragment , .

Proof. This is the defining property of (Definition 3.1).

Lemma 3.4 (Region restriction preserves admissibility). If is an admissible interaction operator (monotone, fragment-preserving, closure-compatible, provenance-extending, failure-monotone), then is also admissible.

Proof. Restricting the set of fragments an operator may modify does not weaken monotonicity, fragment-preservation, closure-compatibility, provenance extension, or failure monotonicity. Each property holds for all fragments; restricting to identity on some fragments preserves the property on the remaining ones.


4. Non-Interference Theorem

The central result: agents restricted to disjoint regions do not interfere with each other.

Theorem 4.1 (Non-interference). Let be agents restricted to disjoint regions , with . Let and . Then:

(i) Commutativity. on .

(ii) Admissibility of composite. The composite is an admissible interaction operator.

(iii) Preservation of all admissibility conditions. Fragment-preservation, closure-compatibility, provenance extension, and failure monotonicity hold for .

Proof sketch.

For (i): Let and let be any fragment. There are three cases:

  • : Then acts as identity on , so . Similarly, since acts as identity on regardless of the state.
  • : Symmetric argument.
  • : Both operators act as identity on , so both composites yield .

Since the composites agree on every fragment, and partial states are determined by their fragment restrictions (by the sheaf condition, Theorem 15.2 of the Interactive Semioverse specification), .

For (ii): Monotonicity composes. Fragment-preservation holds because each operator preserves fragments in the other’s region and its own. Closure-compatibility: for any ,

where the first inequality uses closure-compatibility of and the second uses closure-compatibility of together with monotonicity of . Provenance extension and failure monotonicity compose because each operator independently extends provenance and preserves failure marks in its region, and acts as identity elsewhere.

For (iii): This follows from (ii) and the observation that each admissibility condition is preserved under composition of operators satisfying it (established in the base Interactive Semioverse specification for monotonicity, fragment-preservation, and closure-compatibility).


5. Parallel Composition

We define a parallel composition operator for region-restricted agents.

Definition 5.1 (Parallel composition). Given agents with pairwise disjoint regions (i.e., for all ), define the parallel composition:

as the agent whose step operator applies each concurrently. Formally, the composite step operator is:

where each is selected by .

By Theorem 4.1(i), the result does not depend on the ordering of operators: for any permutation of ,

Theorem 5.2 (Parallel composition preserves admissibility). The parallel composition is an admissible agent: its step operator is monotone, fragment-preserving, closure-compatible, provenance-extending, and failure-monotone.

Proof. By induction on . The base case is trivial. For the inductive step, apply Theorem 4.1(ii)-(iii) to the composite of with the operator for , noting that is disjoint from .

Corollary 5.3 (Order independence). The parallel composition is well-defined up to fragmentwise extensional equality: the result depends on the set but not on any enumeration of that set.


6. Sequential Composition with Handoff

Not all multi-agent coordination involves disjoint regions. We formalize the sequential case.

Definition 6.1 (Handoff predicate). A handoff predicate is a monotone function : if holds and , then holds. The predicate checks that a partial state satisfies the preconditions for a subsequent agent to begin work.

Definition 6.2 (Sequential composition with handoff). Given agents and a handoff predicate , define the sequential composition with handoff:

as the agent that executes repeatedly until holds on the resulting state, then executes . Formally, let denote applications of ‘s step operator. Define:

where , and projects to the state component. If no such exists, execution diverges (liveness failure; see Section 10).

Lemma 6.3 (Connection to work-unit chains). A sequential composition is a two-element chain in the work-unit model (as defined in the work-units-and-chains specification): ‘s execution is the first work unit, ‘s execution is the second, and is the token-availability check that enables the second transition.

Proof. In the Petri net model, is a transition whose output places include a place representing the handoff condition. The predicate holds exactly when has a token. is a transition with as an input place. The two-element chain fires first (consuming input tokens, producing ), then fires (consuming and producing final output tokens). This is exactly the sequential composition .

Lemma 6.4 (Sequential composition preserves admissibility). If and are admissible interaction operators, then is admissible, provided exists.

Proof. Finite compositions of admissible interaction operators are admissible (monotonicity, fragment-preservation, closure-compatibility, provenance extension, and failure monotonicity all compose). The composite is a finite composition.


7. Shared Configuration Artifacts

In practice, agents share configuration artifacts (e.g., cross-link-config.json). We formalize read-only shared state.

Definition 7.1 (Shared artifact). A shared artifact is a thing handle whose fragment is designated as read-only for a set of participating agents. Formally, given a set of agents and a designated coordinator agent :

  • Every agent may read (include it in the interaction surface for any skill invocation);
  • Only may modify ;
  • For every non-coordinator agent (), the policy enforces:

This is a monotone restriction on policy: the predicate whenever skill with input would modify and is not the coordinator.

Lemma 7.2 (Shared artifacts do not break non-interference). Let be region-restricted agents sharing a read-only artifact . If for any (i.e., the config fragment is not in any worker’s region), then non-interference (Theorem 4.1) still holds.

Proof. Each worker’s operators act as identity on fragments outside their region, and the config fragment is outside every worker’s region. Workers read the config fragment but do not modify it. Reading is observation, not mutation: it does not change the state in , so it introduces no conflict between operators. The commutativity proof from Theorem 4.1 applies without modification.


8. Fan-Out Pattern

The fan-out pattern is the primary parallelism mechanism in this vault. We formalize it as a composition theorem.

Definition 8.1 (Fan-out). Given:

  • a task specified by a skill template ,
  • a disjoint region cover of the relevant portion of ,
  • a shared configuration artifact ,
  • a coordinator agent and worker agents ,

a fan-out is the following execution:

  1. produces (applying a skill that creates the configuration artifact).
  2. Each executes with as input, modifying only fragments in .
  3. By Theorem 4.1, steps (2) for all can execute in parallel.
  4. collects effect reports from each and produces a summary.

Formally, the fan-out is the sequential-then-parallel composition:

where checks that exists in the state, and checks that all workers have produced effect reports.

Theorem 8.2 (Fan-out equivalence). Let be a single agent that applies skill to each region in sequence (in any order), reading at each step. Then the fan-out produces a result that is fragmentwise extensionally equal to :

for every fragment .

Proof sketch. By Theorem 4.1(i), the parallel composition is independent of ordering. The sequential agent applies operators to disjoint regions in some order. Since each operator acts as identity outside its region (Lemma 3.3), the sequential composition in any order produces the same result as the parallel composition (each fragment is modified by at most one operator). The sheaf condition (Theorem 15.2 of the Interactive Semioverse specification) guarantees that agreement on every fragment implies agreement on the global state, so the results are fragmentwise extensionally equal.

Corollary 8.3 (Fan-out preserves admissibility). The fan-out execution is admissible: the composite operator is monotone, fragment-preserving, closure-compatible, provenance-extending, and failure-monotone.

Proof. Apply Theorem 5.2 to the parallel phase and Lemma 6.4 to the sequential phases. Composition of admissible operators is admissible.


9. Pipeline Pattern

We formalize the pipeline pattern, where the output of one skill feeds the input of the next.

Definition 9.1 (Pipeline). Given a sequence of skills such that the output schema of is compatible with the input schema of (there exists a monotone map translating outputs to inputs), define the pipeline:

where each handoff predicate checks that has produced output satisfying ‘s domain.

Each skill invocation is a work unit in the sense of the work-units-and-chains specification. The pipeline is a -element chain.

Lemma 9.2 (Pipeline admissibility). A pipeline is admissible if each is admissible and each handoff predicate is satisfiable (i.e., there exists a state such that holds).

Proof. By induction on , using Lemma 6.4 at each step. Satisfiability of ensures that exists at each handoff, preventing divergence.

Theorem 9.3 (Pipeline composite effect). The pipeline’s composite effect on partial states is the composition of individual skill effects:

where each and is the output of .

Theorem 9.4 (Provenance trace concatenation). The composite provenance trace of a pipeline is the concatenation of individual provenance traces:

where denotes concatenation in the provenance history category (Section 9 of the Interactive Semioverse specification).

Proof sketch. Each skill invocation produces a provenance record (Section on Execution Semantics in the Agential Semioverse specification). Sequential composition concatenates records. The refinement morphisms in respect concatenation because provenance histories compose functorially (Lemma 9.1 of the Interactive Semioverse specification).


10. Coordination Correctness

We define four correctness conditions for multi-agent coordination and relate them to established Petri net properties.

Definition 10.1 (Safety). A multi-agent coordination is safe if no agent modifies fragments outside its assigned region. Formally, for each agent and each execution step :

This is guaranteed by construction when agents use region-restricted skillsets (Definition 3.1).

Definition 10.2 (Liveness). A multi-agent coordination is live if, whenever all agents’ skills are admissible and all handoff predicates are satisfiable, the coordination completes in finitely many steps. No agent blocks indefinitely waiting for a resource held by another agent.

In the parallel case with disjoint regions, liveness holds trivially: agents cannot contend for shared resources, so deadlock is impossible. In the sequential case, liveness reduces to satisfiability of each handoff predicate.

Definition 10.3 (Equivalence). A multi-agent coordination is equivalent to a single-agent execution if the result is fragmentwise extensionally equal to some sequential single-agent execution. Formally, there exists an ordering of all skill invocations across all agents such that:

for every fragment , where are the individual skill invocations in order .

For parallel compositions with disjoint regions, equivalence holds for every ordering (Theorem 4.1). For sequential compositions, equivalence holds for the given ordering.

Definition 10.4 (Provenance completeness). A multi-agent coordination has complete provenance if every modification to the state is traced to an agent, a skill, and an input. Formally, for every fragment and every element that differs between the initial and final state, there exists a provenance history in that records which agent applied which skill with which input to produce .

Theorem 10.5 (Correctness of parallel fan-out). A fan-out (Definition 8.1) with pairwise disjoint regions satisfies all four correctness conditions: safety, liveness, equivalence, and provenance completeness.

Proof.

  • Safety: Each worker uses the region-restricted skillset , which by definition acts as identity outside (Lemma 3.3).
  • Liveness: Workers operate on disjoint regions and share no mutable state (the shared config is read-only). No contention occurs, so no deadlock is possible. The sequential phases (coordinator init and collect) complete if their skills are admissible and handoff predicates are satisfiable.
  • Equivalence: By Theorem 8.2, the parallel execution is fragmentwise extensionally equal to any sequential ordering.
  • Provenance completeness: Each worker produces an effect report (required by the Agential Semioverse specification, Section on Effect Reports). The coordinator collects these reports. Every modification is traceable to a worker, skill, and input through the individual effect reports.

Remark 10.6 (Relationship to Petri net properties). The correctness conditions correspond to standard Petri net properties as described in the petri-nets-and-lean specification:

  • Safety corresponds to boundedness: each place (fragment ownership token) has at most one token (one owning agent). The coordination is 1-bounded on ownership places.
  • Liveness corresponds to liveness in the Petri net sense: every intended transition can eventually fire. For disjoint-region parallelism, all transitions are independent (no shared input places), guaranteeing liveness. For sequential compositions, liveness reduces to reachability of the handoff marking.
  • Equivalence corresponds to confluence: different firing sequences reach the same marking. For disjoint-region parallelism, this follows from the independence of transitions sharing no input or output places.
  • Provenance completeness corresponds to observability: every transition firing is recorded. The effect report requirement of the Agential Semioverse ensures that every firing (skill invocation) produces an observable output.

11. Mixed Coordination

Real workflows combine parallel and sequential phases. We define the general composition.

Definition 11.1 (Coordination term). The set of coordination terms is generated by:

where is a region-restricted agent, is parallel composition (requiring disjoint regions), and is sequential composition with handoff.

Theorem 11.2 (General coordination correctness). A coordination term satisfies safety, liveness, equivalence, and provenance completeness if:

(i) Every node has children with pairwise disjoint regions.

(ii) Every handoff predicate in a node is satisfiable given the preceding phase’s output.

(iii) Every leaf agent uses only admissible interaction operators.

Proof. By structural induction on . The base case (single agent) is given by the Agential Semioverse specification. The parallel case uses Theorem 5.2. The sequential case uses Lemma 6.4.


12. Discussion

This specification extends the Agential Semioverse with three capabilities: region-restricted execution, parallel composition over disjoint regions, and sequential composition with typed handoffs. The key insight is that the fragment lattice already provides the locality structure needed for concurrency: if two operators modify disjoint sets of fragments, they commute.

The sheaf condition on the fragment fibration (Theorem 15.2 of the Interactive Semioverse) plays a structural role: it guarantees that fragmentwise equality implies global equality, which is what lets us prove that parallel and sequential executions produce the same result.

Three directions remain open:

  1. Overlapping regions. The non-interference theorem requires disjoint regions. In practice, some operations (e.g., cross-linking) touch fragments in multiple directory subtrees. Extending the theory to handle overlapping regions requires either a locking discipline or a merge operation on conflicting fragment modifications. The sheaf gluing condition (Theorem 15.2) provides a candidate merge semantics, but conflict resolution (when two agents produce incompatible modifications to the same fragment) requires additional structure.

  2. Dynamic region assignment. The current formalization assigns regions statically before execution begins. A dynamic scheme, where regions are negotiated or reallocated during execution, would require extending the policy function to include region claims and a protocol for resolving competing claims. This connects to the colored Petri net extensions mentioned in the petri-nets-and-lean specification.

  3. Lean formalization. The theorems in this document admit formal proofs in Lean 4. The fragment lattice is a finite distributive lattice (a special case of a Heyting algebra); region restriction is a sublattice operation; commutativity of operators on disjoint sublattices is a standard algebraic fact. A Lean encoding would provide machine-checked guarantees that fan-out and pipeline executions preserve all admissibility conditions.