Knotrel v1.0.0 Release Notes — Stable Contract
Status: released 2026-11-24. Stable contract for the 1.x series.
Performance qualification accepted with exceptions, transferred from the
measured candidate 0c49b2a under a documented waiver (see
Performance qualification); feeder catch-up
under query load (Q3) is a declared limitation. No release candidate was
published.
Scope
v1.0.0 freezes the contract. From this release, the stable surfaces in
stability classes follow the compatibility
policy for the whole 1.x series: the public Rust API of
knotrel-core and knotrel-server, the /v1 HTTP API and feeder protocol,
the stable KNOTREL_* variables and the stable metric families. Breaking
changes need a major release; the exceptions approved for 1.0.0 are listed
below. Lockstep: knotrel-core, knotrel-server and the console share the
version 1.0.0 and one tag, v1.0.0.
v1.0.0 adds no new graph feature. Its changes since v0.9.0 are the contract freeze (with its approved breaking changes), fixes found by the randomized soak and by the independent AI review of the contract set (R3e), and release and security tooling.
What is new since v0.9.0
Contract freeze (freeze review, maintainer decisions of 2026-11-22).
- Public Rust API frozen and checked in CI: a committed public API snapshot
(
docs/api/public-api-*.txt) with a classification of every public item, cross-checked againstdocs/stability.mdbyscripts/public-api.pyin thepublic APIjob (#113). #[non_exhaustive]onEngineConfig,GraphError,IncidenceError,EdgeState(core) andPhase(server);EdgeState::newfor construction outside the crate.ServerMode,ShutdownOutcome,GraphLimits,NodeSpecandEdgeSpecare frozen exhaustive (#113).router_with_lifecycleis Stable, with its readiness behavior during the drain documented;axum0.8 andtokio1 are documented public dependencies of the stable server API (#113).- Every ETT and HDT interface,
LifecycleGraph::storage_statsandLifecycleStorageare Stable as documented guarantees (“stable interface, experimental engine”);ettandhdtremain experimental engines (#118). - Items narrowed from Stable to Experimental are listed in
stability.md
(inspection setters and route labels,
KNOTREL_FEEDER_RESERVED_JOBSconstants, three inspection error codes and the/v1/infofieldinspection). - Admission metrics labelled by lane
(#112), feeder admission
codes,
too_many_connectionsin the error-code enum and enforced input byte limits (#114): see Compatibility.
Server fixes.
- D1 (#104): a feeder event
with
delivery_sequence: 0before the first applied event of a generation panicked the graph worker and left the server unavailable until restarted. It is now rejected with409 unverifiable_duplicatewithout state change, as documented. Found by the randomized soak. - B1 (#123): a barrier
that omits
barrier_source_position(or sendsnull) validates only the delivery sequence, as OpenAPI andhttp-api.mddocument; before, it always failed with409 barrier_position_mismatchon an initialized graph. - B8 (#123): while draining, only
GETandHEADon/health,/readyand/metricsare answered; other methods on those paths get503 shutting_down(withConnection: close) instead of405. - B10 (#123): feeder and inspection error messages no longer quote
client-supplied strings (
If-Match,source_id,source_epoch,event_id,instance_id,graph_id, positions, unknown operation and parameter names). Server state is still quoted. Message texts are internal;http-api.mdand the threat model (T1.9) state the property precisely. - B11 (#123): an inspection path segment that is not valid UTF-8
(
/v1/nodes/{node},/v1/nodes/{node}/edges) gets the JSON error envelope,422 invalid_request, or409 inspection_disabledwhen inspection is off, instead of a plain-text400. - N6 (#126):
413only when a body exceeds its limit; any other body read failure is400 invalid_request(see Compatibility). - N5a (#134): on
POST /v1/feeder/barrierthe recovery fence is checked right after the desynchronization check and before the source-position bound and the sequence and position checks, as integration contract §4.3 requires. A barrier under a fenced epoch now answers409 fenced_feeder_sessioneven when its sequence or position is also wrong (see Compatibility).
Documentation corrections of the contract (R3e, B3–B7, B9,
#122). The integration
contract no longer documents import body precondition fields (If-Match is
the only carrier); generation is a JSON integer and source_epoch a JSON
string; instance_id is an opaque string from GET /v1/info and
GET /v1/stats; the KNOTREL_MAX_IMPORT_BODY_BYTES upper bound is 536870912
(512 MiB); B7: KNOTREL_MODE=source-managed is documented as a stable
alternative spelling of source_managed (accepted before, now promised); the
HDT storage payload fields document that hashed containers are counted.
S10 (#134): ServerInfo.experimental (GET /v1/info) is defined as the
engine qualification, not a stability class: it may change from true to
false in a minor release when an engine is promoted, never from false to
true for an existing engine (OpenAPI, http-api.md, compatibility.md §2.2,
stability.md, Rust docs). N5b (#134): integration contract §3.1 states that
the import checks the X-Knotrel-Instance-Id header before the import permit
and the body instance_id after the permit and the body parse. Wire behavior
is unchanged by these corrections.
Correctness and release tooling.
- Randomized feeder/restart soak against a reference model
(
crates/knotrel-server/tests/soak.rs; short variant in CI on all three platforms) and §9 traceability: criterion 3 evidence (#105). - Reproducible-build check of the release binary, Linux and macOS (reproducible builds, #107, #109).
- The OpenAPI compatibility check also flags removed response enum values
(error codes, engine values, readiness statuses) and dropped
consts (#121). - Threat model for the supported exposure, with each
mitigation mapped to its test, and
SECURITY.mdnaming GitHub Private Vulnerability Reporting as the channel (#106); refreshed for the 1.0 contract, accepted pending maintainer review.
Console 1.0.0.
- Every console container value must be a single line: a value with a line feed or a carriage return stops the container at startup (#132; it could otherwise render extra nginx directives).
- Container variables move to the
KNOTREL_CONSOLE_namespace:KNOTREL_UPSTREAMbecomesKNOTREL_CONSOLE_UPSTREAMandKNOTREL_UPSTREAM_TIMEOUTbecomesKNOTREL_CONSOLE_UPSTREAM_TIMEOUT; the old names remain deprecated aliases for 1.x (#128, see Compatibility). - The Performance page shows one admission saturation row per lane (one
unlabelled row for servers before 1.0.0);
too_many_connectionsis a known error code (#112, #114). - Supported server range now
>=0.9.0 <1.0.0 || >=1.0.0-rc.1 <1.1.0: 0.9.x, the 1.0.0 release candidates fromrc.1, and 1.0.x (see Compatibility).
Compatibility
Approved breaking changes and exceptions for v1.0.0
Approved by the maintainer without the deprecation window of
compatibility.md §4; declared in
compatibility.md §3 and, for
OpenAPI, in docs/api/approved-breaking-changes.yaml.
- Feeder admission code
busy(decision 4, #114): an exhausted feeder admission lane (data lane:POST /v1/feeder/events,/barrier,/gap; control lane:/session,/heartbeat) answers503 busy, as the shared lane does, instead of503 import_in_progress.import_in_progressis now returned only byPOST /v1/feeder/importwhile another import runs. Clients that retried onimport_in_progressfrom those five routes retry onbusy. - Input byte limits (decision 6, #114): source positions (event
source_positionandprev_source_position, importsource_position,barrier_source_positionwhen present) are 1 to 256 bytes of UTF-8, andevent_idis at most 64 bytes, counted in bytes. A request whose only fault is a value outside them gets422 invalid_requestand changes nothing; the bound is checked at the existing validation step, not first. Before, empty positions and over-long import and barrier positions were accepted. OpenAPI gainsminLength/maxLength(nine entries inapproved-breaking-changes.yaml; OpenAPI counts characters while the server counts bytes); the tenth v1.0.0 entry,feeder_epochwithFeederU64, is a schema correction, not a behavior change (decision 10). The OpenAPI compatibility check against v0.9.0 reports exactly these 10 approved breaking changes. - 400 versus 413 on import body read errors (backlog N6, approved
2026-11-23, #126): on
POST /v1/feeder/import,413 payload_too_largenow means only that the body exceedsKNOTREL_MAX_IMPORT_BODY_BYTES, by its declaredContent-Lengthor while it is received (chunked included). A body that cannot be read to its end for another reason (client abort, malformed chunked encoding, receive error) answers400 invalid_request(“request body could not be read”), as the other JSON routes now do with the same fixed message. Before, every import body read failure answered- Feeders must not shrink an import after a 400. The import still counts
as
payload_rejectedinknotrel_imports_total(orabandoned).
- Feeders must not shrink an import after a 400. The import still counts
as
- Per-lane metric labels (decision 7, #112):
knotrel_graph_jobs_outstanding,knotrel_graph_job_capacityandknotrel_requests_rejected_totalgain alanelabel (shared,feeder_data,feeder_control,import, andnoneforshutting_downandunavailablerejections). Queries and alerts that match these series without aggregating overlanemust be updated; the bundled alert rules are. #[non_exhaustive](decisions 1–3, #113) onEngineConfig,GraphError,IncidenceError,EdgeStateandPhase: exhaustivematchoutside the crates needs a wildcard arm, andEdgeStateis built withEdgeState::new. Declared in the crates’cargo-semver-checksconfiguration and indocs/api/public-api-policy.toml, valid for v1.0.0.- Barrier recovery fence before sequence and position (review N5a,
approved 2026-11-23, #134): on
POST /v1/feeder/barriera barrier under a fenced epoch (feeder_epoch <= last_expired_epochafter a lease expiry) that also has a premature or older sequence, a mismatched position or an out-of-bounds position now answers409 fenced_feeder_session; before, it answered409 barrier_not_reached,409 superseded_barrier,409 barrier_position_mismatchor422 invalid_request. Guaranteed precedence: failed, session and lease, generation, uninitialized (B3, B4), desynchronized (B5), recovery fence, position bound, B8, B9, B7, then B1/B2. Every rejection still leaves the state unchanged. Declared in compatibility.md §3; no OpenAPI schema change. - Narrowed to Experimental: the items in stability.md, listed above (decision 8).
Other behavior changes
- B1: a barrier without
barrier_source_positionis accepted when its delivery sequence matches (it was always refused before; documented behavior). - B8:
503 shutting_downinstead of405for a non-read method on a probe or metrics path while draining (documented behavior). - B10: error message texts no longer quote client input (message texts are internal).
- B11:
422 invalid_requestor409 inspection_disabledinstead of a plain-text400for a non-UTF-8 inspection path (experimental routes). too_many_connectionsjoins theErrorCodeenum and the OpenAPI enum (decision 5); the wire bytes of the accept-loop rejection are unchanged.
Configuration
- Console variables renamed (S13, #128):
KNOTREL_CONSOLE_UPSTREAMandKNOTREL_CONSOLE_UPSTREAM_TIMEOUTreplaceKNOTREL_UPSTREAMandKNOTREL_UPSTREAM_TIMEOUT. The old names are deprecated aliases for 1.x: an alias alone is used with a deprecation warning, an alias equal to the new name is redundant (warning), and different values refuse to start. Console images up to 0.9.x accept only the old names. - The server ignores the console namespace: every
KNOTREL_CONSOLE_*name and the two legacy names are console-owned; the server ignores them silently, so one environment file can configure both. Every other unknownKNOTREL_*name still stops the server. KNOTREL_MODE=source-managedis a documented, stable alternative spelling (B7). No other variable, default or accepted value changed.
Rust and toolchain
- Rust: apart from the approved changes above, API additions only,
checked by
cargo-semver-checksagainst v0.9.0 and by the public API snapshot. Under Cargo’s rules, moving from 0.9 to 1.0 requires updating the version requirement (knotrel-core = "1"). - Toolchain: Rust 1.100.0 for the workspace;
knotrel-coreMSRV 1.98.1, unchanged.
Console and servers (mandatory check)
The console’s browser tests (14 tests, Chromium and Firefox; npm run build,
then npx playwright test with KNOTREL_SERVER_BIN) were repeated on the
release commit on 2026-11-24, against two release servers
(cargo build --release -p knotrel-server --locked):
| Server | Result |
|---|---|
Release commit, version 1.0.0 (knotrel_build_info{version="1.0.0"}) |
28 of 28 in the full rerun |
Tag v0.9.0 (knotrel_build_info{version="0.9.0"}) |
28 of 28 |
Against the 1.0.0 server, the keyboard-only accessibility test failed once in Chromium in the first full run and once in five isolated reruns, both times waiting for focus on a menu item while the page reported itself inactive; it passed in the other four reruns and in the full rerun. The same intermittent failure was seen on 2026-11-24 against the candidate’s server. The console code is unchanged since the candidate.
knotrel.supportedServer is >=0.9.0 <1.1.0: servers 0.9.x, 1.0.0 and its
1.0.x patches. Server 0.8 is not in the range because it was not tested
again. No release candidate was published, so the range names no prerelease.
Performance qualification
The v1.0.0 campaign (plan; decision record
results/v1.0.0-qualification/DECISION.md
in knotrel-benchmarks) measured candidate 0c49b2a (1.0.0-rc.1) against the
published v0.9.0 on 2026-11-23.
- Campaign execution: valid. Part 1 CONFORMING (77.6 of 105 min), block Q COMPLETE (27.5 of 30 min). The core rule added B1–B3, B5 and T5.
- Release qualification: accepted with exceptions. This is not “all gates PASS”. No deciding result is REGRESSION or FAIL. Every verdict is kept as measured; the maintainer’s dispositions are recorded next to them, and no v0.9.0 acceptance was inherited.
- PASS: A 8 of 9 cells; B1–B3 37/37; B4 deciding 21 of 22; B5 2/2; C1–C3 105/105; T5 6/6; R 9 of 11 (one PASS (IMPROVED)); Rmem 20/20 metrics; M_reg 6/6; feeder Q1, Q2, Q4 and Q5 (Q5 against v0.9.0 in the same session: query throughput ×1.07 at 16 clients and ×1.01 at 64).
- Accepted inconclusive results (dispositions, verdicts unchanged):
- A
http_standalone_batch_b256: UNRESOLVED. The primary metric is within tolerance; the sampled RSS interval [−7.1%, +22.4%] crosses the 20% tolerance. No RSS claim for this cell. - B4
metrics-ops(E3): INCONCLUSIVE. In the measured configuration, enabling metrics increased batch-operation time by 5.4%; the confidence interval [+1.5%, +6.6%] crosses the 6% budget, with upper bound +6.6%. - R
core-importsparse and hub 10k: INCONCLUSIVE, neutral medians (−1.9%, −0.7%) with wide intervals. No equivalence claim at 10k.
- A
- Q3, feeder catch-up under query load: FAIL, accepted as a known limit with an operational envelope (feeder under load). At G100k the catch-up rate fell from 178,095 events/s without queries to 31,455 (17.7%) with 16 query clients and 16,675 (9.4%) with 64, against thresholds of 50% and 25%. Consistent with what was observed in v0.9.0; no claim of absence of regression. Its diagnosis (R2) is separate.
- Not qualified (E6): the B4 lifecycle
opsandeventsrequirements on the compact-bfs hub 10k graph have no equivalent reference. They are accepted as unqualified requirements for 1.0, with no performance claim. - Disclosures (reported by rule, not converted): C4 RSS EXCEEDS_BUDGET in
six cells; B4
import-highdescriptive REGRESSION (+402%, within the candidate build, as in v0.9.0); B4opssparse 100k descriptive INCONCLUSIVE (+19.9%, interval up to +25.1% against 25%). - Measured on one Apple M3 (16 GB) with the server, PostgreSQL 18.7 and the load generator on the same machine. No result is claimed for other hardware.
Transfer to 1.0.0 (maintainer waiver, 2026-11-24). The measured candidate
carries the version 1.0.0-rc.1; no release candidate was published. The
release commit differs from it in crates/, Cargo.toml, Cargo.lock and
rust-toolchain.toml only by the four version lines, with the same resolved
dependencies and build configuration. The version change alone alters the
__TEXT,__text section of the release build, which the qualification plan
requires to be identical; the maintainer waived that requirement for this
step only (waiver record). The qualification
above applies to 1.0.0 unchanged, with all its exceptions and limitations.
Binary identity with the measured build is not claimed, and 1.0.0 was not
measured again.
Review
The contract set was reviewed by an independent AI review agent (R3e, review); this is not a human review. Its blocking findings B1–B11 are resolved (#121, #122, #123, verified in #124 and #125); the non-blocking findings are tracked in the v1.0 backlog.
Release gates
- Performance campaign on candidate
0c49b2a, with the maintainer’s decision (2026-11-23: accepted with exceptions), transferred to 1.0.0 under the waiver of 2026-11-24. - rc→1.0 diff under the compatibility policy: against the candidate,
only the version fields changed in
crates/,Cargo.toml,Cargo.lockandrust-toolchain.toml; no contract change. - Performance pages: the v1.0.0 results on the benchmark site, as “qualification accepted with exceptions” (knotrel/knotrel-benchmarks#33, 2026-11-24).
- R2 (not a gate: separate diagnosis, maintainer decision 2026-11-23): diagnosis of the Q3 limitation (feeder catch-up under query load), knotrel/knotrel#87.
- Platform smoke tests of the release binaries (Linux, macOS,
Windows: the CI
testjobs on0c49b2a) and the deployment and rebuild smoke test (examples/container/check-deployment.shon an image built from0c49b2a, 0 failures), 2026-11-24. - Console compatibility on the release code (see Compatibility).
- Private Vulnerability Reporting enabled on
knotrel/knotreland verified on 2026-11-23 (GitHub API"enabled": true, Report a vulnerability on the public Security page; threat model, G4). - Maintainer acceptance of the threat model (2026-11-23, with conditions).
- Long soak on the release code, repeated on the release commit (criterion 3 evidence §1.5).
- Maintainer acceptance of the criterion 3 evidence and of the long soak (2026-11-24).
- CI on Linux, macOS and Windows on the release commit, including
API compatibilityandpublic API(knotrel/knotrel#148). - Release dry runs on the release commit
d38df5f:release.yml(45343956324) andconsole-release.yml(45343992191). - Reproducible build on
d38df5fagainst the dry-run bundle: Linux byte-identical; macOS not byte-identical, equivalent after excluding onlyLC_UUIDand the ad-hoc signature, with identical code and data, accepted by the maintainer for v1.0.0 on 2026-11-24 (result; the cause of the UUID difference is a hypothesis). Repeated against the published release with the same verdicts. - Signed tags
v1.0.0: knotrel ond38df5f(the verified commit; this record was added after the tag), knotrel-benchmarks onea8bbb5; maintainer authorization 2026-11-24. - Crates
knotrel-coreandknotrel-server1.0.0 on crates.io and the server binaries on the GitHub Releasev1.0.0(45346451616); the published binaries are identical to the verified ones. - Console artifacts: image
ghcr.io/knotrel/knotrel-console:1.0.0(sha256:2cf74c6458e6d95b5fb269864b7c976d59444360266e08a77e19bdce6983b536),latestmoved to the same digest, archive and checksum on the release (45351540786).
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.0.0 keep the state at the tag.