KERN

ZIG 0.17 / Z3 / LEAN 4

L0-L5 verification gateway / sealed .kimg container

Belnap B4 truth gate / polyglot @kern: contracts / MCP server

A claim is admitted only with machine evidence.

Source tag v2.7.1 is signed (Ed25519). Binaries are attached by the Release workflow when a tag is pushed; the link above always points at the latest published release, so it never promises a file that does not exist.

Verify it yourself with the public key shipped in the repository: make verify-attestation (key docs/keys/kern-owner.pub, id sha256:6da3e85e…1360f). No private key and no home-directory keys are involved; a missing kern.intoto.sig is treated as a failure.

Download static binary (latest release) Read the README Documentation
Same patch, two pipelines: pytest passes it while KERN MCP kern_guard blocks it with a Z3 counterexample and a CPython-verified crash
PROVEN, NOT CLAIMED — every number is a gate
147Lean 4 theorems (0 sorry) across 9 files 38/38CI stages green, each one mutation-tested 267fault-injection cases prove that every gate can fail 0false alarms on packaging, semver, dateutil 70/70full-spectrum cards + 100/100 showcase, each confirmed by an independent oracle 9MCP tools for Cline / Claude Code / Cursor (kern_guard returns only physically reproduced crashes)
TRY IT IN 10 SECONDS
1In the browser, offline: WASM playground — sabotage one byte of a Z3 certificate and watch the Zig kernel reject it 2In the IDE: add the MCP server (9 tools) and let kern_guard block a cheating agent before the commit 3In CI: --xray + --xray-none + --heal on any Python/C/Rust/Zig file, no annotations required
KERN architecture: Belnap B4 accumulator, L0-L5 engine and truth gate, measured baseline
KERN architecture (enlarged)
KERN proof flow (enlarged)

What K.E.R.N. stands for

K.E.R.N. — KNOWLEDGE EVALUATION AND RESOLUTION NODE
KKnowledge — everything an AI agent produces: code, contracts, tests, AST trees. KERN treats it as a claim, not as a fact. EEvaluation — mathematical checking of that claim: Z3 SMT, an independent proof-DAG checker written in Zig, and theorems in Lean 4. RResolution — resolving the conflict between old and new knowledge in Belnap's four-valued logic, where a contradiction is kept as T ⊔ F = B instead of being silently overwritten. NNode — the single gateway (an L0–L5 firewall): code either reaches production with e = 1 or is blocked with e = 0.

See it in 15 seconds

bash — make run-example (real transcript)
█

Transcript of a real make run-example run. Command lines, verdict tokens (SAT/UNSAT, e=0/e=1, (F)/(T)) and numbers are printed verbatim; the surrounding prose is shown in English for readability — the tool itself prints Russian verdict words, and the can-fail gates depend on those exact strings.

Proofs on other people's code — not on our own fixtures

