Knotrel Docs

v1.0 contract freeze review (readiness criterion 1, rc gate R3d)

Status: proposed, 2026-11-22. Nothing here is decided. The freeze is the maintainer’s decision (rc plan, R3d: “Approve the frozen list”). This review prepares it; the independent AI review of the whole 1.0 contract set (criterion 9, R3e) comes after and is done separately.

Written on branch docs/contract-freeze-review, cut from main at e118711 (after the threat model #106, the soak #105, the D1 fix #104 and the reproducible-build check #107/#109). Policy and classes: compatibility.md; current classification: stability.md (approved 2026-11-21).

1. Method

The inventory was built from the code, not from summaries:

Surface Source of truth used How
Rust public API, knotrel-core and knotrel-server rustdoc JSON (format 61) of both crates, default features and test-support RUSTC_BOOTSTRAP=1 cargo rustdoc -p <crate> --lib -- -Z unstable-options --output-format json, walked from the crate root (re-exports followed, private items dropped)
Rust API compatibility cargo semver-checks 0.51.0, as the API compatibility CI job cargo semver-checks check-release --workspace --baseline-rev v0.9.0 --release-type minor: pass for both crates (“no semver update required”, 202 checks)
HTTP routes the Axum router (crates/knotrel-server/src/lib.rs, build_router_from_service) compared with docs/openapi.yaml paths and docs/http-api.md
HTTP fields, statuses, headers, error codes serde types and handlers in crates/knotrel-server/src/{api,service,graph,lifecycle}.rs compared with docs/openapi.yaml and docs/http-api.md
OpenAPI compatibility scripts/check-openapi-compat.py against v0.9.0:docs/openapi.yaml pass: 0 breaking changes, 0 notes; tests/test_openapi_compat.py 19/19; openapi-spec-validator 0.7.2: valid
KNOTREL_* variables every std::env / process.env / template read in crates/, console/, integrations/ compared with stability.md and the operator documents
Metrics crates/knotrel-server/src/metrics.rs (registration and rendering) compared with docs/observability-contract.md
Feeder protocol docs/integration-contract.md links, examples and normative surfaces against the code and OpenAPI
Console compatibility range console/package.json (knotrel.supportedServer) compared with docs/console.md and docs/compatibility.md

No behavior was changed. The only edits on the branch are the two mechanical gaps named by the criterion (section 4), one of which is a Rustdoc comment.

2. Inventory summary

2.1 Rust: knotrel-core (default features; the crate has no features)

Group Public items found in the code stability.md
Static graph NodeId (type alias of u64); Graph (new, add_node, link, cut, connected, connected_with_workspace, node_count, edge_count, degree, enable_neighbor_listing, neighbors_after); BfsWorkspace; GraphError (4 variants, exhaustive); IncidenceError (3 variants, exhaustive) Stable
Engine selection ConnectivityGraph (new, with_limits, try_from_edges, limits, engine, contains_node, add_node, link, cut, connected, enable_neighbor_listing, as_compact, node_count, edge_count; From<Graph>); EngineConfig (CompactBfs, EulerTour, Hdt, exhaustive; as_str, is_experimental); GraphLimits (public fields max_nodes, max_edges, exhaustive) Stable, except the EulerTour/Hdt variants and is_experimental: Experimental
Experimental engines ForestGraph (9 methods), ForestStats (4 public fields), HdtGraph (10 methods), HdtStats (6), HdtLevelStorage (11), HdtStorageStats (8) Experimental
Lifecycle LifecycleGraph (24 methods incl. supports_engine, try_from_topology, set_node_active, set_edge_enabled, remove_node, edge_state, degree, incident_after, the five counts, engine_vertex_count, storage_stats); NodeSpec, EdgeSpec, EdgeState (public fields, exhaustive); LifecycleError (5 variants, #[non_exhaustive]); LifecycleStorage (6 fields, #[non_exhaustive]) Stable; LifecycleStorage Experimental
Test oracle ReferenceGraph (7 methods) Internal

2.2 Rust: knotrel-server

Group Public items found in the code stability.md
Serving serve(listener: tokio::net::TcpListener, app: axum::Router, &ServerConfig, &Lifecycle, shutdown), ShutdownOutcome (Drained, DeadlineExceeded { abandoned }, exhaustive) Stable
Routers router(knotrel_core::Graph), router_with_config, router_with_lifecycle, all returning axum::Router router, router_with_config Stable; router_with_lifecycle Internal
Configuration ServerConfig: 17 associated constants (DEFAULT_*, MAX_*, incl. DEFAULT_/MAX_FEEDER_RESERVED_JOBS), new, new_allowing_non_loopback, from_env, is_exposed, 11 with_* builders, 15 accessors (incl. with_inspection/inspection); ServerMode (Standalone, SourceManaged, exhaustive; as_str); ConfigError (opaque tuple struct) Stable; with_feeder_reserved_jobs/feeder_reserved_jobs Experimental
Lifecycle Lifecycle (new, phase, mark_ready, begin_draining, outstanding_jobs), Phase (3 variants, exhaustive) Stable
test-support feature GateDecision, WorkerPauseHandle, six Lifecycle pause/hook methods, advance_clock, lock_clock_for_test, reset_clock, percent_decode_position, percent_encode_position, router_with_seeded_version, router_with_seeded_state Internal

Public dependencies in stable signatures: axum::Router (axum 0.8) and tokio::net::TcpListener (tokio 1). knotrel-server’s rust-version is 1.100.0; knotrel-core’s is 1.98.1.

2.3 HTTP API

17 operations, identical in the router and in docs/openapi.yaml: GET /health, /ready, /metrics (registered only when metrics are enabled), /v1/info, /v1/stats, /v1/nodes, /v1/nodes/{node}, /v1/nodes/{node}/edges, /v1/edges (the four inspection routes are x-knotrel-stability: experimental); POST /v1/operations, /v1/batch, /v1/feeder/{session,heartbeat,import,events,gap,barrier}.

2.4 Configuration (KNOTREL_*)

2.5 Metrics

27 families, as stability.md states: 2 HTTP families, 18 service families, 7 rendered at scrape time. Names, types, label names and every closed label value set in the code match observability-contract.md (§4, §7, §19, §20); alerting.md and examples/observability/prometheus-alerts.yml use only real names and values.

2.6 Feeder protocol (integration-contract.md)

Routes, request and response shapes, the X-Knotrel-Instance-Id/If-Match rules, lease and deduplication bounds match the code and OpenAPI. The feeder-events example (§10.4) is consistent with FeederEventsRequest/ FeederEvent in the code and OpenAPI (the v0.6.0 defect stays fixed); so are the session, heartbeat, import, barrier and gap examples. 7 relative links were broken (fixed, section 4). Stale normative text remains (P1).

2.7 Console

console/package.json: supportedServer >=0.8.0 <0.10.0, openapiSha256 equal to the SHA-256 of the current docs/openapi.yaml; docs/console.md states the same range. The console decodes unknown error codes as known: false rather than failing (console/src/api/decode.ts).

3. Findings

Severity:

Every resolution is a proposal. None is applied on this branch.

3.1 Rust

ID Severity Finding Proposed resolution
R1 Freeze EngineConfig is an exhaustive stable enum that carries two experimental variants (EulerTour, Hdt). Removing an experimental engine, or adding any new engine, is a breaking Rust change that cargo-semver-checks fails, which contradicts “experimental may be removed in any minor release” and blocks new engines until 2.0. Add #[non_exhaustive] to EngineConfig before the rc. This breaks downstream exhaustive matches, so it needs a maintainer-approved exception: no deprecation path exists for #[non_exhaustive]; declare it in the core’s cargo-semver-checks configuration and the release notes. Alternative: freeze as is and accept that a new engine requires 2.0.
R2 Freeze Other stable enums are exhaustive: GraphError, IncidenceError (core); ServerMode, Phase, ShutdownOutcome (server, incl. the struct variant DeadlineExceeded { abandoned }). After 1.0, a new error or phase requires 2.0. LifecycleError and LifecycleStorage are already #[non_exhaustive] (precedent). Same decision as R1, per enum. Recommendation: #[non_exhaustive] on GraphError, IncidenceError and Phase, where new cases are plausible; freeze ServerMode and ShutdownOutcome as they are.
R3 Freeze Stable structs with only public fields and no #[non_exhaustive]: GraphLimits, NodeSpec, EdgeSpec (inputs, built with struct literals) and EdgeState (output only). Adding a field after 1.0 is breaking. Freeze GraphLimits, NodeSpec and EdgeSpec as they are; #[non_exhaustive] on EdgeState (same exception as R1). The experimental counter structs (ForestStats, HdtStats, HdtLevelStorage, HdtStorageStats) may change in a minor release anyway.
R4 rc router_with_lifecycle is classified Internal, but it is the only way to connect a stable Lifecycle to a router served by the stable serve. The binary uses it (main.rs:32), the crate docs recommend it (lib.rs:16, lib.rs:136), and so does http-api.md (line 414). router_with_config creates its own ready lifecycle, so /ready would not follow the drain. Reclassify router_with_lifecycle as Stable. Keep the two router_with_seeded_* helpers Internal; they exist only with test-support.
R5 Freeze Stable signatures expose foreign types: axum::Router (axum 0.8) in router, router_with_config, router_with_lifecycle and serve; tokio::net::TcpListener in serve. Upgrading to axum 0.9 changes those types, so it is breaking for knotrel-server. Recommendation: declare axum 0.8 and tokio 1 part of the stable server API in stability.md, so an axum major upgrade means a Knotrel major release. Alternative: hide them behind an opaque Knotrel type before the rc (an API change for embedders).
R6 rc Inconsistent classes inside ServerConfig: with_inspection/inspection fall under the blanket “Stable”, but KNOTREL_INSPECTION and the inspection routes are Experimental. DEFAULT_FEEDER_RESERVED_JOBS and MAX_FEEDER_RESERVED_JOBS fall under “DEFAULT_*/MAX_* constants: Stable”, but the setting is Experimental. List with_inspection, inspection and the two *_FEEDER_RESERVED_JOBS constants as Experimental, with their variables.
R7 rc stability.md names EngineConfig::Ett, which does not exist: the variant is EngineConfig::EulerTour; ett is its as_str value, used by the variable and the HTTP field. Correct the name; classification unchanged.
R8 Minor stability.md lists “limits” under Graph, which has no limit accessor (limits live on ConnectivityGraph and LifecycleGraph). EngineConfig::as_str and ConnectivityGraph::{new, with_limits, limits, engine} are not named. Unnamed items formally count as internal. Name them explicitly as Stable (as_str returns the stable KNOTREL_ENGINE values).
R9 Minor ReferenceGraph is Internal, but its rustdoc does not say so; docs.rs presents it like the other graphs. Add a sentence to its rustdoc: “Internal test oracle; no stability promise.” Optionally #[doc(hidden)].
R10 Minor knotrel-server declares rust-version = "1.100.0", an effective MSRV, while compatibility.md calls 1.100.0 “a development setting, not a promise”. State the server’s MSRV rule in compatibility.md §3, for example “raised only in a minor release”, like the core’s.
R11 rc Criterion 1 asks for “a cargo public-api-style snapshot (or an equivalent checked list) in CI”. CI runs cargo-semver-checks (pass against v0.9.0), which catches breaking changes but neither lists the API nor detects an unclassified addition. It also checks default features only. Add a checked list: commit the inventory generated by this review (rustdoc JSON walk, or cargo public-api if added as a tool) as docs/api/public-api-*.txt, and fail CI on any diff that does not also touch stability.md. Alternatively, the maintainer accepts cargo-semver-checks plus the stability.md review rule (compatibility.md §6) as the equivalent.

3.2 HTTP API

ID Severity Finding Proposed resolution
H1 Freeze The connection limit answers 503 with code: "too_many_connections" (serve.rs:38-43), a code in neither the Rust ErrorCode enum nor the OpenAPI enum. Only http-api.md (lines 53 and 633) mentions it. stability.md makes “every error code in docs/openapi.yaml” stable, so this one is formally unclassified. Add too_many_connections to the OpenAPI ErrorCode enum (additive) and to the Rust enum, with a test that ties ErrorCode::ALL to the OpenAPI enum. Classify it Stable.
H2 Freeze A full feeder admission lane (data: events, barrier, gap; control: session, heartbeat) returns 503 import_in_progress, with the message “another import is in progress” (service.rs:805-811, api.rs:1599-1603). http-api.md:47 says this only for the control lane; OpenAPI does not say which code. Codes freeze at 1.0. Decide the code before the freeze. Recommendation: return busy for an exhausted feeder lane, as for the shared lane, and keep import_in_progress for a concurrent import. Under compatibility.md §3 this is “a different code for an existing condition”, so it needs an approved exception. Alternative: keep the code and document it on every feeder route.
H3 rc In source-managed mode POST /v1/operations answers 503 uninitialized, loading or desynchronized (service.rs:933-966, api.rs:984-987). The OpenAPI 503 lists only busy, unavailable and shutting_down; http-api.md:166 lists busy/unavailable. In /v1/batch the same refusal comes back as per-item results in a 200, documented nowhere. Document both in OpenAPI and http-api.md. No code change.
H4 rc POST /v1/operations adds version headers to every outcome, including 404, 422 and 503 (api.rs), but OpenAPI says “Error responses carry no version headers” (true for /v1/batch only) and declares none on those responses. Document the actual behavior (headers on every /v1/operations response) in both documents.
H5 rc Source positions are documented as 1 to 256 bytes (http-api.md:964, integration-contract.md:147). The code checks only the maximum, and only on event source_position/prev_source_position (service.rs:1404-1411); empty strings are accepted, and import source_position and barrier_source_position are not checked. OpenAPI has no maxLength, and also omits the 64-byte event_id limit (api.rs:93). Decide whether to enforce the documented bounds in the code (rejecting inputs that are accepted today: an approved exception) or to document what is enforced. Add minLength/maxLength to OpenAPI either way.
H6 rc Statuses produced by middleware are missing from OpenAPI: 503 shutting_down while draining on every route except probes and /metrics; 503 request_timeout on every route (/v1/info lists only 200); 500 from /metrics on an encoding failure; 404/405 for unknown routes and methods (and 503 for them while draining). Add a shared 503 response (and the 500 on /metrics) to every operation; describe the 404/405 rule in the OpenAPI info.description.
H7 rc The import 413 uses payload_too_large, the other routes 413 invalid_request; no OpenAPI response shows payload_too_large. http-api.md never mentions payload_too_large, session_required, invalid_instance_id, invalid_lease_duration, graph_already_initialized or sequence_exhausted; about 20 further codes appear in OpenAPI only in the enum, never in a response. Map every code to its route and status in OpenAPI and http-api.md (documentation only).
H8 rc Experimental items covered by stable blanket rules: the error codes inspection_disabled, inspection_unsupported, invalid_cursor (only the experimental inspection routes emit them) and the /v1/info field inspection fall under “every error code is stable” and the stable /v1/info. feeder_reserved_jobs is Experimental only in stability.md: OpenAPI has no field-level marker, and check-openapi-compat.py checks the marker only per operation, so removing the field would fail CI. Classify the three codes and the inspection field Experimental in stability.md. Either add a field-level x-knotrel-stability that check-openapi-compat.py honors, or accept that removing these fields needs a listed approved breaking change.
H9 Minor Cache-Control: no-store is missing on some errors: inspection 422 errors return before it is added, though http-api.md:907 says every response carries it; OpenAPI declares it only on the 409. With inspection off, a bad query gets 422 rather than the 409 that http-api.md:845 promises. Document, or reorder the checks (behavior change on experimental routes: allowed in a minor release).
H10 Minor OpenAPI schema details that disagree with the code: graph_id (const) and lease_duration_ms (1000–60000) imply 422, but the code answers 400 invalid_graph_id/invalid_lease_duration; import feeder_epoch/generation use integer instead of FeederU64; the session and heartbeat 400 texts mention a graph_id they do not have; the /v1/feeder/events 400 text mentions an invalid lease duration. Correct the OpenAPI descriptions and types.
H11 Minor 7 operations have no operationId (/health, /ready, /metrics, /v1/info, /v1/stats, POST /v1/operations, POST /v1/batch); the 10 others do. Add them before 1.0 so generated clients get stable names; additive.
H12 Minor http-api.md: “7-level” precedence with 8 levels listed (line 397); the list of routes that emit the version headers is incomplete (lines 919-927; also ServerInfo.instance_id in OpenAPI); a stale “Feature 0.2.x” note (lines 976-979); no request/response schemas for feeder session, heartbeat and import (it relies on integration-contract.md). info.version (0.9.0) must follow the release. Documentation fixes.

3.3 Configuration

ID Severity Finding Proposed resolution
C1 rc Three console container variables are not classified: KNOTREL_UPSTREAM_TIMEOUT, KNOTREL_CONSOLE_LISTEN, KNOTREL_CONSOLE_SERVER_NAMES. They are documented in docs/console.md; the last two control the security-relevant Host checks. Classify them Stable with the other console configuration.
C2 Minor LOG_FORMAT and RUST_LOG are read by the binary and documented (http-api.md:670) but not classified. LOG_FORMAT (values text/json): Stable; RUST_LOG filter syntax: Internal (owned by tracing-subscriber).
C3 Minor The README variable table (lines 280-292) omits 7 of the 17 server variables and does not link to the full list. Link to http-api.md for the complete list.
C4 Minor The reference feeder compiles in a fault-injection hook KNOTREL_PG_FEEDER_FAULT (integrations/postgres-feeder/src/fault.rs:40), not documented. Because the server rejects unknown KNOTREL_*, feeder variables in the server’s environment stop server startup. Document both in the feeder README (example, no promise).

3.4 Metrics

ID Severity Finding Proposed resolution
M1 Freeze knotrel_graph_job_capacity reports only max_pending_jobs, the shared lane (metrics.rs:1491), while knotrel_graph_jobs_outstanding counts jobs of every lane. In source-managed mode, outstanding can therefore exceed capacity by the reserved feeder permits + 2 control permits (+1 import) in normal operation, and the KnotrelQueueSaturated alert (outstanding / capacity > 0.8) can fire spuriously. requests_rejected_total{reason="busy"} has no lane label. Neither observability-contract.md nor alerting.md mentions lanes. Label names freeze: adding a lane label later is breaking. Decide before the freeze: (a) document the semantics (capacity = shared lane only, outstanding = all lanes) and fix the alert; or (b) add a lane label, or new per-lane families, now (new families are additive later, a new label on an existing family is not). Recommendation: (a) for 1.0, with new per-lane families later if needed.
M2 rc Label values tied to experimental surfaces are not flagged: knotrel_build_info{engine} takes ett/hdt; the four inspection route values (and their method/status_class series) belong to experimental routes and are always registered. build_info{version} is an open set, not flagged as such. Add these to stability.md’s Metrics section next to kind="inspect".
M3 Minor observability-contract.md: no §4 vocabulary row for build_info (only §7); the §7 series bound (14 × 10 × 7) is historical (§20 corrects it to 18 routes); the status header does not mention §20 or 0.9.0. Documentation fixes.

3.5 Feeder protocol

ID Severity Finding Proposed resolution
P1 rc integration-contract.md still carries pre-implementation text in normative sections: the §2.3 matrix marks the feeder routes [PROPOSED] and says standalone mode returns “404 Not Found or 409 Mode Mismatch” (the code: 409 mode_conflict), and omits /metrics, inspection and the lifecycle operations; the §10 banner says “PROPOSED — NOT IMPLEMENTED in v0.1.0”; the mode is spelled source-managed (lines 75, 1121, 1289) where the wire value is source_managed; §4.1 gives a “proposed default 10,000 ms” for the lease duration, which is a required field (1000–60000), and §7.1 a “Proposed default N”. Rewrite these passages to the implemented contract (documentation only; the frozen behavior is the code’s, already in OpenAPI). Coordinate with the criterion 3 §9 traceability.

3.6 Console and policy documents

ID Severity Finding Proposed resolution
K1 rc compatibility.md §5 still says “As of 2026-11-21 the range is >=0.7.0 <0.9.0”; console/package.json and docs/console.md say >=0.8.0 <0.10.0, verified for 0.9.0. Update or remove the dated sentence (the range lives in console.md). For 1.0 the range is set by the mandatory check against the rc and 0.9.x servers.
K2 Minor The server exposes no software version over HTTP except knotrel_build_info{version} when metrics are enabled, so the console cannot check compatibility at runtime (console.md). Optional, additive: a version field in /v1/info. Not needed for the freeze.

4. Mechanical fixes applied on this branch

The two gaps that criterion 1 names, and nothing else:

  1. docs/integration-contract.md: the 7 broken relative links (lines 1288, 1294, 1295, 1299 and 1321) to crates/knotrel-server/examples/*, crates/knotrel-server/tests/* and scripts/measure-e2e.sh lacked ../; now every relative link in the file resolves.
  2. “Pre-1.0” wording: the sentence “Pre-1.0 stability: APIs are subject to refinement before 1.0” is in the knotrel-core crate docs (crates/knotrel-core/src/lib.rs, the docs.rs landing page), not in the README. It now points to the stability classification and compatibility policy and names the experimental and internal items. The same short “Stability” section was added to crates/knotrel-core/README.md (the crates.io page), which had no stability statement. No classification changed.

5. Proposed frozen list for 1.0

Assuming the recommendations above. Items marked † depend on a decision in section 6.

Stable at 1.0

Experimental at 1.0, and why

Item Why it stays experimental
EngineConfig::EulerTour, EngineConfig::Hdt, is_experimental, ForestGraph, ForestStats, HdtGraph, HdtStats, HdtLevelStorage, HdtStorageStats; KNOTREL_ENGINE=ett/hdt; build_info{engine="ett"/"hdt"} The engines are not qualified for 1.0 (readiness); lifecycle is unsupported on them; their counters describe internals
LifecycleStorage, LifecycleGraph::storage_stats Storage introspection follows the implementation
Inspection: the four GET /v1/nodes…//v1/edges routes, KNOTREL_INSPECTION, ServerConfig::with_inspection/inspection, /v1/info field inspection, codes inspection_disabled/inspection_unsupported/invalid_cursor, kind="inspect" and the inspection route label values Added in 0.8.0 for the console; costs and page semantics may still change (inspection costs)
KNOTREL_FEEDER_RESERVED_JOBS, ServerConfig::with_feeder_reserved_jobs/feeder_reserved_jobs, DEFAULT_/MAX_FEEDER_RESERVED_JOBS, /v1/info field feeder_reserved_jobs New in 0.9.0; the lane design is tied to the open #87 diagnosis (R2) and the Q3 limitation

Internal: ReferenceGraph; everything behind test-support (incl. router_with_seeded_version/_state); error message texts; log messages and fields; RUST_LOG syntax; metric help texts; development and test variables; the console UI and static archive layout. Example, no promise: integrations/postgres-feeder.

6. To approve

The maintainer decides each item; nothing below is applied.

  1. Enum and struct exhaustiveness (R1–R3). Add #[non_exhaustive] to EngineConfig, GraphError, IncidenceError, Phase and EdgeState before the rc, as an approved breaking change without the deprecation window (none is possible), or freeze them exhaustive and accept that new engines, errors or phases need 2.0.
  2. Reclassify router_with_lifecycle as Stable (R4).
  3. Public dependencies (R5). Declare axum 0.8 / tokio 1 part of the stable server API, or wrap them before the rc.
  4. Feeder lane error code (H2). Change an exhausted feeder lane to 503 busy before the rc (approved exception), or keep import_in_progress and document it.
  5. Connection-limit code (H1). Add too_many_connections to the ErrorCode enums and classify it Stable.
  6. Source-position bounds (H5). Enforce the documented 1–256 bytes everywhere (stricter input validation: approved exception), or document what is enforced.
  7. Capacity metric semantics (M1). Document and fix the alert, or add lane labels now.
  8. stability.md corrections (R6–R8, H8, C1, C2, M2): experimental inspection and feeder-reserved items in ServerConfig, /v1/info and the error codes; the EulerTour name; explicit ConnectivityGraph/as_str entries; the three console variables; LOG_FORMAT/RUST_LOG; the experimental metric label values.
  9. Checked API list in CI (R11). Add a committed public-API snapshot, or accept cargo-semver-checks plus the review rule as the equivalent named by the criterion.
  10. Documentation-only fixes before the rc (H3, H4, H6, H7, H9–H12, P1, K1, M3, R9, R10, C3, C4): approve them as one documentation change, with npm run generate:api in console/ for the OpenAPI edits.
  11. Then approve the frozen list (section 5) with the decisions above applied. R3e (independent AI review) starts from it.

7. Maintainer decisions (2026-11-22)

Recommendations 1–10 approved with these conditions (maintainer’s words, translated; the original is in Italian):

  1. #[non_exhaustive] on the indicated types is approved, but it does not authorize removing public variants or engines after 1.0. The guarantees of experimental items are documented separately. For structs, check the impact on construction by users and provide constructors where needed.
  2. router_with_lifecycle becomes Stable, including its readiness behavior during the drain.
  3. axum and tokio: document the dependencies exposed in the public API. An incompatible upgrade of either requires a SemVer assessment of Knotrel.
  4. busy for an exhausted feeder lane is approved, with tests that tell lane saturation apart from a concurrent import.
  5. too_many_connections is approved; implementation, enums, OpenAPI and documentation are aligned.
  6. Input limits: the documented limits are enforced uniformly. Tests cover empty values, exact limits, values over the limit and multibyte strings: the limits are in bytes.
  7. Per-lane metrics are approved, updating metrics, alerts, dashboards and documentation together. Numerator and capacity refer to the same lane.
  8. Classifications: the corrections are approved; nothing already guaranteed Stable is reclassified Experimental without being called out separately.
  9. API snapshot: approved, but requiring any change to stability.md is not enough. Every public addition needs an explicit, verifiable classification; a cosmetic edit of the document must not bypass the check.
  10. Documentation fixes: approved, as a separate change.

11 (the frozen list) stays subject to the implementation, its tests and a review of the result. The independent AI review (R3e) examines the resulting contract and the changes before the final freeze. Every code change enters the candidate of the v1.0.0 campaign against v0.9.x. This approval does not cover §2 and §3 of the rc plan, the RC-blocking rule or merging knotrel/knotrel#110.

7.1 Later maintainer decisions (2026-11-22)

Three further decisions (maintainer’s words, translated from Italian). They supersede the LifecycleStorage, ETT and HDT entries of the “Experimental at 1.0” table in section 5 and the remark on the experimental counter structs in R3.

  1. LifecycleGraph::storage_stats: “Keep LifecycleGraph::storage_stats stable. Document which properties are guaranteed and which values depend on the implementation.” Applied: LifecycleStorage, its fields and trait implementations are Stable with the method (a widening); its rustdoc and stability.md list the guaranteed properties, each covered by a test, and the implementation-dependent values.
  2. HDT: “I do not authorize removing, in a minor release, variants or public APIs related to Hdt. It may stay experimental as to performance and usage recommendation, but its public interfaces must stay compatible across the 1.x series. Fix the sentence in stability.md; #[non_exhaustive] does not authorize removals.” Applied: every public HDT interface (EngineConfig::Hdt, EngineConfig::is_experimental, HdtGraph, HdtStats, HdtStorageStats, HdtLevelStorage, KNOTREL_ENGINE=hdt, the /v1/info engine value hdt, engine="hdt" of knotrel_build_info) is Stable, and “experimental engine” is defined as a qualification of performance, maturity and usage recommendation in compatibility.md, section 2.2. Counters and storage figures follow the same guaranteed versus implementation-dependent split as decision 1.
  3. ETT: “Yes, compatibility across the whole 1.x series also applies to EngineConfig::EulerTour, ForestGraph and the value ett. Performance and usage recommendations may stay experimental; the public interfaces stay compatible.” Applied exactly as decision 2: EngineConfig::EulerTour, ForestGraph, ForestStats (members and trait implementations), KNOTREL_ENGINE=ett, the /v1/info engine value ett and engine="ett" of knotrel_build_info are Stable under the same section 2.2 of compatibility.md, and ForestStats follows the same guaranteed versus implementation-dependent split.