Knotrel Docs

v1.0.0 release-candidate plan (roadmap 1.0.0a, R1–R3)

Status: approved (2026-11-23). Proposed 2026-11-22 and revised with the maintainer’s decisions (§6); on 2026-11-23 the maintainer approved the v1.0 campaign plan (qualification plan §16, block D excluded), the rc rule (qualification plan §8) and the R2 protocol (feeder-under-load), and confirmed the release line 1.0.0-rc.1 → 1.0.0 (§8 below). No tag and no publication happen before the rc gates are met; no measurement before the maintainer confirms the machines’ availability.

Path: v0.9.0 (published 2026-11-22) → v1.0.0-rc → v1.0.0. The acceptance for v1.0.0 is the roadmap’s: the ten criteria of the readiness assessment met or explicitly disposed, and R1–R3 complete. This plan orders the work and states what each step needs from the maintainer.

1. Order and parallel work

Step What Depends on Maintainer input
1.0.0a This plan; roadmap R section from “proposed” to “approved” — Approve the plan (§7)
R1 v1.0 qualification campaign (§2) and the dispositions decided on its results Candidate frozen (after R3a–R3d changes land); campaign plan approved Approve the campaign plan; one decision per non-PASS result, after the results
R2 #87 diagnosis (two-Mac protocol variant, §3), then the declared supported envelope Protocol approved; availability of both Macs agreed Approve §3; agree the measurement window; decide on the outcome
R3a Threat model and SECURITY.md (criterion 7); GitHub Private Vulnerability Reporting enabled and verified — Enable the repository setting
R3b Randomized feeder/restart soak, server as a child process, and §9 MUST traceability (criterion 3) — —
R3c Reproducible-build check (criterion 6), macOS, Linux and CI — —
R3d Contract freeze review (criterion 1) R3a–R3c merged, any rc code change landed Approve the frozen list
R3e Independent AI review of the whole 1.0 contract set (criterion 9) R3d; R3b traceability — (form decided, §4)
rc Tag v1.0.0-rc.1 (not in this phase) R1 and its rc-blocking rule (§2), R3a–R3e. R2 is diagnostic: it informs the envelope but does not block (§2). Go / no-go
1.0 Platform smoke tests, rc→1.0 diff under the compatibility policy, soak and envelope repeated on the release commit rc Go / no-go