WhereWhat KERN foundConfirmed byUpstream
EvalPlus MBPP+
the benchmark itself
Three solutions passed both MBPP and the 80× MBPP+ yet divide by zero: Mbpp/265, Mbpp/292, Mbpp/422. 0 false accusations. live python3 → ZeroDivisionError —
TheAlgorithms/C
22.5k ★
math/catalan.c: factorial(0) returns 0, so the divisor is zero → SIGFPE on n = 0; silent garbage from n = 11. math/lcm.c: lcm(50000, 50000) printed -35899 where the true 50000 fits in int. gcc -fsanitize=undefined on the unmodified file (rc 136) #1595 · #1596
TheAlgorithms/Rust
26k ★
src/math/binomial_coefficient.rs: n - i in u64 with no k ≤ n guard → binom(0, 2) panics in debug and returns garbage in release; all seven upstream tests use k ≤ n. rustc -C overflow-checks=on → panic (rc 101) #1075 Codecov: 100% patch coverage
isamert/scheme.rs
Rust · Scheme interpreter
derive(PartialOrd) on Fraction { n, d } compares fields, not numbers: (< 1/3 1/2) returns #f through lexer → parser. rustc -O on the isolated type → Greater; exact math → Less #4
kiesraad/abacus
Dutch Electoral Council
Public apportionment::Fraction (u64): 1/5e9 + 1/5e9 wraps to 10000000000/6553255926290448384, and Ord::cmp reports 5e9 < 2e9. Preventive: not yet wired into seat allocation. rustc -O → wrap exactly at 264 #4393
mahmoud/boltons
6.9k ★
IndexedSet().pop() with no argument raises IndexError where MutableSet promises KeyError. live python3 #800
ad-si/Woxi
Wolfram Language in Rust
Rational { numerator: BigInt, denominator: BigInt } derives Ord → lexicographic ordering. Removing the traits makes rustc name the call sites: E0277 at affine.rs:36,37, E0599 at presburger.rs:353. cargo check --workspace --tests → 4 errors #2704
surrealdb/surrealdb
28k ★ · database
Value declares impl Eq, but the Geometry variant hashes to_bits() while its derived PartialEq compares numerically. cargo test -p surrealdb-types → FAILED #7715
vectordotdev/vector
19k ★ · Datadog
MetricRef — the IndexMap key of the Prometheus exporter — hashes bounds as to_bits() while PartialEq compares numerically. cargo test --features sinks-prometheus → FAILED #27277
lancedb/lance
vector database
HilbertUDF hashes bounding-box coordinates by bits while PartialEq compares them numerically; it is a ScalarUDFImpl, which DataFusion requires to be Eq + Hash. cargo test -p lance-geo → FAILED #11344
databendlabs/databend
9.5k ★ · SQL warehouse
DataValue::Float64 hashes to_bits() while the derived PartialEq compares numerically, so -0.0 splits GROUP BY / DISTINCT keys. cargo test -p databend-common-datavalues → FAILED (cloud runner) #21155
gleam-lang/gleam
19k ★ · compiler
LiteralFloatValue hashes to_bits() while its derived PartialEq compares numerically; the doc explains Eq for NaN and misses -0.0. cargo test -p gleam-core → FAILED #6524
zellij-org/zellij
23k ★ · terminal
RunPlugin derives Hash over all fields while PartialEq compares only two; clippy::derive_hash_xor_eq is silenced. cargo test -p zellij-utils → FAILED #5969
bevyengine/bevy
37k ★ · game engine
GizmoLineStyle hashes to_bits() while PartialEq is numeric; the type is a key of SpecializedRenderPipelines, so -0.0 specialises a duplicate GPU pipeline. cargo test -p bevy_gizmos → FAILED #26635
dimforge/kiss3d
1.8k ★ · 3D engine
HashableVec3 hashes bit patterns while PartialEq is numeric, so the vertex-dedup map keeps duplicates for -0.0. cargo test --lib → FAILED #419
dagster-io/dagster
~12k ★ · orchestrator
has_nonzero_minute_offset is @functools.cached but reads the clock: hourly cron in Australia/Lord_Howe loses minute resolution for half the year. live python3 repro #34468
typst/typst
~38k ★ · typesetting
Scalar and ProcessColor implement Eq but hash bit patterns while comparing numerically (or at 8-bit precision), so equal values hash apart. cargo test → FAILED #9103
zed-industries/zed
~60k ★ · editor
Pixels, RenderGlyphParams (glyph raster cache key) and DocumentColor implement Eq but hash to_bits(), so equal values miss the map. cargo test -p gpui → FAILED #67334
gluesql/gluesql
3.1k ★ · SQL engine
Key::cmp calls f64::total_cmp instead of OrderedFloat ordering, so -0.0 and 0.0 are equal but branch apart: a FLOAT PRIMARY KEY misses rows. cargo test → FAILED #2096
boa-dev/boa
5.8k ★ · JS engine
JsValue: Eq via SameValueZero but Hash via f64::to_bits(), so 0.0 == -0.0 and a HashSet key is lost. cargo test -p boa_engine → contains fails #5678
swc-project/swc
31k ★ · CSS/JS toolchain
swc_css_ast::Number with DUMMY_SP and raw: None: 0.0 == -0.0, but integer_decode hashes the sign — (0,0,+1) vs (0,0,-1). cargo test -p swc_css_ast → FAILED #12815

Full matrix — every capability, its one command, its external oracle and its honest boundary: EN · RU. Corpus inventory with N/M and oracles: EN · RU.

Blind exam on WHOLE corpora — and the defects it produced

Whole directories, pinned SHAs, no file cap, zero edits to the analyzer before the run. Every finding was triaged per line against the sources; the remaining ones are UB in the signature domain (LONG_MIN, INT_MIN), stated as such and never renamed into «bugs».

corpusSHAfilesfunctionsfindingsfalseprecision
curl/lib155f6f76377430101.00
redis/src5b69ba2c22714543301.00
tigerbeetle/src68958eb7338120101.00
total—94220043501.00

Industrial code where KERN accused nobody (0 false alarms): DeepGEMM 144 files · FlashMLA 133 · DeepEP-Ascend 80 · cmark-gfm (known_fp = 0) · actions/toolkit. Honest boundary: the cap is on the slice, not on the corpus — 2004 of 10345 functions were analyzable, the rest were skipped with a named reason.

Real defects, with patches: REAL_BUGS_FOUND.md — including a live ordering defect in tigerbeetle test_conformance.py: the use transfers_1[0] (line 6169) stands above the guard assert len(transfers_1) == 1 (line 6170), so an empty reply yields IndexError instead of the authors' own assertion. All eight capabilities, one command each: PROOF_GALLERY.md.

What the agent says — and what KERN proves

make ai-demo · one agent session · verbatim tool output
TaskLanguagedeepseekglmmimominimaxnemotron
integer average with a 500 capPythonTTTno fileT
i32 sum, ensures result >= aZigF → FF → FF → FF → FF → timeout
integer division, unguardedCF → TF → TN (loop, outside subset)no filenot measured
i32 sum, ensures result >= aRustF → TF → TTF → Fnot measured

Refactoring equivalence (--diff-equiv, no contracts)

The same five models were asked to optimize clamp_int from boltons.

ModelVerdict
deepseekDIVERGED
glmEQUIVALENT
mimoDIVERGED
nemotronDIVERGED
minimaxno file

Honest nuance: rewriting max(lo, min(x, hi)) as two ifs is equivalent only while lo <= hi. --diff-equiv compares without any contract, so it reports the difference in the lo > hi region with the witness x = 0, lo = 0, hi = -1: was 0, became -1.

Live guide to all 10 capabilities (EN / RU, generated by make demo-all): EN · RU

Anti-self-deception: native compilers confirm every verdict

CaseLanguageKERN witnessReal toolchainResult
py_abs_bad.pyPythonx = -1python3AssertionError
c_unguarded.cCb = 0gcc -fsanitize=undefineddivision by zero
rust_overflow.rsRusta = 2147483647, b = 1rustc -C overflow-checks=onpanic: overflow
zig_div.zigZigb = 0zig runpanic: division by zero
model add32Ziga = 2147483647, b = 1zig runpanic: integer overflow

Ground truth 5/5 · mutation kill 5/5. One mutation survives on purpose: if x < lo → if x <= lo is an equivalent mutant (both branches return lo when x == lo) - a prover answering F there would be wrong.

Round 1 blind: 4 proved, 7 refuted, 1 honest N · after KERN’s counterexample 4 of 7 refuted tasks repaired. The three that stayed broken are the same Zig overflow task: every model re-sent return a + b; while the witness a = 2147483647, b = 1 → 2147483648 was in the prompt — whereas the Rust twin of the same task was fixed with a.saturating_add(b).

And when the contract is impossible, models rewrite the specification instead of saying so: both models tested narrowed @kern:requires (leaving @kern:ensures untouched) — the contract lock catches exactly that (contracts-lock-check, rc=2).

Raw artefacts: evidence/leaderboard/, evidence/live_eval/; details in LIVE_MODEL_EVAL.md.

Measured, not claimed

MEASURED BASELINE
471 / 471core tests (Debug + ReleaseSafe) 53 / 53KERN-Next tests 100.0 %mutation score — 1688 / 1688 killed (21 files, full local sweep); committed evidence: mutate_full.log 1376 / 1376 + canonical 40 / 40 + per-module 244 / 244 227 / 227can-fail CHECK targets — 274 non-vacuous cases, 0 vacuous
147 / 0Lean 4 theorems / 0 sorry (8 files) 100.0 %decision coverage (30/30) 443 / 8 / 0QEMU ARM64 + POWERPC64 passed / skipped / failed (current suite) SHA256SUMSrelease artefact verified against the checksums shipped with the release; the Ed25519 attestation binds the SOURCE fingerprint (commit + tree_sha256), not a byte-identical rebuild

Every number above is produced by a command you can run yourself — see docs/METRICS.en.md and docs/evidence/. Exact per-commit metrics (avalanche, collision chain, χ²) are charted on the benchmark page.

Open-source audit gallery — real code, real counterexamples

Every row is produced by a run (make audits, bug_hunter.py --trophies), never written by hand. PROVEN means Z3 proved it and our Zig proof checker re-checked the certificate (trusted: 0 | holes: 0); REFUTED ships the exact Z3 counterexample. Full table and honest limits: README · audits/EVIDENCE.md.

Project (file)ClaimVerdictCounterexample
ziglang/zig lib/std/mem.zig
alignBackward
addr & ~(align-1) == addr - addr % align PROVEN · QF_BV 32—
ziglang/zig mem.zig
alignForward
addr + (align-1) fits in u32 REFUTEDaddr=4294967295, align=2 → 4294967296
tigerbeetle src/stdx/stdx.zig
div_ceil
(n + d - 1) / d exact, no overflow PROVEN · 98 steps, trusted: 0—
musl libc src/stdlib/abs.c
abs
result >= 0 for x > INT32_MIN PROVEN · 51 steps, trusted: 0—
ghostty src/renderer/size.zig
gridColumns
columns never 0 PROVEN—
andrewrk/gpa gpda.zig
isAligned
addr & ~(align-1) == addr ⟺ addr % align == 0 PROVEN · all 2³² addresses—
zlib zutil.c
zcalloc
items * size fits in u32 REFUTEDitems=#x8e0ff0f1, size=#x5ffeffef → #xffffffff
JDK (Bloch, 2006)
binarySearch
(low + high) / 2 in i32 REFUTED · QF_BV onlylow=#x804, high=#x7ffff7fc → #xc0000000 (negative)
ziglang/zig lib/std/math/
64 files
zero-annotation --xray (C-like path) checked 80 / 2210 findings (was 0 checked)
Python 3.12 stdlib
8 modules
zero-annotation --xray field scan checked 211 / 4130 false positives
github/cmark-gfm src/autolink.c · extensions/table.c · src/inlines.c
4 historical CVEs
retro-validation: caught before the fix, silent after 4 / 4 caught · certificate trusted: 0 2cb4a20 · 4682993 · ac80f7b · 198669d

--full-scan <path> runs the honest subset in one pass: zero-annotation --xray over all 7 languages, then, for findings, contract inference (--infer-requires) and a reproducing test (--gen-tests). Theories that need a contract are reported as applicable, never as “verified”.

Honest limits. The SMT model is ours — a counterexample must still be reproduced against the project's own build before it can be called their bug. Bloch's bug is invisible in the Int theory (needs @kern:bitvec32 / QF_BV). SKIP rows are kept on purpose: a verifier that never refuses is not verifying.

Scan any code or GitHub file — live in your browser

Paste a function (Python, Zig, C, Rust, Go, TS/JS) or a GitHub file URL. The page extracts if / else if branches on one variable, computes McCabe CC, and asks the real KERN core compiled to WebAssembly (kernc.wasm, Fourier–Motzkin LIA) whether two branches can be simultaneously true. Everything runs locally — no server calls.

—

Honest scope: only branches on a single variable with integer comparisons are decided; anything else is reported as “outside the fragment”, never as “proven”. The WASM call is the same solver the CLI uses (2 constraints: a·x + b·y + c ≤ 0).

Four traps an AI agent falls into — and how KERN refuses them

  • Vacuous precondition (false ⟹ anything): a contradictory requires would make any broken body "provable" → KERN answers [VACUOUS] precondition is unsatisfiable (empty domain) and keeps the gate closed.
  • Weakening the specification: deleting a failing @kern:ensures is the cheapest cheat → every contract is fingerprinted in docs/contracts.lock.json, and any removal or edit is a hard error (rc = 2).
  • Silent behaviour change during refactoring: no contracts required → KERN checks ∃x: f_old(x) ≠ f_new(x) over all of ℤ and prints the exact input where the two versions disagree.
  • A counterexample that lives only in a log: --emit-pytest turns it into a real regression test that fails on the current code, while --sarif / --github-annotations put it on the exact line inside a pull request.

For AI agents (MCP) and CI

