🦀

ALU GUBI

for GOs & NGOs

Conditioned by shyamalschandra/alu_gubi · Binary CLI · Homebrew · CCSL-1.0a

ALU GUBI for GOs & NGOs

Gamified Universal Basic Income for GOs and NGOs. This site ships the industrial ALU GUBI CLI — encrypted binaries that implement the public charter at shyamalschandra/alu_gubi, including a stream-agnostic herd pipeline over PlankServices.

Commandments

11

Herd scales

∞ · 10↑↑

Pipe sinks

5

License

CCSL-1.0a

Project of record

The 11 Commandments

This industrial CLI implements the public ALU GUBI charter for governments and NGOs. Every install path, driver tour, and CoL/adversity flow below is conditioned by the 11 Commandments of shyamalschandra/alu_gubi.

  1. 01

    Cost of Living

    Find minimum and maximum CoL for every ZIP code in the USA.

  2. 02

    Adversity Score

    Use Bindi to determine actual CoL from adversity — not averages alone.

  3. 03

    Restricted coupons

    Issue ALU GUBI coupons that cannot fund excise goods (alcohol, drugs, smoking).

  4. 04

    Bindi unlocks

    Unlock quality-of-life tiers from lossless attested input → output.

  5. 05

    Hotel & vacations

    Earn travel rewards from work achieved without disturbance.

  6. 06

    Personalized gifts

    Friend gifts that are NFT-backed and AI-generated.

  7. 07

    Universal library & law

    A shared corpus of library knowledge and law for every citizen.

  8. 08

    Point systems

    Gym, dance, biking, education, books, library credits, textbooks, lifelong learning, VC funding.

  9. 09

    Book-It competition

    Gamified reading that gives back to Goodreads and bookstore comments.

  10. 10

    Fair elections

    Gamified elections with advertising coupons so the market is fair and equal.

  11. 11

    Civic duty

    Citizen policing, government, and military paths while still meeting CoL.

The 11 Commandments: github.com/shyamalschandra/alu_gubi · Operators install the encrypted CLI via Homebrew tap shyamalschandra/alu-gubi-cli.

Chief Engineer's Notes

Why ALU GUBI exists

After I read Lawrence Lessig's Free Culture in 2005 and Greg Palast's The Best Democracy Money Can Buy in 2004, these two books didn't give me a side project — they conspired in my head for years. Palast documented how money, influence, and cronyism hollow out what U.S. government is supposed to deliver for ordinary people. Lessig showed me that fairness isn't only a ballot-box problem; it is also an architecture problem — who controls code, culture, and the infrastructure people depend on every day.

I am sick of corrupt cronyism in U.S. government. I am not building another app that asks citizens to trust the same invisible gatekeepers. I want a fair, automated system ALU GUBI for gamified Universal Basic Income for GOs and NGOs — rules you can verify, adversity-adjusted math you can audit, and outcomes that do not depend on favors you cannot see. That charter lives in public at shyamalschandra/alu_gubi.

ALU GUBI CLI is the industrial face of that idea: encrypted one-way binaries, explicit Homebrew trust, hash-linked attestations, and operators who install verifiable infrastructure — not another narrative layer on top of a rigged game. Everything you install from this site is conditioned by the 11 Commandments of alu_gubi, because I have seen what happens when trust is for sale.

Shyamal Chandra

Chief Engineer

Documentation

PDF preview — industrial report

Industrial-track technical report covering architecture, encrypted binary distribution, Homebrew supply chain, GubiMoby, GubiVault, dual Ollama tiers, gamified UBI domain model, and the P2P agent mesh scalability roadmap — no source code listings.

ALU GUBI CLI — Industrial-Track Technical Report

16 pages · one-column · embedded preview · CCSL-1.0a

Preview not loading? Open the PDF in a new tab

PDF URL: https://shyamalschandra.github.io/alu-gubi-cli/docs/alu-gubi-cli.pdf

Documentation

PDF preview — reference manual

Operator reference for Homebrew install, CLI/driver commands, REST routes, PlankServices, herd computing (googolplex / infinity / finite → RNG JSON tokens), stream-agnostic --pipe sinks, and mathi-alu-gubi queues. Companion to the industrial technical report.

