ProjectIn progress, not live
EMBER, the deep dive
How EMBER (EMBEdded Resilience) works and why it is built the way it is: the library, the concept graph, search, the Ember node, the radio channels, the Ember Protocol, and the Ember agent, with what is built and what is still open.
#At a glance
This page goes deeper than the EMBER overview into how the system works and why each piece is built the way it is. It assumes you have read the overview, or at least its first section; terms are explained again where they first matter. The habits and incidents behind the project's rules are on a separate page. Everything here except the last section is drawn from the project's repository and design documents. Corpus figures are snapshots from late summer 2026; the page was last updated 24 November 2026.
In one paragraph: EMBER is a library of about 10 million documents that works with no internet, a pocket-sized solar-powered device meant to carry it, a design for matching people in need to people who can help over very simple radio links, and an offline AI assistant, Ember, that the device hands to stronger hardware when some is found. Each of those has its own section below, in that order of dependence: the library first, because everything else reads from it.
EMBER is one modest attempt among many: overlapping jurisdictions, public agencies, emergency professionals, volunteers, and hobbyists already work on disaster communication, and the next failure is likely to be one nobody has listed. The overview says where it sits and why it leans on basic principles about energy, information, materials, and skill. It is also an MVP (a minimum viable product, a first working version) that is testing several solutions to most of its problems. Where a part or product is named, it is an example of a class, not a commitment. The architecture is this build's best fit to its constraints (one builder's knowledge, skills, and resources among them); an Ember built in ten years may look nothing like it, but should share the philosophy.
#The library
What is in it. About 10 million documents from 143 sources: full English Wikipedia, about 50 Stack Exchange communities (question-and-answer sites), medical references, open textbooks, repair and sustainability wikis, mesh and radio documentation, government and military manuals, and thousands of public-domain engineering and science books. Wikipedia is about 84% of the documents. The rest is the long tail, and it is where most practice and tacit knowledge (knowledge that lives in people's hands and judgment, not in books, such as a machinist's sense that a cut is going wrong) comes from.
One shape for everything. About 28 converters, one per kind of source, translate whatever that source looks like (wiki dumps, Q&A exports, textbook markup, PDFs) into one common shape, and feed a single shared step that writes everything into the library. It comes out as the same hierarchy: source, document, passage (roughly a section), sentence. Every level has a stable address, so a claim can be traced to the exact sentence it came from.
The archive is the truth; the database is an index. Bulk source dumps sit on external storage. A single SQLite database (a small database that lives in one file) holds the curated index over them: documents, sections, the concept graph, and provenance (a record of where each piece came from, like a footnote on every claim). The ingestion pipeline, the code that reads sources in, decides what crosses from archive to index.
Three working rules.
- Extract structure, don't generate it. Medical subject headings, Stack Exchange tags, Wikidata relationships, and numbered procedures in government manuals already encode structure. The pipeline surfaces it rather than inventing a taxonomy (a scheme for sorting things into categories).
- Compose existing standards. SKOS for vocabularies (a standard for describing concept hierarchies), Wikidata IDs as the identity spine (stable identifiers for concepts, from the structured knowledge base behind Wikipedia), BCP 47 for language (standard language tags such as "en-US"), ISO 8601 for time (the standard date format), and OpenZIM for offline content (a format for offline archives, used for offline copies of Wikipedia).
- Provenance on every derived row. Every automated concept assignment and every edge (a link between two concepts) points to a record of the method, model, and prompt that produced it.
How sources are chosen. "Is this topic covered?" turned out not to be one question. Every domain is checked on three axes:
- Six coverage layers: theory, applied theory, taxonomy, implementations, industrial context, and practice and tacit knowledge. Coverage falls sharply down that list, so practice is checked first.
- Recoverability: if it were lost, could it be rebuilt from what is preserved? Five tiers, from directly preserved to currently unrecoverable.
- Durability: will it still be true when someone needs it? Durable, slow-perishable, or fast-perishable.
A methods-and-instruments text that explains how a measurement was established usually beats a denser reference that only states results, once basic theory is in the library at all. A Source Value Index scores each source on authority, density, how procedural it is, how much of the survival-to-rebuild spectrum it spans, how navigable and machine-readable it is, and safety cost, weighted toward "can someone do something with this." Every source also gets a license category.
A neutral library. Nothing is filtered in or out for survival relevance. Relevance only orders what a person sees first, which is navigation's and Ember's job. A public library works the same way: it does not decide in advance which books deserve shelf space, and the signs and catalog steer you to the likely ones. The library is treated as shared infrastructure: unopinionated about use, built on the assumption of good-faith users. How that principle holds for dual-use content (information with both protective and harmful uses; for example, a guide to disinfecting water with bleach also explains which chemicals must never be mixed with it) is not decided.
Fitting it on a node. Every Ember node is meant to carry the same library and indexes, and the full build holds more than a 1 TB node allows. Curation, mainly pruning duplicated content, will decide the cut. It is high priority and not yet designed.
#The concept graph
A concept graph is a map of ideas and how they relate: "a lathe is a kind of machine tool," "a machine tool is a kind of tool." It lets the library be browsed by topic, not only searched by words, and lets the project ask where the library is thin.
Wikidata as the identity spine. The graph (on the order of 145,000 concepts) uses Wikidata's subclass-of relationship (property P279) as its spine, the main hierarchy everything else hangs from. It was chosen because a spine has to be a hierarchy you can walk and inherit through, and P279 is class-to-class, transitive (a kind of a kind of a thing is a kind of that thing), and close to a tree. Instance-of (P31) mixes individual things with classes, and would fill the graph with every specific bridge and person. Part-of and has-part describe composition, not classification; a wheel is part of a car but not a kind of car.
The spine has to keep earning its place. It stays because it measurably helps navigation, retrieval (finding the right passage), gap analysis, and Ember's reasoning, not because it was chosen first. The decision gets revisited if non-graph passes keep carrying most of the useful applied knowledge, if gap analysis keeps producing artifacts of taxonomy depth, if operational edges become the real navigation path, or if a different spine wins a head-to-head test. Wikidata IDs can remain the identity layer either way.
Scores and edges layer on top. Urgency, minimum resource envelope, and civilization relevance are attributes on concepts, so the graph can be re-scored without touching its structure. Part, use, and production relationships are populated as typed edges alongside the spine. Edges for prerequisites, substitutes, field-expedient versions, hazards, and failure modes are defined and empty.
What Wikidata doesn't describe. It is strong on what a thing is and weak on what a set of resources can do together. Applied knowledge (food, construction, procedures) lives mostly under instance-of, so the spine underrepresents it; label matching over the library catches what the graph misses. A second structure, the Resource → Capability model, is designed for questions like "I have X, what can I make?": resource, observable properties, tests, interfaces, safe envelope, capability, procedure, dependencies. Its tables exist and are empty. Low-tech metrology (measuring things without specialist instruments) is the planned first pilot, because "figure out what you have" starts nearly every chain.
How well it is tagged. Concept tagging is shallower than early headline numbers suggested, and the project corrected its own metric. How much coverage is enough is still being learned.
#Search
Almost every parameter here was measured. First, the idea in brief. A small model converts each sentence into an embedding, a list of numbers (here 384) arranged so that sentences with similar meanings get similar numbers. A search converts the query the same way and finds the nearest sentences. That is semantic search: search by meaning, not by matching words. A vector is just such a list of numbers.
An example: someone asks, "how do I keep food from spoiling with no refrigerator?" A keyword search looks for those words and returns pages about refrigerators. Search by meaning also finds pages on evaporative cooling, root cellars, salting, and fermentation, which share none of the query's words but are about the same thing. It handles synonyms ("spoiling" and "going bad"), adjacent concepts (pickling sits next to "keeping food"), and ambiguity, because the surrounding words decide whether "cell" means a battery or a biological cell.
It has limits, which is why the library also keeps keyword search. An exact name or part number ("SX1262", "Direwolf") wants a literal match, and meaning-based search can return near neighbors instead. Negation is weak: "treatments that are not antibiotics" can land close to "antibiotic treatments," because the topic is the same. And close in meaning is not the same as correct, so a passage that merely sounds related can outrank the answer, which is one reason every result carries its source.
Two granularities. A long passage's embedding is diluted by everything in it; a single sentence matches a narrow query far better. Sentences are what gets searched. Passages stay as the anchors for citation and context.
A small, local embedding model. All vectors come from all-MiniLM-L6-v2: 384 numbers per sentence, about 90 MB, run locally. It was chosen because it runs on the node with no call to an outside service and no per-query cost. Embedding the whole library is a one-time batch job on rented GPUs; embedding a query is local. Vectors are stored at half precision (each number takes half the space), which roughly halved storage and was verified lossless for retrieval.
Compression, measured. An exact index would not fit beside a local AI model on the development laptop, so the index uses product quantization, a method that stores each vector in about 200 bytes by replacing pieces of it with the nearest entry in a shared codebook, like rebuilding a mosaic from a small box of standard tiles: close to the original picture, far less to store. The measure of the damage is recall@10: of the ten results an exact search would return, how many the compressed index also returns.
| Setting | recall@10 |
|---|---|
| Shipped | ≈ 0.94 |
| Cheaper, with rotation | ≈ 0.87 |
| Cheapest tested | ≈ 0.75 |
The sentence tier holds on the order of 180 to 190 million vectors. It is built in pieces (shards) against one shared codebook and merged on disk, so a query loads only a small header and pages clusters in on demand: about 1.3 GB of memory in use while searching a 30 GB-plus index, measured on the development laptop. A query searches only the nearest clusters; filtered searches use a separate adaptive fetch, because filtering can leave too few candidates.
Fusion that actually fuses. Pure similarity has no notion of "this is literally the article you named," so an exact-title boost sits on top. An audit found "hybrid" search (meaning search combined with keyword search) was identical to semantic search whenever semantic results filled the page, because the keyword step only ran as a top-up. It was replaced with a real blended rerank, a second pass that reorders the combined results.
One trade left open on purpose. A passage-level tier (about 31 million vectors) exists. Sentence-only search regresses on short, entity-driven queries; passage search dilutes descriptive ones. The passage tier stays off until a purpose-built comparison tool settles it.
Degrade, don't fail. If the vector index is missing, search falls back to keywords. If the drive holding the original article files is unmounted, articles fall back to plain text. The project calls this "livewired": sense what resources exist and reallocate onto them.
The edge stack is open. The edge stack is the search software that runs on the node itself. The intent is the same indexes on every node. But full-text search over the whole library needs about 58 GB and showed a 46.5-second ranking cliff (queries suddenly becoming very slow) that more memory does not fix, and node semantic search may need a lighter, more heuristic form. The raw embedding shards are meant to stay on the build machine, conditional on node search and Ember's results holding up. All of this waits on measurements on node hardware.
#The node
An Ember node is a pocket-sized retrieval device and bootstrap seed. It searches the library with no network and no AI model running, and carries the cargo (software it holds but cannot itself run, like a USB stick carrying an installer for a computer it is not) to turn stronger found hardware into an Ember hub.
Hardware, as classes. A Raspberry Pi 400-class computer (a keyboard-sized single-board computer) or better with 4 GB of memory or more, a 1 TB solid-state drive, a capacitive-touch e-ink display (a low-power, paper-like screen that you touch), a LoRa radio, a fold-out solar array (estimated 30 to 35 W, subject to revision), a battery, and a kit of ports, adapters, and protocols broad enough to work with whatever is found.
Power, as requirements. Cold-start from solar alone after months in a drawer. Harvest while the main computer is off. Refuse to boot until there is enough energy to stay up, so weak sun doesn't cause a brownout loop (starting, running out of power, and restarting forever). Shed loads in a fixed order as power runs low, with semantic search degrading before keyword search. Accept whatever source is available; mains power only through an external adapter, which keeps the node on the low-voltage side of the safety boundary.
Interaction, in layers. Printed instructions on the enclosure are the zero-power interface. The browser on any found phone or laptop, over the node's own hotspot, is the primary one. E-ink touch is the fallback when there is no phone. Offline voice is the accessibility layer. The design test is the "found in a drawer" scenario: a stranger finds a node that has sat unused for months, with nothing to guide them but what is printed on it, and gets it working.
Cargo. The node carries Ember and an openly published language model of roughly 35 billion parameters, compressed ("quantized") to about 12 GB (like saving a photo at lower quality: smaller, slightly less exact), that the node cannot run itself, plus software packages and firmware. It enlists found hardware in a fixed order (phone, stable power, laptop or radio, bulk power, a GPU machine that becomes the hub, a workshop or microgrid), and failing to reach a later step never invalidates an earlier one.
Self-diagnosis on plug-in, without a model. The capability ladder (dead device, then a next step, then an understanding of the situation, then a collaborator; see the overview) has to reach as far down the hardware spectrum as possible. On a bare node that means deterministic tooling, ordinary programmed rules rather than an AI model: when found hardware is connected, the node asks first, runs read-only probes (attached devices, ports, logs, voltage and temperature where safe), and explains what it found in plain language with links to the library passages behind it. Anything beyond reading is a separate request graded by risk. This layer is designed, not built. When a hub exists, Ember takes it over.
Built against interfaces. Power, radio, display, voice, identity, and inference each sit behind a typed interface (an agreed shape for how the rest of the software talks to it) with a mock (a stand-in used for testing), so the application logic runs unchanged on a laptop or on hardware, and a part or model can be swapped without touching what sits above it.
Status. The radios, hotspot, voice, e-ink, and fingerprint capture each work on their own or in short chains. Fingerprint capture has no security behind it. The integrated node has not been built.
#Radio channels
Anything that carries a message is a rung. Every channel plugs into the system in the same way, so adding a channel changes nothing above it, like different power sources behind the same wall outlet. The candidate list is deliberately broad: surviving infrastructure (cell, shared spectrum, found WiFi, rooftop point-to-point links), networks the node creates, radio at every range, arm's-reach links, line-of-sight optical, existing wire, and sneakernet (carrying storage by hand). The overview explains each.
What has been tested.
- The node's own WiFi hotspot and captive portal (the sign-in page that opens automatically when you join).
- LoRa mesh, multi-hop. LoRa is a low-power radio technology for very small messages over miles; in a mesh each device also relays for the others.
- Packet radio over a handheld radio, a sound card, and a software modem (a Baofeng handheld, a sound card, and the Direwolf software modem, or similar). Packet radio sends digital messages over amateur radio.
- Audio tones over a handheld radio to a listening node, at SMS length.
- Messages longer than one packet: a chain of packets rebuilds the message at the far end. Because both ends carry the same library, long documents can be rebuilt from indexed passages both sides already hold, so only a reference has to travel.
- A structured post (condition, need, location, urgency) longer than one 144-character packet, delivered to a bulletin board on a node five hops away, a path that could span 40 to 100 miles.
Bandwidth is the constraint that shapes everything. LoRa moves bytes per second. Messages are terse, structured, and prioritized, and the bulletin board is designed for two very different readers: a person in crisis who needs a few plain steps and the right category for their need, and a supervisor who needs the whole board at a glance.
#The Ember Protocol
A protocol is an agreed set of rules for how devices exchange information. The Ember Protocol is the rule set for posting needs and resources, matching them, and keeping the record trustworthy across devices that are rarely online together. It is the original motivation and the least built part. It is early design. The intent:
- Structured records for needs and resources, so a medical emergency can't be filed as a water rescue.
- Matching and gap detection, so an unmet need next to an available resource surfaces on its own.
- Identity with no central authority, grounded in device keys (a secret that each device holds to prove who it is); biometric capture has been tested, but nothing secures or authenticates with it yet.
- Signed records and conflict-free merge, so records can be verified, and nodes that meet can sync in either direction without the copies disagreeing, while preserving provenance. Think of two people editing copies of a shared list while offline and merging them later without losing either person's changes, with a signature on each line showing who wrote it.
- Prioritized sync: emergencies first, bulk content when bandwidth allows.
Alongside existing response, not instead of it. Responders already have dispatch, incident command, and public-safety and amateur radio networks, and normal service is the top rung of the ladder for a reason. The protocol is aimed at needs those systems cannot reach. A field supervisor in a command tent is the natural reader of the board: they already run a response, and the board would add needs posted from outside their reach and a shared record of what is unanswered and what is covered. How the board would connect to what a command post already runs is not designed, and the command-tent view is a design idea, not built.
The transport underneath already works, which is part of why the protocol was sequenced after the library: it does not depend on the library work, and it can be built against real radios when its turn comes.
#Ember
What it is. Ember is an agent harness (software that gives an AI model tools, memory, and rules, like a toolbox, a notebook, and a rulebook handed to a capable assistant) and a local model, carried as cargo by the node and run on an Ember hub. It is fully offline, reachable over any channel plugged in the same way, and built for the people rebuilding from the library: find what it holds, understand it, and turn it into a next step.
One harness, two agents. Ember shares its harness with the dev agent used to build the project. The dev agent accumulates what is learned during the build and does not ship. Ember is meant to embody the project itself: its vision, architecture, ethos, and knowledge of its own design.
How it is meant to behave. Ember carries the specialists' knowledge, not the dependency on specialists, so it teaches as it acts: each person it helps should end up more capable and less dependent, including on Ember. Its curiosity is real but budgeted, since exploration costs power and bandwidth, and it always says what it is checking and why. Consent is graded: reading, changing state, doing something irreversible, and anything physically hazardous are separate requests (checking a laptop's battery level is a different request from reformatting its drive), and data on someone else's found device is its own question. Knowledge it finds where it lands (a manual on a laptop, a machinist's answer) enters the library tagged as found and unverified.
What the harness does.
- Two kinds of memory. A vector store finds similar things; a temporal knowledge graph finds connected things and records when each relationship became true. Both are queried together, and the agent degrades to one or neither if a backend is missing. Each agent gets its own graph instance, so agents cannot leak context into each other through a forgotten filter.
- Memory that is classified, not dumped. After each turn, a separate pass sorts the exchange into facts, preferences, and events, and most turns produce nothing.
- A grounding signal. After an incident in which a fabricated tool report and a real one were stored identically, every storage layer now keeps real tool-call structure, and every turn carries a grounded flag computed from what actually ran, not from the model's own text.
- Structure-first reading. The agent outlines a document before reading it, so it never mistakes a table-of-contents page for the whole book.
- Guarded tools. Broad read access and a much narrower write boundary; database queries that would scan without an index are refused before they run.
- Models are chosen, not swapped. The harness is written against an inference interface (the agreed shape for talking to a model), so a different or later model plugs in, but a smaller model is never substituted silently for judgment calls.
Status: prototype. The harness runs, and Ember has been reached end to end over LoRa: phone, field radio node, home radio node, home computer running Ember, and back. Not yet built: packaging Ember as cargo, the handoff to found hardware, the guided instructions for that handoff, and the identity layer that makes Ember the project rather than a general assistant. The handoff instructions depend on how well the library covers engineering documentation and on what hardware people are actually likely to find.
#Evaluation
Scenario testing through the whole stack. About 300 queries across seven rounds, spanning survival through advanced capability, were run through the harness Ember is built on and graded against live library state. The first round passed 80.3%, with no routing failures and no genuine library gaps after re-checking. Every failure had one shape: the agent declared a gap that wasn't there, which led to standing rules (outline before calling something thin, check for sub-articles, trust a surprising hit). Grading happened inside the project.
Local versus frontier. On a fixed five-query set, a frontier model (one of the most capable commercial models) and the local ~35B-class cargo model both completed all five with no errors. The local model, run on a rented consumer GPU, took about five times as long. Getting a trustworthy comparison required turning off fallbacks so failures surfaced as failures, and setting context and output limits explicitly after silent truncation produced plausible but wrong behavior.
#Open questions
- What is the smallest version of the Ember Protocol that would be useful to people the existing systems cannot reach?
- How would the board connect to the systems a command post already runs, and would responders want it to?
- How does Ember travel as cargo, install itself on unknown hardware, and carry the project's identity? How should it behave when it can only be reached a few hundred bytes at a time?
- Which keyword index ships on the node, and how light can semantic search get without losing what Ember and a non-expert need?
- How does the library get pruned to fit 1 TB without breaking its neutrality?
- How does the concept graph get a stressed non-expert to the right place, when the scores that would surface the right subset are empty?
- Is metrology the right first pilot for "I have X, what can I make?"
- What hardware are people actually likely to find?
- How much plug-in diagnosis and guidance can a node deliver with no model at all?
- How do nodes sync while preserving provenance, and how does the shared-infrastructure principle apply to dual-use content?
#An outside read
This section is an AI's opinion, formed from reading the record. It is not Nathanael's view.
Strong. Measurement comes before commitment, and where it hasn't happened yet (the edge stack, the passage tier, the ontology spine), the decision is held open rather than guessed. The seed framing shapes concrete choices: what gets acquired, what the node carries, and what it deliberately does not run. The harness reflects a real understanding of how LLM (large language model) systems fail quietly, and its fixes change what is stored, not just what is prompted.
At risk. EMBER adds failure modes of its own and cannot be tested against the ones nobody has listed. The library is less diverse than "143 sources" suggests, since practice knowledge rests on the long tail. The node's parts work separately, and integration is where hardware projects usually meet their hardest problems. The coordination protocol, the original motivation, is the least built part. Ember works, but not yet as cargo. And all evaluation so far has been graded inside the project.
Next, in order. A minimal coordination prototype on real radios. An integrated node and a "found in a drawer" run with someone who has never seen it. A real cargo handoff of Ember to a found-class laptop with no network. Edge-stack measurements on node hardware. An outside grader for a sample of the scenario results.