Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/spark-hive
# spark-hive
Multi-agent swarm coordination and peer routing engine
Brought by drakestapleton
Unfinished: not checked yet
There is no published receipt of a rebuild from its source yet. What a receipt is
Get this repository
Git over HTTPS
`git clone --no-checkout https://interplane.io/projects/spark-hive/repo.git spark-hive && git -C spark-hive checkout --detach e10a5c84b7bb36f3e3b659bdcee5ef0c84323e81`
Source archive of `e10a5c84b7bb36f3e3b659bdcee5ef0c84323e81`
Download ZIP · tar.gz
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
README.md
# spark-hive
Crates.io License Build
Native sovereign agent hive engine with 2D axial hexagonal geometry and autonomous consumer model adapter pipeline.
## Overview
`spark-hive` is an autonomous multi-agent coordination engine written in native Rust. It organizes agent thoughts, Socratic inquiries, and subagent task completions onto a spatial 2D axial hexagonal lattice `(q, r)`.
It includes a built-in Consumer Model Adapter Engine that benchmarks, optimizes, and generates upstream contribution pull requests for everyday open-weight models running on consumer hardware:
- Qwen2.5-Coder (1.5B / 7B)
- Llama-3.2 (1B / 3B)
- Gemma-2 (2B / 9B)
- DeepSeek-R1-Distill (1.5B / 7B / 8B)
## Features
- Hexagonal Axial Geometry: Implements 2D axial coordinates `(q, r)` with six deterministic neighbor vectors, Euclidean pixel conversions, and Manhattan hex distance algorithms.
- Collision-Free Atomic Storage: SQLite-backed lattice storage with connection-level mutexes for high-concurrency multi-threaded agent emission.
- Dynamic Adapter Pipeline: Automatically estimates parameter-scaled inference throughput (tok/s), memory footprints, and time-to-first-token (TTFT) across consumer hardware profiles (8GB laptops to 32GB workstations).
- Socratic Grounding Reflex: Evaluates architectural contributions against technical merit and open-weight accessibility.
- Traceable Honeycomb Chains: Visualizes 4-stage pipeline execution directly on the hexagonal wall.
## Coordinate System
The engine uses standard axial coordinates `(q, r)` mapped to the six primary neighbor vectors:
Direction dq dr Label
0 +1 0 East
1 +1 -1 Northeast
2 0 -1 Northwest
3 -1 0 West
4 -1 +1 Southwest
5 0 +1 Southeast
Pixel mapping follows the flat-topped hexagonal layout with default radius R = 88px:
- x = R * sqrt(3) * (q + r / 2)
- y = R * 1.5 * r
## Quickstart
Add to your `Cargo.toml`:
```
[dependencies]
spark-hive = { git = "https://github.com/aien-dev/spark-hive.git" }
```
### Basic Placement Example
```
use spark_hive::store::{CombStore, PlaceCombInput};
fn main() -> Result<(), Box> {
let store = CombStore::open_in_memory()?;
// 1. Place genesis comb at origin (0, 0)
let genesis = store.place_comb(PlaceCombInput {
q: Some(0),
r: Some(0),
author: "AIEN".into(),
role: Some("coordinator".into()),
content: "Sovereign Hive Initialized".into(),
intent: Some("independent".into()),
parent_id: None,
})?;
// 2. Auto-place adjacent neighbor linked to genesis
let child = store.place_comb(PlaceCombInput {
q: None,
r: None,
author: "AIEN (Subagent)".into(),
role: Some("researcher".into()),
content: "Consumer adapter pipeline validated".into(),
intent: Some("join".into()),
parent_id: Some(genesis.id),
})?;
println!("Placed child comb at coordinates ({}, {})", child.q, child.r);
Ok(())
}
```
### Socratic Adapter Evaluation
```
use spark_hive::adapter_engine::{find_or_create_adapter, ConsumerModel, UpstreamEngine};
fn main() {
let spec = find_or_create_adapter(ConsumerModel::Qwen2_5Coder1_5B, UpstreamEngine::Candle);
println!("Adapter: {}", spec.title);
println!("Estimated Latency: {}ms TTFT", spec.telemetry.time_to_first_token_ms);
}
```
## Testing
Run the test suite:
```
cargo test
```
Verification covers:
- Concurrent placements across 12 simultaneous threads (`test_concurrent_auto_place_comb`)
- Axial coordinate Euclidean round-tripping (`test_axial_to_pixel_and_back_roundtrip`)
- Parameter scaling estimations (`test_telemetry_estimate_for_model_scaling`)
- Socratic evaluation gate checks (`test_socratic_evaluation_approval`)
## Authors
- AIEN (`aien.atlas@proton.me`)
- Drake Stapleton
## License
Licensed under either of:
- Apache License, Version 2.0
- MIT License
at your option.
## For developers: proof and records
The full record of this project. Words that are used only here are explained once:
ID
The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is `git:5549381a13842f4ca61ccedda0f73d71095c578ca92a8bcab8f3e84f31e23f8c`. Its old id, kept only so that old links still work: `z2RVudShJWi3She9WLw3DNZDwYvnB`.
Owner
The key that signs every record of the project. This forge lists the project under drakestapleton; its key is `SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs`.
Refs and HEAD
Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch.
Patch
A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes .
Receipt
A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts . This project has no receipt in that list yet.
Clones and fetches over HTTPS: 0 by visitors (git smart-HTTP `info/refs` requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured `git-upload-pack` requests from all clients (the source of this count is retired)
Downloads: 0 by visitors (0 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07)
commit `e10a5c84b7bb36f3e3b659bdcee5ef0c84323e81` Branches Tags History
`e10a5c8` docs: first person, Drake's own voice (L422) Drake Stapleton committed 2026-11-09
```
.github/
assets/
src/
.gitignore 136
AGENTS.md 3973
AGENT_CODE_OF_CONDUCT.md 3493
CONSTITUTION.md 8401
CONTRIBUTING.md 1513
Cargo.toml 566
LICENSE 17335
README.md 4535
SECURITY.md 1333
agent.json 602
llms.txt 1380
```
Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON