Knotrel Docs

v1.0 readiness assessment (v0.6.0 increment 0.6.6)

Status: assessment for maintainer review, written on the v0.6.0 candidate; state updated after v0.7.0 and v0.8.0 on 2026-11-21 (see State after v0.8.0 and State during v0.9.0; the checklist keeps its v0.6.0 state column, and no verification was repeated for the update). It states what the evidence shows and what each gate requires. It promises nothing beyond that evidence; no item below is accepted until the maintainer accepts it.

Path: v0.8.0 → v0.9.0 → v1.0.0-rc → v1.0.0, each step subject to its stability gates. v0.7.0 closed the graph-lock bottleneck for read-heavy work measured in v0.6.0 (maintainer decision B, 2026-11-16); v0.8.0 added the console. v0.9.0 addresses the integration and reliability gaps (criteria 3, 4, 6 and 10, with groundwork for 1 and 2; see the roadmap). Other gaps close inside the release-candidate cycle. ETT/HDT lifecycle support, local persistence and multi-graph are not v1.0 prerequisites.

Legend: Met (evidence exists and is current), Partial (evidence exists but does not cover the claim), Gap (missing).

Checklist

# Criterion State on v0.6.0 Evidence Gate for v1.0.0-rc Gate for v1.0.0
1 Stable Rust and HTTP contracts Partial docs/http-api.md, docs/openapi.yaml, docs/integration-contract.md, docs/observability-contract.md, docs/topology-lifecycle.md; crate docs; the core README still says “pre-1.0 stability: APIs are subject to refinement” Contract freeze review: list every public Rust item and HTTP route/field/error code/variable/metric as stable, experimental or internal; resolve the 7 known broken relative links in integration-contract.md and the feeder-events example defect fixed in v0.6.0; cargo public-api-style snapshot (or an equivalent checked list) in CI No breaking change after the rc without a new rc
2 Compatibility and deprecation policy Gap Release notes record each change; no written policy A docs/compatibility.md policy: SemVer for crates, versioned HTTP (/v1), additive-only changes inside /v1, error-code and metric-name stability, deprecation window (at least one minor release with a warning in docs and release notes), MSRV policy (core 1.98.1, workspace 1.100.0) Policy applied to the rc→1.0 diff
3 Lifecycle, synchronization, fencing and recovery-from-source correctness Met for the tested matrix Oracle/differential tests (core), tests/{events,bootstrap,identity,e2e_rebuild,topology,import,lifecycle}.rs; v0.6.0 adds parser-parity and off-lock-publication tests Independent review of the integration contract against the tests (each MUST in §9 mapped to a test); a long-running randomized feeder/restart soak with a reference model (bounded, reproducible seed) Soak repeated on the release commit
4 Resource limits and overload behavior in the supported envelope Partial Admission limit (KNOTREL_MAX_PENDING_JOBS, 503 busy), body/batch/graph limits, request timeout, one import permit; v0.6.0 resource model (lifecycle contract §5) and import-peak reduction Declared supported envelope (nodes, edges, body size, clients, rates) with a measured capacity table; documented head-of-line behavior: a connected is an O(V + E) BFS under the graph lock (shared between query-only requests since v0.7.0, so it delays mutations, feeder events and imports, not other queries) and a timed-out request does not stop its worker; decision on the contention outcome of v0.6.0 (taken: v0.7.0 read-write lock) Envelope re-measured on the release commit
5 Performance qualification with every failure resolved or disposed Depends on v0.6.0 results v0.6.0 qualification (knotrel-benchmarks/results/v0.6.0-qualification/); history from v0.3.0 Every REGRESSION/FAIL/UNRESOLVED cell either fixed and re-measured or dispositioned by the maintainer for that release; no inherited waiver Same for the 1.0 candidate
6 Reproducible deployment, upgrade, restart and rebuild Partial Container example and runbook (docs/deployment.md), repeated deployment/rebuild smoke tests per release, release workflow with checksums Upgrade procedure between minor versions (drain, restart, rebuild from source; no state carried); reproducible-build check of the release binary (rebuild from tag, compare hash or __TEXT,__text) Smoke test on all three release platforms
7 Security boundary and its validation Partial Trust model (docs/http-api.md#trust-model): no authentication, loopback or trusted network only; tests/security.rs; log sanitization tests Threat model document for the supported exposure (local or trusted network behind a gateway) with tested mitigations; fix SECURITY.md (stale version table, no contact address); see concrete gaps below. Native authentication is not required while untrusted exposure stays unsupported Gateway deployment example validated (TLS/auth at the gateway, Knotrel loopback-only)
8 Cross-platform packages, CI, docs and examples Met with a documentation gap CI on Linux/macOS/Windows; release workflow builds three platforms and crates; docs.rs/crates.io pages; examples (feeder, power grid, container, observability) Done: test_regression_early_exit_with_diagnostics and the two other intermittent measure_e2e_driver.rs failures were root-caused and fixed in test code (knotrel/knotrel#49); remaining: document macOS runner queueing as an infrastructure limit Green CI on the release commit
9 Independent acceptance review Gap for 1.0 scope Per-feature independent reviews (M6, M10, v0.6.0 code review) A review of the whole 1.0 contract set (not of summaries) by someone other than the implementer Review findings closed
10 End-to-end representative integration evidence Partial (synthetic only) External feeder example and reproducible synthetic measurements (0.2.6); power-grid tutorial (synthetic topology) At least one end-to-end run against a real authoritative store and event stream (e.g. PostgreSQL logical decoding or Kafka) through an external feeder, reported as synthetic-environment evidence; real adoption evidence, if any, reported separately Real adoption evidence is desirable but is not claimed unless it exists

State after v0.8.0

Updated 2026-11-21 from the v0.7.0 and v0.8.0 release notes; no verification was repeated. Gates are unchanged.

# Criterion Change since v0.6.0 Next step
1 Stable Rust and HTTP contracts v0.7.0 and v0.8.0 only add API (core neighbor listing; opt-in inspection routes, documented in docs/openapi.yaml). Still Partial: no stability classes Classification and API checks in CI: v0.9.0 (0.9.4)
2 Compatibility and deprecation policy Lockstep versioning documented (CONTRIBUTING.md). Still Gap docs/compatibility.md: v0.9.0 (0.9.4)
3 Lifecycle, synchronization, fencing and recovery correctness Unchanged: met for the tested matrix, synthetic feeder only Same tests against a real source: v0.9.0 (0.9.2); soak and review in the rc
4 Resource limits and overload behavior v0.7.0: read-write lock, read-heavy throughput 2.1× with 4 clients. Feeder catch-up under query load not re-measured since v0.6.0. Still Partial Measure and, if needed, fix: v0.9.0 (0.9.3); envelope in the rc
5 Performance qualification v0.7.0 accepted with exceptions (v0.7.0 only); v0.8.0 not qualified (decision D2) One proportionate final campaign: v0.9.0 (0.9.6)
6 Deployment, upgrade, restart and rebuild Console container and Compose example (v0.8.0). Still Partial: no upgrade procedure Upgrade and rebuild procedure: v0.9.0 (0.9.5)
7 Security boundary Console delegates access control to a gateway and forwards no feeder routes. Still Partial Gateway example with TLS and authentication: v0.9.0 (0.9.5); threat model in the rc
8 Packages, CI, docs and examples Console CI, image and archive with provenance; release notes checked for a final status before tagging Unchanged
9 Independent acceptance review Unchanged: Gap for 1.0 scope rc
10 End-to-end integration evidence Unchanged: Partial (synthetic only) Reference PostgreSQL integration: v0.9.0 (0.9.1)

State during v0.9.0

Updated 2026-11-21 after roadmap items 0.9.1 to 0.9.3 (merged on main, unreleased), and 2026-11-22 after the 0.9.6 campaign. Gates are unchanged; no item is accepted for v1.0 by this update.

# Criterion Change since v0.8.0 Still open
1 Stable Rust and HTTP contracts Additive only: setting KNOTREL_FEEDER_RESERVED_JOBS and field feeder_reserved_jobs in GET /v1/info. 0.9.4: stability classification proposed (stability.md) and API compatibility checks in CI. Classification approved 2026-11-21. Still Partial for 1.0: the contract freeze review is an rc gate Contract freeze review (rc)
2 Compatibility and deprecation policy 0.9.4: compatibility.md approved 2026-11-21, enforced in CI. Met for the rc gate Applying it to the rc→1.0 diff (1.0)
3 Lifecycle, synchronization, fencing and recovery correctness 13 recovery and synchronization tests with a real PostgreSQL source and the reference feeder, in CI on PostgreSQL 15–19 (0.9.2). Met for the tested matrix, now including a real source Independent review of the integration contract against the tests; randomized soak (rc)
4 Resource limits and overload behavior Feeder requests have reserved admission lanes; feeder starvation at 64 query clients removed (0.9.3). Feeder catch-up under query load measured: Q3 FAIL, accepted as a declared limitation of v0.9.0 for the measured configuration (decision). Still Partial Follow-up #87; declared supported envelope (rc)
5 Performance qualification 0.9.6 campaign valid (attempt 2) against published v0.7.0, method and thresholds of v0.7.0; descriptive against v0.8.0. Release accepted with exceptions, for v0.9.0 only (2026-11-22): five deciding results not PASS (one UNRESOLVED, four INCONCLUSIVE) keep their classification; the two hub 10k lifecycle requirements are not qualified by comparison; six RSS disclosures. Not a complete qualification; no exception carries to 1.0 Disposition of every exception for v1.0 (R1); unqualified hub 10k requirements and Q3 fix (v1.2.0, H2)
6 Deployment, upgrade, restart and rebuild Compose example of the PostgreSQL reference integration; rebuild after a Knotrel restart tested end to end (0.9.1–0.9.2); upgrade procedure between minor versions documented and tested from the previous release in CI (0.9.5). Still Partial Reproducible-build check of the release binary (rc); smoke test on the three platforms (1.0)
7 Security boundary Feeder role with least privileges and file-based secrets in the reference integration. 0.9.5: gateway example with TLS 1.2/1.3, separate operator and feeder credentials and Knotrel loopback-only, validated by a smoke test in CI (the 1.0 gate’s example). Still Partial Threat model document; SECURITY.md still lists only main and < 0.1 (rc)
8 Packages, CI, docs and examples CI adds the postgres-feeder workflow (checks, cargo-deny, integration on PostgreSQL 15–19) and the documentation site Unchanged
9 Independent acceptance review None Review of the whole 1.0 contract set (rc)
10 End-to-end integration evidence End-to-end runs against a real authoritative store and event stream (PostgreSQL logical replication through an external feeder), in CI: the rc gate’s requirement, reported as synthetic-environment evidence Real adoption evidence: none, and none is claimed

Declared limitations carried by v0.9.0

Open before the v0.9.0 release

From the roadmap’s v0.9.0 acceptance and the release procedure; none of these has started unless stated:

  1. 0.9.4 Contracts toward 1.0: done; policy and classification approved on 2026-11-21.
  2. 0.9.5 Verified deployment: done (gateway example and smoke test, upgrade procedure tested from the previous release).
  3. 0.9.6 Final performance campaign: done 2026-11-22. Campaign valid; release accepted with exceptions for v0.9.0 only (release notes, Performance qualification).
  4. Review of 0.9.1–0.9.5: done by independent AI review agents (not a human review); fixes in #92, #96 and #97, listed in the release notes.
  5. Release documentation: v0.9.0 release notes stating the Q3 limitation as FAIL with its numbers, the new setting KNOTREL_FEEDER_RESERVED_JOBS and the changed admission bound; README, crate docs and the documentation site updated; done on the release commit.
  6. Lockstep version bump to 0.9.0 (workspace, console): done, with the release notes (status final on the release commit).
  7. Console compatibility (mandatory): done on the candidate. The browser tests (14, Chromium and Firefox) passed against the v0.9.0 candidate server and the v0.8.0 server; knotrel.supportedServer set to >=0.8.0 <0.10.0. Repeated on 2026-11-22 on the release code (896e565, crates identical to the release commit): 28 of 28 on each server.
  8. Release gates: CI on the final commit on all platforms (including the API compatibility job), release dry runs, signed tag v0.9.0, console release with the console-release environment.

State during the v1.0.0-rc cycle

Updated 2026-11-22 after the first rc work merged on main (knotrel/knotrel#104 to #107). Plan and order: v1.0.0-rc plan. Gates are unchanged; no item is accepted for v1.0 by this update.

# Criterion Change since v0.9.0 Still open
3 Lifecycle, synchronization, fencing and recovery correctness Randomized feeder/restart soak with a reference model, driving the real server as a child process (tests/soak.rs, short variant in CI); traceability table of every MUST in §9 of the integration contract (criterion 3 evidence). The soak found defect D1 (sequence 0 before the first applied event panicked the graph worker and left the server unavailable), fixed in #104 with regression tests Four MUSTs uncovered or partial; independent review; soak repeated on the release commit
4 Resource limits and overload behavior Unchanged; R2 protocol variant proposed in the rc plan R2 diagnosis; declared supported envelope
5 Performance qualification v1.0.0 gets its own campaign against the latest released 0.9.x (maintainer decision 2026-11-22); the D1 fix is changed release code Campaign plan and run; dispositions decided on its results
6 Deployment, upgrade, restart and rebuild Reproducible-build check: script, comparer and reproducible-build workflow (#107); two verdicts (byte-for-byte identity; equivalence after excluding named metadata). v0.9.0 on GitHub’s runners: Linux byte-identical; macOS not byte-identical, equivalent after excluding LC_UUID and LC_CODE_SIGNATURE (macOS job fixed in #109). Windows not covered Run on the v1.0.0 release candidate against its dry-run bundle; smoke test on the three platforms (1.0)
7 Security boundary Threat model with mitigations mapped to tests (#106); SECURITY.md points to GitHub Private Vulnerability Reporting. Fail-stop on any reachable worker panic recorded as a residual risk (T1.15, N7) Enable and verify Private Vulnerability Reporting (currently disabled); N7 panic-site audit
9 Independent acceptance review R3e done: an independent AI review (declared as such, not a human audit or a security certification) of e1be11c found 11 blocking defects, all resolved and independently verified at 1dd97b8 (#121–#123), and judged the frozen list ready to freeze (report); B7, B1 and B10 confirmed by the maintainer on 2026-11-23 Non-blocking problems and suggestions in the v1.0 backlog

The v1.0.0 release notes must list

Concrete security gaps within the trust model

These do not require native authentication; they are gaps in the supported model itself:

  1. Import memory amplification. In v0.5.0 an HTTP import’s parse working set was about 10–13 times the body (87–106 MiB for 8.3–9.9 MiB bodies), so the default 64 MiB body limit allowed several hundred MiB of transient heap from one request. v0.6.0’s streaming parse reduces the measured transient to about the body plus the graph being built (see the v0.6.0 release notes); the deployment guidance must size memory for old graph + body + new graph and say so.
  2. Lock-holding work per request. A batch of up to 1024 connected operations runs up to 1024 BFS traversals under the graph lock, and a lifecycle removal can trigger a whole-graph rebuild under the lock. Since v0.7.0 query-only batches share the lock, so they no longer delay each other, but they still delay every mutation, feeder event and import publication, and a rebuild still blocks everything. Any client inside the trust boundary can delay others for that long; the request timeout bounds the caller’s wait, not the worker. Gate: document per-request worst-case lock time for the supported envelope and consider a configurable batch ceiling.
  3. Feeder takeover is unauthenticated by design. Session fencing protects against stale feeders, not against a hostile client in the boundary. Keep it documented as such; any untrusted exposure needs gateway authentication.
  4. SECURITY.md is stale (supported-versions table, missing contact address).

Experimental engines

If ett and hdt stay exposed in 1.0 they must be documented as experimental with these guarantees only: exact connectivity results under the same contracts as compact-bfs (oracle-tested), no lifecycle support (rejected at construction and startup), no performance or memory envelope (HDT retained storage has no established practical steady state), and no stability promise for their configuration names beyond the deprecation policy. Alternatively they are removed from the server’s supported configuration before 1.0; either is a maintainer decision.

Decision (2026-11-22): ett and hdt stay exposed with stable public interfaces and an experimental qualification of performance, maturity and usage recommendation only (compatibility.md, section 2.2); their configuration names and APIs are kept for the whole 1.x series.

v0.7.0

Planned for the measured concurrency gap only (criterion 4 and M5): v0.6.0’s contention evaluation shows that the single graph lock serializes BFS queries and dominates read-heavy latency at four or more clients. v0.7.0 designs the minimal change that preserves every service invariant; no mechanism is prescribed in advance. A batch ceiling setting (criterion 4, gap 2) may join it if the envelope work shows it is needed. v0.7.0 also evaluates measured performance candidates (ROADMAP 0.7.4) aimed at v0.6.0 non-PASS results:

Each is adopted only with qualification evidence. Other gaps stay in the rc cycle.

Status (2026-11-20): the shared read lock (0.7.4a) and sonic-rs import parsing (0.7.4b) are implemented, with the catalog tombstone handling. Qualification 3 (attempt q3-3, conforming) was accepted with exceptions for v0.7.0 only. That is not “all gates PASS”.