Eight tools over stdio for any MCP client, with 17 live self-checks (make mcp-selftest): kern_verify_smt · kern_prove_with_checker · kern_verify_multi_belnap · kern_verify_python · kern_check_equivalence · kern_xray_code · kern_verify_action · kern_rlvr_reward.

In CI, the reusable Action verifies the downloaded binary against SHA256SUMS before running it, and can emit a SARIF 2.1.0 report for GitHub Code Scanning:
uses: newmathphys/kern@v2.7.1

Defect Journal — when the checks themselves lied

Short entries from docs/METRICS.md; the full registry is defect registry #1–#651. Each entry is a case where a measurement or a harness was wrong — not the code it was checking.

#110 — the mutation score was measured without a solver.

Symptom: the score "dropped" to 77.5 % after the mutator was pointed at 14 files instead of 6. Found by measuring, not guessing: without z3 in PATH the suite reports 263 passed; 8 skipped — and a skipped test cannot kill a mutant. One of those 8 tests had been written specifically to kill the mutant that "survived". Fix: the mutator now requires a solver (--require-solver); the score at that time was 95.0 % (38/40). After the corpus grew to 21 files the full sweep reports 1345 / 1345.

#107 — 64 % of the mutants came from a single file.

Symptom: "mutation coverage over 14 files" — but proof_check.zig holds 266 of the 420 sites, so a uniform sample put ~25 mutants in one file and 0–1 in the others. Fix: stratified sampling with a guaranteed minimum per file, a fixed recorded seed, and the site distribution published in the defect entry.

#116 — the harness rollback silently discarded an edit made during a run.

Symptom: a README edit vanished, and the file stayed syntactically valid, so nothing looked broken. Found by comparing content, not exit codes: the can-fail harness restores patched files from a byte snapshot taken at the start of each case — and for files the case itself patched, a third-party edit in between was overwritten without a word. Fix: the harness records the hash of what it wrote and refuses to restore when the file changed afterwards; per-case state is reset. Verified by a targeted 3/3 test.

Honest status

