Repository navigation
EverOS 1.8.0 closes the API to other sites' browser pages and makes searching
a large store cheap. Every route now refuses a request that carries another
site's Origin or arrives under a public domain name, and file:// content
items are refused until a directory is allowed. Keyword search reads its
table once per query instead of once per word, vector search uses a 1-bit
index re-ranked on the stored vectors, and a search waits for open-file
headroom instead of failing, so concurrent searches no longer run the server
out of file descriptors. On a 4-core, 8 GB server holding 169k memories,
hybrid search sustains 14 to 16 requests per second against under 4 in
1.7.1, and keyword 120 to 140 against 70
(benchmarks/throughput.md). Every accepted
/memory/add is kept in a raw input log, a resent /memory/add no longer
cuts its messages twice, and an LLM reply cut off at the output cap, ending
in a trailing comma or wrapped in a code fence no longer fails its call.
MemTrace execution tracing is available as an optional extra.
What changes for an existing setup: a web UI on another origin, a reverse
proxy that forwards its own domain and a client that sends file:// items
each need a setting; the vector index is rebuilt once after the upgrade; the
raw input log is on by default; and a store indexed with the nltk
tokenizer should be rebuilt. See Upgrade below.
Added
- Search throughput results and the harness that measures them.
benchmarks/throughput.mdgives the sustained
hybridandkeywordsearch rates, with latency, CPU and memory, of 1.7.1
and 1.8.0 on a 4-core, 8 GB server holding 169k memories:hybridunder 4
against 14 to 16 requests per second,keyword70 against 120 to 140.
benchmarks/throughput/reproduces them: a store built from LoCoMo10 and
LongMemEval-S by EverOS's own extraction, stub model providers that replay
recorded query-embedding latency, and open-loop load with a kept-up verdict
per step. - Every accepted
/memory/addis kept in a raw input log (#537). One
JSON line per request, written before extraction starts, in
<root>/<app>/<project>/.input_log/YYYY-MM-DD.jsonl, so the original input
survives whatever extraction makes of it.[memorize.input_log]sets it:
enabled(defaulttrue),retention_days(default 30) and
max_inline_bytes(default 1 MiB; a larger line keeps its text but
replaces each base64 attachment with its length and SHA-256). A failed log
write is logged and never fails the request./memory/deletewith a
session_idremoves that session's lines, and a purge removes the log of
the scope it covers. The log has no read API. - Optional MemTrace execution tracing (
pip install 'everos[memtrace]').
WithEVEROS_MEMTRACE_ENABLED=1,/memory/add,/memory/flushand
/memory/searchrecord an execution graph -- boundary decisions,
extraction evidence, buffer changes and each retrieval stage's candidates
-- exported as MemTraceBench-compatible JSON under<root>/memtrace/
(EVEROS_MEMTRACE_DIRoverrides). Off by default, and without the extra
the hooks do nothing. Built onsmartcomment(>=0.1.2,<0.2); examples
are inexamples/memtrace/.
Changed
- The LanceDB index cache is 64 MB where the open-file limit allows.
[lancedb] index_cache_size_bytesis now unset by default and chosen when
the connection opens: 64 MB when the process's open-file soft limit is at
least 8192 (everos server startraises it to 32768 where the hard limit
allows), else the previous 16 MB. 64 MB holds a 161k-row vector index and
its BM25 readers, so a hybrid search's three lanes stop re-reading them
(30.5 -> 20.3 ms); 200 rounds of writes, optimize and index retrains kept
open descriptors flat (peak 75, against 65 at 16 MB and 696 and climbing
with no cap). The cap still bounds the stale index readers LanceDB keeps
after optimize, so it never goes above 64 MB. A configured value is used
as before; the choice is logged aslancedb_session_caches. - An installed EverOS starts without downloading the token-counting
encoding. The agent track counts prompt tokens with tiktoken's
o200k_baseencoding, which tiktoken downloads (3.6 MB) the first time a
process uses it and caches in the temp dir: a host without internet access
could not start, and a cleaned temp dir meant downloading again. The wheel
now carries the encoding (fetched at build time byhatch_build.pyand
checked against tiktoken's sha256; the wheel grows from 0.9 to 2.6 MB), and
the start-up warm-up copies it to where tiktoken looks. An existing
TIKTOKEN_CACHE_DIRis still honoured. A source checkout (uv sync) has
no copy and downloads as before; building a wheel needs the network. - The CLI preloads jemalloc on Linux where it is installed. With
libjemalloc2present,everosre-executes with
LD_PRELOAD=libjemalloc.so.2and
MALLOC_CONF=oversize_threshold:0,dirty_decay_ms:1000,narenas:4beside the
existingMALLOC_ARENA_MAX=2. On a 4-core, 8 GB server, before this
release's search fixes, keyword search went from 80 to 161 QPS and hybrid
search at 5 QPS from 4.3 to 2.4 s median, while the last hour of an 8-hour
write-and-search soak averaged 1125 MB against 1221 MB with glibc. With
those fixes the gap is smaller: keyword sustains 140 against 120 requests/s
and hybrid 16 against 14 (benchmarks/throughput.md), and the soak's last
hour averaged 1033 against 1036 MB. Without jemalloc nothing changes. An explicit
MALLOC_ARENA_MAX(or the glibc tunable) keeps glibc; an explicit
LD_PRELOADorMALLOC_CONFkeeps the operator's choice.
Fixed
- Two intermittently red tests now fail only on a real regression. The
real-SIGINT backfill test sent its Ctrl-C from a fixed 0.3s timer; on a
loaded host the timer fired after the 5s mocked phase had finished, the
run exited 0 and the test failed. The signal now waits for the phase to
report itself parked, and the test runs in the default suite (it was
slowonly because of that race). The full-pipeline timezone e2e searched
the instant the pipeline drained and failed two runs in three on a
LanceDB limitation, now written up in
how memory works: on the pinned LanceDB 0.34 a
memory written since the cascade's last optimize (60s by default) is
missing fromkeywordresults, and from hybrid's keyword leg, when it
repeats the query term. Vector search is unaffected and LanceDB 0.36 fixes
it; raising the<0.35pin is a separate, validated upgrade. The test now
waits up to one optimize interval for the hit. - An LLM reply cut off at the output cap is sent once more instead of
failing its call. A generation that runs away untilmax_tokens
(finish_reasonlength) usually finishes when the identical request is
sent again, so every LLM call -- the episode extraction inside
/memory/addincluded -- now resends it once before giving up, rather than
losing the memcell's episode or failing the background extraction.
[llm] truncated_reply_retries(default1; settable per task in
[llm.<task>]and in[multimodal]) sets how many times. It is counted
apart frominvalid_reply_retries, and a retry never raisesmax_tokens:
a reply that is long by nature reaches the cap again and still fails, which
a largermax_tokensfor that task fixes. A reply blocked by
content_filteris not resent. - A resent
/memory/addno longer cuts the same messages twice (#274).
Messages were deduplicated only against the session buffer, so a client
retrying after a timeout re-sent messages the first call had already cut
into a memory cell, and they became a second memcell and episode. The
boundary stage now drops fresh messages a memcell of the session already
holds, when that memcell's memories were written or are still being
written. A memcell whose extraction never finished -- the server crashed
or stopped in the middle, or the extraction failed -- does not hold them:
the retry, or the async queue's replay after a restart, cuts them again,
so they are memorized rather than dropped for good (one memcell is left
without memories). Message ids no longer depend on where a message sits in its request:
m_<session>_<timestamp>_<digest>,digestcovering who said what (a
message repeated verbatim in one request is told apart by its repeat
count), so a resend -- whole, split or regrouped, within one millisecond
too -- keeps its ids, and two different messages sent in separate requests
with one timestamp are no longer merged into one. Messages sharing a
timestamp keep arrival order in the buffer rather than sorting by id.
The internal helpereveros.memory.extract.ingest.gen_message_idis
replaced bymessage_ids. Buffered messages from an earlier version keep
their old ids; a batch sent before the upgrade and resent after it is not
recognized as a resend. - Failed
async_modebatches no longer keep their bodies without bound.
Afailedqueue row kept its request body for the seven-day retention,
uncapped, so an outage that failed every batch could hold every body
accepted during it on disk. Now only the newest failed bodies up to
memorize.async_queue.max_failed_payload_bytes(default 64 MiB) are kept;
older ones are emptied by the queue's sweep while the row and its
last_errorstay. The sweep (this trim and the retention purge) now runs
everyscan_interval_secondswhile the worker is busy too, not only
between drains. - A keyword search no longer reads its table once per query word. The
BM25 leg (keyword, hybrid and agentic search) sent LanceDB one clause per
token, and LanceDB plans each clause on its own, its filter reading every
data file of the table; a six-word question opened each file six times.
Concurrent searches on a table split into many data files drove the server
to its 8192 open-file limit in an 8-hour soak, failing searches with "Too
many open files". Each search is now one OR query over all its words (a
repeated word adds one more clause, keeping its weight): scores and ranks
are unchanged, and in a 40-minute side-by-side soak the open files peaked
at 106 instead of 1,238 while keyword search's median latency fell from 21
to 13 ms. - A search waits for open-file headroom instead of failing with "Too many
open files". A LanceDB query holding one of the
[lancedb] max_concurrent_queriesslots now waits, up to 10 s, while the
process holds 75% of its open-file soft limit; the searches already
running release their files within seconds. Counted by
everos_lancedb_fd_headroom_waits_total; a wait that runs out is logged
(lancedb_fd_headroom_wait_expired) and the query runs anyway.everos server startraises the soft limit to 32768 instead of 8192 (still capped
at the hard limit), and where macOS refuses that it steps down rather than
staying at 256. - A vector search no longer reads its whole index each time. The vector
index was IVF_FLAT, which stores every vector whole (0.66 GB for 161k
atomic facts); the 16 MB index cache could not hold it, so each vector,
hybrid or agentic search read about half a gigabyte of it again: about
1.1 GB of transient memory and 449 ms per query. It is now IVF_RQ (one bit
per dimension, 24 MB for the same facts) with each query's best
candidates re-ranked on their stored vectors (refine_factor5): 35-130 MB
and 20-50 ms per query. A query now probes 64 partitions instead of 32,
which costs nothing measurable on 1-bit codes, so results match exact search
up to ~260k rows per table (top 200 identical for 300 real facts at 161k
rows; 32 probes matched 99.3% of the top 10). An existing IVF_FLAT index
is rebuilt as IVF_RQ once by the cascade worker's next index upkeep
(seconds at 161k rows); searches keep using the old index until the new
one is in place. - An LLM reply ending in a trailing comma is repaired instead of failing
(#564). Injson_object/prompt_onlymode some models (DeepSeek, for
one) end an object or array with,; such a reply is validated once more
with those commas removed before it is resent. A request whose extraction
got no usable reply from any attempt now answers503, a model fault a
later retry may clear, instead of500. - An LLM reply wrapped in a markdown code fence is accepted (#627).
Without a schema enforced on the wire, some OpenAI-compatible models wrap
the JSON in a```jsonfence; the outer fence is now stripped before
validation, together with the trailing-comma repair and before any resend. - Deleting memories no longer races clustering (#597). Deleting an
episode looked up its clusters before taking the owner's clustering lock,
so a clustering pass could commit a cluster that still listed the deleted
episode. The lookup and the membership rewrite now both run under that
lock. - A memory file deleted while it is being read counts as absent (#597).
A read that checked a file and then opened it could meet a deletion in
between and fail withFileNotFoundError: a500for a lookup, or a
failed extraction. Profiles, daily memory files, knowledge document indexes
and the knowledge taxonomy now treat the vanished file as absent; parse and
permission errors still surface. - Episodes dated before September 2001 render again (#622). The markdown
store read episode timestamps through a seconds-or-milliseconds guess that
took any value below 10^12 as seconds, so an episode from 2000 raised
instead of rendering. Stored timestamps are always milliseconds and are now
read as such.
Security
- Browser pages of other sites can no longer call the API. CORS used to
allow every origin, so any page open in a browser on the same machine could
read, write and delete memories through a loopback server, and a page that
rebinds its own domain to127.0.0.1could do the same. Every route now
answers403 CROSS_SITE_REFUSEDto a request carrying another site's
Originor arriving under a public domain name inHost. Before only the
purge routes refused cross-site requests. CORS no longer allows
credentials, and[api] cors_origins = ["*"]is refused at startup: with
no authentication it would open every route, purge included, to every
site. file://content items are refused unless you opt in. With
[multimodal] file_uri_allow_dirsempty (the default), afile://item
could make the server read any file its process can see, and the parsed text
came back through search. Such items are now refused until that list names a
directory. The allowlist is checked before the file is looked at and again
on the path that is read, and refusals name only the uri that was sent, so
a refused path no longer reveals whether it exists or where a symlink
points.- The
[nltk]extra now pins NLTK 3.10.4 (was 3.9.4). 3.9.4's
PorterStemmer.stem()can be driven into a slow path by a crafted word
(PYSEC-2026-3738, fixed in 3.10.3), and thenltktokenizer stems every
token of ingested text. The two releases tokenize alike except for a word
right after an opening quote ('cause), which 3.9.4 dropped: 449 of
83,484 LoCoMo and LongMemEval texts change. Turn-level BM25 over the 1,977
LoCoMo questions with evidence is unchanged (Hit@5 60.09% -> 60.04%, MRR
0.4600 -> 0.4600).
Upgrade
pip install --upgrade everos # or: uv sync- curl, SDKs, MCP, the plugins and a compose service name are unaffected. A
web UI on another origin that calls the API from the browser needs its
origin in[api] cors_origins; a reverse proxy that forwards its own domain
inHostneeds that domain in[api] allowed_hosts. - Some private host names are refused until listed in
[api] allowed_hosts,
/healthand/metricsincluded: a k8s service reached with its namespace
(everos.ns,everos.ns.svc.cluster.local) and mDNS names
(mybox.local), which any machine on the LAN can answer for. IP
addresses, single-label names and names underlocalhost,internal,
test,invalidandhome.arpaneed nothing. [api] cors_origins = ["*"]now fails at startup; list the origins of the
web UIs that need access.- A client that sends
file://content items needs the directories it reads
from in[multimodal] file_uri_allow_dirs
(EVEROS_MULTIMODAL__FILE_URI_ALLOW_DIRS); until then/memory/addanswers
415naming that setting.cors_originsentries that are not an origin
(no scheme, a path, a fragment or userinfo) andallowed_hostsentries
that are not a bare host name (a scheme, path or port) now fail at
startup. everos.core.errors.CrossSiteRefusedError(shipped in 1.7.1) is removed:
the refusal now happens in the HTTP middleware, which still answers
403 CROSS_SITE_REFUSED. Code that caught the exception has nothing to
catch.- A store indexed with
[tokenizer] name = "nltk"should run
everos cascade rebuildafter upgrading, so stored tokens and query
tokens come from the same NLTK release. On Linux and macOS, NLTK 3.10 also
refuses data another account could write: if thenltktokenizer now
reports its data missing, runchmod -R go-won the data directory the
error names. The defaultjiebatokenizer is unaffected. - The raw input log is on by default: every accepted
/memory/addadds a
line under<root>/<app>/<project>/.input_log/, kept for 30 days. Plain
text takes a few hundred bytes per message (about 0.2-0.4 GB per million
messages), but an attachment smaller thanmax_inline_bytesis stored
whole, so a store that receives many images should lower
[memorize.input_log] max_inline_bytes, or setenabled = falseto keep
no log. - Each table's vector index is rebuilt once as IVF_RQ by the cascade worker's
next index upkeep after the first start (seconds at 161k rows); searches
use the old index until the new one is in place. Nothing needs to be run. - Message ids changed: a batch that 1.7.1 already accepted and a client
resends after the upgrade is stored a second time. Do not resend, after
upgrading, requests the old version answered.
Full changelog: v1.7.1...v1.8.0