ALU GUBI — Operator Reference Manual (RM-GUBI-2026-01)

RM-GUBI-2026-01 · embedded preview · CCSL-1.0a

Preview not loading? Open the PDF in a new tab

PDF URL: https://shyamalschandra.github.io/alu-gubi-cli/docs/reference_manual.pdf · LaTeX: docs/reference_manual.tex

Live capture · Rio terminal · animated GIF

Herd swarm viz playing in Rio

The fog-herd token shower as it runs in a Rio / Ghostty 32-bit truecolor terminal — random-walk Knuth LCG shards, Plank fog mesh, never materializing the virtual population. The loop below is a pure-Rust animated GIF of that swarm, framed as a Rio window.

rio · herd swarm viz · alu-gubi-demo-media

Live GIF
$ cargo run -p alu-gubi-demo-media --release -- --random-walk
Rio terminal herd swarm viz — animated fog-herd random-walk token shower

32-bit ▀ · 16:9 · random-walk swarm · googolplex / ∞ / finite

Axes: X fog shard index → · Y stream time / token descent ↓ · same model as herd-stream / alu-gubi-cli vizGIFPosterHerd how-to

Replay live in Rio: cargo run -p alu-gubi-demo-media --release · Driver path: alu-gubi-driver herd-stream --random-walk --dry-run · Regenerate: ./scripts/render-demo-media.sh

ALU GUBI GitHub Pages homepage demo screenshot
Pages homepage · live capture · shyamalschandra.github.io/alu-gubi-cli
ALU GUBI PlankServices section with herd graph and citations
PlankServices · stream-agnostic herd pipe · #plank

How-to · herd demo simulator

Run the herd stream demo — step by step

Walk through the same simulator shown in demo media: dry-run the real-time TUI, tee NDJSON to a file, then go live with plank-ingest and herd-subscribe. Virtual scales googolplex / infinity / finite never materialize individuals — only compact RNG JSON tokens.

  1. 01

    Install the driver

    any

    Same Homebrew tap as the server CLI. Skip if alu-gubi-driver is already on PATH.

    brew tap shyamalschandra/alu-gubi-cli
    brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver
    brew install alu-gubi-driver
    alu-gubi-driver herd-stream --help
  2. 02

    Dry-run the real-time TUI

    T1

    No API needed. Tick-driven RNG tokens at googolplex scale (never materializes people). Keys: q quit · space pause · [/] chunk · -/+ tick.

    alu-gubi-driver herd-stream --scale googolplex --dry-run
  3. 02b

    Plank viz token shower

    T1

    alu-gubi-cli viz — live particle shower for the Plank viz sink (same aesthetic as the demo movie). Keys: q quit · space pause · d toggle dry-run.

    alu-gubi-cli viz --dry-run
  4. 03

    Try other virtual scales

    T1

    infinity = unbounded virtual herd · finite = legacy 100B cover. Still O(batch) compact tokens only.

    alu-gubi-driver herd-stream --scale infinity --dry-run
    alu-gubi-driver herd --scale finite --dry-run --raw -g 4 --batch-size 8 -r 1
  5. 04

    Tee NDJSON to a file (no TUI)

    T1

    Stream-agnostic PipelineItem — one NDJSON line per tick batch. Open the file to inspect tokens.

    alu-gubi-driver herd-stream --dry-run --no-tui \
      --pipe file:///tmp/herd-demo.ndjson \
      --duration 5 -g 8 --chunk 2 --tick 40
    head -1 /tmp/herd-demo.ndjson | python3 -m json.tool
  6. 05

    Start the API (live path)

    T1

    Leave this running. Health check should return {"status":"ok"}.

    alu-gubi-cli serve
    # other terminal:
    curl -s http://127.0.0.1:8080/health
  7. 06

    Emit into Plank (sealed pages)

    T2

    plank-ingest POSTs batches; server seals them into Keystone-inspired enclave pages (AES-256-GCM + homomorphic seal).

    alu-gubi-driver herd-stream --scale googolplex --pipe plank-ingest --no-tui --duration 8 -g 8 --chunk 4 --tick 30
  8. 07

    Subscribe over NDJSON or SSE

    T3

    Same --pipe sinks as emit. Or curl the HTTP stream while step 06 is running.

    alu-gubi-driver herd-subscribe --format ndjson --pipe stdout --max-messages 5 --raw
    # or SSE:
    curl -N 'http://127.0.0.1:8080/v1/plank/herd/stream?format=sse'
  9. 08

    Confirm herd status + watch the movie

    any

    Status JSON lists scales, pipe options, and citations. Demo media on the site shows the same simulator UX.

    curl -s http://127.0.0.1:8080/v1/plank/herd/status | python3 -m json.tool | head -40
    open 'https://shyamalschandra.github.io/alu-gubi-cli/#demo-media'