What is measured, what is written but not measured, what is not implemented and what is not verified for real is listed in CAPABILITY_STATUS.en.md, together with the defects this project found in itself (#1–#651). A check that cannot go red is treated as a defect here, not as coverage.

KERN Formal Trust Index & Scorecard

Same idea as third-party repository catalogs, but the card is built from measured facts (native/formal files included) and the rubric weights are printed. This is a checklist, not a proof: the proven claims are trusted: 0 in the proof checker and the Lean 4 theorems.

—
loading…
commit —

1. What we read

…

2. MCP tool surface & AI safety

…

3. Mathematical & formal soundness

…

4. Zero-annotation X-ray & metrics

…

5. Provenance & certification

…

Score any other repository from the CLI (full scan: 8 languages, X-ray, MCP surface, mutation/proof metrics):
python3 tools/trust_scorecard.py --repo owner/repo --json out.json — repositories without Lean 4 proofs or an MCP manifest are graded on the base profile (max 88, Grade A), and the card prints how to reach A+. A live browser scan (GitHub tree + raw files + kernc.wasm) is available in the next section; it is capped at 65, because mutation, can-fail and the Z3 theories stay CLI-only.

Live audit of any public repo (no backend)

Reads the tree via api.github.com/…/git/trees/HEAD?recursive=1 and up to 15 code + 10 .lean files via raw.githubusercontent.com (both CORS-open), and calls the real kernc.wasm (kern_wasm_lia_unsat2) in your browser. Honest scope: X-Ray here is heuristic (regex + LIA on numeric guards); mutation (1345 sites), can-fail (227 goals), QF_S/IEEE-754 and the Ed25519 signature check are CLI-only — therefore the browser score caps at 65.

enter owner/repo and press “Live audit repo”

🌍 KERN Index — start here

Select a row to run a live audit in this browser. The full audit — SMT solving, mutation testing, the can-fail harness and a signed attestation — is reproduced for newmathphys/kern. The other rows are entry points for the composition scan.

repostatuswhat is known
newmathphys/kern100/100 · A+ full CLI audit: 147 Lean theorems (0 sorry), 1688/1688 mutants, 227/227 can-fail, 92 .zig + 8 .lean, 8/8 MCP
QuixBugs (40 tasks)40/40 diff 6/40 formal SMT (Stage 1, trusted: 0) · 40/40 live differential (24 value + 8 crash + 1 hang; 9 need no oracle, 24 use the dataset reference) · 0 EXPLORED. The dataset's own tests (31/31) are dataset wiring, not a KERN metric (#231, #239)
modelcontextprotocol/serverscompositionMCP surface: tools/list, descriptions, annotations
ziglang/zigcomposition.zig composition (Blind-Spot Check), Lean absent
leanprover/lean4composition.lean theorem/sorry count (first 10 files)
astral-sh/ruffcompositionRust + Python: CC, anti-cheat, crash paths
github/cmark-gfm78/100 · B C11: CC, crash paths — field-audited (59 → 0 false crash paths)
tigerbeetle/tigerbeetle84/100 · B Zig: field-audited, 586/2380 functions, 0 crash paths after #183
BurntSushi/ripgrep73/100 · B Rust: 36/1354 functions (was 0/1292), 60 → 0 false crash paths

Field audit of 14 real repositories (Zig, C, Rust, TypeScript, Go, Python, Lean 4) — scorecard and X-Ray numbers before and after the fixes:  docs/FIELD_AUDIT_REPORT.md. Browser score is capped at X/65: it reads the tree and raw files only; the remaining 35 points need Z3 X-Ray, mutation testing and a signed attestation (python3 tools/trust_scorecard.py --repo owner/repo).

🕒 Recently audited in your browser

No scans in this browser yet.

Live WASM kernel playground

Runs the real Zig core compiled to WebAssembly. 0 server calls; the module is 85 KB and has no OS syscalls.

Belnap B4 join

N=0 · T=1 · F=2 · B=3 (bit0=p, bit1=n)

—

Admission (Hamming 64)

Valid 64-bit code → e = 1

—

Fourier–Motzkin (LIA)

x ≤ 5 ∧ x ≥ 10 → UNSAT

—

Proof flow, Ego-Lens and the filter matrix

Every control below is driven by data shipped with this page: the flow map is a static SVG, the lens and the filters read showcase-graph.json, which is regenerated from @import, test " and @kern: in src/ by make showcase. Nothing here is a mock-up: what the page cannot run in a browser is marked CLI only instead of being simulated.

Proof flow — the path a claim travels

Proof flow: source AST to contract to Z3 lemma to verdict, with CEGIS feedback
ControlWhat it doesData sourceStatus
SVG flowDirected map AST → contract → Z3 lemma → verdict; edges are labelled import, asserted, proof-step; the CEGIS arrow returns a counterexample with its error gradient.docs/kern-proof-flow.svgreal, static
🔍 LensIsolates the active module plus its direct (1) and second-order (2) import neighbours. Click any node to move the lens.docs/showcase-graph.json ← @import in src/real, interactive
[ + ] ANDLeft click on a chip: keep only modules that carry the claim.recomputed from sourcereal
[ ~ ] ORShift + click: at least one of the OR-claims must hold.samereal
[ - ] NOTRight click: hard exclusion.samereal
[ = ] EQUIVSymbolic equivalence of two revisions through Z3 --diff-equiv. The recorded run below is real; the command is printed so you can reproduce it.tools/kern_contracts.pyCLI only — the browser has no solver
python3 tools/kern_contracts.py --diff-equiv examples/refactor_before.py examples/refactor_after.py
  [DIVERGED] charge: РЕФАКТОРИНГ ИЗМЕНИЛ ПОВЕДЕНИЕ
         [КОНТРПРИМЕР] amount = 1, res_old = 0, res_new = 2, balance = 1
            (противоположная пара, examples/refactor_before.py vs itself)
  [EQUIVALENT?] charge: solver proved equivalence, proof checker rejected it (premises_unbound)
  → the same revision is never accused of divergence (#243)

The CLI prints in Russian; verbatim reading: [DIVERGED] charge: the refactoring changed behaviour · [COUNTEREXAMPLE] amount = 1, res_old = 0, res_new = 2, balance = 1. No translation of the numbers, no re-run — this is the captured output of the command above.

Ego-Lens — radius 1–2 around the active module

loading…

Filter matrix — boolean selection in one click

loading…

moduleLOCpub fntests@kern:claims
—

KERN · © 2026 Vital Kalinousky · GNU AGPL-3.0-or-later (commercial use requires a license from the copyright holder).
This page is served from /docs of the main repository; the banner above is docs/kern-architecture.svg — the same file the README uses.