xhall-beep/ApexYX-Sovereign

2

stars

10

commits

Python

primary language

Aug 31, 2026

updated

README

APEXYX Mesh — a self-testing agent economy that runs on a phone

selftests python deps license platform

termux · android · local-ai · agentic · offline-first · self-hosted · sqlite

mesh CLI demo: post, task, tail, verify, status

Pure Python 3 + bash. No cloud, no daemons you didn't start, no pip installs. Each tier is one file, one sqlite db in ~/.mesh/, one installer, and a hermetic --selftest (150–300 checks) that runs in a throwaway tmpdir.

Built and battle-tested on a Google Pixel (Termux). Runs anywhere Python does.

Install and prove it — one command (Termux or any Linux)

# Termux only: pkg install python git   (Linux: python3 + git, already there)
git clone https://github.com/xhall-beep/ApexYX-Sovereign.git
cd ApexYX-Sovereign && bash up_all.sh
# installs all ten tiers, then runs every selftest — 421 checks, zero network

Your first 60 seconds on the bus

mesh post --node me --kind inbox --text "hello mesh"   # feed the router
mesh task --node me --text "echo hi" --for exec        # address a worker
mesh tail                                              # watch the event stream
mesh verify                                            # prove the sealed chain is intact
mesh status                                            # who's alive, what's pending

If mesh isn't found, open a new shell (the installer adds ~/bin to PATH).

Or tier by tier:

cd mesh_bus && bash bus_up.sh       # tier 1 first: gives the mesh shared memory
cd ../mesh_router && bash router_up.sh   # repeat per tier, any order
python3 mesh_router.py --selftest      # prove it before you trust it

Free tiers in this repo

TierNodeWhat it does
t1busshared memory: sealed append-only sqlite bus + mesh CLI
t2routerLLM (or keyword-fallback) request routing onto the bus
t3execcommand execution node
t4schedscheduler
t5learnfeedback / learning loop
t6reachoutbound reach
t7stateshared state
t8planplanner
t9guardpolicy guard — refusals are the product
t10mirrorself-mirroring / audit

Every node degrades gracefully if the bus is offline — install t1 first anyway; it's what turns nine scripts into one organism.

Pro: tiers 11–35 (paid)

The full financial-grade stack: federation, sensing, voice, recall, reasoning, safe-act, negotiation, self-repair, forecasting, budgeting, markets, coalitions, staking, insurance, reinsurance, solvency, liquidity, clearing/CCP, recovery, macroprudential control, supervision, accountability, a fiscal backstop, a polity tier — mandates, legislature votes, vetoes, sunset clocks and a debt brake deciding who may aim that backstop — and now a constitutional layer: sealed commitments, escalation ladders, clawbacks, taxpayer-loss accounting. 5,000+ hermetic self-test checks across the stack.

→ Buy it: https://stephenhall8.gumroad.com/l/apexyxpro ($49 CAD, instant download)

NEW — t35 constitutional layer just shipped: entrenched amendment-proof articles, amendments ratified only by 3/4 of the whole franchise with hash-chained article version lineage (tamper a ratified article and the chain breaks), citizenship that is earned by verified work and losable for sealed cause, and office succession — quorum-declared incapacity, heirs that skip the fallen and the suspended, regencies that sunset back to the rightful holder. 43 hermetic selftest checks. Pro buyers get every new tier as it ships — re-open your download link for the updated bundle.

Next tier in development: t36 judiciary — case law over sealed records, adversarial review, remedies.

Full story + free download mirror: https://slackstack-1a8ac6.viktor.page/apexyx-mesh

Design rules the whole mesh obeys

  • Every db write is evented; nodes never re-ingest their own events.
  • Sibling dbs are opened read-only. Sealed rows break their hash if mutated.
  • Supervisory states never self-clear — lifting a freeze is an explicit act.
  • Selftests are hermetic: tmpdir MESH_DIR, simulated siblings, zero network.

MIT licensed. Issues and PRs welcome.

Deep dive

Discussion

Contributors

xhall-beep

10 commits

xhall-beep/ApexYX-Sovereign