Copy the whole walkthrough

Comments mark terminal splits. After install, steps 2–3 work offline; steps 5–7 need alu-gubi-cli serve.

# === Herd demo simulator — step by step ===
# 1) Install (once)
brew tap shyamalschandra/alu-gubi-cli
brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver
brew install alu-gubi-driver

# 2) Dry-run TUI (q to quit)
alu-gubi-driver herd-stream --scale googolplex --dry-run

# 2b) Plank viz token shower
alu-gubi-cli viz --dry-run

# 3) File pipe (no TUI)
alu-gubi-driver herd-stream --dry-run --no-tui --pipe file:///tmp/herd-demo.ndjson --duration 5

# 4) Live path — Terminal 1
alu-gubi-cli serve

# 5) Live path — Terminal 2 (emit → Plank)
alu-gubi-driver herd-stream --scale googolplex --pipe plank-ingest --no-tui --duration 8

# 6) Live path — Terminal 3 (subscribe)
alu-gubi-driver herd-subscribe --format ndjson --pipe stdout --max-messages 5 --raw

Dry-run first

TUI + file pipe need no API

Then go live

serve → plank-ingest → subscribe

Same --pipe

stdout · tcp · unix · file · plank-ingest

One-way binary distribution

Install via Homebrew

Version 0.1.0 — ML-KEM-768 + ML-DSA-65 hybrid encrypted releases under CCSL-1.0a. Install only through the trusted tap; no direct binary or formula downloads on this page.

Post-quantum: ML-KEM-768 key wrap · ML-DSA-65 signed manifest · AES-256-GCM payload

01brew tap shyamalschandra/alu-gubi-cli
02brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli
03brew install alu-gubi-cli
04brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver
05brew install alu-gubi-driver

Server CLI

alu-gubi-cli

Encrypted stack binary — API, Moby, Ollama, coupons, points, Bindi.

brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli && brew install alu-gubi-cli

API driver

alu-gubi-driver

Thin REST client for the showcase tour (demo).

brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver && brew install alu-gubi-driver

Tap: shyamalschandra/alu-gubi-cli · ML-DSA-65 signed release envelope · install via Homebrew only

11 COMMANDMENTS ◆ GOS AND NGOS ◆ STREAM-AGNOSTIC PIPE ◆ GOOGOLPLEX HERD ◆ INFINITY SCALE ◆ KEYSTONE ENCLAVE ◆ MOBY RUNTIME ◆ GUBIVAULT KV2 ◆ GEMMA3 AGENTIC ◆ LLAMA3 GENERATIVE ◆ HOMOMORPHIC SEAL ◆ IN-MEMORY SQL ◆ HERD-STREAM ◆ HERD-SUBSCRIBE ◆ DRIVER LIVE ◆ ASYNC REAL-TIME ◆ PLANKSERVICES ◆ EDGE ROSOUT ◆ CCSL-1.0a11 COMMANDMENTS ◆ GOS AND NGOS ◆ STREAM-AGNOSTIC PIPE ◆ GOOGOLPLEX HERD ◆ INFINITY SCALE ◆ KEYSTONE ENCLAVE ◆ MOBY RUNTIME ◆ GUBIVAULT KV2 ◆ GEMMA3 AGENTIC ◆ LLAMA3 GENERATIVE ◆ HOMOMORPHIC SEAL ◆ IN-MEMORY SQL ◆ HERD-STREAM ◆ HERD-SUBSCRIBE ◆ DRIVER LIVE ◆ ASYNC REAL-TIME ◆ PLANKSERVICES ◆ EDGE ROSOUT ◆ CCSL-1.0a