R3a, R3b and R3c started in parallel on 2026-11-22 and were merged the same day: threat model (knotrel/knotrel#106), soak (#105), reproducible-build check (#107). The soak found defect D1, fixed in #104 (changed release code, so it enters the v1.0 campaign). R3d and R3e come last on purpose: the freeze and the review must see the contract that ships. Changes to .github/workflows/release.yml and ci.yml are reviewed before any pull request.

2. R1 — v1.0 qualification campaign and dispositions (decided)

Decisions (2026-11-22).

Proposed perimeter (fixed in the campaign plan, approved before measuring, like 0.9.6; draft: v1.0.0 qualification plan, proposed):

Group Cells Why
Release cells (A) All 9 The headline release comparison
Former exceptions E1 core sparse traversal; E2 HTTP batch 256 (with its RSS supporting metric); E3 metrics overhead, lifecycle batches, sparse 10k; E4–E5 core flagged import, sparse and hub 10k The results not PASS in 0.9.6, re-measured, not inherited
Concurrency (M_reg) The 6 cells Regression guard of v0.7.0’s read-write lock
Feeder under load Q1–Q5 of docs/integrations/feeder-under-load.md, the approved single-host protocol Q3 stays a criterion; the R2 variant is separate and is not this campaign
Code changed since the reference Every cell exercising a path changed between the reference and the candidate (none if crates/, Cargo.toml, Cargo.lock and rust-toolchain.toml are unchanged) Changes must be qualified
Disclosures C4 RSS (6 cells), import-high Kept visible, disclosure category as before

Out of the perimeter unless a code change touches them: B1–B4 lifecycle timing beyond the cells above, B5, C1–C3, T5, Rmem, M_desc, Part 2-style descriptive comparisons. Clarified (2026-11-22): the selection is reduced compared with the v0.9.0 campaign, and the method of every reused cell stays unchanged. The campaign plan maps every function changed since the reference to the cells included or excluded, with a reason. It also includes the cells that a collector produces with an included cell (C1–C3 with C4, all of R and Rmem), so that nothing measured goes unreported. The A cells use a fixed sample of 24 pairs with no interim look, so that the stated interval coverage holds; this is a deviation from the v0.9.0 extension rule, justified in the campaign plan. The two hub 10k requirements (E6) stay not qualifiable by comparison until an atomic reference design is approved (roadmap v1.2.0 H2); the campaign states that, without a verdict.

After the results, each non-PASS result gets a maintainer decision for v1.0: accepted for v1.0 with its classification kept and disclosed, or assigned to v1.2.0 H2 with a criterion, or fixed and re-measured. Classifications, intervals and thresholds stay as measured. The candidate for the campaign is frozen only after the R3 changes to release code have landed.

rc-blocking rule (proposed, with the maintainer’s clarifications of 2026-11-22).

3. R2 — #87 diagnosis: two-Mac protocol variant (proposed)

Question. Does the CPU load that PostgreSQL, the feeder, the writer and the query clients put on Knotrel’s host explain Q3’s failure, or is the limit inside Knotrel’s host itself (lock waits, query execution)?

What separating the loads can and cannot show. Moving the load to a second host changes more than CPU availability: it adds a network link in place of loopback and removes memory-bandwidth, cache and scheduler interference and PostgreSQL’s I/O from Knotrel’s host. A better catch-up rate in that layout alone does not isolate CPU as the cause. The variant therefore adds an arm that gives the CPU load back to Knotrel’s host while the rest of the layout stays separated (arm U), and the outcomes distinguish supported, insufficient evidence and not supported.

Why two machines. macOS has no core pinning (no taskset/cpusets), so the roadmap’s single-host pinned variant is not available on the maintainer’s hardware.

Hosts.

Build under test: knotrel-server at tag v0.9.0. Feeder and load tool from the integrations/postgres-feeder commit that adds the remote mode below.

Tool change before measuring (reviewed; the single-host mode must stay unchanged, checked by a smoke run): the load tool spawns the server on 127.0.0.1 today. Add a remote mode that starts and stops a fresh knotrel-server on host K for every observation (over SSH, protocol settings plus the bind address and KNOTREL_ALLOW_NON_LOOPBACK=true), points the feeder, clients and markers at host K’s link address, samples both hosts’ CPU, and, for arm U, runs a CPU load generator on host K.

Arms. Only scenario L2, graph G100k, the protocol’s backlog (100,000 changes) and settings; everything else as in docs/integrations/feeder-under-load.md.

Arm Layout Cells Observations
S (control) Single host, as approved for 0.9.3: everything on host K, loopback C = 0, 16, 64 3 per cell
T (separated) Knotrel on host K; everything else on host L C = 0, 16, 64 3 per cell
U (CPU given back) As T, plus a CPU load on host K equal to the non-Knotrel CPU time measured on host K in arm S for the same cell C = 16, 64 3 per cell

Arm U’s load is a fixed number of busy-loop processes at a duty cycle calibrated from arm S’s per-process CPU samples (PostgreSQL, feeder, writer, clients), recorded with the results. It reproduces CPU demand, not memory or I/O behavior; that limit is stated. Order: S, T, U, all cells of one repetition before the next, in one session. Arm S re-anchors the variant to 0.9.6 on the same day; it is not a new Q3 verdict. Budget: 45 minutes per arm, under the existing repetition rule.

Reported per cell: catch-up rate (backlog events / time to ready), ratio to C = 0 of the same layout, time to ready, CPU busy on both hosts during catch-up, Knotrel’s phase histograms (admission queue, lock wait, execution per feeder job), feeder 503 refusals, link round trip.

Decision rule (fixed before measuring). The single, precise rule is in feeder-under-load.md, “R2 two-Mac variant”, “Decision rule” and is not restated differently here. In short, per C ∈ {16, 64}: a_X = median of arm X’s three absolute catch-up rates, G = a_T − a_S, and r_U = (a_T − a_U) / G (when G > 0). A C is insufficient evidence if any arm’s three rates spread by more than 1.25 (max / min); supported if a_T ≥ 2 × a_S and r_U ≥ 0.5 and host K’s median CPU busy in T ≤ 80 %; not supported if a_T < 1.2 × a_S or r_U ≤ 0.25; otherwise insufficient evidence. The overall outcome is supported or not supported only if every arm is valid and both C agree. Any disagreement between 16 and 64 clients is insufficient evidence, with each C’s result reported.

Consequences. Q3’s thresholds are unchanged in every outcome; R2 never turns Q3 into a PASS. The declared envelope states the measured numbers of each layout as measured, with Q3 as FAIL where it fails. R2 is diagnostic: not running it does not by itself block the rc.

Limits, stated in advance. Two Apple-silicon Macs, one link, macOS only, one PostgreSQL version, the protocol’s rates. Host L’s CPU differs from host K’s; arm S on host K keeps the reference layout as before. Arm U reproduces CPU demand only.

Then: the declared supported envelope (readiness criterion 4). A document (proposed: docs/supported-envelope.md) with the measured capacity table (nodes, edges, body size, clients, rates) from the qualification evidence, the documented head-of-line behavior, the feeder catch-up statement from R2 and the v1.0 campaign, and the hosts and limits behind every number. Re-measured on the release commit for 1.0.

4. R3 — rc gates

5. Not in this phase

No tag (v1.0.0-rc.* or otherwise), no GitHub release, no crate or console publication, no benchmark-repository tag. When the rc is considered, the rc-blocking rule of §2 applies: a valid campaign, a disposition for every non-PASS result, a disposition and a documented envelope for Q3, and a disposition for E6. R2 not having run is not by itself blocking.

6. Maintainer decisions (2026-11-22)

“Procedi con il soak sul server come processo figlio e con GitHub Private Vulnerability Reporting come canale di sicurezza, da attivare e verificare prima della RC.”

  1. The v1.0.0 campaign runs against the latest 0.9.x, frozen as the reference, even if the measured code is unchanged; it reuses the protocol with a perimeter limited to the relevant comparisons, without reopening every diagnostic; results and intervals are published on the benchmark site.
  2. The v0.9.0 exceptions remain historical evidence; v1.0 dispositions are decided on the relevant results of the new campaign, with no acceptance in advance.
  3. For R2, the tool and protocol may be prepared; the availability of both Macs is agreed before any measurement. Outcomes distinguish hypothesis supported, insufficient evidence and hypothesis not supported, since separating the loads does not by itself isolate CPU as the cause.
  4. Criterion 9: an AI review separate from the implementation, declared as such, with findings and resolutions tracked; not presented as a human audit or a security certification.
  5. Reproducibility distinguishes byte-for-byte identity from equivalence after excluding metadata; the macOS UUID difference is documented; Linux and CI are completed before the gate closes.
  6. Campaign plan clarifications (translated), before the freeze:
    • complete the matrix between modified code and included or excluded cells, and describe the selection as reduced compared with the previous campaign, keeping the method of the reused cells unchanged;
    • specify before measuring how the A pairs are combined and how the interval stays valid after an interim decision;
    • Q3 requires both an explicit disposition and a documented operational envelope, and the absence of either blocks;
    • E6 remains explicitly unqualified and requires a disposition for 1.0;
    • R2 remains diagnostic: not running it does not automatically block the rc, the envelope is then limited to the measured configuration without attributing a cause to Q3, and no 0.9 acceptance is transferred automatically;
    • clarify the 105 + 30-minute budget, and distinguish an infrastructure failure from crashes, timeouts or product errors, which do not authorize an automatic repeat.

7. To approve

  1. The order and dependencies of §1, and the roadmap R section moving from “proposed” to “approved”.
  2. The campaign perimeter of §2 (it becomes the campaign plan, frozen before measuring).
  3. The R2 protocol variant of §3: hosts and roles, link check, tool change, arms S/T/U and arm U’s calibration, budget and the decision rule’s thresholds (2×, ½, ¾, 1.2×, 80 %).

8. Maintainer approvals (2026-11-23)