2

stars

10

commits

Python

primary language

Aug 31, 2026

updated

README

APEXYX Mesh — a self-testing agent economy that runs on a phone

selftests python deps license platform

termux · android · local-ai · agentic · offline-first · self-hosted · sqlite

mesh CLI demo: post, task, tail, verify, status

Pure Python 3 + bash. No cloud, no daemons you didn't start, no pip installs. Each tier is one file, one sqlite db in ~/.mesh/, one installer, and a hermetic --selftest (150–300 checks) that runs in a throwaway tmpdir.

Built and battle-tested on a Google Pixel (Termux). Runs anywhere Python does.

Install and prove it — one command (Termux or any Linux)

# Termux only: pkg install python git   (Linux: python3 + git, already there)
git clone https://github.com/xhall-beep/ApexYX-Sovereign.git
cd ApexYX-Sovereign && bash up_all.sh
# installs all ten tiers, then runs every selftest — 421 checks, zero network

Your first 60 seconds on the bus

mesh post --node me --kind inbox --text "hello mesh"   # feed the router
mesh task --node me --text "echo hi" --for exec        # address a worker
mesh tail                                              # watch the event stream
mesh verify                                            # prove the sealed chain is intact
mesh status                                            # who's alive, what's pending

If mesh isn't found, open a new shell (the installer adds ~/bin to PATH).

Or tier by tier:

cd mesh_bus && bash bus_up.sh       # tier 1 first: gives the mesh shared memory
cd ../mesh_router && bash router_up.sh   # repeat per tier, any order
python3 mesh_router.py --selftest      # prove it before you trust it

Free tiers in this repo

TierNodeWhat it does
t1busshared memory: sealed append-only sqlite bus + mesh CLI
t2routerLLM (or keyword-fallback) request routing onto the bus
t3execcommand execution node
t4schedscheduler
t5learnfeedback / learning loop
t6reachoutbound reach
t7stateshared state
t8planplanner
t9guardpolicy guard — refusals are the product
t10mirrorself-mirroring / audit

Every node degrades gracefully if the bus is offline — install t1 first anyway; it's what turns nine scripts into one organism.

Pro: tiers 11–35 (paid)

The full financial-grade stack: federation, sensing, voice, recall, reasoning, safe-act, negotiation, self-repair, forecasting, budgeting, markets, coalitions, staking, insurance, reinsurance, solvency, liquidity, clearing/CCP, recovery, macroprudential control, supervision, accountability, a fiscal backstop, a polity tier — mandates, legislature votes, vetoes, sunset clocks and a debt brake deciding who may aim that backstop — and now a constitutional layer: sealed commitments, escalation ladders, clawbacks, taxpayer-loss accounting. 5,000+ hermetic self-test checks across the stack.

→ Buy it: https://stephenhall8.gumroad.com/l/apexyxpro ($49 CAD, instant download)

NEW — t35 constitutional layer just shipped: entrenched amendment-proof articles, amendments ratified only by 3/4 of the whole franchise with hash-chained article version lineage (tamper a ratified article and the chain breaks), citizenship that is earned by verified work and losable for sealed cause, and office succession — quorum-declared incapacity, heirs that skip the fallen and the suspended, regencies that sunset back to the rightful holder. 43 hermetic selftest checks. Pro buyers get every new tier as it ships — re-open your download link for the updated bundle.

Next tier in development: t36 judiciary — case law over sealed records, adversarial review, remedies.

Full story + free download mirror: https://slackstack-1a8ac6.viktor.page/apexyx-mesh

Design rules the whole mesh obeys

  • Every db write is evented; nodes never re-ingest their own events.
  • Sibling dbs are opened read-only. Sealed rows break their hash if mutated.
  • Supervisory states never self-clear — lifting a freeze is an explicit act.
  • Selftests are hermetic: tmpdir MESH_DIR, simulated siblings, zero network.

MIT licensed. Issues and PRs welcome.

Deep dive

Discussion

Contributors

xhall-beep

10 commits

Languages

Python

90.6%

Shell

9.4%