Rename ai-jail to kekkai: binary, package, trusted store, data directory,
systemd scope and launcher, with the ai-jail names still honoured.

kekkai is ai-jail with a patch series on top (the zeo-workspace kekkai
repository). Shipping the two under one name made them impossible to tell
apart: the same command answered with or without --mask-host, --state-root
and the rest depending on which package was installed. This patch is
kekkai's alone and stays last in the series, so every patch above it can go
upstream as ai-jail.

What moves:
  - the package and binary: kekkai (Cargo.toml, Cargo.lock's root entry);
    `kekkai --version` prints "kekkai 3.7.1"; help says kekkai
  - the trusted store: $XDG_CONFIG_HOME/kekkai
  - the data directory: ~/.local/share/kekkai (audit log, browser profiles)
  - the systemd scope of the cgroup limits: kekkai-<pid>
  - the status bar label, and the desktop launcher: kekkai-chromium (+ .desktop)

Compatibility (src/compat.rs), for one release at least:
  - a store or data directory that exists only under the ai-jail name is
    used where it is, with one warning per run naming the move; nothing is
    moved or copied, so state is never split between the two names. Both
    store names are masked from the jail and listed as protected authority.
  - KEKKAI_QUIET is read before AI_JAIL_QUIET; the launcher reads
    KEKKAI_BROWSER_CWD before AI_JAIL_BROWSER_CWD and falls back to an
    ai-jail binary.
  - unchanged on purpose: the legacy per-project `.ai-jail` file and the
    global ~/.ai-jail (upstream's migration inputs -- a second name would be
    a second thing to mask), the in-jail paths /tmp/.ai-jail-*, the
    AI_JAIL_* variables the supervisor sets for its own helpers (internal
    wire names), the default host name ai-sandbox, and the docs, which stay
    upstream's (README gains a note).
  - the ebuild installs /usr/bin/ai-jail as a symlink to kekkai for one
    release (USE ai-jail-symlink).

Tests: compat's name choice, the store/data fallback on disk and the
variable aliases; an integration test that an ai-jail store alone is still
used, warned about, and stops being used once the kekkai one exists; the
fixtures that create a store or data directory now create the kekkai one.

diff --git a/Cargo.lock b/Cargo.lock
index 688bb23..772d6d3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,7 +3,7 @@
 version = 4
 
 [[package]]
-name = "ai-jail"
+name = "kekkai"
 version = "3.7.1"
 dependencies = [
  "crossterm",
diff --git a/Cargo.toml b/Cargo.toml
index 19e0421..017ab5c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,8 +1,8 @@
 [package]
-name = "ai-jail"
+name = "kekkai"
 version = "3.7.1"
 edition = "2024"
-description = "Sandbox for AI coding agents (bubblewrap on Linux, sandbox-exec on macOS)"
+description = "Sandbox for AI coding agents (bubblewrap on Linux, sandbox-exec on macOS); ai-jail with the kekkai patch series"
 license = "GPL-3.0-only"
 repository = "https://github.com/akitaonrails/ai-jail"
 readme = "README.md"
diff --git a/README.md b/README.md
index 485af83..a080a85 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,13 @@
 # ai-jail
 
+> **This build is kekkai** -- ai-jail with the kekkai patch series. The binary is
+> `kekkai`; everything below that says `ai-jail` applies to it unchanged. What
+> moved: the trusted store (`$XDG_CONFIG_HOME/kekkai`), the data directory
+> (`~/.local/share/kekkai`), the systemd scope (`kekkai-<pid>`). An existing
+> `ai-jail` store or data directory is still used, with a deprecation warning,
+> until it is moved; `KEKKAI_QUIET` is read before `AI_JAIL_QUIET`. See
+> `src/compat.rs`.
+
 **[aijail.io](https://aijail.io)**
 
 `ai-jail` runs AI coding agents in an OS sandbox: bubblewrap plus Landlock,
diff --git a/dist/desktop/ai-jail-chromium b/dist/desktop/ai-jail-chromium
deleted file mode 100755
index e89bc61..0000000
--- a/dist/desktop/ai-jail-chromium
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-set -eu
-
-data_home="${XDG_DATA_HOME:-"$HOME/.local/share"}"
-launcher_cwd="${AI_JAIL_BROWSER_CWD:-"$data_home/ai-jail/browser-launcher-cwd"}"
-
-mkdir -p "$launcher_cwd"
-cd "$launcher_cwd"
-
-# Desktop launchers usually do not inherit the interactive shell PATH. Include
-# mise shims explicitly so mise-installed ai-jail resolves correctly.
-export PATH="$data_home/mise/shims:$HOME/.local/bin:/usr/local/bin:/usr/bin:/bin${PATH:+:$PATH}"
-
-# --browser only arranges the isolated profile.  On Linux the sandbox still
-# unshares the network namespace and mounts no display socket, so without the
-# two flags below the browser can neither open a window nor load a page --
-# upstream's own README says as much.  Verified with `ai-jail --dry-run`:
-# plain `--browser=soft` yields `--unshare-net` and no wayland/X11 bind.
-#
-# --network is unrestricted network for everything inside the sandbox.  That is
-# the point for a browser, and the isolation that remains is the filesystem one:
-# a private $HOME, with only the launcher directory writable.
-if [ -n "${WAYLAND_DISPLAY:-}" ]; then
-  display_flag=--display
-elif [ -n "${DISPLAY:-}" ]; then
-  display_flag=--x11
-else
-  echo "ai-jail-chromium: no graphical session found (WAYLAND_DISPLAY and DISPLAY are both unset)." >&2
-  exit 1
-fi
-
-if command -v ai-jail >/dev/null 2>&1; then
-  exec ai-jail --browser=soft --network "$display_flag" chromium "$@"
-fi
-
-echo "ai-jail not found. Install it with 'cargo install ai-jail' or 'mise use -g ubi:akitaonrails/ai-jail'." >&2
-exit 127
diff --git a/dist/desktop/ai-jail-chromium.desktop b/dist/desktop/ai-jail-chromium.desktop
deleted file mode 100755
index 5949fdf..0000000
--- a/dist/desktop/ai-jail-chromium.desktop
+++ /dev/null
@@ -1,13 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=Chromium (ai-jail)
-GenericName=Sandboxed Web Browser
-Comment=Run Chromium inside ai-jail with an isolated persistent browser profile
-Exec=ai-jail-chromium %U
-Icon=chromium
-Terminal=false
-Categories=Network;WebBrowser;
-MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
-Keywords=ai-jail;sandbox;chromium;browser;private;
-StartupNotify=true
-StartupWMClass=chromium
diff --git a/dist/desktop/kekkai-chromium b/dist/desktop/kekkai-chromium
new file mode 100755
index 0000000..3c73a7e
--- /dev/null
+++ b/dist/desktop/kekkai-chromium
@@ -0,0 +1,41 @@
+#!/bin/sh
+set -eu
+
+data_home="${XDG_DATA_HOME:-"$HOME/.local/share"}"
+# KEKKAI_BROWSER_CWD, or the ai-jail-era AI_JAIL_BROWSER_CWD.
+launcher_cwd="${KEKKAI_BROWSER_CWD:-${AI_JAIL_BROWSER_CWD:-"$data_home/kekkai/browser-launcher-cwd"}}"
+
+mkdir -p "$launcher_cwd"
+cd "$launcher_cwd"
+
+# Desktop launchers usually do not inherit the interactive shell PATH. Include
+# mise shims explicitly so mise-installed kekkai resolves correctly.
+export PATH="$data_home/mise/shims:$HOME/.local/bin:/usr/local/bin:/usr/bin:/bin${PATH:+:$PATH}"
+
+# --browser only arranges the isolated profile.  On Linux the sandbox still
+# unshares the network namespace and mounts no display socket, so without the
+# two flags below the browser can neither open a window nor load a page --
+# upstream's own README says as much.  Verified with `kekkai --dry-run`:
+# plain `--browser=soft` yields `--unshare-net` and no wayland/X11 bind.
+#
+# --network is unrestricted network for everything inside the sandbox.  That is
+# the point for a browser, and the isolation that remains is the filesystem one:
+# a private $HOME, with only the launcher directory writable.
+if [ -n "${WAYLAND_DISPLAY:-}" ]; then
+  display_flag=--display
+elif [ -n "${DISPLAY:-}" ]; then
+  display_flag=--x11
+else
+  echo "kekkai-chromium: no graphical session found (WAYLAND_DISPLAY and DISPLAY are both unset)." >&2
+  exit 1
+fi
+
+# kekkai first; an ai-jail of its own is the fallback while both names exist.
+for jail in kekkai ai-jail; do
+  if command -v "$jail" >/dev/null 2>&1; then
+    exec "$jail" --browser=soft --network "$display_flag" chromium "$@"
+  fi
+done
+
+echo "kekkai-chromium: neither kekkai nor ai-jail is installed." >&2
+exit 127
diff --git a/dist/desktop/kekkai-chromium.desktop b/dist/desktop/kekkai-chromium.desktop
new file mode 100755
index 0000000..9b7807d
--- /dev/null
+++ b/dist/desktop/kekkai-chromium.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Type=Application
+Name=Chromium (kekkai)
+GenericName=Sandboxed Web Browser
+Comment=Run Chromium inside kekkai with an isolated persistent browser profile
+Exec=kekkai-chromium %U
+Icon=chromium
+Terminal=false
+Categories=Network;WebBrowser;
+MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
+Keywords=kekkai;ai-jail;sandbox;chromium;browser;private;
+StartupNotify=true
+StartupWMClass=chromium
diff --git a/docs/FORGE_AUTH.md b/docs/FORGE_AUTH.md
index 4d123a8..38c2d66 100644
--- a/docs/FORGE_AUTH.md
+++ b/docs/FORGE_AUTH.md
@@ -104,7 +104,7 @@ Repository token:
 ✗ AJ-FORGE-OPEN-001 OPEN: ai-jail cannot prove that this persistent token lacks access outside owner/repo. Type OPEN to save this authority:
 OPEN
 ✓ AJ-FORGE-SAVE-001 Forge access saved outside the checkout
-  <ROOT>/xdg/ai-jail/forges/<PROJECT>.toml
+  <ROOT>/xdg/kekkai/forges/<PROJECT>.toml
   Repository ID: 42
   Token class: OPEN · USER-ASSERTED · PERSISTENT
 AJ-FORGE-STATUS-001 GitLab project token for https://gitlab.example / owner/repo (repository ID 42)
@@ -120,7 +120,7 @@ Repository token:
 ✗ AJ-FORGE-OPEN-001 OPEN: ai-jail cannot prove that this persistent token lacks access outside owner/repo. Type OPEN to save this authority:
 OPEN
 ✓ AJ-FORGE-SAVE-001 Forge access saved outside the checkout
-  <ROOT>/xdg/ai-jail/forges/<PROJECT>.toml
+  <ROOT>/xdg/kekkai/forges/<PROJECT>.toml
   Repository ID: 42
   Token class: OPEN · USER-ASSERTED · PERSISTENT
 ✓ AJ-FORGE-REMOVE-001 Forge access removed for this project
diff --git a/src/audit.rs b/src/audit.rs
index 7cbd115..1b6e5a6 100644
--- a/src/audit.rs
+++ b/src/audit.rs
@@ -3,7 +3,7 @@
 //! One JSONL record per launch, appended when the child exits; when
 //! filtered egress is active the proxy threads append CONNECT verdict
 //! records through the same supervisor-side handle. The file lives at
-//! `~/.local/share/ai-jail/history.jsonl` -- the sandbox never sees it
+//! `~/.local/share/kekkai/history.jsonl` -- the sandbox never sees it
 //! (it is outside every mount).
 //!
 //! Logging must never break a launch: write errors warn once and are
@@ -138,7 +138,7 @@ pub(crate) fn open_history(
     // HOME itself must exist and be a safe directory. Only a missing child
     // component means that the audit log does not exist.
     let mut parent = open_home(home)?;
-    for name in [c".local", c"share", c"ai-jail"] {
+    for name in [c".local", c"share", crate::compat::data_dir_name_c(home)] {
         parent = match open_entry(
             &parent,
             name,
@@ -473,7 +473,7 @@ fn open_log_for_append(home: &Path) -> std::io::Result<std::fs::File> {
 
     let mut parent = open_home(home)?;
     validate_directory(&parent)?;
-    for name in [c".local", c"share", c"ai-jail"] {
+    for name in [c".local", c"share", crate::compat::data_dir_name_c(home)] {
         parent = open_or_create_directory(&parent, name)?;
     }
     // Keep the dedicated audit directory private using its pinned fd.
@@ -541,7 +541,7 @@ impl AuditLog {
     /// Security failures disable logging with a security warning; ordinary I/O
     /// failures remain best-effort.
     pub(crate) fn open(home: &Path) -> Option<std::sync::Arc<AuditLog>> {
-        let path = home.join(".local/share/ai-jail/history.jsonl");
+        let path = home.join(".local/share/kekkai/history.jsonl");
         let file = match open_log_for_append(home) {
             Ok(file) => file,
             Err(error) => {
@@ -829,7 +829,7 @@ mod tests {
     }
 
     fn log_path(home: &Path) -> PathBuf {
-        home.join(".local/share/ai-jail/history.jsonl")
+        home.join(".local/share/kekkai/history.jsonl")
     }
 
     #[test]
@@ -873,7 +873,7 @@ mod tests {
         let home = test_home("dir-symlink");
         let target = test_home("dir-symlink-target");
         std::fs::create_dir_all(home.join(".local/share")).unwrap();
-        std::os::unix::fs::symlink(&target, home.join(".local/share/ai-jail"))
+        std::os::unix::fs::symlink(&target, home.join(".local/share/kekkai"))
             .unwrap();
         assert!(AuditLog::open(&home).is_none());
         // Nothing was written through the link.
@@ -887,7 +887,7 @@ mod tests {
         let home = test_home("file-symlink");
         let outside = test_home("file-symlink-outside").join("victim");
         std::fs::write(&outside, b"").unwrap();
-        let dir = home.join(".local/share/ai-jail");
+        let dir = home.join(".local/share/kekkai");
         std::fs::create_dir_all(&dir).unwrap();
         std::os::unix::fs::symlink(&outside, dir.join("history.jsonl"))
             .unwrap();
diff --git a/src/authority_inventory.rs b/src/authority_inventory.rs
index 1d41f33..0710a4d 100644
--- a/src/authority_inventory.rs
+++ b/src/authority_inventory.rs
@@ -85,6 +85,7 @@ pub(crate) const AUTHORITY_PATHS: &[AuthorityPath] = &[
     protected!("github", Home, ".config/gh"),
     protected!("google-cloud", Home, ".config/gcloud"),
     protected!("ai-jail", Home, ".config/ai-jail"),
+    protected!("kekkai", Home, ".config/kekkai"),
     state!("claude", Home, ".claude", "claude", true, true, Directory),
     state!("claude", Home, ".claude.json", "claude", true, true, File),
     state!("codex", Home, ".codex", "codex", true, true, Directory),
@@ -185,6 +186,7 @@ pub(crate) const AUTHORITY_PATHS: &[AuthorityPath] = &[
     protected!("github", XdgConfig, "gh"),
     protected!("google-cloud", XdgConfig, "gcloud"),
     protected!("ai-jail", XdgConfig, "ai-jail"),
+    protected!("kekkai", XdgConfig, "kekkai"),
     protected!("opencode", XdgConfig, "opencode"),
     protected!("crush", XdgConfig, "crush"),
     protected!("jcode", XdgConfig, "jcode"),
diff --git a/src/cli.rs b/src/cli.rs
index 1242012..a7de5e5 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -3,10 +3,11 @@ use std::path::PathBuf;
 const VERSION: &str = env!("CARGO_PKG_VERSION");
 
 const HELP: &str = "\
-ai-jail — sandbox for AI coding agents (bwrap on Linux, sandbox-exec on macOS)
+kekkai — sandbox for AI coding agents (bwrap on Linux, sandbox-exec on macOS)
+(ai-jail with the kekkai patch series; `ai-jail` and AI_JAIL_* still work)
 
 USAGE:
-    ai-jail [OPTIONS] [--] [COMMAND [ARGS...]]
+    kekkai [OPTIONS] [--] [COMMAND [ARGS...]]
 
 COMMANDS (positional):
     gemini, claude, codex, opencode, crush, soulforge, grok, pi, jcode,
@@ -164,7 +165,7 @@ OPTIONS:
                                     Enable/disable the status bar's GitHub update
                                     check (default: off)
     --audit-log / --no-audit-log    Enable/disable the launch audit log at
-                                    ~/.local/share/ai-jail/history.jsonl
+                                    ~/.local/share/kekkai/history.jsonl
                                     (default: off; repository policy cannot enable)
     --audit-show                   Show the local audit log and exit
     --audit-verify                 Verify the audit log's hash chain and exit
@@ -1040,7 +1041,7 @@ pub fn parse_from(mut parser: lexopt::Parser) -> Result<CliArgs, String> {
                 std::process::exit(0);
             }
             Short('V') | Long("version") => {
-                println!("ai-jail {VERSION}");
+                println!("{} {VERSION}", crate::compat::NAME);
                 std::process::exit(0);
             }
             Value(val) => {
diff --git a/src/compat.rs b/src/compat.rs
new file mode 100644
index 0000000..7a11b2e
--- /dev/null
+++ b/src/compat.rs
@@ -0,0 +1,169 @@
+//! kekkai was ai-jail: the names that moved, and the old ones still honoured.
+//!
+//! What moved: the binary and package (`kekkai`), the trusted store
+//! (`$XDG_CONFIG_HOME/kekkai`), the data directory (`~/.local/share/kekkai`:
+//! the audit log and browser profiles), the systemd scope (`kekkai-<pid>`)
+//! and the name in help, version and the status bar.
+//!
+//! What did not: the legacy per-project `.ai-jail` file and the global
+//! `~/.ai-jail` keep their names -- they are upstream's migration inputs, and
+//! a second name would only be a second thing to mask. The in-jail paths
+//! (`/tmp/.ai-jail-*`) and the `AI_JAIL_*` variables the supervisor sets for
+//! its own helpers are internal wire names, unchanged.
+//!
+//! Fallbacks, for one release at least: a store or data directory that exists
+//! only under the old name is used where it is, with one warning naming the
+//! move; nothing is moved or copied, so no state is split between the two.
+//! A user-facing variable is read as `KEKKAI_<NAME>` first and `AI_JAIL_<NAME>`
+//! second.
+
+use std::ffi::{CStr, OsString};
+use std::path::{Path, PathBuf};
+use std::sync::atomic::{AtomicBool, Ordering};
+
+pub(crate) const NAME: &str = "kekkai";
+pub(crate) const LEGACY_NAME: &str = "ai-jail";
+const NAME_C: &CStr = c"kekkai";
+const LEGACY_NAME_C: &CStr = c"ai-jail";
+
+static WARNED_STORE: AtomicBool = AtomicBool::new(false);
+static WARNED_DATA: AtomicBool = AtomicBool::new(false);
+
+/// Which name a directory under `base` goes by: the new one when it exists,
+/// or when neither does; the old one when only it exists. `exists` stands in
+/// for the filesystem in tests. A symlink counts as existing, so the checks
+/// that refuse one downstream still see it.
+pub(crate) fn pick(
+    base: &Path,
+    exists: &dyn Fn(&Path) -> bool,
+) -> &'static str {
+    if !exists(&base.join(NAME)) && exists(&base.join(LEGACY_NAME)) {
+        LEGACY_NAME
+    } else {
+        NAME
+    }
+}
+
+fn on_disk(path: &Path) -> bool {
+    std::fs::symlink_metadata(path).is_ok()
+}
+
+fn warn_once(flag: &AtomicBool, base: &Path, what: &str) {
+    if !flag.swap(true, Ordering::Relaxed) {
+        crate::output::warn(&format!(
+            "deprecated: using the {what} at {} (the ai-jail name); kekkai reads it from {} -- move it there to silence this",
+            base.join(LEGACY_NAME).display(),
+            base.join(NAME).display()
+        ));
+    }
+}
+
+/// The trusted store under `$XDG_CONFIG_HOME` (`config_home`).
+pub(crate) fn store_dir(config_home: &Path) -> PathBuf {
+    let name = pick(config_home, &on_disk);
+    if name == LEGACY_NAME {
+        warn_once(&WARNED_STORE, config_home, "configuration");
+    }
+    config_home.join(name)
+}
+
+/// The store directories either name could hold, for the checks that must
+/// keep both away from the sandbox.
+pub(crate) fn store_dirs(config_home: &Path) -> [PathBuf; 2] {
+    [config_home.join(NAME), config_home.join(LEGACY_NAME)]
+}
+
+/// The data directory's name under `~/.local/share`, as a C string for the
+/// `openat` walks in `audit.rs`.
+pub(crate) fn data_dir_name_c(home: &Path) -> &'static CStr {
+    if data_dir_name(home) == LEGACY_NAME {
+        LEGACY_NAME_C
+    } else {
+        NAME_C
+    }
+}
+
+/// The data directory's name under `~/.local/share`.
+pub(crate) fn data_dir_name(home: &Path) -> &'static str {
+    data_dir_name_in(&home.join(".local/share"))
+}
+
+/// The data directory's name under `share` (`$XDG_DATA_HOME` for the
+/// toolchain caches, `~/.local/share` otherwise).
+pub(crate) fn data_dir_name_in(share: &Path) -> &'static str {
+    let name = pick(share, &on_disk);
+    if name == LEGACY_NAME {
+        warn_once(&WARNED_DATA, share, "data directory");
+    }
+    name
+}
+
+/// `~/.local/share/<data dir>`.
+pub(crate) fn data_dir(home: &Path) -> PathBuf {
+    home.join(".local/share").join(data_dir_name(home))
+}
+
+/// A user-facing variable: `KEKKAI_<suffix>`, else `AI_JAIL_<suffix>`.
+pub(crate) fn env_var_os(suffix: &str) -> Option<OsString> {
+    std::env::var_os(format!("KEKKAI_{suffix}"))
+        .or_else(|| std::env::var_os(format!("AI_JAIL_{suffix}")))
+}
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+
+    #[test]
+    fn the_new_name_wins_unless_only_the_old_one_exists() {
+        let base = Path::new("/c");
+        let none = |_: &Path| false;
+        let both = |_: &Path| true;
+        let old = |p: &Path| p == Path::new("/c/ai-jail");
+        let new = |p: &Path| p == Path::new("/c/kekkai");
+        assert_eq!(pick(base, &none), "kekkai");
+        assert_eq!(pick(base, &both), "kekkai");
+        assert_eq!(pick(base, &new), "kekkai");
+        assert_eq!(pick(base, &old), "ai-jail");
+    }
+
+    #[test]
+    fn store_dir_falls_back_to_an_existing_ai_jail_store() {
+        let root = std::env::temp_dir()
+            .join(format!("kekkai-compat-{}", std::process::id()));
+        let _ = std::fs::remove_dir_all(&root);
+        std::fs::create_dir_all(root.join("ai-jail")).unwrap();
+        assert_eq!(store_dir(&root), root.join("ai-jail"));
+        assert_eq!(data_dir_name(&root), "kekkai", "no data dir yet");
+        std::fs::create_dir_all(root.join("kekkai")).unwrap();
+        assert_eq!(store_dir(&root), root.join("kekkai"));
+        std::fs::create_dir_all(root.join(".local/share/ai-jail")).unwrap();
+        assert_eq!(data_dir(&root), root.join(".local/share/ai-jail"));
+        assert_eq!(data_dir_name_c(&root), c"ai-jail");
+        let _ = std::fs::remove_dir_all(&root);
+    }
+
+    #[test]
+    fn store_dirs_names_both() {
+        let [new, old] = store_dirs(Path::new("/c"));
+        assert_eq!(new, Path::new("/c/kekkai"));
+        assert_eq!(old, Path::new("/c/ai-jail"));
+    }
+
+    #[test]
+    fn env_var_prefers_kekkai_and_accepts_ai_jail() {
+        let suffix = format!("COMPAT_TEST_{}", std::process::id());
+        let new = format!("KEKKAI_{suffix}");
+        let old = format!("AI_JAIL_{suffix}");
+        // SAFETY: names unique to this test and process; no other thread
+        // reads them.
+        unsafe { std::env::set_var(&old, "old") };
+        assert_eq!(env_var_os(&suffix), Some("old".into()));
+        unsafe { std::env::set_var(&new, "new") };
+        assert_eq!(env_var_os(&suffix), Some("new".into()));
+        unsafe {
+            std::env::remove_var(&new);
+            std::env::remove_var(&old);
+        }
+        assert_eq!(env_var_os(&suffix), None);
+    }
+}
diff --git a/src/config.rs b/src/config.rs
index 10ea70a..6c51dff 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -479,7 +479,7 @@ pub struct Config {
     /// `.ai-jail` may only disable it, never enable it.
     #[serde(default, skip_serializing_if = "Option::is_none")]
     pub update_check: Option<bool>,
-    /// Opt-in launch audit log at `~/.local/share/ai-jail/history.jsonl`
+    /// Opt-in launch audit log at `~/.local/share/kekkai/history.jsonl`
     /// (phase 5 of docs/connect-proxy-plan.md). Enabling writes a host
     /// file, so the untrusted project `.ai-jail` may only disable it,
     /// never enable it.
@@ -11185,7 +11185,7 @@ mod profile_merge_tests {
     }
 
     /// Write a trusted global config where v3.3.0 keeps it — a fresh
-    /// `<tmp>/xdg/ai-jail/config.toml`, owner-only — and return
+    /// `<tmp>/xdg/kekkai/config.toml`, owner-only — and return
     /// (temp root, config path).
     fn global_file(body: &str) -> (PathBuf, PathBuf) {
         use std::os::unix::fs::PermissionsExt;
@@ -11194,7 +11194,7 @@ mod profile_merge_tests {
             std::process::id(),
             NEXT.fetch_add(1, Ordering::Relaxed)
         ));
-        let store = root.join("xdg").join("ai-jail");
+        let store = root.join("xdg").join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
@@ -11564,7 +11564,7 @@ mod profile_save_tests {
     static NEXT: AtomicUsize = AtomicUsize::new(0);
 
     /// A private temp root with `home/`, `project/` and an owner-only
-    /// store at `xdg/ai-jail`, and the `StorePaths` that `discover` would
+    /// store at `xdg/kekkai`, and the `StorePaths` that `discover` would
     /// build for it (built by hand: no process environment is touched).
     struct Fixture {
         root: PathBuf,
@@ -11585,7 +11585,7 @@ mod profile_save_tests {
             ));
             let home = root.join("home");
             let project = root.join("project");
-            let store = root.join("xdg").join("ai-jail");
+            let store = root.join("xdg").join("kekkai");
             for dir in [&home, &project, &store] {
                 std::fs::create_dir_all(dir).unwrap();
             }
@@ -11795,7 +11795,7 @@ mod profile_trust_tests {
             std::process::id(),
             NEXT.fetch_add(1, Ordering::Relaxed)
         ));
-        let store = root.join("xdg").join("ai-jail");
+        let store = root.join("xdg").join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
@@ -12082,7 +12082,7 @@ mod profile_review_regression_tests {
         let inside = cwd.join("src").display().to_string();
         let root = std::env::temp_dir()
             .join(format!("aj-profile-review-{}", std::process::id()));
-        let store = root.join("xdg").join("ai-jail");
+        let store = root.join("xdg").join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         let path = store.join("config.toml");
         std::fs::write(
@@ -12132,7 +12132,7 @@ mod profile_review_regression_tests {
 // a table. And the effective-access review of a launch that selects no
 // profile carries no named-profile line at all, so it
 // reads as it did before profiles existed. Fixtures are the trusted global
-// config `<root>/xdg/ai-jail/config.toml` (dir 0700, file 0600) under the
+// config `<root>/xdg/kekkai/config.toml` (dir 0700, file 0600) under the
 // test temp dir, loaded through `load_global_for_command_from_path`, as a
 // launch loads it.
 #[cfg(test)]
@@ -12165,7 +12165,7 @@ mod profile_stray_key_tests {
     ) -> Result<(Config, Option<ProfileReport>), String> {
         use std::os::unix::fs::PermissionsExt;
         let root = scratch_root();
-        let store = root.join("xdg").join("ai-jail");
+        let store = root.join("xdg").join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
@@ -12321,7 +12321,7 @@ mod profile_stray_key_tests {
 // "is a array". The wording "is of type {}" is grammatical for every
 // type name, so these tests pin it on both refusals: the top-level
 // `profiles` key, and one entry under `[profiles]`. Fixtures are the
-// trusted global config `<root>/xdg/ai-jail/config.toml` (dir 0700, file
+// trusted global config `<root>/xdg/kekkai/config.toml` (dir 0700, file
 // 0600) under the test temp dir, loaded as a launch loads it.
 #[cfg(test)]
 mod profile_type_word_tests {
@@ -12351,7 +12351,7 @@ mod profile_type_word_tests {
     fn refusal(body: &str) -> String {
         use std::os::unix::fs::PermissionsExt;
         let root = scratch_root();
-        let store = root.join("xdg").join("ai-jail");
+        let store = root.join("xdg").join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
diff --git a/src/config_store.rs b/src/config_store.rs
index fd1e8fa..7e73280 100644
--- a/src/config_store.rs
+++ b/src/config_store.rs
@@ -249,8 +249,17 @@ pub(crate) fn xdg_config_home() -> Result<PathBuf, String> {
     Ok(home.join(".config"))
 }
 
+/// Both names the trusted store can go by (`compat`): the jail must see
+/// neither, whichever is in use.
+pub(crate) fn trusted_store_roots() -> Vec<PathBuf> {
+    xdg_config_home()
+        .ok()
+        .map(|p| crate::compat::store_dirs(&p).to_vec())
+        .unwrap_or_default()
+}
+
 pub(crate) fn trusted_store_root() -> Option<PathBuf> {
-    xdg_config_home().ok().map(|p| p.join("ai-jail"))
+    xdg_config_home().ok().map(|p| crate::compat::store_dir(&p))
 }
 
 fn validate_no_symlink_components(path: &Path) -> Result<(), String> {
@@ -394,7 +403,7 @@ impl StorePaths {
             format!("Cannot resolve project directory {}: {e}", cwd.display())
         })?;
         let (root, available) = match xdg_config_home() {
-            Ok(base) => (base.join("ai-jail"), true),
+            Ok(base) => (crate::compat::store_dir(&base), true),
             Err(_)
                 if std::env::var_os("XDG_CONFIG_HOME")
                     .is_none_or(|value| value.is_empty())
diff --git a/src/limits.rs b/src/limits.rs
index 96293d8..fd3abf5 100644
--- a/src/limits.rs
+++ b/src/limits.rs
@@ -416,7 +416,7 @@ pub fn enter_scope(
     let exe = std::env::current_exe()
         .map_err(|e| format!("resource limits: cannot resolve ai-jail: {e}"))?;
     let args: Vec<std::ffi::OsString> = std::env::args_os().skip(1).collect();
-    let unit = format!("ai-jail-{}", std::process::id());
+    let unit = format!("{}-{}", crate::compat::NAME, std::process::id());
     let argv = scope_command(limits, &unit, &exe, &args);
     let mut cmd = std::process::Command::new(&argv[0]);
     cmd.args(&argv[1..]).env(SCOPE_ENV, &unit);
@@ -628,7 +628,7 @@ mod tests {
         };
         let argv = scope_command(
             &limits,
-            "ai-jail-42",
+            "kekkai-42",
             std::path::Path::new("/usr/bin/ai-jail"),
             &["--env".into(), "X=$HOME".into(), "claude".into()],
         );
@@ -638,7 +638,7 @@ mod tests {
             .collect();
         assert_eq!(argv[0], "systemd-run");
         assert!(argv.contains(&"--expand-environment=no".to_string()));
-        assert!(argv.contains(&"--unit=ai-jail-42".to_string()));
+        assert!(argv.contains(&"--unit=kekkai-42".to_string()));
         let sep = argv.iter().position(|a| a == "--").unwrap();
         assert_eq!(
             &argv[sep + 1..],
diff --git a/src/main.rs b/src/main.rs
index 47f7403..1a2e788 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,6 +8,7 @@ mod cli;
 #[cfg(target_os = "macos")]
 mod codex_ps;
 mod command;
+mod compat;
 mod config;
 mod config_store;
 mod egress_log;
@@ -613,7 +614,7 @@ fn audit_home() -> Option<std::path::PathBuf> {
 
 fn run_audit_verify(cli: &cli::CliArgs) -> Result<i32, String> {
     let home = audit_home().ok_or("HOME is not set or empty")?;
-    let path = home.join(".local/share/ai-jail/history.jsonl");
+    let path = crate::compat::data_dir(&home).join("history.jsonl");
     let Some(file) = audit::open_history(&home)
         .map_err(|e| format!("Cannot read {}: {e}", path.display()))?
     else {
@@ -1585,7 +1586,7 @@ fn run(
     let internal_quiet = internal_mode_inherits_quiet(
         cli.landlock_exec,
         cli.proxy_bridge.is_some() || cli.publish_bridge.is_some(),
-        std::env::var_os("AI_JAIL_QUIET").is_some(),
+        crate::compat::env_var_os("QUIET").is_some(),
     );
     if internal_quiet {
         output::set_quiet(true);
diff --git a/src/proxy.rs b/src/proxy.rs
index 198d9e5..0163728 100644
--- a/src/proxy.rs
+++ b/src/proxy.rs
@@ -3846,7 +3846,7 @@ mod tests {
         drop(proxy);
 
         let content = std::fs::read_to_string(
-            home.join(".local/share/ai-jail/history.jsonl"),
+            home.join(".local/share/kekkai/history.jsonl"),
         )
         .unwrap();
         let records: Vec<serde_json::Value> = content
@@ -3889,7 +3889,7 @@ mod tests {
         drop(proxy);
 
         let content = std::fs::read_to_string(
-            home.join(".local/share/ai-jail/history.jsonl"),
+            home.join(".local/share/kekkai/history.jsonl"),
         )
         .unwrap();
         let record: serde_json::Value =
@@ -4379,7 +4379,7 @@ mod tests {
         // The audit record shows exactly one substitution -- KEY_A's
         // placeholder in Authorization -- not two.
         let content = std::fs::read_to_string(
-            home.join(".local/share/ai-jail/history.jsonl"),
+            home.join(".local/share/kekkai/history.jsonl"),
         )
         .unwrap();
         let record: serde_json::Value =
@@ -5370,7 +5370,7 @@ mod tests {
             std::thread::sleep(Duration::from_millis(20));
         }
         let content = std::fs::read_to_string(
-            home.join(".local/share/ai-jail/history.jsonl"),
+            home.join(".local/share/kekkai/history.jsonl"),
         )
         .unwrap();
         let records: Vec<serde_json::Value> = content
diff --git a/src/sandbox/bwrap.rs b/src/sandbox/bwrap.rs
index fe78415..aa55096 100644
--- a/src/sandbox/bwrap.rs
+++ b/src/sandbox/bwrap.rs
@@ -6551,7 +6551,7 @@ mod tests {
     }
 
     /// `--browser=soft` must produce a persistent rw bind at the
-    /// per-browser state dir under `~/.local/share/ai-jail/browsers/`,
+    /// per-browser state dir under `~/.local/share/kekkai/browsers/`,
     /// and the dir must be created on disk so bwrap's bind has
     /// something to point at.
     #[test]
@@ -6575,7 +6575,7 @@ mod tests {
             false,
         );
 
-        let expected = fake_home.join(".local/share/ai-jail/browsers/chromium");
+        let expected = fake_home.join(".local/share/kekkai/browsers/chromium");
         let bind_present = mounts.iter().any(|m| matches!(
             m,
             Mount::Bind { src, dest } if src == &expected && dest == &expected
@@ -6622,7 +6622,7 @@ mod tests {
         )
         .unwrap();
 
-        let state = fake_home.join(".local/share/ai-jail/browsers/chromium");
+        let state = fake_home.join(".local/share/kekkai/browsers/chromium");
         assert!(
             output.contains(&state.display().to_string()),
             "dry run should still show the profile bind: {output}"
@@ -7911,7 +7911,7 @@ mod tests {
         )
         .unwrap();
 
-        let state = home.join(".local/share/ai-jail/browsers/chromium");
+        let state = home.join(".local/share/kekkai/browsers/chromium");
         assert!(state.is_dir());
         assert!(args.windows(3).any(|w| {
             w[0] == "--bind"
@@ -10541,7 +10541,7 @@ nameserver 8.8.8.8
         std::fs::write(&lock, "").unwrap();
         let _data = EnvVarGuard::set("MISE_DATA_DIR", &data);
         let _xdg = EnvVarGuard::set("XDG_DATA_HOME", root.join("share"));
-        let own = root.join("share/ai-jail/cache/mise/command-wrappers.lock");
+        let own = root.join("share/kekkai/cache/mise/command-wrappers.lock");
         let guard =
             SandboxGuard::test_with_hosts(PathBuf::from("/tmp/test-hosts"));
         let project = PathBuf::from("/home/user/project");
diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs
index 9508cff..09ba7c7 100644
--- a/src/sandbox/mod.rs
+++ b/src/sandbox/mod.rs
@@ -505,6 +505,13 @@ pub(crate) fn effective_mask_patterns(
     {
         masks.push(store);
     }
+    // The other name of the store (kekkai's or ai-jail's), when present.
+    for store in crate::config_store::trusted_store_roots() {
+        if !masks.contains(&store) && std::fs::symlink_metadata(&store).is_ok()
+        {
+            masks.push(store);
+        }
+    }
     masks
 }
 
@@ -523,8 +530,8 @@ pub(crate) fn browser_state_dir(config: &Config) -> Option<PathBuf> {
     match profile {
         crate::config::BrowserProfile::Hard => None,
         crate::config::BrowserProfile::Soft => Some(
-            home_dir()
-                .join(".local/share/ai-jail/browsers")
+            crate::compat::data_dir(&home_dir())
+                .join("browsers")
                 .join(browser),
         ),
     }
@@ -1490,10 +1497,12 @@ pub(crate) fn unprivileged_netns_available() -> bool {
 
 /// The persistent, jail-owned cache store root on the host.
 pub(crate) fn toolchain_cache_root() -> PathBuf {
-    std::env::var_os("XDG_DATA_HOME")
+    let share = std::env::var_os("XDG_DATA_HOME")
         .map(PathBuf::from)
-        .unwrap_or_else(|| home_dir().join(".local/share"))
-        .join("ai-jail/cache")
+        .unwrap_or_else(|| home_dir().join(".local/share"));
+    share
+        .join(crate::compat::data_dir_name_in(&share))
+        .join("cache")
 }
 
 /// Build the toolchain cache maps for the tools present on this host.
@@ -1695,8 +1704,8 @@ fn browser_profile_launch_command(
                 crate::config::BrowserProfile::Soft => {
                     browser_state_dir(config)
                         .unwrap_or_else(|| {
-                            home_dir()
-                                .join(".local/share/ai-jail/browsers")
+                            crate::compat::data_dir(&home_dir())
+                                .join("browsers")
                                 .join(browser)
                         })
                         .display()
@@ -1720,8 +1729,8 @@ fn browser_profile_launch_command(
                 crate::config::BrowserProfile::Soft => {
                     browser_state_dir(config)
                         .unwrap_or_else(|| {
-                            home_dir()
-                                .join(".local/share/ai-jail/browsers")
+                            crate::compat::data_dir(&home_dir())
+                                .join("browsers")
                                 .join(browser)
                         })
                         .join("data")
@@ -1739,8 +1748,8 @@ fn browser_profile_launch_command(
                 crate::config::BrowserProfile::Soft => {
                     browser_state_dir(config)
                         .unwrap_or_else(|| {
-                            home_dir()
-                                .join(".local/share/ai-jail/browsers")
+                            crate::compat::data_dir(&home_dir())
+                                .join("browsers")
                                 .join(browser)
                         })
                         .join("cache")
@@ -2969,7 +2978,7 @@ mod tests {
         let cmd = build_launch_command(&cfg);
         let state = browser_state_dir(&cfg).unwrap();
 
-        assert!(state.ends_with(".local/share/ai-jail/browsers/chromium"));
+        assert!(state.ends_with(".local/share/kekkai/browsers/chromium"));
         assert!(cmd.args.iter().any(|arg| {
             arg == &format!("--user-data-dir={}", state.join("data").display())
         }));
diff --git a/src/sandbox/seatbelt.rs b/src/sandbox/seatbelt.rs
index 9cdf7b9..1d91e71 100644
--- a/src/sandbox/seatbelt.rs
+++ b/src/sandbox/seatbelt.rs
@@ -3060,7 +3060,7 @@ mod tests {
                 ));
         let home = root.join("home");
         let xdg = home.join(".config");
-        let store = xdg.join("ai-jail");
+        let store = xdg.join("kekkai");
         let project = root.join("project");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::create_dir_all(&project).unwrap();
diff --git a/src/signals.rs b/src/signals.rs
index 74e2dbe..60b66d4 100644
--- a/src/signals.rs
+++ b/src/signals.rs
@@ -521,7 +521,7 @@ mod tests {
             .unwrap()
             .parent()
             .unwrap()
-            .join("ai-jail");
+            .join("kekkai");
         let mut command = Command::new(supervisor);
         command
             .env("AI_JAIL_SUPERVISED_EXEC", "1")
diff --git a/src/statusbar.rs b/src/statusbar.rs
index 7fce21f..de7d2f2 100644
--- a/src/statusbar.rs
+++ b/src/statusbar.rs
@@ -1,6 +1,6 @@
 //! Persistent terminal status bar overlay.
 //!
-//! Layout: ` /path | command            ai-jail ⚿ 0.4.5 `
+//! Layout: ` /path | command            kekkai ⚿ 0.4.5 `
 //!
 //! With the vt100 virtual terminal, the status bar is drawn as a
 //! simple overlay on the real terminal's last row — no scroll
@@ -456,8 +456,8 @@ fn draw(rows: u16, cols: u16) {
 
     // 5. Compute layout widths
     let ver = VERSION.as_bytes();
-    // "ai-jail " (8) + VERSION + optional " ↑" (2) + indicators
-    let right_vis = 8 + ver.len() + if has_update { 2 } else { 0 } + ind_vis;
+    // "kekkai " (7) + VERSION + optional " ↑" (2) + indicators
+    let right_vis = 7 + ver.len() + if has_update { 2 } else { 0 } + ind_vis;
     let show_right = usable_cols >= right_vis + 2;
     let eff_right = if show_right { right_vis } else { 0 };
 
@@ -569,9 +569,9 @@ fn draw(rows: u16, cols: u16) {
             put!(b" ");
             vis += ind_vis;
         }
-        put!(b"ai-jail ");
+        put!(b"kekkai ");
         put!(ver);
-        vis += 8 + ver.len();
+        vis += 7 + ver.len();
 
         if has_update {
             put!(b" \x1b[32m"); // space + green
diff --git a/tests/audit_log.rs b/tests/audit_log.rs
index 63b7ded..f59f4d3 100644
--- a/tests/audit_log.rs
+++ b/tests/audit_log.rs
@@ -58,7 +58,7 @@ fn audit_log_records_one_launch_with_exit_code() {
     );
     assert_eq!(output.status.code(), Some(3));
 
-    let log = home.join(".local/share/ai-jail/history.jsonl");
+    let log = home.join(".local/share/kekkai/history.jsonl");
     use std::os::unix::fs::PermissionsExt;
     let dir_mode = std::fs::metadata(log.parent().unwrap())
         .unwrap()
@@ -109,7 +109,7 @@ fn audit_log_supports_symlinked_home() {
     assert!(output.status.success(), "{output:?}");
     assert!(
         real_home
-            .join(".local/share/ai-jail/history.jsonl")
+            .join(".local/share/kekkai/history.jsonl")
             .is_file()
     );
     let _ = std::fs::remove_dir_all(project.parent().unwrap());
@@ -139,7 +139,7 @@ fn audit_open_security_failure_preserves_child_exit() {
     assert!(
         String::from_utf8_lossy(&output.stderr).contains("audit log disabled")
     );
-    assert!(!outside.join("share/ai-jail/history.jsonl").exists());
+    assert!(!outside.join("share/kekkai/history.jsonl").exists());
     let _ = std::fs::remove_dir_all(project.parent().unwrap());
 }
 
@@ -147,7 +147,7 @@ fn audit_open_security_failure_preserves_child_exit() {
 fn missing_home_disables_audit_without_changing_child_exit() {
     require_bwrap!();
     let (project, home) = test_tree("missing-home");
-    let fallback_log = PathBuf::from("/tmp/.local/share/ai-jail/history.jsonl");
+    let fallback_log = PathBuf::from("/tmp/.local/share/kekkai/history.jsonl");
     let fallback_before = std::fs::metadata(&fallback_log)
         .ok()
         .map(|metadata| (metadata.len(), metadata.modified().ok()));
@@ -176,7 +176,7 @@ fn missing_home_disables_audit_without_changing_child_exit() {
         .ok()
         .map(|metadata| (metadata.len(), metadata.modified().ok()));
     assert_eq!(fallback_after, fallback_before);
-    assert!(!home.join(".local/share/ai-jail/history.jsonl").exists());
+    assert!(!home.join(".local/share/kekkai/history.jsonl").exists());
     let _ = std::fs::remove_dir_all(project.parent().unwrap());
 }
 
@@ -190,7 +190,7 @@ fn audit_log_off_by_default_creates_no_file() {
         &["--clean", "--no-status-bar", "--exec", "true"],
     );
     assert!(output.status.success());
-    assert!(!home.join(".local/share/ai-jail/history.jsonl").exists());
+    assert!(!home.join(".local/share/kekkai/history.jsonl").exists());
 
     let _ = std::fs::remove_dir_all(project.parent().unwrap());
 }
diff --git a/tests/audit_show.rs b/tests/audit_show.rs
index 9e6e5c1..eb5b07d 100644
--- a/tests/audit_show.rs
+++ b/tests/audit_show.rs
@@ -166,8 +166,8 @@ fn refuses_symlinks_at_each_log_path_component() {
     for relative in [
         ".local",
         ".local/share",
-        ".local/share/ai-jail",
-        ".local/share/ai-jail/history.jsonl",
+        ".local/share/kekkai",
+        ".local/share/kekkai/history.jsonl",
     ] {
         let fixture = AuditFixture::new("audit-show", "--audit-show");
         fixture.write(event());
diff --git a/tests/audit_verify.rs b/tests/audit_verify.rs
index d06984b..46da646 100644
--- a/tests/audit_verify.rs
+++ b/tests/audit_verify.rs
@@ -66,8 +66,8 @@ fn refuses_symlinks_below_home() {
     for relative in [
         ".local",
         ".local/share",
-        ".local/share/ai-jail",
-        ".local/share/ai-jail/history.jsonl",
+        ".local/share/kekkai",
+        ".local/share/kekkai/history.jsonl",
     ] {
         let fixture = AuditFixture::new("audit-verify", "--audit-verify");
         fixture.write(legacy());
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 9f516a4..c83a659 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -26,7 +26,7 @@ pub const MAX_RECORD: usize = 8 * 1024 * 1024;
 pub static SANDBOX_RUN_LOCK: Mutex<()> = Mutex::new(());
 
 pub fn ai_jail() -> PathBuf {
-    PathBuf::from(env!("CARGO_BIN_EXE_ai-jail"))
+    PathBuf::from(env!("CARGO_BIN_EXE_kekkai"))
 }
 
 /// Can bwrap create the namespaces needed for normal mode?
@@ -239,7 +239,7 @@ impl AuditFixture {
             .join(format!("{tag}-{}-{id}", std::process::id()));
         let home = root.join("home");
         std::fs::create_dir_all(&home).unwrap();
-        let log = home.join(".local/share/ai-jail/history.jsonl");
+        let log = home.join(".local/share/kekkai/history.jsonl");
         Self {
             root,
             home,
diff --git a/tests/config_errors.rs b/tests/config_errors.rs
index 73570a5..c503c62 100644
--- a/tests/config_errors.rs
+++ b/tests/config_errors.rs
@@ -35,7 +35,7 @@ impl TestTree {
     }
 
     fn run(&self, args: &[&str]) -> Output {
-        Command::new(env!("CARGO_BIN_EXE_ai-jail"))
+        Command::new(env!("CARGO_BIN_EXE_kekkai"))
             .args(args)
             .current_dir(&self.project)
             .env("HOME", &self.home)
@@ -60,7 +60,7 @@ impl TestTree {
         }
 
         let mut child = ChildGuard(Some(
-            Command::new(env!("CARGO_BIN_EXE_ai-jail"))
+            Command::new(env!("CARGO_BIN_EXE_kekkai"))
                 .args(args)
                 .current_dir(&self.project)
                 .env("HOME", &self.home)
@@ -169,7 +169,7 @@ fn clean_init_replaces_a_malformed_project_config() {
         saved.contains("command = [\"bash\""),
         "legacy input should remain untouched: {saved:?}"
     );
-    let projects = tree.home.join(".config/ai-jail/projects");
+    let projects = tree.home.join(".config/kekkai/projects");
     let stored = std::fs::read_to_string(
         std::fs::read_dir(projects)
             .unwrap()
diff --git a/tests/config_migration.rs b/tests/config_migration.rs
index 2679a4b..9f29497 100644
--- a/tests/config_migration.rs
+++ b/tests/config_migration.rs
@@ -61,7 +61,7 @@ impl Tree {
     }
 
     fn store(&self) -> PathBuf {
-        self.xdg.join("ai-jail")
+        self.xdg.join("kekkai")
     }
 
     fn project_doc(&self) -> PathBuf {
@@ -327,7 +327,7 @@ fn audit_provenance_uses_migrated_external_source_and_clean_ignores_it() {
         "true",
     ]));
     let log = std::fs::read_to_string(
-        tree.home.join(".local/share/ai-jail/history.jsonl"),
+        tree.home.join(".local/share/kekkai/history.jsonl"),
     )
     .unwrap();
     let records = log
@@ -370,7 +370,7 @@ fn audit_output_matrix_covers_external_constraints_grants_both_and_clean() {
             "true",
         ]));
         let log = std::fs::read_to_string(
-            tree.home.join(".local/share/ai-jail/history.jsonl"),
+            tree.home.join(".local/share/kekkai/history.jsonl"),
         )
         .unwrap();
         serde_json::from_str::<serde_json::Value>(log.lines().last().unwrap())
@@ -411,7 +411,7 @@ fn audit_output_matrix_covers_external_constraints_grants_both_and_clean() {
         "true",
     ]));
     let log = std::fs::read_to_string(
-        tree.home.join(".local/share/ai-jail/history.jsonl"),
+        tree.home.join(".local/share/kekkai/history.jsonl"),
     )
     .unwrap();
     let clean: serde_json::Value =
@@ -654,7 +654,7 @@ fn read_only_load_rejects_home_or_xdg_store_aliases_inside_project() {
             "readonly-home-alias"
         });
         let base = tree.project.join("controlled");
-        let store = base.join("ai-jail");
+        let store = base.join("kekkai");
         std::fs::create_dir_all(store.join("projects")).unwrap();
         std::fs::set_permissions(&base, std::fs::Permissions::from_mode(0o700))
             .unwrap();
@@ -898,3 +898,31 @@ fn absent_legacy_name_cannot_be_created_and_leaves_no_host_artifact() {
         "temporary mask placeholder leaked onto the host"
     );
 }
+
+/// kekkai (the renamed ai-jail) keeps using a store that exists only under
+/// the old name, says so once, and never splits state between the two.
+#[test]
+fn an_ai_jail_store_is_still_used_with_a_deprecation_warning() {
+    let tree = Tree::new("ai-jail-store-fallback");
+    let old = tree.xdg.join("ai-jail");
+    std::fs::create_dir_all(&old).unwrap();
+    std::fs::set_permissions(&old, std::fs::Permissions::from_mode(0o700))
+        .unwrap();
+    let stderr = assert_ok(&tree.run(&["--clean", "--init", "/bin/true"]));
+    assert!(stderr.contains("deprecated"), "{stderr}");
+    assert!(stderr.contains(&old.display().to_string()), "{stderr}");
+    assert!(!tree.store().exists(), "nothing written under the new name");
+    let docs = std::fs::read_dir(old.join("projects")).unwrap().count();
+    assert_eq!(docs, 1, "the project document went to the old store");
+
+    // Once the new store exists it wins, and the warning stops.
+    std::fs::create_dir_all(tree.store()).unwrap();
+    std::fs::set_permissions(
+        tree.store(),
+        std::fs::Permissions::from_mode(0o700),
+    )
+    .unwrap();
+    let stderr = assert_ok(&tree.run(&["--clean", "--init", "/bin/true"]));
+    assert!(!stderr.contains("deprecated"), "{stderr}");
+    assert!(tree.store().join("projects").is_dir());
+}
diff --git a/tests/devin_state.rs b/tests/devin_state.rs
index 18f903d..c4123f8 100644
--- a/tests/devin_state.rs
+++ b/tests/devin_state.rs
@@ -155,7 +155,7 @@ esac
         flags: &[&str],
         data_home: &Path,
     ) -> Output {
-        let mut command = Command::new(env!("CARGO_BIN_EXE_ai-jail"));
+        let mut command = Command::new(env!("CARGO_BIN_EXE_kekkai"));
         command
             .args([
                 "--clean",
diff --git a/tests/dry_run.rs b/tests/dry_run.rs
index 499cb74..5b4fb91 100644
--- a/tests/dry_run.rs
+++ b/tests/dry_run.rs
@@ -27,7 +27,7 @@ impl TestTree {
     }
 
     fn run(&self, args: &[&str]) -> (Output, u32) {
-        let child = Command::new(env!("CARGO_BIN_EXE_ai-jail"))
+        let child = Command::new(env!("CARGO_BIN_EXE_kekkai"))
             .args([
                 "--dry-run",
                 "--no-mise",
@@ -124,7 +124,7 @@ fn macos_hard_browser_uses_and_cleans_session_storage() {
     std::fs::set_permissions(&browser, std::fs::Permissions::from_mode(0o755))
         .unwrap();
 
-    let output = Command::new(env!("CARGO_BIN_EXE_ai-jail"))
+    let output = Command::new(env!("CARGO_BIN_EXE_kekkai"))
         .args([
             "--no-mise",
             "--no-toolchains",
diff --git a/tests/fixtures/forge/workflow.txt b/tests/fixtures/forge/workflow.txt
index fd0ee59..18c2451 100644
--- a/tests/fixtures/forge/workflow.txt
+++ b/tests/fixtures/forge/workflow.txt
@@ -7,7 +7,7 @@ Repository token:
 ✗ AJ-FORGE-OPEN-001 OPEN: ai-jail cannot prove that this persistent token lacks access outside owner/repo. Type OPEN to save this authority:
 OPEN
 ✓ AJ-FORGE-SAVE-001 Forge access saved outside the checkout
-  <ROOT>/xdg/ai-jail/forges/<PROJECT>.toml
+  <ROOT>/xdg/kekkai/forges/<PROJECT>.toml
   Repository ID: 42
   Token class: OPEN · USER-ASSERTED · PERSISTENT
 AJ-FORGE-STATUS-001 GitLab project token for https://gitlab.example / owner/repo (repository ID 42)
@@ -23,7 +23,7 @@ Repository token:
 ✗ AJ-FORGE-OPEN-001 OPEN: ai-jail cannot prove that this persistent token lacks access outside owner/repo. Type OPEN to save this authority:
 OPEN
 ✓ AJ-FORGE-SAVE-001 Forge access saved outside the checkout
-  <ROOT>/xdg/ai-jail/forges/<PROJECT>.toml
+  <ROOT>/xdg/kekkai/forges/<PROJECT>.toml
   Repository ID: 42
   Token class: OPEN · USER-ASSERTED · PERSISTENT
 ✓ AJ-FORGE-REMOVE-001 Forge access removed for this project
diff --git a/tests/fixtures/onboarding/authority-inventory.txt b/tests/fixtures/onboarding/authority-inventory.txt
index 4251ec1..6faac36 100644
--- a/tests/fixtures/onboarding/authority-inventory.txt
+++ b/tests/fixtures/onboarding/authority-inventory.txt
@@ -7,6 +7,7 @@ azure|Home|.azure|protected
 github|Home|.config/gh|protected
 google-cloud|Home|.config/gcloud|protected
 ai-jail|Home|.config/ai-jail|protected
+kekkai|Home|.config/kekkai|protected
 claude|Home|.claude|state:claude:linux=true:macos=true:kind=dir
 claude|Home|.claude.json|state:claude:linux=true:macos=true:kind=file
 codex|Home|.codex|state:codex:linux=true:macos=true:kind=dir
@@ -35,6 +36,7 @@ devin|Home|.config/devin|protected
 github|XdgConfig|gh|protected
 google-cloud|XdgConfig|gcloud|protected
 ai-jail|XdgConfig|ai-jail|protected
+kekkai|XdgConfig|kekkai|protected
 opencode|XdgConfig|opencode|protected
 crush|XdgConfig|crush|protected
 jcode|XdgConfig|jcode|protected
diff --git a/tests/forge_ordering.rs b/tests/forge_ordering.rs
index 16863e4..a20eb24 100644
--- a/tests/forge_ordering.rs
+++ b/tests/forge_ordering.rs
@@ -44,7 +44,7 @@ impl Tree {
     }
 
     fn run(&self, args: &[&str]) -> Output {
-        Command::new(env!("CARGO_BIN_EXE_ai-jail"))
+        Command::new(env!("CARGO_BIN_EXE_kekkai"))
             .args(args)
             .current_dir(&self.project)
             .env("HOME", &self.home)
@@ -125,7 +125,7 @@ fn actual_launch_prepares_forge_at_child_handoff_without_printing_token() {
     let project_key = format!("project-{}", &digest[..20]);
     let prefix = &digest[..24];
     let credential_id = format!("{prefix}-0123456789abcdef01234567");
-    let store = tree.xdg.join("ai-jail");
+    let store = tree.xdg.join("kekkai");
     let forges = store.join("forges");
     let credentials = store.join("credentials");
     std::fs::create_dir_all(&forges).unwrap();
diff --git a/tests/interface_profile.rs b/tests/interface_profile.rs
index ee7a311..fa17cee 100644
--- a/tests/interface_profile.rs
+++ b/tests/interface_profile.rs
@@ -27,7 +27,7 @@ fn review(tag: &str, flags: &[&str]) -> String {
     let _ = std::fs::remove_dir_all(&root);
     let project = root.join("project");
     let home = root.join("home");
-    let store = root.join("xdg").join("ai-jail");
+    let store = root.join("xdg").join("kekkai");
     let empty_path = root.join("empty-path");
     for dir in [&project, &home, &store, &empty_path] {
         std::fs::create_dir_all(dir).unwrap();
diff --git a/tests/limits_preflight.rs b/tests/limits_preflight.rs
index 9d89103..9ebb05a 100644
--- a/tests/limits_preflight.rs
+++ b/tests/limits_preflight.rs
@@ -44,7 +44,7 @@ impl Tree {
     }
 
     fn write_global(&self, text: &str) {
-        let store = self.xdg.join("ai-jail");
+        let store = self.xdg.join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
@@ -59,7 +59,7 @@ impl Tree {
 
     /// Every project policy document in the trusted store.
     fn saved_policies(&self) -> Vec<PathBuf> {
-        std::fs::read_dir(self.xdg.join("ai-jail/projects"))
+        std::fs::read_dir(self.xdg.join("kekkai/projects"))
             .map(|entries| {
                 entries.filter_map(Result::ok).map(|e| e.path()).collect()
             })
diff --git a/tests/limits_preflight_macos.rs b/tests/limits_preflight_macos.rs
index 79f54ed..3e54fa0 100644
--- a/tests/limits_preflight_macos.rs
+++ b/tests/limits_preflight_macos.rs
@@ -50,7 +50,7 @@ impl Tree {
     }
 
     fn write_global(&self, text: &str) {
-        let store = self.xdg.join("ai-jail");
+        let store = self.xdg.join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
@@ -65,7 +65,7 @@ impl Tree {
 
     /// Every project policy document in the trusted store.
     fn saved_policies(&self) -> Vec<PathBuf> {
-        std::fs::read_dir(self.xdg.join("ai-jail/projects"))
+        std::fs::read_dir(self.xdg.join("kekkai/projects"))
             .map(|entries| {
                 entries.filter_map(Result::ok).map(|e| e.path()).collect()
             })
diff --git a/tests/onboarding.rs b/tests/onboarding.rs
index f2eb06e..47bf363 100644
--- a/tests/onboarding.rs
+++ b/tests/onboarding.rs
@@ -73,7 +73,7 @@ fn noninteractive_first_run_renders_complete_effective_access() {
     assert!(!stderr.contains("AJ-"), "{stderr}");
     assert!(stderr.contains("no_mise = true"), "{stderr}");
     assert!(stderr.contains("no_toolchains = true"), "{stderr}");
-    let projects = xdg.join("ai-jail/projects");
+    let projects = xdg.join("kekkai/projects");
     assert!(
         !projects.exists() || fs::read_dir(projects).unwrap().next().is_none()
     );
@@ -322,7 +322,7 @@ fn install_repo_root_worktree(
     )
     .unwrap();
     fs::write(git_dir.join("commondir"), "../..\n").unwrap();
-    let store = xdg.join("ai-jail");
+    let store = xdg.join("kekkai");
     fs::create_dir_all(&store).unwrap();
     fs::set_permissions(&store, fs::Permissions::from_mode(0o700)).unwrap();
     let global = store.join("config.toml");
@@ -351,7 +351,7 @@ fn install_forge_binding_without_credential(
         .and_then(std::ffi::OsStr::to_str)
         .unwrap();
     let project_key = format!("{base}-{}", &digest[..20]);
-    let store = xdg.join("ai-jail");
+    let store = xdg.join("kekkai");
     let forges = store.join("forges");
     fs::create_dir_all(&forges).unwrap();
     for directory in [&store, &forges] {
@@ -605,8 +605,8 @@ fn scripted_pty_confirms_recommended_github_and_saves_without_final_review() {
     assert!(transcript.contains("api.anthropic.com"), "{transcript}");
     assert!(!transcript.contains("AJ-"), "{transcript}");
     assert_tui_terminal_restored(&transcript);
-    assert!(xdg.join("ai-jail/projects").is_dir());
-    let policy_path = fs::read_dir(xdg.join("ai-jail/projects"))
+    assert!(xdg.join("kekkai/projects").is_dir());
+    let policy_path = fs::read_dir(xdg.join("kekkai/projects"))
         .unwrap()
         .next()
         .unwrap()
@@ -639,7 +639,7 @@ fn scripted_pty_quit_with_changes_can_save_without_launching() {
     assert!(transcript.contains("Review later:"), "{transcript}");
     assert!(!transcript.contains("AJ-"), "{transcript}");
     assert_tui_terminal_restored(&transcript);
-    let policy_path = fs::read_dir(xdg.join("ai-jail/projects"))
+    let policy_path = fs::read_dir(xdg.join("kekkai/projects"))
         .unwrap()
         .next()
         .unwrap()
@@ -724,7 +724,7 @@ fn scripted_pty_repo_root_first_onboarding_in_worktree_saves_main_checkout_polic
     let worktree = repo_root_worktree(&main);
 
     // The only saved document belongs to the main checkout.
-    let docs: Vec<_> = fs::read_dir(xdg.join("ai-jail/projects"))
+    let docs: Vec<_> = fs::read_dir(xdg.join("kekkai/projects"))
         .unwrap()
         .map(|entry| entry.unwrap().path())
         .collect();
@@ -800,7 +800,7 @@ fn scripted_pty_environment_checklist_never_displays_or_saves_values() {
     assert!(!transcript.contains("secret-value-that-must-never-appear"));
     assert_tui_terminal_restored(&transcript);
 
-    let policies = fs::read_dir(xdg.join("ai-jail/projects")).unwrap();
+    let policies = fs::read_dir(xdg.join("kekkai/projects")).unwrap();
     let policy_path = policies.into_iter().next().unwrap().unwrap().path();
     let policy = fs::read_to_string(policy_path).unwrap();
     assert!(policy.contains("CUSTOM_MODE"));
@@ -850,7 +850,7 @@ fn scripted_pty_configures_and_saves_destination_constrained_ssh() {
     assert!(!transcript.contains("AJ-"), "{transcript}");
     assert!(!transcript.contains("private test fixture"), "{transcript}");
     assert_tui_terminal_restored(&transcript);
-    let policy_path = fs::read_dir(xdg.join("ai-jail/projects"))
+    let policy_path = fs::read_dir(xdg.join("kekkai/projects"))
         .unwrap()
         .next()
         .unwrap()
@@ -898,7 +898,7 @@ fn scripted_pty_arrows_move_the_highlighted_row_and_cancel_restores_terminal() {
         "initial and moved rows must both render highlighted:\n{transcript}"
     );
     assert_tui_terminal_restored(&transcript);
-    let projects = xdg.join("ai-jail/projects");
+    let projects = xdg.join("kekkai/projects");
     assert!(
         !projects.exists() || fs::read_dir(projects).unwrap().next().is_none()
     );
@@ -912,7 +912,7 @@ fn term_dumb_q_cancels_at_the_first_prompt() {
     assert!(transcript.contains("Plain-terminal mode"));
     assert!(transcript.contains("Onboarding cancelled"));
     assert!(!transcript.contains("AJ-"));
-    let projects = xdg.join("ai-jail/projects");
+    let projects = xdg.join("kekkai/projects");
     assert!(
         !projects.exists() || fs::read_dir(projects).unwrap().next().is_none()
     );
@@ -956,7 +956,7 @@ fn discarding_unsaved_exit_does_not_save() {
     assert!(transcript.contains("Onboarding cancelled"), "{transcript}");
     assert!(!transcript.contains("Configuration saved"), "{transcript}");
     assert_tui_terminal_restored(&transcript);
-    let projects = xdg.join("ai-jail/projects");
+    let projects = xdg.join("kekkai/projects");
     assert!(
         !projects.exists() || fs::read_dir(projects).unwrap().next().is_none()
     );
@@ -1018,7 +1018,7 @@ fn directory_browser_accepts_utf8_paths() {
     );
     assert!(!transcript.contains("AJ-"), "{transcript}");
     assert_tui_terminal_restored(&transcript);
-    let policy_path = fs::read_dir(xdg.join("ai-jail/projects"))
+    let policy_path = fs::read_dir(xdg.join("kekkai/projects"))
         .unwrap()
         .next()
         .unwrap()
@@ -1050,7 +1050,7 @@ fn forge_open_binding_is_finalized_without_reading_a_credential() {
         "credential identifiers are not review content:\n{transcript}"
     );
     assert_tui_terminal_restored(&transcript);
-    assert!(xdg.join("ai-jail/projects").is_dir());
+    assert!(xdg.join("kekkai/projects").is_dir());
     let _ = fs::remove_dir_all(root);
 }
 
@@ -1078,6 +1078,6 @@ fn forge_scoped_binding_saves_without_a_final_review() {
         "credential identifiers are not review content:\n{transcript}"
     );
     assert_tui_terminal_restored(&transcript);
-    assert!(xdg.join("ai-jail/projects").is_dir());
+    assert!(xdg.join("kekkai/projects").is_dir());
     let _ = fs::remove_dir_all(root);
 }
diff --git a/tests/profiles.rs b/tests/profiles.rs
index ad5d5e8..78d154b 100644
--- a/tests/profiles.rs
+++ b/tests/profiles.rs
@@ -3,7 +3,7 @@
 //
 // Each test gets a temporary HOME, XDG_CONFIG_HOME and project directory
 // under CARGO_TARGET_TMPDIR. The `[profiles.*]` tables live in the trusted
-// global config `$XDG_CONFIG_HOME/ai-jail/config.toml` (since v3.3.0;
+// global config `$XDG_CONFIG_HOME/kekkai/config.toml` (since v3.3.0;
 // `~/.ai-jail` is only the legacy file it migrates), and the project
 // policy that `--init` and auto-save write is the per-project document
 // under `$XDG_CONFIG_HOME/ai-jail/projects/`. --dry-run tests need no
@@ -53,7 +53,7 @@ impl Tree {
         let xdg = root.join("xdg");
         std::fs::create_dir_all(&project).unwrap();
         std::fs::create_dir_all(home.join("Pictures")).unwrap();
-        let store = xdg.join("ai-jail");
+        let store = xdg.join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
@@ -111,8 +111,7 @@ impl Tree {
     /// path may itself contain a word such as `profiles`.
     fn saved_project_policy(&self) -> String {
         let mut body = String::new();
-        if let Ok(entries) =
-            std::fs::read_dir(self.xdg.join("ai-jail/projects"))
+        if let Ok(entries) = std::fs::read_dir(self.xdg.join("kekkai/projects"))
         {
             for entry in entries.filter_map(Result::ok) {
                 let text =
@@ -619,7 +618,7 @@ fn audit_record_carries_the_profile_and_its_widenings() {
     let tree = Tree::new("audit", WIDE);
     let out = tree.launch(&["--audit-log", "--profile", "wide"], "exit 4");
     assert_eq!(out.status.code(), Some(4), "stderr={}", stderr(&out));
-    let log = tree.home.join(".local/share/ai-jail/history.jsonl");
+    let log = tree.home.join(".local/share/kekkai/history.jsonl");
     let content = std::fs::read_to_string(&log).unwrap();
     assert!(
         !content.contains("topsecret-value"),
diff --git a/tests/profiles_stray_key.rs b/tests/profiles_stray_key.rs
index bf7a5a5..c52b6f1 100644
--- a/tests/profiles_stray_key.rs
+++ b/tests/profiles_stray_key.rs
@@ -5,7 +5,7 @@
 // in a field of its own, not the onboarding `project.profile_present`.
 // Each test gets a temporary HOME, XDG_CONFIG_HOME and project under the
 // cargo target tmp dir; the global config is
-// `$XDG_CONFIG_HOME/ai-jail/config.toml`, dir 0700, file 0600. Dry runs
+// `$XDG_CONFIG_HOME/kekkai/config.toml`, dir 0700, file 0600. Dry runs
 // and `status` need no sandbox.
 #![cfg(target_os = "linux")]
 
@@ -45,7 +45,7 @@ impl Tree {
         let xdg = root.join("xdg");
         std::fs::create_dir_all(&project).unwrap();
         std::fs::create_dir_all(home.join("Pictures")).unwrap();
-        let store = xdg.join("ai-jail");
+        let store = xdg.join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
diff --git a/tests/profiles_trust.rs b/tests/profiles_trust.rs
index ca5d4d8..6499dd2 100644
--- a/tests/profiles_trust.rs
+++ b/tests/profiles_trust.rs
@@ -4,7 +4,7 @@
 // non-table `[profiles]` entry leaves a launch that names no profile
 // untouched, while selecting it is refused by name. Each test gets a
 // temporary HOME, XDG_CONFIG_HOME and project; the global config is
-// `$XDG_CONFIG_HOME/ai-jail/config.toml`, dir 0700, file 0600. Dry runs
+// `$XDG_CONFIG_HOME/kekkai/config.toml`, dir 0700, file 0600. Dry runs
 // need no sandbox; the real launch skips when bwrap with network
 // namespaces is unavailable.
 #![cfg(target_os = "linux")]
@@ -44,7 +44,7 @@ impl Tree {
         let xdg = root.join("xdg");
         std::fs::create_dir_all(&project).unwrap();
         std::fs::create_dir_all(home.join("Pictures")).unwrap();
-        let store = xdg.join("ai-jail");
+        let store = xdg.join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
diff --git a/tests/project_strategy.rs b/tests/project_strategy.rs
index 0d9dcbc..ff24ef0 100644
--- a/tests/project_strategy.rs
+++ b/tests/project_strategy.rs
@@ -89,7 +89,7 @@ impl Tree {
     }
 
     fn store(&self) -> PathBuf {
-        self.xdg.join("ai-jail")
+        self.xdg.join("kekkai")
     }
 
     fn prepare_store(&self) {
diff --git a/tests/resource_limits.rs b/tests/resource_limits.rs
index 83c93e0..f45416f 100644
--- a/tests/resource_limits.rs
+++ b/tests/resource_limits.rs
@@ -60,7 +60,7 @@ macro_rules! require {
 }
 
 fn ai_jail() -> PathBuf {
-    PathBuf::from(env!("CARGO_BIN_EXE_ai-jail"))
+    PathBuf::from(env!("CARGO_BIN_EXE_kekkai"))
 }
 
 fn test_tree(name: &str) -> (PathBuf, PathBuf) {
@@ -103,7 +103,7 @@ fn first_allowed_cpu() -> usize {
 }
 
 fn launch_record(home: &std::path::Path) -> serde_json::Value {
-    let log = home.join(".local/share/ai-jail/history.jsonl");
+    let log = home.join(".local/share/kekkai/history.jsonl");
     let content = std::fs::read_to_string(&log).expect("audit log written");
     content
         .lines()
diff --git a/tests/rlimit_host_ceiling.rs b/tests/rlimit_host_ceiling.rs
index 82cdf83..488feb1 100644
--- a/tests/rlimit_host_ceiling.rs
+++ b/tests/rlimit_host_ceiling.rs
@@ -76,7 +76,7 @@ impl Tree {
 
     /// The last record of this tree's audit log.
     fn last_record(&self) -> serde_json::Value {
-        let log = self.home.join(".local/share/ai-jail/history.jsonl");
+        let log = self.home.join(".local/share/kekkai/history.jsonl");
         let content = std::fs::read_to_string(&log)
             .unwrap_or_else(|e| panic!("no audit log at {log:?}: {e}"));
         let last = content.lines().last().expect("an empty audit log");
diff --git a/tests/rlimit_project_save.rs b/tests/rlimit_project_save.rs
index 0e7ff50..7cc601d 100644
--- a/tests/rlimit_project_save.rs
+++ b/tests/rlimit_project_save.rs
@@ -60,7 +60,7 @@ impl Tree {
     }
 
     fn store(&self) -> PathBuf {
-        self.xdg.join("ai-jail")
+        self.xdg.join("kekkai")
     }
 
     fn prepare_store(&self) {
diff --git a/tests/rlimit_values.rs b/tests/rlimit_values.rs
index ba16608..a0b45e1 100644
--- a/tests/rlimit_values.rs
+++ b/tests/rlimit_values.rs
@@ -7,7 +7,7 @@
 // `tests/common/mod.rs` (`require_bwrap_net!`, `ai_jail()`, `run_in()`).
 // Every launch runs with a temporary HOME, XDG_CONFIG_HOME and project
 // directory, so the developer's own global config cannot leak in. The
-// trusted global config is `$XDG_CONFIG_HOME/ai-jail/config.toml`
+// trusted global config is `$XDG_CONFIG_HOME/kekkai/config.toml`
 // (upstream v3.3.0); `~/.ai-jail` is only the legacy file it migrates.
 #![cfg(target_os = "linux")]
 
@@ -66,10 +66,10 @@ impl Tree {
         }
     }
 
-    /// Write the trusted global config: `<xdg>/ai-jail/config.toml`,
+    /// Write the trusted global config: `<xdg>/kekkai/config.toml`,
     /// directory 0700 and file 0600 as the store requires.
     fn global(&self, body: &str) -> &Self {
-        let store = self.xdg.join("ai-jail");
+        let store = self.xdg.join("kekkai");
         std::fs::create_dir_all(&store).unwrap();
         std::fs::set_permissions(
             &store,
@@ -119,7 +119,7 @@ impl Tree {
     }
 
     /// Like `jail`, but with this tree's HOME, so the audit log lands in
-    /// `<home>/.local/share/ai-jail/history.jsonl`.
+    /// `<home>/.local/share/kekkai/history.jsonl`.
     fn jail_with_home(&self, flags: &[&str], script: &str) -> Output {
         let _lock = common::SANDBOX_RUN_LOCK
             .lock()
@@ -595,7 +595,7 @@ fn audit_record_carries_effective_rlimits_and_cpus() {
         "exit 3",
     );
     assert_eq!(out.status.code(), Some(3), "stderr={}", stderr(&out));
-    let log = tree.home.join(".local/share/ai-jail/history.jsonl");
+    let log = tree.home.join(".local/share/kekkai/history.jsonl");
     let content = std::fs::read_to_string(&log).unwrap();
     let record: serde_json::Value =
         serde_json::from_str(content.lines().last().unwrap()).unwrap();
