Knotrel v1.3.0 Release Notes — Graphs, Identity and Snapshots
Status: released 2026-12-02. Knotrel can now manage graph resources
owned by tenants (create, list, read, update and delete; reading and changing
their content over HTTP is not part of this release), authorize requests from
an identity that a trusted gateway verifies, and snapshot the default graph and
restore it at startup. All three are experimental and opt-in; with the default
configuration the server behaves as in v1.2.0. The performance qualification
of candidate 051afb7 against v1.2.0 is accepted with exceptions; the
release ships the release code of that candidate (see
Performance qualification).
Scope
The 1.x contract of v1.0.0 is unchanged
(compatibility). Lockstep: knotrel-core,
knotrel-server, the console and the two new crates knotrel-storage and
knotrel-runtime share the version 1.3.0 and one tag, v1.3.0.
What is new since v1.2.0
Graph runtime and registry (ADR 0015; #228, #229, #231).
- The new crate
knotrel-runtimeholds a registry of graphs keyed by tenant and graph ID, with the per-graph lock, lifecycle, admission lanes, the optional query limiter, a deletion drain, the process-wide import permit and the source synchronization state (state version, generation, cursor, feeder session and lease, readiness). knotrel-serverruns every job through the runtime. The default graph and the existing routes, configuration and metrics are unchanged.- Each named tenant has quotas: 16 graphs, 64 pending jobs, and as many
executing jobs as the CPUs available to the process
(
KNOTREL_TENANT_MAX_GRAPHS,KNOTREL_TENANT_MAX_PENDING_JOBS,KNOTREL_TENANT_MAX_EXECUTING_JOBS). The default graph is exempt. - The whole public API of
knotrel-runtimeis Experimental (stability).
Graph resources, experimental (#236, graph resources).
POST /v1/graphs,GET /v1/graphsandGET/PATCH/DELETE /v1/graphs/{graph_id}create, list, read, update (JSON Merge Patch withIf-Match) and delete graphs with bounded descriptive metadata.POSTaccepts anIdempotency-Key.- The tenant comes only from the authenticated identity. A graph of another
tenant answers like a missing one (
404 graph_not_found). - New error codes:
graph_not_found,graph_quota_exceeded,idempotency_key_reused. - Limitation of this release: only the resource routes exist. A created
graph cannot yet be populated or queried over HTTP: operations, batches,
stats, inspection and feeder routes act only on the default graph (per-graph
data and feeder routes are planned in
#155). Graph records live in
memory and are lost on restart; snapshots cover only the default graph.
Embedders can run several graphs through the
knotrel-runtimelibrary.
Gateway-verified identity, experimental and opt-in (ADR 0017; #227, authentication).
KNOTREL_AUTH=gateway-identityauthenticates every request from the headersX-Knotrel-Auth-Subject,-Tenantand-Roles, which a trusted gateway sets after verifying the caller.KNOTREL_AUTH_TRUSTED_PEERSoptionally restricts which peer addresses may send them.- Each role grants one action (probe, metrics, read, inspect, mutate, feeder
control, feeder data, import, graph admin, tenant admin). Missing,
duplicated, malformed or unknown identity headers answer
401 unauthenticated; a missing role answers403 forbidden. The check runs before the body is read and before admission, so a mixed batch from a read-only identity applies nothing. - The default,
KNOTREL_AUTH=none, keeps v1.2.0’s behavior: no check, and identity headers are ignored. Gateway identity does not make exposure to untrusted networks supported (threat model). - Library: the experimental module
knotrel_server::auth(Authenticator,Authorizer,Principal,Action,Resource,RoleAuthorizer,GatewayIdentity) andServerConfig::with_authentication.
Snapshots of the default graph, experimental and opt-in (ADR 0016; #230, #234, #235, #237, snapshots).
- The new crate
knotrel-storagewrites an engine-neutral logical image of a graph and its source progress in a deterministic, checksummed format, and publishes it atomically in a local directory with retention (2 snapshots by default). Its public API is Experimental. - In source-managed mode,
KNOTREL_SNAPSHOT_DIRenablesPOST /v1/snapshots(graph admin). The graph is copied under the read lock and written off the lock. - At startup the server restores the newest valid snapshot in the
background: the graph is published in
catching_upat the snapshot’s source position and becomes ready only at the feeder’s barrier (integration contract, section 8.3). A missing, corrupt or incompatible snapshot falls back to an uninitialized graph; no file is deleted. - Core: experimental bulk listing
for_each_node/for_each_edgeon every engine, used to build the image. - What the qualification measured: in the loopback test with 100,000
nodes, the time to reach
ready, including catching up the feeder’s events, was 1.07 to 1.50 times that of a full rebuild on three of the four engines. Onhdtthe measurement did not distinguish the two times. To size recovery, measure both modes with your own data source and load (see Snapshots (N1)).
Console (#242, console guide).
- With
KNOTREL_CONSOLE_FORWARD_GATEWAY_IDENTITY=on(defaultoff), the console container relays exactly the three identity headers to Knotrel; withoffnoX-Knotrel-Auth-*header reaches Knotrel.401and403are shown as “Not authenticated” and “Not allowed” with guidance. - A read-only Graphs page lists graph resources (
GET /v1/graphsandGET /v1/graphs/{graph_id}only; the gateway refuses mutations).
Publication. knotrel-storage and knotrel-runtime are published on
crates.io for the first time, before knotrel-server, which depends on them
(#241). The release bundle has
four .crate files and 18 assets.
Compatibility
No breaking change: v1.3.0 follows the 1.x contract of v1.0.0
(compatibility policy). Every addition is
experimental: the two new crates, the knotrel_server::auth module, the
/v1/graphs and /v1/snapshots routes, the KNOTREL_AUTH*,
KNOTREL_TENANT_MAX_* and KNOTREL_SNAPSHOT_DIR variables, the new error
codes, the persistence and authentication fields of /v1/info and the
snapshot fields of /v1/stats. The existing functions of knotrel-core are
unchanged (ADR 0018);
its additions are the experimental listing methods.
Console and servers (mandatory check)
The console’s browser tests (Chromium and Firefox; npm run build, then
npx playwright test with KNOTREL_SERVER_BIN) were run on 2026-12-01 on the
release branch, against two servers:
| Server | Result |
|---|---|
Release branch, version 1.3.0 (cargo build --release -p knotrel-server --locked) |
38 of 38 |
v1.2.0, built from the tag v1.2.0 (446253a) by the v1.3.0 qualification campaign |
30 of 30 outside graphs.spec.ts; the 8 graph resource and gateway identity tests fail or do not run, because server 1.2 has neither feature |
knotrel.supportedServer of the console is >=1.2.0 <1.4.0: servers 1.2.x
and 1.3.x. With server 1.2, the Graphs page and gateway identity are not
available. Compatibility change: console 1.2 declared >=1.1.0 <1.3.0;
server 1.1 was not tested again with console 1.3, so under the compatibility
policy (section 5: never wider than tested) it is outside the 1.3 range.
Console 1.2 keeps its declared support for server 1.1.
Performance qualification
Qualification of candidate 051afb7 against v1.2.0: accepted with
exceptions (maintainer decision of 2026-12-01 on
#187).
Every class stays as measured; nothing is converted into PASS. Attempt 3 ran
on one Apple M3 host on 2026-12-01, after a restart, with no swap activity,
on AC power; attempts 1 and 2 were nonconforming for host reasons and
contribute no data. Plan, report and evidence:
v1.3.0 campaign page;
every verdict with its interval:
qualification report.
Deciding items on 051afb7: 41 PASS, no REGRESSION, one FAIL and three
items without a verdict, each accepted with the exception stated next to it.
Q1, Q2, Q4 and Q5 are PASS in both query-limiter configurations.
What passed:
- Existing server workloads (V2): all 12 metrics of the six regression cells against v1.2.0, within 10 % (time per request) and 25 % (p99).
- Authentication overhead (N2): with gateway identity on, against off, time per request [+0.6, +1.5] % and p99 [−0.6, +4.6] %: PASS.
- Registry with 64 empty graphs (N3): throughput and p99 PASS. Server RSS grows by about 828 KiB per empty graph (descriptive).
- Lifecycle cost (B4): all 23 deciding cells PASS, including
ops-atomichub 10k ([−4.4, −2.8] % against 25 %). - HTTP batch
b8andb256(V1): PASS. - Feeder and queries (Q1, Q2, Q4, Q5): PASS with and without
KNOTREL_MAX_CONCURRENT_QUERIES=4. In both configurations, query throughput under feeder load is at least v1.2.0’s, with p99 at most 105 % of it (Q5).
Exceptions, accepted by the maintainer:
- Q3, default configuration: FAIL, accepted. With 16 query clients the
feeder keeps 47.9 % of its no-load rate, below the 50 % threshold; with 64
clients 43.9 % against 25 %. With
KNOTREL_MAX_CONCURRENT_QUERIES=4, Q3 is PASS (53.9 % and 51.8 %). In v1.2.0 it was the reverse (default 60.2 %,K=448.9 %); the report does not establish whether the change comes from the code (the feeder path moved toknotrel-runtime) or from run-to-run spread. Recommendation: to catch up a backlog under a query load similar to the measured one, tryKNOTREL_MAX_CONCURRENT_QUERIES=4; for other loads the default (unset) stays. The bound can reduce query throughput and must be evaluated on the deployment (bounded query concurrency). The limit stays tracked in #87. - HTTP batch
b1(V1): UNRESOLVED, accepted with disclosure. The primary metric is PASS ([−4.8, +5.0] %); request p99 is INCONCLUSIVE, [−37.3, +64.6] % against 25 %. - HTTP batch
b64(V1): UNRESOLVED, accepted with disclosure. The primary metric is PASS ([−3.2, +3.3] %); RSS is INCONCLUSIVE, [−3.0, +25.5] % against 20 %. -
HTTP lifecycle readiness (V1,
compact-bfssmall): INCONCLUSIVE_DISCLOSED, accepted with disclosure, median +4.0 %, interval [−17.6, +32.8] % against 10 %, as in every v1.2.0 run.These three intervals leave open a relevant worsening of the metric concerned. No further measurement was taken.
Hub 10k events: still unqualified. Under decision D2 the cell
B4-http-events-compact-bfs-hub-10000 was re-measured, because the lifecycle
request path changed: +5.7 % [+4.2, +6.5] % against the 25 % tolerance (class
PASS under the absolute B4 rule). It is not a verdict on the requirement. In
the frozen protocol the cell is outside the 23 deciding cells: it has no
verdict on the requirement, as in v1.0.0 and v1.2.0. Its reference splits the
two hub chunks across two plain requests (76 requests against 74), so a
reader querying the server directly can observe the state between them; no
atomic reference was adopted for events
(hub 10k reference design,
decisions M1 and M2). The v1.2.0 disposition stands: hub 10k events carries
no performance claim.
Descriptive, no release verdict:
- B4
import-highsparse 10k REGRESSION (+393 %) andopssparse 100k INCONCLUSIVE (+22 %), against their frozen, non-equivalent reference arms, repeat the v1.0.0 and v1.2.0 disclosures. - V1 core cells decide nothing about the core, whose existing functions are unchanged.
Snapshots (N1, descriptive)
Source graph of 100 000 nodes and 199 994 edges, 6 pairs per engine; all 72
records passed the correctness gate (counts, source progress, readiness and
3 977 connected answers against an independent union-find). Snapshot files
are 4.30 MB. Restore to ready divided by rebuild to ready, median and range of
the paired ratios:
| Engine | Snapshot | Restore to ready | Rebuild to ready | Restore / rebuild |
|---|---|---|---|---|
compact-bfs |
66.9 ms | 45.4 ms | 30.2 ms | 1.50 [1.47, 1.52] |
ett |
70.6 ms | 130.5 ms | 121.2 ms | 1.07 [1.06, 1.14] |
hdt |
70.5 ms | 151.1 ms | 146.2 ms | 1.03 [0.92, 1.10] |
cluster-forest |
70.3 ms | 85.8 ms | 72.8 ms | 1.20 [1.07, 1.25] |
In the loopback test with 100,000 nodes, the time to reach ready,
including catching up the feeder’s events, was 1.07 to 1.50 times that of a
full rebuild on three of the four engines. On hdt the measurement did not
distinguish the two times. To size recovery, measure both modes with your own
data source and load. The measurement says nothing about larger graphs,
remote sources or sources that cannot replay from the start.
Release code. crates/, Cargo.toml, Cargo.lock and
rust-toolchain.toml of the release commit equal 051afb7 apart from the
version bump to 1.3.0 and documentation: the crate READMEs and the crate-level
//! comments in the four src/lib.rs files, which compile to no code.
Release gates
- Performance campaign on
051afb7: attempt 3 (knotrel/knotrel-benchmarks#96), under amendments 1–3 (knotrel/knotrel-benchmarks#95). - Release decision on #187: accepted with exceptions, with the dispositions above (2026-12-01).
- Console compatibility: browser tests on the release branch against its own server (38 of 38) and the v1.2.0 server (30 of 30 outside the 1.3-only graph resource and gateway identity tests), 2026-12-01.
- Performance pages: the v1.3.0 entry on the benchmark site and the
v1.3.0 comparison in
history/performance-by-version.md, merged right before the tags (knotrel-benchmarks pull request). - CI on Linux, macOS and Windows on the release commit, including
API compatibilityandpublic API. - Release dry runs on the release commit:
release.ymlandconsole-release.yml. - Reproducible build on the release commit against the dry-run bundle.
- First publication of
knotrel-storageandknotrel-runtime: a token with thepublish-newscope in thecrates-ioenvironment (maintainer, release procedure, section 2.3). - Signed tags
v1.3.0on knotrel and knotrel-benchmarks, with the maintainer’s authorization. - Crates
knotrel-core,knotrel-storage,knotrel-runtimeandknotrel-server1.3.0 on crates.io, server binaries on the GitHub Releasev1.3.0, console image and archive. - After publication: close #187.
The unchecked items are recorded after they happen; this status does not
change. Items checked after the tag are recorded on main; the tagged notes
at v1.3.0 keep the state at the tag.