Homebrew 6+ tap trust

Install in five beats

Tap shyamalschandra/alu-gubi-cli, trust each formula, then install the encrypted CLI and driver. No direct formula URLs or binary downloads on this site.

01brew tap shyamalschandra/alu-gubi-cli
02brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli
03brew install alu-gubi-cli
04brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver
05brew install alu-gubi-driver

One command — install and run API

Or paste this one-liner to tap, trust, install, start Ollama, pull models, and run the API:

brew tap shyamalschandra/alu-gubi-cli && brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli && brew install alu-gubi-cli && alu-gubi-cli moby-up -d && alu-gubi-cli ollama-pull && alu-gubi-cli serve

Operator guide

How to use the binaries

Step-by-step workflow for the encrypted alu-gubi-cli binary — install via Homebrew, bootstrap Ollama, run the REST API, and operate citizens, coupons, points, and agent quests. For the herd stream demo simulator, see the dedicated herd how-to. No source build required.

One command — install and run API

Paste this single line into Terminal on macOS arm64. It taps Homebrew, trusts the formula, installs the binary, starts Ollama, pulls models, then runs the API on http://127.0.0.1:8080 (the last step keeps running).

brew tap shyamalschandra/alu-gubi-cli && brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli && brew install alu-gubi-cli && alu-gubi-cli moby-up -d && alu-gubi-cli ollama-pull && alu-gubi-cli serve

In a second terminal after serve is up: curl -s http://127.0.0.1:8080/health → expect {"status":"ok"}

API driver · complete install map

Server in Terminal 1. Driver in Terminal 2.

The visual guide is downloadable. The matching commands below are real text, so every step can be copied exactly. Install both binaries with Homebrew from tap shyamalschandra/alu-gubi-cli — both use the ML-KEM-768 hybrid envelope.

Four-step guide to install ALU GUBI CLI, start the API, and run the encrypted driver
Visual reference · use the copy buttons below for terminal-safe textOpen full sizeDownload PNGDownload SVG
01

Install the server CLI

Homebrew installs the encrypted alu-gubi-cli server binary.

brew tap shyamalschandra/alu-gubi-cli
brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli
brew install alu-gubi-cli
02

Install the API driver

Same tap — trust and install alu-gubi-driver (also linked as gubi-driver).

brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver
brew install alu-gubi-driver
03

Start the local runtime

Start Ollama through GubiMoby and pull both default models.

alu-gubi-cli moby-up -d
alu-gubi-cli ollama-pull
04

Terminal 1: start the API

Leave this terminal open. The REST API listens on 127.0.0.1:8080.

alu-gubi-cli serve
05

Terminal 2: run the driver

Continuous ratatui live tour (or `demo` for one-shot panels). q quits.

alu-gubi-driver live --zip 94102 --display-name "Demo Citizen"

Copy every step

The final two commands belong in separate terminals; comments in the copied script mark the split.

# Install the encrypted server CLI
brew tap shyamalschandra/alu-gubi-cli
brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli
brew install alu-gubi-cli

# Install the encrypted API driver (same tap)
brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver
brew install alu-gubi-driver

# Start the local runtime
alu-gubi-cli moby-up -d
alu-gubi-cli ollama-pull

# Terminal 1: keep the API running
alu-gubi-cli serve

# Terminal 2: continuous live TUI (q to quit)
alu-gubi-driver live --zip 94102 --display-name "Demo Citizen"

After install, see Driver UX for the live tour and PlankServices for the stream-agnostic herd pipeline.

01

Install the encrypted binaries

Homebrew tap + trust for alu-gubi-cli and alu-gubi-driver. No source build.

  1. brew tap shyamalschandra/alu-gubi-cli

    Add the public tap

  2. brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli

    Trust the signed server formula

  3. brew install alu-gubi-cli

    Install the encrypted server CLI

  4. brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-driver

    Trust the signed driver formula

  5. brew install alu-gubi-driver

    Install the encrypted API client

  6. alu-gubi-cli --help && alu-gubi-driver --help

    Confirm both binaries are on PATH

