Contexts, Directed Executions, and Certified Reconfiguration
12 October 2026 - Version 0.1 - Draft for author review
An agent swarm is specified by a semantic context, typed agent families, interaction protocols, directed executions, and admissibility certificates. An infinity-topos provides dependent state families, higher identity, and effective descent; a weaker semantic base is sufficient when the precise finite-limit and descent requirements are supplied. We construct finite network and trace objects, prove coherent replacement and contextual descent, and give a compositional certificate rule for guarded asynchronous updates. Reconfiguration changes architectures through explicit transition witnesses rather than identification of state spaces. Counterexamples separate protocol compliance from state validity, coherent realization from local existence, and safety from progress. A finite coordinator-and-worker model checks exclusive leases and revision-sensitive completion. The contribution is an explicit semantic contract assembled from established categorical constructions, with its operational and representational limits stated.
Fix universes and let denote the infinity-category of spaces. All limits, mapping spaces, functors, and equivalences are homotopy coherent. An infinity-topos is an accessible left-exact localization of for a small infinity-category [1]. Objects can retain higher identities; they are not restricted to sets of machine states.
Definition 1.1 (Admissible semantic base). A semantic base is an infinity-category with finite limits. For contextual descent, specify pullback-stable covers whose augmented Cech nerves satisfy
The comparison uses pullback functors. A descent-compatible semantic base has these specified equivalences; not every finitely complete category does. Infinity-topoi satisfy (1) for effective epimorphisms by topos descent [1, Section 6.1]. Elementary higher topoi provide another setting with appropriate descent and dependent-type structure [2]. Only covers and constructions actually supported by the chosen base are used.
Definition 1.2 (Predicate and realization). A predicate on is a monomorphism , equivalently a -truncated map. A certificate for is a lift over ; its space is empty or contractible. A realization family may instead have multiple inequivalent implementations or proof witnesses. A local section of that family is not automatically a global section.
Finite limits interpret conjunction and equality witnesses. Dependent products, universes, geometric realization, probability, and resource orders are additional structure when used. An infinity-topos supports the categorical constructions below; it does not by itself supply a scheduler, numerical model, communication channel, or correct implementation.
Definition 2.1 (Swarm specification). A swarm specification consists of a semantic base ; an architecture object ; a role family ; a local state family ; a complete configuration object ; typed ports and protocol data; a transition correspondence
and a predicate . Event labels, request identities, scheduler choices, queue contents, revisions, and environmental responses are retained in or whenever they affect the specified behavior. A witness in is a permitted directed step, not an identity path in .
When dependent products exist, a state component can be constructed as ; shared buffers and resources supply further factors. A fixed finite roster uses finite products. Transport of the dependent-product construction requires more than preservation of finite limits. Alternatively is supplied directly with its interpretation. No equivalence between these alternatives is assumed.
Definition 2.2 (Heterogeneous interpretation). If agent has its own semantic base , specify a common comparison base and a finite-limit-preserving functor , together with interpreted port maps and protocol agreements. For infinity-topoi such a functor can be the inverse image of a geometric morphism . The direction matters: the inverse image carries the agentโs specification into the comparison world. Arbitrary semantic worlds are not implicitly interchangeable.
Interactions occur after the required objects and maps have been interpreted in that common base. Modalities, resource annotations, or probabilistic enrichments must also be transported by specified structure maps if a claim involves them. Finite-limit preservation alone does not preserve every enrichment.
Remark 2.3 (Higher and directed structure). An operational Segal object can additionally encode coherent composition, with and . Primitive events map to its arrows. This structure is extra data [3]. A graph (2) already defines finite event paths, but is not a Segal object until identities, composition, and their coherence have been provided. Groupoid completion of operations would identify irreversible computation with reversible transport and generally changes the semantics.
For fixed finite agents , let be local execution witnesses. They can describe one step or a fixed finite horizon; mixing these interpretations requires an explicit timing adapter. For wires , choose signal types and component endpoint maps. Write , , and let collect the two ends of each wire.
Definition 3.1 (Wired behavior). The execution object of the network is
A generalized element of includes component executions and compatibility paths on every wire. Protocol constraints are imposed by . Shared-resource constraints belong here unless already present in the component contracts. External boundary maps turn into an open behavior.
Retain source and target readouts in the same diagram. A supplied complete-configuration interpretation then gives (2). Without this interpretation, the network is an open behavior, not yet a global state-transition model.
Theorem 3.2 (Composition and coherent replacement). Finite network constraints may be imposed in any order, with coherently equivalent results. A coherent equivalence of the complete component, port, and protocol diagram induces an equivalence of network execution objects, over fixed external boundaries.
Proof. For every test object , maps are precisely coherent cones satisfying all displayed component, wire, and protocol conditions. Successive pullbacks impose the same cone data regardless of order. The mapping-space universal property identifies each construction with the same finite limit; its space of limit cones is contractible. An equivalence in the relevant diagram infinity-category is preserved by the limit functor. Keeping the boundary cone in that diagram gives the equivalence over the external ports.
This is a finite-limit interpretation of established compositional systems methods [4,5]. It proves compatibility and invariance of the specified execution object, not nonemptiness, efficient execution, or physical realizability.
Definition 4.1 (Finite event path). For (2), define and, for ,
where the target of one step is identified with the source of the next. Endpoints and labels are retained. Homotopy pullbacks include compatibility witnesses, not just equal endpoint values. There is no claim that the alone form a simplicial object: an inner face would require composition of primitive events.
Proposition 4.2 (Temporal concatenation). For finite ,
using final and initial endpoints. The identifications are coherent under further subdivision.
Proof. A cone specifying composable events is the same as two cones for the first and last events, with identification of their shared state. This proves (5) on mapping spaces. Every parenthesization is a limit of the same path-incidence diagram, giving coherence. The case of a zero-length path uses the diagonal state interface.
Temporal subdivision retains every transition edge. Agreement only at a set of observed vertices cannot reconstruct a missing event. This is the discrete finite-path analogue of temporal sheaf composition [4]; it introduces no continuity or real-time bound.
Theorem 4.3 (Descent of swarm structure and traces). Let (1) hold. A coherent Cech descent datum for a swarm diagram in the slices descends to a diagram in . Its monomorphisms and finite-limit constraints descend. For a global diagram and every finite network or path construction ,
In an infinity-topos its resulting object also satisfies
Proof. Apply to (1), where indexes the specified swarm diagram. Functor categories preserve limits, so objects, maps, and higher coherence descend together. Being a limiting cone is invariant under equivalence of infinity-categories. Monomorphy is characterized by an equivalence of the diagonal with its self-pullback, hence is also detected by descent. Pullback between slices preserves finite limits, which gives (6). For an infinity-topos and colimits are universal; pulling that colimit back along gives (7). The space of a descended diagram with a specified identification to the datum is contractible, not its unrestricted automorphism space.
Equation (7) is contextual Cech reconstruction. It is not a limit of local objects in the ambient category, nor a statement about all hypercovers without further hypotheses. Pairwise agreements without the required higher coherence are not the datum in this theorem.
Definition 5.1 (Certified correspondence). With , a safety certificate is a map and a specified identification
It asserts that every specified transition starting in ends in . Restricting by a guard changes the allowed protocol and must be recorded as such.
Theorem 5.2 (Safety of finite executions). If (8) holds, paths whose initial state is in have every state in . Moreover
Proof. The source lift and provide both endpoint lifts. Their spaces are propositions because is monic, so forgetting the target lift has contractible fibers; this proves (9). Apply the same construction successively along the path-incidence diagram. Induction on the finite number of steps supplies all intermediate lifts, with the compatibility dictated by monomorphy.
Theorem 5.3 (Compositional guarded updates). Suppose is a finite intersection. A guarded update , with , preserves if, for every , there is a lift
Certificates suffice by restriction. A coherent frame equality supplies a lift when is pulled back from an unchanged component readout. If event correspondences all admit these lifts, their coproduct correspondence preserves whenever that coproduct exists and is stable under pullback.
Proof. The lifts in (10) have the same underlying target map to . The universal property of the intersection combines them into a lift to , giving (8) for the guarded update span. Pullback-stable coproducts identify the restriction of a coproduct of events with the coproduct of their restrictions; the component lifts assemble there. Theorem 5.2 supplies finite-path preservation.
Thus a local component proof needs certificates or frames for all affected global constraints. Two workers independently testing an available resource do not satisfy this rule for simultaneous allocation. Serializable commits, explicit ownership tokens, or a separate atomic arbitration relation are possible protocol choices, not consequences of (10).
Proposition 5.4 (Locality of predicate satisfaction). In an infinity-topos, if a generalized state satisfies after an effective epimorphic cover of its domain, it satisfies globally. For a fixed global transition correspondence, coherent local certificates of (8) descend; since their lift spaces are propositions, their existing overlap compatibility is unique.
Proof. For , form . A local lift factors the effective epimorphism through , so its image is all of and . For (8), the desired lift is a section of the monomorphism along the target map. Apply the same argument, or descent (1), on a covering pullback. Monomorphy gives uniqueness and all coherence.
A transition in (2) need not lie over the diagonal of . Its source and target architectures can differ. The complete state includes the role assignment and all outstanding obligations; retiring an agent, changing a model, and migrating a queue are explicitly typed transitions.
Definition 6.1 (Certified reconfiguration). A reconfiguration correspondence is admissible when its restriction to valid sources has a valid-target lift as in (8). Migration witnesses record the treatment of pending requests, shared resources, and externally visible behavior. If behavior preservation is claimed, supply a map or equivalence of the relevant execution diagrams as well. Admissible migration is weaker than behavioral equivalence.
Theorem 6.2 (Mixed execution safety). Interleaving certified agent, communication, scheduler, and reconfiguration steps preserves for every finite path, provided their combined correspondence satisfies the coproduct condition of Theorem 5.3.
Proof. Assemble the certificates by Theorem 5.3 and apply Theorem 5.2. Architecture changes are already coordinates of the complete state, so the induction does not require a constant roster.
Theorem 6.3 (Finite semantic transport). A finite-limit-preserving functor transports a supplied swarm diagram, its monic predicates, its certified correspondences, and every fixed finite network and path construction. In particular
with all component and endpoint objects interpreted by . A supplied Segal object remains Segal under degreewise application of .
Proof. Each displayed construction uses finite limits. Monomorphy is the diagonal pullback condition, which preserves. Apply to the certificate square (8). The Segal conditions are finite pullback equivalences in each degree. No limit over all degrees is taken.
Geometric inverse images supply such functors. The theorem interprets an already supplied ; it does not assert . Preservation of a combined coproduct, an unbounded population, or an infinite trace limit needs the corresponding additional comparison equivalence. Likewise descent-compatible interpretation requires preservation of the designated covers and their descent structure.
Proposition 7.1 (Local realizability does not select a global agent). In , let carry the swapping action. The map is an effective epimorphism, and its pullback along itself has a diagonal section. Yet it has no global section.
Proof. It is objectwise surjective on components and hence effective epimorphic. A global section is a homotopy fixed point of the discrete swapping action. Such a point would be fixed by the swap, and neither point is. The local diagonal section therefore has no coherent descent to a global section.
This models symmetric leader selection without symmetry-breaking data. It is distinct from Proposition 5.4: is a realization family, not a monomorphism.
Proposition 7.2 (Observations lose higher execution structure). Let and compare with , both with constant endpoints. Their endpoint image relations agree, but their one-step execution objects are inequivalent.
Proof. Both image relations are . However and . Thus equal observed endpoints do not satisfy Theorem 3.2โs diagram-equivalence hypothesis.
The distinction extends to every higher degree: for a nonzero abelian group and , choose with constant endpoints. Then and for . Any fixed finite truncation discards some such execution objects. The swarm specification therefore declares which higher witnesses it retains.
Proposition 7.3 (Truncation need not commute with wiring). In spaces, does not preserve all finite homotopy pullbacks.
Proof. For nontrivial discrete , . Its zero-truncation is , whereas the pullback of the three zero-truncated objects is . Their cardinalities differ.
Consequently retaining only sets of observation classes can alter a swarmโs compatibility witnesses. Higher semantics must specify which truncation is adequate and prove the needed comparison laws.
Countermodel 7.4 (Well-typed deadlock). A synchronous Boolean feedback contract has an empty execution set. Typing every port does not make the network object inhabited. A progress theorem needs a realization, enabledness, and scheduling assumptions in addition to finite-limit composition.
Countermodel 7.5 (Safety without progress). A two-state system has an idle self-loop at and a completion step . The predicate is preserved, but the infinite idle schedule never completes. Fairness or a well-founded rank is extra structure. Existence of a completing path is different from completion under every allowed scheduler.
Countermodel 7.6 (Left exactness has a finite scope). Let with its subspace topology and let be the sheaf of locally constant Boolean functions. Define a section that is zero only at , and let be constantly one. The two sections and of have different germs at zero: every neighborhood contains some . Each individual pair has the same germ there. The stalk functor therefore does not preserve this countable product, although it is a geometric inverse image and preserves finite limits. This prevents extending (11) to arbitrary infinite agent families by left exactness alone.
The companion uses sets for a three-agent swarm: a coordinator and workers . A configuration is , where is the architecture revision, is the active roster, is the exclusive resource owner, and is the lease revision. The predicate is
The owner type enforces exclusivity. There are 24 valid states. The 17 attempted events are activation, retirement, and acquisition for either worker; completion for either worker with a reported revision in ; and reconfiguration to a revision in .
Acquisition requires an active worker and a free resource. Completion requires matching ownership and revision. Retirement requires that the worker hold no lease. Reconfiguration requires a free resource and a strictly larger revision. Failed events retain the state and a rejection observation. These guards supply certificates for (12); the completion guard also specifies protocol compliance beyond that invariant.
The executable checker independently enumerates legal pre/post conditions and compares them with an imperative interpreter for all 408 state/event pairs: 120 accepted and 288 rejected. It checks 408 complete role-renaming comparisons, 125,280 initial-state/event-word pairs through length three, and 493,296 temporal subdivision cases. Every resulting state is valid. Negative controls detect simultaneous double allocation, retirement of an owner, revision changes with a live lease, and acceptance of a stale completion. The last defect can leave (12) true while violating the specified observation relation. Results and bounds are recorded separately; these finite checks do not formalize the general infinity-categorical proofs.
This instance interprets categorical structure in a finite ordinary model. It is not an implementation of an arbitrary infinity-topos, a distributed consensus protocol, or a verified deployment of language-model agents.
The foundational ingredients are standard descent, finite-limit composition, dependent families, and Segal objects [1-5]. The proposed contribution is their assembly into an agent-swarm contract that explicitly retains scheduler effects, cross-agent constraints, higher execution witnesses, and architecture-changing certificates. The preceding higher-lens framework [6] supplies a compatible interface formulation; the present treatment makes directed correspondences and heterogeneous interpretations explicit.
Probabilistic kernels, learning objectives, physical resource accounting, fairness, faults, and unbounded populations need additional supplied structures and proofs. A semantics-preserving compiler must relate concrete state, observations, and effects to this specification; abstract existence is not that relation. The written proofs have not been checked by a proof assistant. The draft remains open to author and independent mathematical review.
Automation disclosure. OpenAI ChatGPT/Codex assisted with the framework, written proofs, reference checking, finite checker, and typesetting. The Anonymous byline is provisional for author review. No journal submission or independent review is asserted.