Skip to main content

A topological and physical framework for continuous multi-agent systems.

Project description


title: "Accretive Computing: A Topological and Physical Framework for Continuous Multi-Agent Systems" author: "Chinu Subudhi" date: "July 2026"

Accretive Computing: A Topological and Physical Framework for Continuous Multi-Agent Systems

1. Introduction and Core Concepts

Traditional Multi-Agent Systems (MAS) rely on hard-coded communication graphs, state machines, or basic message queues. They handle agents as disparate software components passing discrete text strings.

Accretive Computing proposes a radical paradigm shift: treating AI agents as physical wave functions in a continuous, high-dimensional topological space. Instead of discrete rule-based routing, agent interactions are governed by physics principles—specifically, the laws of quantum superposition, wave interference, and thermodynamic free-energy minimization.

When agents "think" or generate embeddings, they are projected into this continuous space. If their topological footprints overlap constructively, they are naturally drawn into conversation. If they exhibit destructive interference, they debate. The system orchestration emerges organically from the physics engine.


2. Theoretical Framework and Mathematics

2.1 The Agent Wave Function

In the original 3-dimensional prototype, an agent $A$ was modeled as an oscillating field source at position $\mathbf{p} = (x, y, z)$:

$$ \Psi_A(\mathbf{r}, t) = A \cdot \exp(-|\mathbf{r} - \mathbf{p}|) \cdot \exp(i(\omega t + \theta)) $$

Where:

  • $A$ is the amplitude of the agent's influence.
  • $\mathbf{p}$ is the physical coordinate.
  • $\omega$ is the frequency of the agent's thought-cycle.
  • $\theta$ is the semantic phase angle.

2.2 The N-Dimensional Latent Topology

To bridge this physical model with modern Large Language Models (LLMs), we expanded the substrate into $N$-dimensional semantic space (e.g., $N=768$). An LLM's embedding vector directly becomes the coordinate vector $\mathbf{x} \in \mathbb{R}^N$.

Because integrating a continuous field over 768 dimensions via Monte Carlo is computationally intractable, we derive an analytical overlap integral using a Gaussian Radial Basis Function (RBF) kernel combined with phase alignment:

$$ \mathrm{Overlap}(A, B) = A_A A_B \cdot \exp\left(-\frac{1}{2} ||\mathbf{x}_A - \mathbf{x}_B||^2\right) \cdot \cos(\theta_A - \theta_B) $$

2.3 Thermodynamic Free Energy Minimization

The goal of the multi-agent system is to resolve "semantic tension" and reach a ground state of consensus. We define the Free Energy $F$ of the substrate as the sum of all pairwise mismatches (1 minus overlap) minus a dissipation constant $\delta$:

$$ F(\Theta) = \sum_{i} \sum_{j > i} \left( 1 - \mathrm{Overlap}(A_i, A_j) - \delta \right) $$

The physics engine (ContinuousSubstrate) steps the simulation forward in time by applying continuous Gradient Descent on the phase angles $\theta$:

$$ \frac{\partial \theta_i}{\partial t} = -\alpha \frac{\partial F}{\partial \theta_i} $$

As agents communicate and execute tools, their phase $\theta$ dynamically shifts (creating a semantic spike). The engine then iteratively drags the phases of interacting agents toward alignment (consensus).


3. Detailed Implementation and Design Decisions

The framework is implemented as a hybrid C++/Python architecture to achieve both high-level semantic flexibility and high-performance physical simulation.

3.1 C++ Core (MicroAgent, LatentMicroAgent, MacroAgent)

  • Agent Base Class: Provides a purely virtual calculate_overlap_with method, allowing polymorphic execution of 3D and N-D agents simultaneously.
  • LatentMicroAgent: Implements the $N$-dimensional Gaussian overlap formula. It stores the Eigen VectorXd embedding generated by the LLM.
  • MacroAgent: Implements recursive aggregation. A MacroAgent represents a cluster of MicroAgents, exposing their center-of-mass to the outside system.

3.2 O(N log N) Spatial Partitioning

A naïve pairwise energy calculation is $O(N^2)$, which fails to scale for massive agent swarms.

Design Decision: We implemented a 1-level spatial clustering approximation.

  1. Agents are sorted along their primary principle component (0th dimension) in $O(N \log N)$ time.
  2. They are chunked into blocks of size $B \approx \sqrt{N}$.
  3. Within a cluster, exact pairwise overlaps are computed.
  4. Between clusters, overlap is approximated by computing the distance between the cluster centroids, effectively modeling a fast-multipole expansion.

3.3 Python Semantic DSL (LatentSemanticAgent)

The C++ core is exposed to Python via PyBind11. The LatentSemanticAgent bridges the google.genai LLM API with the LatentMicroAgent.

  • Stateful Memory: It manages a genai.chats instance, manually wiring function_calls and function_responses into the history array to maintain perfect memory during tool execution.
  • embed_thought(): Hashes and projects the agent's current task into the $N$-dimensional topology.

3.4 Physics-Driven Orchestration

This is the framework's "Killer Feature." Traditional frameworks rely on hardcoded routing (e.g., agent1.send(agent2)).

In Accretive Computing, the PhysicsOrchestrator runs a continuous tick() loop. It evaluates the spatial overlap of all agents in the environment. If two agents overlap past a defined threshold (i.e., they are thinking about the same semantic concepts), the orchestrator organically triggers a communication event between them. The message payload is asynchronously deposited into their inbox, which is dynamically injected into their next prompt generation.

4. Conclusion

Accretive Computing successfully maps the abstract concept of multi-agent dialogue into a rigorous, computable physical space. By blending topological algorithms, $O(N \log N)$ approximations, and LLM embedding mechanics, it provides the first completely organic, physics-driven orchestration layer for Artificial Intelligence.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accretive_mas-0.1.0.tar.gz (128.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

accretive_mas-0.1.0-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

accretive_mas-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

accretive_mas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

accretive_mas-0.1.0-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

accretive_mas-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

accretive_mas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

accretive_mas-0.1.0-cp310-cp310-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10Windows x86-64

accretive_mas-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

accretive_mas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

accretive_mas-0.1.0-cp39-cp39-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.9Windows x86-64

accretive_mas-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

accretive_mas-0.1.0-cp39-cp39-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file accretive_mas-0.1.0.tar.gz.

File metadata

  • Download URL: accretive_mas-0.1.0.tar.gz
  • Upload date:
  • Size: 128.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for accretive_mas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b26a213e2ff25aec4c9af9d38ab30fddd1e3fac713b110d853868e3ef72a223c
MD5 4a40a57e9d67be2cf3c85ef81439233a
BLAKE2b-256 d7dce46b158ef1fcd8dd1cc0fde270660e5baa29f4ba03a2bd91c55e0c336571

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0.tar.gz:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eec50dda6ba120c3041f8c3d2705332a1e7a05647c66f97995ecc5d1cd3dc7ed
MD5 6cfb8054d4237c3f95bbb15c043585d3
BLAKE2b-256 a8425495768173ccd8b03b6d24ec65310c61f2e9393e9ed079696472237e43ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3afc594268ea35cd5b548bf3d0b7953af5a9bf0ec63d9e9e4c996de8b11e1b17
MD5 06275353628cd4627ea3ecae70109311
BLAKE2b-256 aeb44db4958634190c22a427b20db91f6139680a27648f4354cd45895e795045

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 420473953c0b4454b1cae1d6a72506c477fd541ef979cf7aeeb8585c43021fe1
MD5 b3b2d3b3f47e115dbbcd0b84d0dc63fb
BLAKE2b-256 92c054714123a7d7b38df97c0f68f79129834c9fbb5bb4eca1aee01827dd42a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0e52e62df2469ec5ba9a4c17041bcbe46815254ae451a2e6abcd6eee7717eef3
MD5 1081be65490b780664c561bd09da3bbc
BLAKE2b-256 5ef244283ccfb66f5ba6fd33c48a9c1a5142b3c6b5051906e4b53efd9e5410b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 808c80169813d7c18911efd97d3edce003a6a9fb5a56efa8107467a6a7e54a7b
MD5 9fb782c06465c2a976ae4aec69516441
BLAKE2b-256 d73a7952d86f7808449607f0124be5ede5cabbe9d3024e8bdcd827b5e41836d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3e7da1ddbf7ac15a97710ed7f021d4c255feed0c2dbe50f395a6bf4e5d8c390
MD5 9495a436df5541fbd01da20d7f8310c0
BLAKE2b-256 e5605141a6f4d06874242d470cd24571b5b101c5b39539dee03fdd5d9e88fc75

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3ec7fbe7e1c0e58dc875619a81cbf0fb5292e0c8ac3ec1bd8b2d5d0bfa963ed8
MD5 c6c2679e15735ccf35966399c7befa05
BLAKE2b-256 34b25af312af93f71b2685ad2452dfa834919804ecf3f9ca367d97908fe6b629

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 85f273a163eb3fabaa6caa67fcc3d495ca4cdf8a02382e876775dc9821fc8b11
MD5 46e18ab562f287dacb930259c7d4e80c
BLAKE2b-256 5b10397e6d81b8efac20df2fa8b43de4114282d4b2619a0edcd629cdb488922f

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4065fcb21d53db862bfc39e5e1d4bf98d4687fd76355e6e367c556ef7e6e6a45
MD5 c6a852940bfe6edf15ecd70c30ce181a
BLAKE2b-256 b9cc6cc5eb961b8899cb42fd92a7146d7a23a3093f70e86c7850811b7903501b

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 29ae84b3e111595d18aa2924537c692db041f997e6d06305cd84898f7eaa084b
MD5 dee56092ed19022478a89b21dc35d570
BLAKE2b-256 94bd1dc86dd13a7abe92f0d5ac015e913cac089a24445a9b51d9c19a8202b703

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp39-cp39-win_amd64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 18c71865d174603aa25aad9e858c5516970a43e03bc4b2a3004ce4c8ede53c61
MD5 652bcf0a899803910012cb9a5fede3ad
BLAKE2b-256 94cbc662575ac9b13cb2646d25140f8db6564aa16842d01f1cccf56b12748d05

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accretive_mas-0.1.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for accretive_mas-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8ee53d6e636d144d75692861f1a9ba8f0c3f430a64013a0faccc7c97b8c79c6
MD5 fdf809b8918d9811eb6252e9d4bb75af
BLAKE2b-256 25c4210a20df34b72a7f87d7048be4601b5153e5209b43f6968ffa44e757e187

See more details on using hashes here.

Provenance

The following attestation bundles were made for accretive_mas-0.1.0-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: publish.yml on chinu3d/accretive-computing-mas-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page