02

First-time stack bootstrap

Bring up Ollama, pull models, apply schema, start the API.

  1. alu-gubi-cli ui

    Dashboard — check Moby / Ollama / vault status

  2. alu-gubi-cli moby-up -d

    Start Ollama via GubiMoby (no Docker Desktop)

  3. alu-gubi-cli moby-ps

    Confirm the runtime is running

  4. alu-gubi-cli ollama-pull

    Pull llama3.3 + gemma3:1b models

  5. alu-gubi-cli migrate

    Apply in-memory SQLite schema

  6. alu-gubi-cli serve

    REST API on http://127.0.0.1:8080

03

Verify the API is live

In a second terminal while serve is running.

  1. curl -s http://127.0.0.1:8080/health

    Expect {"status":"ok"}

  2. curl -s http://127.0.0.1:8080/v1/col/summary | head

    Cost-of-living summary

  3. curl -s http://127.0.0.1:8080/v1/agents/models

    Dual-model Ollama config

04

Run a full demo in one shot

Citizen, KYC, CoL, coupons, points, Bindi attestation, and agent quest.

  1. alu-gubi-cli automate --moby-up --pull-models --zip 94102 --display-name "Demo Citizen"

    Prints citizen_id and summary JSON — save the UUID

  2. alu-gubi-cli serve

    Start HTTP access for integrations and agents

  3. alu-gubi-cli agent-quest {uuid} --zip 94102 --domain Gym

    Replace {uuid} with citizen_id from automate output

05

Herd pipeline (stream-agnostic)

Emit compact RNG tokens at googolplex / infinity / finite scale, tee to any --pipe sink, subscribe over NDJSON or SSE.

  1. alu-gubi-driver herd-stream --scale googolplex --dry-run

    Real-time TUI (q quit · space pause) — never materializes the population

  2. alu-gubi-driver herd-stream --no-tui --pipe plank-ingest --scale googolplex

    Ingest into Plank; batches seal into Keystone-inspired enclave pages

  3. alu-gubi-driver herd-subscribe --format ndjson --pipe stdout

    Same --pipe sinks as emit: stdout · tcp · unix · file · plank-ingest

  4. curl -N 'http://127.0.0.1:8080/v1/plank/herd/stream?format=ndjson'

    HTTP NDJSON (or format=sse) over /plank/herd/tokens

06

Daily operator loop

Monitor, operate, shut down cleanly.

  1. alu-gubi-cli ui --watch

    Live dashboard refresh every 3s

  2. alu-gubi-cli moby-up -d && alu-gubi-cli serve --live

    Live mode pulls models + uses vault keys when set

  3. alu-gubi-cli moby-down

    Stop GubiMoby when finished (Ctrl+C stops serve)

Quick copy-paste (step by step)

Same install path as the one-liner above — run each line separately if you prefer:

brew tap shyamalschandra/alu-gubi-cli
brew trust --formula shyamalschandra/alu-gubi-cli/alu-gubi-cli
brew install alu-gubi-cli
alu-gubi-cli moby-up -d
alu-gubi-cli ollama-pull
alu-gubi-cli serve

API driver UX

Live tour · herd stream · pipe sinks

alu-gubi-driver live (aliases watch, tui, demo --watch) is a fullscreen emoji + unicode + color-block showcase. Pair it with herd-stream / herd-subscribe for the stream-agnostic RNG pipeline — same --pipe sinks on both ends. Conditioned by shyamalschandra/alu_gubi.

Continuous (default)

Terminal 1 must already be serving http://127.0.0.1:8080. Press q to quit.

alu-gubi-driver live --zip 94102 --display-name "Demo Citizen"
alu-gubi-driver live \
  --zip 10001 \
  --display-name "Alex" \
  --income-usd 900 \
  --unemployment-months 2 \
  --education-years 14 \
  --domain gym --points 50 \
  --interval 1500 --skip-agents
