ProjectIn progress, not live
EMBER, lessons from the build
How a one-person project keeps a 10-million-document system honest: the habits, the written record, and the real incidents that turned into rules. Part of the EMBER (EMBEdded Resilience) project.
#At a glance
EMBER (short for EMBEdded Resilience) is a project to build an offline library, a radio-based way to match people in need with help, and an offline AI assistant, for situations where the phones and the internet are gone. This page is the history behind it: how one person runs a project too large to read through by hand, and the specific failures that shaped its rules. If you are new to the project, start with the overview; for how the system itself works, see the deep dive. Everything here is checked against the project's repository, logs, and design documents. Figures are snapshots from late summer 2026; the page was last updated 24 November 2026.
It is mostly a list of things that went wrong, because that is the most useful evidence of how far the system can be trusted.
#The process record
- 473 job logs, 79 scenario-test result files, and 19 test modules (automated checks that the code still does what it should).
- A task queue, the list of work still to do, kept as a single file of about 450 KB, and a lessons file of about 144 KB that indexes rules distilled from incidents.
- Code comments that carry incident history: dates, root causes, what broke, and why the fix works the way it does. The general rule goes in the lessons file; the story stays next to the fix.
#How the project stays honest
A few habits do most of the work.
- Say what is true, in one vocabulary. Every part is labelled built, prototype, tested, skeleton, designed, early design, not built, or speculative. "Skeleton" means the logic runs against mocks (stand-ins for real hardware) but has not crossed the hardware boundary.
- Stop and flag on surprise. If a task does not match what its description said, stop, write down what was found, and leave it. A flagged stop costs one delayed task; an improvised fix can cost a full re-run plus cleanup.
- Check independently. A system's own "I verified this" is not evidence by itself, because the verification step can be the ungrounded part.
- Log everything to a durable place, including dry runs, so a later reviewer can see what happened.
- Record decisions with dates, and record open questions as open. Questions that measurement has not yet settled, like the final shape of the on-device search stack, are recorded as open rather than guessed.
Decisions have dates, bugs have root causes, and the next session can pick up cold. It strains in two places. A queue file of that size is itself a maintenance burden, and several documents record that their own numbers had drifted. It also relies on one person's judgment at the top, with no second human reviewing the calls.
#Incidents that shaped the rules
Each is a real event in the record, and the same shape recurs: something looked fine, produced no error, and was quietly wrong.
- The silent zero. A newly acquired archive lacked the HTML wrapper the ingester (the code that reads sources into the library) treats as the sign of a real article, so every entry was skipped: 0 articles, 0 errors, 0 warnings. Someone sampled the raw entries before trusting the count. The rule: "0 rows" is not evidence of "0 content" until the raw source has been sampled.
- The hybrid that wasn't. "Hybrid" search gave exactly the same results as semantic search whenever semantic results alone 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). The rule: audit whether a feature changes outputs, not just whether it runs.
- Four false alarms. A coverage survey reported a 46% "gap" in agriculture and big gaps in three other domains. They were artifacts of how deep Wikidata's taxonomy (its scheme of categories) goes, not missing content. A later "metallurgy gap" turned out to be De Re Metallica, already in the corpus and buried by a ranking bug. The rule: a gap percentage is a screening heuristic; sample the gaps first.
- The agent that declared gaps that weren't there. In the first 137 scenario queries run through the agent harness (the software around an AI model that gives it tools, memory, and rules; the one Ember is now built on), all three search failures had one shape: the agent ran a search, then claimed something was missing when it was not. It checked the wrong table, or read a table-of-contents page as a "7-line stub" when 41 sub-articles held the content. The fix was three standing rules in its prompt.
- The truncated tool list. A small local model never called a single tool and instead gave a plausible excuse. Its default context window (how much text a model can take in at once, counted in tokens, which are roughly word fragments) was about 2,048 tokens and the system prompt plus tool list needed about 12,000, so the tool list was silently cut off before the model saw it. The server log showed it; the chat showed nothing wrong.
- The cut-off answer that looked normal. A long task produced a full first response and then stopped mid-sentence on later turns. The provider sent a normal "success" response with a partial answer, because the output limit had been left unset. Limits are now set explicitly.
- The fabricated report. After restarts, the development agent reported running file tools and produced confident results that did not match what those tools return. The conversation store had been flattening history to plain text and dropping the real tool-call records (the log of which tools actually ran), so a model reading its own past report could not tell a grounded result from a plausible sentence. The fix changed what every storage layer keeps and added a "grounded" marker computed independently of the model's own text. Ember inherits the fix, because it shares the harness.
- The numbers that drifted. A "99% tagged" claim hid the fact that about 7.2 million of 8.4 million "tagged" articles carried only a placeholder tag; real concept-level coverage was a small fraction of that, and the project corrected the metric in writing. The project's own written spec also went stale, carrying tool and concept counts that had since moved. The record is only as honest as its last refresh.
- Infrastructure that fails quietly. A very large embedding database (the store of numeric fingerprints used for search by meaning) on an external drive reported a corrupted file, so the store was split into fixed-size files that are sealed and moved to cold storage once full. The ID counter went stale after a file was sealed three separate times and was fixed by hand each time. A kernel panic (a crash of the operating system itself) interrupted an index rebuild, but the live indexes were never touched and the rebuild later completed cleanly.