Repository navigation
Releases
Releases · hpopp/remem
v0.8.0
Added
- A request body can use chunked transfer encoding. Before, remem did not read a chunked body.
- Access log lines and the server span carry a
url.queryattribute when the request has a query.url.pathand the span name stay the path alone.
Changed
- Requires Koja 0.21.0.
- A request that takes longer than 30 seconds to arrive answers 408, and the connection closes. Before, remem waited with no limit.
- A connection with no request in progress closes after 60 seconds. Before, it stayed open with no limit.
- A request head larger than 16 KiB answers 431. Before, the answer was 413.
- A request with an unknown method answers 501. Before, the answer was 400.
- An HTTP/1.1 request with no
Hostheader answers 400. - The
errorfield of a 413 response isContent Too Large, the current name of the status. Before, it wasPayload Too Large. - A request body that is not valid UTF-8 answers 400 with the message
request body is not valid UTF-8. Before, the message wasmalformed request. - A request target with percent-encoding that is not valid, such as
/%zz, answers 400 with the messagemalformed request, and the connection closes. Before, the message wasmalformed encoding in path or query. POST /mcpwith a body that is not JSON answers the JSON-RPC parse error without a database connection. Before, it answered 503 while the database was down.- An MCP tool reads an integer argument with a fraction of zero, such as a
limitof5.0, as that integer. Before, a tool used the default for such alimitoroffset, andremove_eventansweredid is requiredfor such anid. - The response to a
HEADrequest has no body. - remem keeps its connections to the embedding server and to the trace collector open between requests. Before, each request opened a new connection.
- A request to the embedding server or to the trace collector fails after 30 seconds. Before, it waited with no limit.
v0.7.2
Changed
- Startup no longer waits for the ten database connections. remem
listens at once, and a request answers 503 until the first
connection is ready. - While the database is unreachable, remem logs one error for each
failed connection attempt, withreasonandretry_in_ms
attributes. Before, a failed attempt logged nothing. - A
+in a query value reads as a space, as in form encoding.
Before,GET /search?q=a+bsearched fora+b.
v0.7.1
v0.7.0
Added
- Cloud Logging lines written inside a traced request carry the
logging.googleapis.com/trace,spanId, andtrace_sampled
fields, so Logs Explorer links each line to its trace in Cloud
Trace. LOG_LEVEL=trace. Cloud Logging has no severity belowDEBUG, so
a trace line is sent asDEBUG.
Changed
- Requires Koja 0.20.
- Upgraded postgres-koja to 0.5.0.
- Tracing and logging run on the Koja stdlib
TraceandLog. The
vendoredlib/logis gone, andlib/open_telemetrynow only
handlestraceparentheaders and the OTLP export. - With no
OTEL_EXPORTER_OTLP_ENDPOINTset, no span opens and the
response carries notraceparentheader. Before, an unexported
span still ran and the header was still set. - The embedder's
POST /embedspan records the error message in its
status when the request fails, asdb.queryspans already did. - Access log lines no longer start with the trace id. Cloud Logging
lines carry it in the trace fields instead.
v0.6.0
Added
- Events, the episodic memory next to observations. Each event
belongs to one entity and records something that happened to it at
a point in time, with an integerid,content, andoccurred_at.
Events are never deduplicated. They move with a merge and cascade
on entity delete. - Routes
GET /entities/:name/events?limit=,
POST /entities/:name/events, andDELETE /events/:id. - MCP tools
add_event,recent_events, andremove_event. GET /entities/:nameandget_entityreturn the ten most recent
events underevents, next torelations. Events do not appear
in search results yet.
Changed
- The
create_entityandadd_observationstool descriptions point
session details atadd_event. - Every timestamp in a response is RFC 3339 in UTC, like
2026-09-26T01:04:40.964351Z. Before, timestamps were the
Postgres text shape,2026-09-26 01:04:40.964351+00. - The server span status is
Okfor a 2xx or 3xx response. A 4xx
stays unset and a 5xx is still an error.
v0.5.1
v0.5.0
Added
- OpenTelemetry tracing behind
OTEL_EXPORTER_OTLP_ENDPOINT. Each
request runs in a server span that continues an incoming
traceparent, with child spans for the database phase, embedding
requests, and MCP tool calls. Spans export as OTLP/JSON over HTTP
in batches. Responses carry atraceparentheader and access log
lines start with the trace id when tracing is on. lib/open_telemetry, the tracing package behind the above, with
W3C context propagation, closure-scoped spans, and a batching
exporter process.Conn.assignsfor request-scoped values, withassign,
assigned, andRouter.dispatch_conn.design/OBSERVABILITY.md, the design for runtime-owned trace
context, logging, and metrics in Koja.- Structured logging behind
GCP_PROJECT_ID. When it is set, every
log line is one Cloud Logging JSON object withseverity,
message, andtime. Access lines carry the method, path,
status, and latency inhttpRequest, and error lines carry the
Error Reporting@typeand aserviceContextnamed by
GCP_SERVICE_NAME. Without it, lines stay text.LOG_LEVELsets
the floor. lib/log, the logging package behind the above, with aLogger
value, leveled calls, attribute maps, and text and GCP formatters.
Changed
- Logging goes through a
Loggervalue built at startup and passed
to the code that logs, in place of the staticLogstruct.
Fixed
- The startup log names the running version again.
v0.4.0
Changed
- Requires Koja 0.19.
unlessis gone from the sources, tests use
testblocks withassert, and elapsed times flow through the
newDurationandInstanttypes. - postgres-koja 0.4.0.
- Access log durations pick their unit from the size, so a request
logs as452µs,3ms, or1.2s. - Log timestamps come from the standard library ISO 8601 renderer
and carry microseconds, as in2026-09-23T13:13:57.586073Z.
Removed
- The hand-rolled
Log.iso8601calendar conversion.
v0.3.2
Fixed
- The database pool now drops connections that come back closed or
mid-transaction and refills the slot, so a Postgres restart no
longer leaves broken sockets in the pool until the pod restarts.
When Postgres is down, refills retry with backoff instead of
shrinking the pool.
Changed
- postgres-koja 0.3.1, which tracks connection and transaction state.