alu-gubi-driver demo --watch --skip-agents
alu-gubi-cli viz --dry-run

One-shot panels

alu-gubi-driver demo

alu_gubi args & keys

  • --zip · --display-name · --citizen
  • --income-usd · --unemployment-months · --education-years
  • --domain · --points · --month · --total-usd
  • --interval · --steps · --once · --skip-agents
  • Keys: q · space · n · ↑↓ · [/] cycle ZIP · r reset
  • List ZIPs: alu-gubi-driver zips
alu-gubi-driver live
┌─ 🦀 ALU GUBI Driver LIVE  ▶ live ─────────────────────────┐
│ 📍 94102 · San Francisco, CA   🪪 Demo Citizen            │
│ 🔗 http://127.0.0.1:8080   ⏱ 2000ms gap   🔁 loop 1       │
├──────────────────┬────────────────────────────────────────┤
│  Steps           │  💰 CoL zip                            │
│  ▶ ✅ health     │  {                                     │
│    ✅ col-zip    │    "zip": "94102",                     │
│    ⏳ points…    │    "state": "CA",                      │
│    · coupons     │    "col_index": "1.62", …              │
│    · bindi       │  }                                     │
├──────────────────┴────────────────────────────────────────┤
│ 🎯 ████████░░ 80%   📈 ▁▂▃▅▇█   🧮 alu_gubi params       │
│ ✅4 ⚠️0 ❌0         latency     unemp=3  edu=14yr        │
└───────────────────────────────────────────────────────────┘
 q quit · space pause · n next · [/] cycle zip · r reset
Sample ratatui layout — color blocks, step list, JSON pane, success gauge, latency sparkline

Herd pipeline UX

Emit · subscribe · tee anywhere

Fullscreen herd-stream TUI (q quit · space pause), or --no-tui for scripting. Subscribe over HTTP NDJSON or SSE. Details and sink catalog live under PlankServices.

# Terminal 1: API
alu-gubi-cli serve

# Terminal 2: emit → Plank (Keystone-inspired sealed pages)
alu-gubi-driver herd-stream --scale googolplex --pipe plank-ingest

# Terminal 3: subscribe (stream-agnostic sinks)
alu-gubi-driver herd-subscribe --format ndjson --pipe stdout
# or: --pipe file:///tmp/herd.ndjson
# or: --pipe tcp://127.0.0.1:9797
# or: --pipe unix:///tmp/alu-gubi-herd.sock
alu-gubi-driver herd-stream --dry-run --no-tui --pipe stdout --duration 5
alu-gubi-driver herd-stream --dry-run --no-tui --pipe file:///tmp/herd.ndjson --duration 5
alu-gubi-driver herd-stream --dry-run --no-tui --pipe tcp://127.0.0.1:9797 --duration 5
alu-gubi-driver herd-stream --dry-run --no-tui --pipe unix:///tmp/alu-gubi-herd.sock --duration 5
alu-gubi-driver herd-stream --pipe plank-ingest --scale infinity

Async scheduler

Deadline-driven runtime with low-power policy

ALU GUBI now ships an async real-time policy layer: deadline classes, admission control, cooperative timeout enforcement, low-power idle hints, storage batching knobs, and live telemetry at /v1/rt/status. True kernel-enforced hard real-time still requires an RTOS/PREEMPT_RT deployment with CPU isolation and elevated scheduling policy.

Profiles

  • eco — minimal watts, lower parallelism
  • balanced — default operator profile
  • performance — tighter latency, higher compute
  • hard-realtime — strict app budgets; RT kernel required

Asymptotic contract

  • O(1) admission via semaphore slots
  • EDF metadata per critical/interactive/background/idle class
  • In-memory SQLite hot path; batch-size hints for writes
  • Cooperative idle sleep/yield to reduce power when idle

Observe

The CLI, driver, and API expose the same policy and counters: admitted, completed, rejected, timed out, deadline missed, last task, and max observed latency.

alu-gubi-cli rt-status --profile hard-realtime --max-parallel 4
alu-gubi-cli serve --rt-profile hard-realtime --rt-max-parallel 4
alu-gubi-driver rt-status

Modular pub/sub with ROS-style edge logs lives in PlankServices.

Runtime environment

export GUBI_RT_PROFILE=eco          # eco | balanced | performance | hard-realtime
export GUBI_RT_MAX_PARALLEL=4       # admission-control slots
export GUBI_RT_IDLE_SLEEP_MS=0      # hard-realtime yields instead of sleeping
export GUBI_RT_STORAGE_BATCH_BYTES=8192

PlankServices · fog network · invented by Shyamal Chandra

A fog network with a herd

PlankServices is a fog network: many local edge nodes (generators, COL, coupons, points, bindi) mesh through Plank hops, aggregate at herd-bridge, and fan out to logger / viz / sealed pages — without a single choke-point cloud. The herd is the virtual population those fog edges coordinate: googolplex / infinity / finite scales emit compact RNG JSON tokens, never materializing individuals. Every publisher→subscriber hop is an edge with ROS-style power/latency logs. One NDJSON PipelineItem tees to the same --pipe sinks on emit and subscribe. Batches ride Keystone-inspired sealed enclave pages (encrypted + homomorphic integrity).

Citations (both): conversations with Kailash Chandra (Introduction to Simulation, Florida Tech / Space Coast) · reading Victor R. Lesser online (UMass Amherst MAS Lab) · Keystone (keystone-enclave.org) · CITATIONS.md

Fog graph · herd aggregate · power on every edge

EDGE FOGHERD BRIDGECOREapirtcolcouponspointsbindiherdloggerviz

Active fog edge: colcoupons · /fog/mesh

rosout @ every edge

[INFO] [fog/col] [/fog/mesh] col->coupons@/fog/mesh: edge fog hop seq=12 power≈41mW
  • Levels: DEBUG / INFO / WARN / ERROR / FATAL
  • Fields: stamp · seq · node · peer · topic · latency_µs · power_mW
  • API: /v1/plank/status, /v1/plank/herd/stream, /v1/plank/herd/ingest

Operator

alu-gubi-cli plank-status --pulse
alu-gubi-cli serve
alu-gubi-cli viz --dry-run
alu-gubi-driver plank-status --pulse
alu-gubi-driver herd --scale googolplex --raw
alu-gubi-driver herd-stream --scale googolplex --dry-run
alu-gubi-driver herd-subscribe --format ndjson --pipe stdout

Stream-agnostic pipeline

One item · many sinks

herd-stream emit and herd-subscribe consume share the same --pipe specs. HTTP NDJSON / SSE decode into the identical framing.

--scale googolplex--scale infinity--scale finite

stdout

tee NDJSON to the terminal

tcp://HOST:PORT

listen for TCP clients

unix:///path.sock

Unix domain socket

file:///path.ndjson

append NDJSON lines

plank-ingest

POST → sealed Plank pages

End-to-end (3 terminals)

# Terminal 1: API
alu-gubi-cli serve

# Terminal 2: emit → Plank (Keystone-inspired sealed pages)
alu-gubi-driver herd-stream --scale googolplex --pipe plank-ingest

# Terminal 3: subscribe (stream-agnostic sinks)
alu-gubi-driver herd-subscribe --format ndjson --pipe stdout
# or: --pipe file:///tmp/herd.ndjson
# or: --pipe tcp://127.0.0.1:9797
# or: --pipe unix:///tmp/alu-gubi-herd.sock

Sink catalog · dry-run

alu-gubi-driver herd-stream --dry-run --no-tui --pipe stdout --duration 5
alu-gubi-driver herd-stream --dry-run --no-tui --pipe file:///tmp/herd.ndjson --duration 5
alu-gubi-driver herd-stream --dry-run --no-tui --pipe tcp://127.0.0.1:9797 --duration 5
alu-gubi-driver herd-stream --dry-run --no-tui --pipe unix:///tmp/alu-gubi-herd.sock --duration 5
alu-gubi-driver herd-stream --pipe plank-ingest --scale infinity
alu-gubi-driver herd --scale googolplex --dry-run --raw
alu-gubi-driver herd-stream --scale infinity --dry-run
alu-gubi-driver herd --scale finite --dry-run --raw

Modular nodes

api · rt · col · coupons · points · bindi · herd · logger · viz

RT on topics

critical / interactive / background / idle deadlines

Enclave pages

Keystone-inspired AES-256-GCM + homomorphic seal on ingest

Roadmap · Future work · P2P agents

Scale the agents as a mesh

Paper § Future Work

Today's fog herd already coordinates googolplex-scale virtual populations with compact RNG tokens. The industrial next mile is making the agents themselves peer-native — quest planning and adversity coaching grow with the mesh, not with a single REST host. Bounded watts. No citizen PII on the wire. Same stream-agnostic PipelineItem grammar the herd already speaks.

P2P agent overlay · no central hub

Active gossip: A1A2

/plank/agents/*agent·kioskagent·ngoagent·edgeagent·countyagent·clinicagent·desk

Target asymptotics: local work per peer scales with degree; epidemic diameter stays O(log N) across agency meshes — municipal kiosks, NGO laptops, and hybrid edges as interchangeable peers.

Today → tomorrow

  • Discovery

    Static REST base URL

    Capability-token gossip + Plank edge hello

  • Quest fan-out

    Instance-local instruct pool

    Mesh shard with work stealing

  • Coordination

    herd-bridge aggregate

    Epidemic-lite agent consensus

  • Integrity

    Per-ingest enclave pages

    Peer-sealed digests on every hop

  • Failure domain

    Process restart

    Partial mesh heal — no agent hub

Primary scale path

Peer-to-peer agent mesh

Elevate agent endpoints into a Plank overlay: every peer is publisher and subscriber on /plank/agents/*, discovering neighbors via sealed capability tokens instead of a central dispatcher.

O(degree) local · O(log N) epidemic diameter

Work stealing

Mesh quest fan-out

Replace instance-local instruct pools with a shard of agent peers that steal sealed quest digests across the fog — no O(N) fan-in to a single /v1/agents/* host.

Same PipelineItem · same --pipe sinks

Sealed hops

Peer-sealed agent digests

Extend Keystone-inspired enclave pages so every agent hop carries a peer-sealed digest. Opaque person ids and CoL coefficients travel; citizen PII never leaves the local vault boundary.

No PII on the wire

Supply chain

Bottles, hardware roots, federation

Multi-platform bottles (linux-x64, macos-x64), TPM / secure-enclave stub shards, federated Bindi root merge, and cross-agency capability revocation beside ML-DSA manifests.

Binary-first · CCSL-1.0a

Design constraints

No PII on the wire. Opaque ids, sealed quest digests, CoL coefficients — narratives stay inside the local vault.

Bounded watts. Agent gossip rides the rosout power/latency edge contract (eco · balanced · performance).

Lesser-aligned. Many cooperating agents, no monolithic actor — graceful degrade under partial connectivity.

Full industrial write-up: PDF preview · Open full PDF · Plank fog baseline: PlankServices

Architecture

The forge stack

💾

In-Memory SQLite

Zero external DB — PRAGMA journal_mode=MEMORY

🔐

GubiVault

Vault KV v2-compatible AES-256-GCM secrets

Moby ProjectVisit →

GubiMoby

Pure Rust Moby engine — no Docker Desktop

OllamaVisit →

Dual Ollama AI

llama3.3 generative + gemma3:1b agentic

⛓️

Rust Ledger

Hash-linked Bindi chain in-process

⏱️

Async RT Scheduler

EDF-style deadlines, admission control, low-power idle, /v1/rt/status telemetry

🪵

PlankServices

Fog network of Plank edges by Shyamal Chandra — local mesh hops + rosout power logs + herd aggregate (NDJSON/SSE) with Keystone-inspired sealed pages

🦬

Fog herd + stream pipeline

Edge fog shards → herd-bridge → googolplex|infinity|finite tokens → one NDJSON PipelineItem → stdout · tcp · unix · file · plank-ingest

🔒

Encrypted CLI

Homomorphic-sealed release binaries

Runtime foundations

Built on Moby & Ollama

GubiMoby orchestrates containers using the Moby engine model; dual-tier AI runs on local Ollama models (llama3.3 + gemma3:1b).