[{"data":1,"prerenderedAt":2110,"buildId":2111},["ShallowReactive",2],{"-reference-configuration-sandbox-os-sandbox":3,"-reference-configuration-sandbox-os-sandbox-surround":1474,"navigation_docs":1485},{"id":4,"title":5,"body":6,"description":1465,"extension":1466,"links":1467,"meta":1468,"navigation":1469,"path":1470,"seo":1471,"stem":1472,"__hash__":1473},"docs\u002F5.reference\u002F03.configuration\u002F10.sandbox\u002F8.os-sandbox.md","The OS sandbox",{"type":7,"value":8,"toc":1449},"minimark",[9,16,34,182,187,282,306,310,317,412,438,440,451,458,478,481,575,580,643,661,664,684,750,754,761,816,826,829,843,950,960,971,975,1001,1013,1017,1113,1116,1129,1259,1266,1270,1314,1318,1321,1400,1435,1445],[10,11,12],"p",{},[13,14,15],"em",{},"Added in 2.3",[10,17,18,22,23,28,29,33],{},[19,20,21],"code",{},"kind: os"," runs a ",[24,25,27],"a",{"href":26},"\u002Fconcepts\u002Fvocabulary#worker","worker"," as a process of your own machine, inside a sandbox the operating system enforces (bubblewrap on Linux, Seatbelt on macOS), with no container image and no container runtime. This page describes Linux; ",[24,30,32],{"href":31},"#on-macos","On macOS"," says what differs. The agent CLI is the one installed on the host. It sees a small, read-only part of the host, its worktree and a way to reach Kraft that acts as its own session.",[35,36,42],"pre",{"className":37,"code":38,"filename":39,"language":40,"meta":41,"style":41},"language-yaml shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark-high-contrast","repos:\n  - path: \u002Fhome\u002Fyou\u002Fcode\u002Fmy-service\n    sandbox:\n      kind: os\n      network:\n        install: {allow: [crates.io, static.crates.io]}\n        runtime: {allow: [api.github.com]}\n      expose: [~\u002F.cargo\u002Fbin, ~\u002F.rustup]\n    env:\n      RUSTUP_HOME: \u002Fhome\u002Fyou\u002F.rustup\n","config\u002Frepos.yaml","yaml","",[19,43,44,57,73,81,92,100,127,144,163,171],{"__ignoreMap":41},[45,46,49,53],"span",{"class":47,"line":48},"line",1,[45,50,52],{"class":51},"sb7M8","repos",[45,54,56],{"class":55},"s7iLA",":\n",[45,58,60,63,66,69],{"class":47,"line":59},2,[45,61,62],{"class":55},"  - ",[45,64,65],{"class":51},"path",[45,67,68],{"class":55},": ",[45,70,72],{"class":71},"semJd","\u002Fhome\u002Fyou\u002Fcode\u002Fmy-service\n",[45,74,76,79],{"class":47,"line":75},3,[45,77,78],{"class":51},"    sandbox",[45,80,56],{"class":55},[45,82,84,87,89],{"class":47,"line":83},4,[45,85,86],{"class":51},"      kind",[45,88,68],{"class":55},[45,90,91],{"class":71},"os\n",[45,93,95,98],{"class":47,"line":94},5,[45,96,97],{"class":51},"      network",[45,99,56],{"class":55},[45,101,103,106,109,112,115,118,121,124],{"class":47,"line":102},6,[45,104,105],{"class":51},"        install",[45,107,108],{"class":55},": {",[45,110,111],{"class":51},"allow",[45,113,114],{"class":55},": [",[45,116,117],{"class":71},"crates.io",[45,119,120],{"class":55},", ",[45,122,123],{"class":71},"static.crates.io",[45,125,126],{"class":55},"]}\n",[45,128,130,133,135,137,139,142],{"class":47,"line":129},7,[45,131,132],{"class":51},"        runtime",[45,134,108],{"class":55},[45,136,111],{"class":51},[45,138,114],{"class":55},[45,140,141],{"class":71},"api.github.com",[45,143,126],{"class":55},[45,145,147,150,152,155,157,160],{"class":47,"line":146},8,[45,148,149],{"class":51},"      expose",[45,151,114],{"class":55},[45,153,154],{"class":71},"~\u002F.cargo\u002Fbin",[45,156,120],{"class":55},[45,158,159],{"class":71},"~\u002F.rustup",[45,161,162],{"class":55},"]\n",[45,164,166,169],{"class":47,"line":165},9,[45,167,168],{"class":51},"    env",[45,170,56],{"class":55},[45,172,174,177,179],{"class":47,"line":173},10,[45,175,176],{"class":51},"      RUSTUP_HOME",[45,178,68],{"class":55},[45,180,181],{"class":71},"\u002Fhome\u002Fyou\u002F.rustup\n",[183,184,186],"h2",{"id":185},"keys","Keys",[188,189,190,205],"table",{},[191,192,193],"thead",{},[194,195,196,200],"tr",{},[197,198,199],"th",{},"Key",[197,201,202,203],{},"Under ",[19,204,21],{},[206,207,208,222,240,253],"tbody",{},[194,209,210,216],{},[211,212,213],"td",{},[19,214,215],{},"kind",[211,217,218,221],{},[19,219,220],{},"os",".",[194,223,224,229],{},[211,225,226],{},[19,227,228],{},"network",[211,230,231,232,235,236,221],{},"Required, and not empty: ",[19,233,234],{},"network: {}"," is none. Without it nothing would keep the worker from Kraft's API, so the entry doesn't load. See ",[24,237,239],{"href":238},"\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fnetwork-policy","Network policy",[194,241,242,247],{},[211,243,244],{},[19,245,246],{},"expose",[211,248,249,250,221],{},"Optional. Host paths the sandbox may read. See ",[24,251,246],{"href":252},"#expose",[194,254,255,275],{},[211,256,257,120,260,120,263,120,266,120,269,120,272],{},[19,258,259],{},"image",[19,261,262],{},"runtime",[19,264,265],{},"kit",[19,267,268],{},"resources",[19,270,271],{},"unrestricted_network",[19,273,274],{},"credentials",[211,276,277,278,281],{},"Refused: ",[19,279,280],{},"kind: os takes no ...",", and the entry doesn't load.",[10,283,284,285,288,289,293,294,297,298,301,302,221],{},"An extra ",[19,286,287],{},"ca_bundle"," in ",[24,290,292],{"href":291},"\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fsandbox-yaml","sandbox.yaml"," isn't applied either. The sandbox trusts the host's own trust store, and the CA files named by the daemon's CA variables (",[19,295,296],{},"SSL_CERT_FILE"," and the like) are mounted read-only. A CA path set only in a repository's ",[19,299,300],{},"env:"," isn't one of the daemon's: it must also be listed in ",[24,303,304],{"href":252},[19,305,246],{},[183,307,309],{"id":308},"what-is-mounted","What is mounted",[10,311,312,313,316],{},"Only these reach the sandbox, and nothing of ",[19,314,315],{},"$KRAFT_HOME"," beyond them:",[318,319,320,364,372,378,388,399],"ul",{},[321,322,323,326,327,330,331,120,334,120,337,326,340,343,344,120,347,350,351,326,354,357,358,361,362,221],"li",{},[19,324,325],{},"\u002Fusr"," and ",[19,328,329],{},"\u002Fetc",", read-only, with ",[19,332,333],{},"\u002Fbin",[19,335,336],{},"\u002Fsbin",[19,338,339],{},"\u002Flib",[19,341,342],{},"\u002Flib64"," where the host has them. A fresh ",[19,345,346],{},"\u002Fproc",[19,348,349],{},"\u002Fdev",", and a ",[19,352,353],{},"\u002Ftmp",[19,355,356],{},"\u002Fdev\u002Fshm"," of their own, capped at 2 GiB and 256 MiB. ",[19,359,360],{},"\u002Fvar\u002Ftmp"," is ",[19,363,353],{},[321,365,366,367,371],{},"The worktree, read-write, at its resolved path, with the same session files, documents, results and private copy of the repository's refs that ",[24,368,370],{"href":369},"\u002Freference\u002Fconfiguration\u002Fsandbox#what-reaches-the-container","a container sandbox gets",". The session's own folder (its log and exit file) is never mounted.",[321,373,374,375,221],{},"The item's sandbox home, read-write, as ",[19,376,377],{},"HOME",[321,379,380,381,384,385,221],{},"The directory of the session's channel socket, and the ",[19,382,383],{},"kraft"," shim, read-only at ",[19,386,387],{},"\u002Fopt\u002Fkraft\u002Fbin",[321,389,390,391,394,395,398],{},"The init (",[19,392,393],{},"os_init.py",") and, when ",[19,396,397],{},"\u002Fusr\u002Fbin\u002Fpython3"," is missing or older than 3.10, the prefix of the Python that runs Kraft itself, read-only.",[321,400,401,402,406,407,411],{},"For the agent CLI and the command, the directory each one's real file lives in (see ",[24,403,405],{"href":404},"#how-a-command-is-found","How a command is found","), and each ",[24,408,409],{"href":252},[19,410,246],{}," path, read-only.",[10,413,414,415,417,418,120,421,423,424,120,427,120,430,433,434,437],{},"Anything in a command's directory or an ",[19,416,246],{}," path named ",[19,419,420],{},"credentials.toml",[19,422,274],{}," (cargo's older name for it), ",[19,425,426],{},".npmrc",[19,428,429],{},".netrc",[19,431,432],{},".pypirc"," or ",[19,435,436],{},".git-credentials",", up to three directories down, reads as an empty file. That is a backstop, not the boundary: don't expose a tree because its secrets are named differently.",[183,439,246],{"id":246},[10,441,442,444,445,448,449,221],{},[19,443,246],{}," lists host paths, each absolute or starting ",[19,446,447],{},"~\u002F",", that the sandbox may read. Use it for a toolchain outside ",[19,450,325],{},[10,452,453,457],{},[454,455,456],"strong",{},"Every file under an exposed path is shared, secrets included."," Give the narrowest path that works:",[35,459,461],{"className":37,"code":460,"language":40,"meta":41,"style":41},"expose: [~\u002F.cargo\u002Fbin]      # not ~\u002F.cargo, which holds cargo's credentials, its config and the registry cache\n",[19,462,463],{"__ignoreMap":41},[45,464,465,467,469,471,474],{"class":47,"line":48},[45,466,246],{"class":51},[45,468,114],{"class":55},[45,470,154],{"class":71},[45,472,473],{"class":55},"]      ",[45,475,477],{"class":476},"sq92B","# not ~\u002F.cargo, which holds cargo's credentials, its config and the registry cache\n",[10,479,480],{},"A path that doesn't exist is an error. Some tools need more than their binary:",[318,482,483,496,515,556,569],{},[321,484,485,488,489,492,493,221],{},[454,486,487],{},"A uv virtualenv."," Its ",[19,490,491],{},"python"," leads to a uv-managed interpreter, so add ",[19,494,495],{},"expose: [~\u002F.local\u002Fshare\u002Fuv\u002Fpython]",[321,497,498,508,509,511,512,514],{},[454,499,500,501,504,505,221],{},"A virtualenv outside the worktree, or any prefix whose ",[19,502,503],{},"bin\u002F"," scripts need its ",[19,506,507],{},"lib\u002F"," Expose the whole prefix, not its ",[19,510,503],{},": an exposed ",[19,513,503],{}," mounts only itself, and its scripts then fail to import.",[321,516,517,520,521,523,524,526,527,530,531,533,534,537,538,540,541,544,545,547,548,551,552,555],{},[454,518,519],{},"rustup and cargo."," Their state lives under ",[19,522,377],{},", and the sandbox's ",[19,525,377],{}," is its own. Set ",[19,528,529],{},"RUSTUP_HOME"," in the repo's ",[19,532,300],{}," beside ",[19,535,536],{},"expose: [~\u002F.cargo\u002Fbin, ~\u002F.rustup]",", as the example above does, so the proxies in ",[19,539,154],{}," find your toolchains. Leave ",[19,542,543],{},"CARGO_HOME"," unset: cargo then keeps its registry cache in the sandbox's own ",[19,546,377],{},", where it can write, and never sees the rest of your ",[19,549,550],{},"~\u002F.cargo",", its credentials and ",[19,553,554],{},"config.toml"," included.",[321,557,558,563,564,566,567,221],{},[454,559,560,561],{},"Any toolchain whose state lives under ",[19,562,377],{}," (an nvm, a pyenv, a gradle home) needs the variable that points it there in ",[19,565,300],{},", and its directory in ",[19,568,246],{},[321,570,571,574],{},[454,572,573],{},"Nix and Homebrew on Linux."," Their CLIs are ELF binaries whose loader and shared libraries live in a store outside the system directories, and the sandbox doesn't follow those. Expose the store path.",[576,577,579],"h3",{"id":578},"protected-paths","Protected paths",[10,581,582,583,585,586,326,589,592,593,120,596,120,599,120,602,120,605,120,608,120,611,120,614,120,617,120,620,120,623,326,626,629,630,120,632,120,634,120,636,120,638,433,640,642],{},"A path is refused when it is or holds your home directory, or is, holds or is inside any of ",[19,584,315],{},", the run and config directories wherever ",[19,587,588],{},"KRAFT_RUN_DIR",[19,590,591],{},"KRAFT_CONFIG_DIR"," put them, ",[19,594,595],{},"~\u002F.ssh",[19,597,598],{},"~\u002F.gnupg",[19,600,601],{},"~\u002F.config\u002Fgh",[19,603,604],{},"~\u002F.config\u002Fglab-cli",[19,606,607],{},"~\u002F.aws",[19,609,610],{},"~\u002F.kube",[19,612,613],{},"~\u002F.docker",[19,615,616],{},"~\u002F.claude",[19,618,619],{},"~\u002F.codex",[19,621,622],{},"~\u002F.local\u002Fshare\u002Fkeyrings",[19,624,625],{},"~\u002FLibrary\u002FKeychains",[19,627,628],{},"~\u002FLibrary\u002FCookies",". A path whose last component is ",[19,631,420],{},[19,633,274],{},[19,635,426],{},[19,637,429],{},[19,639,432],{},[19,641,436],{}," is refused too.",[10,644,645,646,649,650,652,653,657,658,660],{},"The same rule applies to a directory Kraft would mount for a command, and ",[19,647,648],{},"repos.yaml"," doesn't load with a protected ",[19,651,246],{}," path. A ",[24,654,656],{"href":655},"\u002Freference\u002Fconfiguration\u002Fforges","forge token file"," is protected too, but only when a sandboxed step starts: an ",[19,659,246],{}," holding one still loads, so one token file never stops every repo.",[183,662,405],{"id":663},"how-a-command-is-found",[10,665,666,667,670,671,673,674,677,678,680,681,683],{},"The agent CLI and the repo's commands run under the names they have on the host ",[19,668,669],{},"PATH",", not renamed copies. For each one Kraft follows its symlinks and mounts the directory the real file is in, or the install prefix above it when that directory is a ",[19,672,503],{},". A script's ",[19,675,676],{},"#!"," interpreter is followed one level. A file under ",[19,679,325],{}," or inside an ",[19,682,246],{}," path needs no mount of its own.",[318,685,686,710,719,732],{},[321,687,688,697,698,700,701,703,704,706,707,709],{},[454,689,690,691,693,694,696],{},"A ",[19,692,503],{}," no ",[19,695,246],{}," path covers widens to its prefix."," A command in ",[19,699,154],{}," mounts all of ",[19,702,550],{},", with only its credential files shadowed, so a token kept in its ",[19,705,554],{}," is readable. Expose ",[19,708,154],{}," to keep the mount to that directory.",[321,711,712,715,716,718],{},[454,713,714],{},"Nothing in the checkout may choose what is mounted."," A file inside the worktree is the repo's own: it adds no mount, and its ",[19,717,676],{}," line isn't followed.",[321,720,721,722,725,726,728,729,221],{},"A path-named command (",[19,723,724],{},".\u002Fgradlew",") whose symlink leads outside the worktree, the system directories and the ",[19,727,246],{}," paths is refused: ",[19,730,731],{},"\u003Ccommand> leads to \u003Cpath>, outside the sandbox's view; add its directory to the sandbox's expose list",[321,733,734,735,737,738,740,741,743,744,746,747,749],{},"A bare command is looked up on ",[19,736,387],{},", then the Kraft server's own ",[19,739,669],{},", and one found nowhere is refused before launch. ",[19,742,246],{}," mounts a path but never adds it to ",[19,745,669],{},": put the command's directory on the ",[19,748,669],{}," the server starts with.",[183,751,753],{"id":752},"the-launcher-and-the-init","The launcher and the init",[10,755,756,757,760],{},"Each session starts a small launcher on the host, then bubblewrap, then an init that runs the command as the sandbox's process 1. Both are one stdlib-only Python file, started with ",[19,758,759],{},"-I -S"," so no environment or current directory can steer them.",[318,762,763,788,798],{},[321,764,765,766,769,770,773,774,120,777,326,780,783,784,787],{},"The launcher joins a new session keyring, so the daemon's keys aren't the worker's. On a host whose architecture it has no ",[19,767,768],{},"keyctl"," number for it refuses to start (exit 125). It passes bubblewrap only the environment variables the session needs, by name (",[19,771,772],{},"--keep","), so a secret never appears on a command line. It ignores ",[19,775,776],{},"SIGINT",[19,778,779],{},"SIGTERM",[19,781,782],{},"SIGHUP",", and ",[19,785,786],{},"--die-with-parent"," ends the sandbox with it, so a killed launcher takes its sandbox down.",[321,789,790,791,120,793,326,795,797],{},"The init relays the session's channel to a loopback port, forwards ",[19,792,776],{},[19,794,779],{},[19,796,782],{}," to the command only when it has left the group the signal already reached, reaps what it leaves, and returns the command's exit code.",[321,799,800,801,804,805,808,809,812,813,221],{},"A command that can't start sends no started byte, so the session ends as ",[19,802,803],{},"config_error"," (a launch that failed), not as a task failure. A command the exec refuses with ",[19,806,807],{},"PermissionError"," exits 126 (",[19,810,811],{},"kraft: \u003Ccommand> is not executable","). Any other exec failure exits 127, as does the command itself, and prints ",[19,814,815],{},"kraft: a command was not found inside the os sandbox; add its directory to the sandbox's expose list",[10,817,818,819,821,822,221],{},"A launch Kraft refuses to wrap, for example a path-named command that leads outside the sandbox's view, ends the session as ",[19,820,803],{}," with the reason in its log, and doesn't retry on its own. See ",[24,823,825],{"href":824},"\u002Ftroubleshooting\u002Fos-sandbox-refusals","Sandbox and Kit stops",[183,827,828],{"id":828},"seccomp",[10,830,831,832,433,835,838,839,842],{},"A filter for the host's architecture (",[19,833,834],{},"x86_64",[19,836,837],{},"aarch64",") is loaded into every sandbox. It answers ",[19,840,841],{},"EPERM"," to:",[318,844,845,855,866,877,885,896,907,934],{},[321,846,847,120,849,120,852],{},[19,848,768],{},[19,850,851],{},"add_key",[19,853,854],{},"request_key",[321,856,857,120,860,120,863],{},[19,858,859],{},"io_uring_setup",[19,861,862],{},"io_uring_enter",[19,864,865],{},"io_uring_register",[321,867,868,120,871,120,874],{},[19,869,870],{},"bpf",[19,872,873],{},"perf_event_open",[19,875,876],{},"userfaultfd",[321,878,879,120,882],{},[19,880,881],{},"kexec_load",[19,883,884],{},"kexec_file_load",[321,886,887,120,890,120,893],{},[19,888,889],{},"init_module",[19,891,892],{},"finit_module",[19,894,895],{},"delete_module",[321,897,898,120,901,120,904],{},[19,899,900],{},"mount",[19,902,903],{},"umount2",[19,905,906],{},"pivot_root",[321,908,909,910,120,913,120,916,120,919,120,922,120,925,120,928,120,931],{},"the newer mount calls: ",[19,911,912],{},"open_tree",[19,914,915],{},"move_mount",[19,917,918],{},"fsopen",[19,920,921],{},"fsconfig",[19,923,924],{},"fsmount",[19,926,927],{},"fspick",[19,929,930],{},"mount_setattr",[19,932,933],{},"open_tree_attr",[321,935,936,939,940,433,943,946,947,949],{},[19,937,938],{},"ioctl"," with ",[19,941,942],{},"TIOCSTI",[19,944,945],{},"TIOCLINUX",", the requests that push input into a terminal. Every other ",[19,948,938],{}," is allowed.",[10,951,952,953,956,957,959],{},"The short runs Kraft makes before a launch, to ask the agent CLI its version or which hooks it trusts, also start in a session of their own (",[19,954,955],{},"--new-session","), off the terminal a foreground ",[19,958,383],{}," holds.",[10,961,962,963,966,967,970],{},"Any other system-call ABI, 32-bit and x32 included, is answered ",[19,964,965],{},"ENOSYS",": no 32-bit binary runs. User namespaces inside the sandbox are disabled too (",[19,968,969],{},"--disable-userns","), and every capability is dropped.",[183,972,974],{"id":973},"login-by-token","Login by token",[10,976,977,978,980,981,984,985,988,989,992,993,996,997,221],{},"The sandbox doesn't mount the agent's own config, so a login kept in ",[19,979,616],{}," or the keychain doesn't reach a worker. Use a token: ",[19,982,983],{},"CLAUDE_CODE_OAUTH_TOKEN"," (from ",[19,986,987],{},"claude setup-token",") or ",[19,990,991],{},"ANTHROPIC_API_KEY",". Both cross by name, as in a container sandbox, and other agents' keys go in ",[19,994,995],{},"env_passthrough",". See ",[24,998,1000],{"href":999},"\u002Fguides\u002Fharnesses\u002Fgive-a-worker-its-login","Give a worker its login",[10,1002,1003,1004,1007,1008,1012],{},"A server run as a ",[19,1005,1006],{},"systemd --user"," service has only the environment its unit carries: put the token in the unit, as ",[24,1009,1011],{"href":1010},"\u002Fguides\u002Frun\u002Frun-as-a-service#give-the-service-an-environment","Give the service an environment"," shows.",[183,1014,1016],{"id":1015},"what-it-doesnt-do","What it doesn't do",[318,1018,1019,1027,1036,1048,1060,1067,1079,1084,1097],{},[321,1020,1021,1024,1025,221],{},[454,1022,1023],{},"It runs on Linux and macOS, and never as root."," On any other system, or when Kraft runs as root, the sandbox refuses to start. The items below are Linux's; macOS's are under ",[24,1026,32],{"href":31},[321,1028,1029,1035],{},[454,1030,1031,1032,1034],{},"The agent's own ",[19,1033,616],{}," config is absent."," The worker starts from the sandbox home, so settings kept there aren't the ones you use by hand.",[321,1037,1038,1044,1045,1047],{},[454,1039,1040,1041,221],{},"Key names are visible in ",[19,1042,1043],{},"\u002Fproc\u002Fkeys"," The daemon's keys can't be read or changed (the launcher joins a new keyring and ",[19,1046,768],{}," is denied), but their names can be listed.",[321,1049,1050,1056,1057,1059],{},[454,1051,1052,1053,1055],{},"User-readable files in ",[19,1054,329],{}," are visible."," ",[19,1058,329],{}," is mounted whole, read-only.",[321,1061,1062],{},[454,1063,1064,1065,221],{},"Nix and Homebrew-on-Linux CLIs need ",[19,1066,246],{},[321,1068,1069,1075,1076,1078],{},[454,1070,1071,1072,221],{},"Browser tests need ",[19,1073,1074],{},"--no-sandbox"," A browser can't make its own sandbox here, because user namespaces and ",[19,1077,900],{}," are denied.",[321,1080,1081],{},[454,1082,1083],{},"No 32-bit binaries.",[321,1085,1086,1096],{},[454,1087,1088,1089,120,1091,1093,1094,221],{},"No ",[19,1090,268],{},[19,1092,274],{}," or extra ",[19,1095,287],{}," No CPU, memory or process limits; no credential held by the proxy; the host's trust store only.",[321,1098,1099,1102,1103,1105,1106,1108,1109,1112],{},[454,1100,1101],{},"A service restart ends its sessions only where the worker can't leave the unit."," Under a ",[19,1104,1006],{}," service the local worker starts in a scope of its own, outside the unit's cgroup, so a restart leaves its ",[19,1107,21],{}," sessions running and reattach adopts them. Where ",[19,1110,1111],{},"systemd-run --user"," can't start it, the worker starts inside the unit, whose kill mode stops every process of the service, and a sandbox dies with its launcher.",[183,1114,32],{"id":1115},"on-macos",[10,1117,1118,1119,1121,1122,1125,1126,1128],{},"On a Mac, ",[19,1120,21],{}," runs the worker under Seatbelt (",[19,1123,1124],{},"\u002Fusr\u002Fbin\u002Fsandbox-exec",") instead of bubblewrap, from the same ",[19,1127,648],{}," entry. The guarantee that matters holds: a worker reaches Kraft only through its session's channel, and can't decide its own gates. The fence is weaker than Linux's in these ways, which come first because they change what you can run:",[318,1130,1131,1145,1154,1160,1174,1199,1212,1228,1237],{},[321,1132,1133,1136,1137,1140,1141,1144],{},[454,1134,1135],{},"No local TCP servers."," The worker can connect to nothing on loopback but its session's proxy, and can't listen on a port. A test suite that starts a server on ",[19,1138,1139],{},"127.0.0.1"," fails. Unix sockets under the session's ",[19,1142,1143],{},"TMPDIR"," work.",[321,1146,1147,1150,1151,1153],{},[454,1148,1149],{},"Other processes' environment and arguments are readable."," macOS lets any process of your user read them, and Seatbelt can't close that. A worker can see another session's ",[19,1152,300],{}," values, the daemon's agent token and whatever your shells export. The gate guarantee isn't affected.",[321,1155,1156,1159],{},[454,1157,1158],{},"The proxy URL carries a per-session token."," The proxy listens on loopback, so it answers a request without the token with 407. Other processes of your user can read the token the same way as the environment; other users can't.",[321,1161,1162,1165,1166,1169,1170,1173],{},[454,1163,1164],{},"Some names are shared within your user."," Python's ",[19,1167,1168],{},"\u002Fpsm_"," shared-memory and ",[19,1171,1172],{},"\u002Fmp-"," semaphore names are global to your processes, and guessable like the environment.",[321,1175,1176,1056,1181,326,1183,1186,1187,1189,1190,1192,1193,1195,1196,221],{},[454,1177,1178,1179,221],{},"No private ",[19,1180,353],{},[19,1182,353],{},[19,1184,1185],{},"\u002Fprivate\u002Fvar\u002Ffolders"," are neither readable nor writable. ",[19,1188,1143],{}," is a folder of the session's own, not size-capped and removed when the session ends. A tool that writes to ",[19,1191,353],{}," by name fails. Claude Code is pointed at ",[19,1194,1143],{}," through ",[19,1197,1198],{},"CLAUDE_CODE_TMPDIR",[321,1200,1201,1204,1205,326,1208,1211],{},[454,1202,1203],{},"No private copy of the refs."," The worker writes its own branch in the repository, and Kraft checks it after the session and puts it back if it holds anything but a commit. A branch moved on the host during the session isn't compared first. Creating a branch or a tag, ",[19,1206,1207],{},"git stash",[19,1209,1210],{},"git pack-refs"," fail inside the sandbox; listing works.",[321,1213,1214,1056,1217,326,1220,1223,1224,1227],{},[454,1215,1216],{},"No fetch or pull inside.",[19,1218,1219],{},"git fetch",[19,1221,1222],{},"git pull"," fail with ",[19,1225,1226],{},"cannot lock ref 'refs\u002Fremotes\u002Forigin\u002F...'",": the remote-tracking refs are in the repository's read-only common directory. Kraft fetches and rebases on the host.",[321,1229,1230,1233,1234,1236],{},[454,1231,1232],{},"A hard link needs a source the worker can write."," Seatbelt checks a link's source too, so a worker can't link a host file it can only read, or can't see, into its worktree for Kraft to read or commit. Links within the worktree work; a tool linking from a read-only ",[19,1235,246],{}," path, such as a package store, has to copy instead.",[321,1238,1239,1242,1243,1246,1247,1250,1251,1254,1255,1258],{},[454,1240,1241],{},"A mach-service allowlist."," The worker reaches the system services a real agent CLI needs, and not LaunchServices, Apple Events, the pasteboard or the keychain. A CLI that needs another service fails until Kraft adds it. TLS is known to work through the system's trust service, which is allowed: a Go CLI's verifier (checked with Go's ",[19,1244,1245],{},"crypto\u002Fx509",", which ",[19,1248,1249],{},"gh"," uses) and ",[19,1252,1253],{},"security verify-cert"," get the host's answer, and OpenSSL-style clients such as Python's ",[19,1256,1257],{},"ssl"," read the host's CA files.",[10,1260,1261,1262,1265],{},"Every commit prints ",[19,1263,1264],{},"error: Unable to create '...\u002Fpacked-refs.lock': Operation not permitted",". That is expected and harmless: git tries to delete pseudo-refs that don't exist at the end of a commit, and the commit lands.",[576,1267,1269],{"id":1268},"what-it-needs","What it needs",[318,1271,1272,1284,1301],{},[321,1273,1274,1275,433,1278,1280,1281,1283],{},"A Mac of ",[19,1276,1277],{},"arm64",[19,1279,834],{},", with ",[19,1282,1124],{}," (it ships with macOS), Kraft not running as root, and Kraft not itself inside a sandbox.",[321,1285,1286,1292,1293,1296,1297,1300],{},[454,1287,1288,1289,221],{},"Homebrew CLIs need ",[19,1290,1291],{},"expose: [\u002Fopt\u002Fhomebrew]"," Their libraries aren't followed, as a Linux binary's aren't. ",[19,1294,1295],{},"node"," from Homebrew is one. On an Intel Mac Homebrew lives in ",[19,1298,1299],{},"\u002Fusr\u002Flocal",", which isn't readable otherwise: expose it.",[321,1302,1303,1306,1307,433,1309,1311,1312,221],{},[454,1304,1305],{},"A token, not a login."," The keychain is denied, so use ",[19,1308,983],{},[19,1310,991],{},". A server run by launchd has only the environment its plist carries: ",[24,1313,1011],{"href":1010},[576,1315,1317],{"id":1316},"what-the-worker-sees","What the worker sees",[10,1319,1320],{},"The profile denies everything and allows back what a session needs. The worker can read:",[318,1322,1323,1338,1360,1371,1392],{},[321,1324,1325,1327,1328,1330,1331,120,1333,326,1335,221],{},[19,1326,325],{}," (not ",[19,1329,1299],{},"), ",[19,1332,333],{},[19,1334,336],{},[19,1336,1337],{},"\u002FSystem",[321,1339,1340,1343,1344,1347,1348,1351,1352,1355,1356,1359],{},[19,1341,1342],{},"\u002FLibrary\u002FDeveloper\u002FCommandLineTools"," and the selected Xcode's ",[19,1345,1346],{},"Contents",", since ",[19,1349,1350],{},"\u002Fusr\u002Fbin\u002Fgit"," is a shim into them, the one file ",[19,1353,1354],{},"\u002FLibrary\u002FPreferences\u002Fcom.apple.dt.Xcode.plist",", the Xcode licence version, and ",[19,1357,1358],{},"MobileDevice.framework",", which Xcode loads until its first launch has run.",[321,1361,1362,120,1365,326,1368,221],{},[19,1363,1364],{},"\u002Fprivate\u002Fetc",[19,1366,1367],{},"\u002Fprivate\u002Fvar\u002Fdb\u002Ftimezone",[19,1369,1370],{},"\u002Fprivate\u002Fvar\u002Fdb\u002Fdyld",[321,1372,1373,120,1376,120,1379,120,1382,120,1385,326,1388,1391],{},[19,1374,1375],{},"\u002Fdev\u002Fnull",[19,1377,1378],{},"\u002Fdev\u002Fzero",[19,1380,1381],{},"\u002Fdev\u002Frandom",[19,1383,1384],{},"\u002Fdev\u002Furandom",[19,1386,1387],{},"\u002Fdev\u002Fdtracehelper",[19,1389,1390],{},"\u002Fdev\u002Ffd",", and no other terminal of yours.",[321,1393,1394,1395,1399],{},"The agent CLI and the command, each ",[24,1396,1397],{"href":252},[19,1398,246],{}," path, the host's CA files and Kraft's own Python.",[10,1401,1402,1403,1405,1406,120,1409,120,1412,120,1415,433,1418,1421,1422,1425,1426,326,1428,1430,1431,221],{},"It reads and writes its worktree, its sandbox home and its ",[19,1404,1143],{},". Nothing else of ",[19,1407,1408],{},"\u002FUsers",[19,1410,1411],{},"\u002FVolumes",[19,1413,1414],{},"\u002FApplications",[19,1416,1417],{},"\u002Fopt",[19,1419,1420],{},"\u002FLibrary"," is readable, though ",[19,1423,1424],{},"stat"," works anywhere. ",[19,1427,625],{},[19,1429,628],{}," are ",[24,1432,1434],{"href":1433},"#protected-paths","protected paths",[10,1436,1437,1438,1444],{},"It can signal only processes of its own sandbox, and nothing it starts outlives the session: Kraft ends every process of the session when it exits, including ones that left the process group. A process it can't end is logged and recorded as a ",[24,1439,1441],{"href":1440},"\u002Freference\u002Fevents#sandbox",[19,1442,1443],{},"sandbox_session_outlived"," event with its pid.",[1446,1447,1448],"style",{},"html pre.shiki code .sb7M8, html code.shiki .sb7M8{--shiki-light:#024C1A;--shiki-default:#024C1A;--shiki-dark:#72F088}html pre.shiki code .s7iLA, html code.shiki .s7iLA{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .semJd, html code.shiki .semJd{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#ADDCFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sq92B, html code.shiki .sq92B{--shiki-light:#66707B;--shiki-default:#66707B;--shiki-dark:#BDC4CC}",{"title":41,"searchDepth":59,"depth":59,"links":1450},[1451,1452,1453,1456,1457,1458,1459,1460,1461],{"id":185,"depth":59,"text":186},{"id":308,"depth":59,"text":309},{"id":246,"depth":59,"text":246,"children":1454},[1455],{"id":578,"depth":75,"text":579},{"id":663,"depth":59,"text":405},{"id":752,"depth":59,"text":753},{"id":828,"depth":59,"text":828},{"id":973,"depth":59,"text":974},{"id":1015,"depth":59,"text":1016},{"id":1115,"depth":59,"text":32,"children":1462},[1463,1464],{"id":1268,"depth":75,"text":1269},{"id":1316,"depth":75,"text":1317},"Run a repository's workers under the host's own process sandbox, on Linux or macOS, with no image, and what that sandbox mounts, exposes, denies and doesn't do.","md",null,{},true,"\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fos-sandbox",{"title":5,"description":1465},"5.reference\u002F03.configuration\u002F10.sandbox\u002F8.os-sandbox","US-TDY1Sv32TKybkCjK4dh2ObTe2W7WpWiWkgqe1YHo",[1475,1480],{"title":1476,"path":1477,"stem":1478,"description":1479},"Git in a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fgit-in-a-sandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002F7.git-in-a-sandbox","How a sandboxed worker's repository refs, workspace members and worktree are handled, and what Kraft's own git does and doesn't do there.",{"title":1481,"path":1482,"stem":1483,"description":1484},"Environment variables","\u002Freference\u002Fconfiguration\u002Fenvironment-variables","5.reference\u002F03.configuration\u002F11.environment-variables","Every KRAFT_* variable Kraft reads or sets, the other variables it reads, and the variables a worker's environment gets.",[1486,1510,1549,1718,1767,2067],{"title":1487,"path":1488,"stem":1489,"children":1490},"Get started","\u002Fget-started","1.get-started",[1491,1494,1498,1502,1506],{"title":1492,"path":1488,"stem":1493},"Overview","1.get-started\u002Findex",{"title":1495,"path":1496,"stem":1497},"Install","\u002Fget-started\u002Finstall","1.get-started\u002F1.install",{"title":1499,"path":1500,"stem":1501},"Your first work item","\u002Fget-started\u002Ffirst-work-item","1.get-started\u002F2.first-work-item",{"title":1503,"path":1504,"stem":1505},"The real chain","\u002Fget-started\u002Fthe-real-chain","1.get-started\u002F3.the-real-chain",{"title":1507,"path":1508,"stem":1509},"FAQ","\u002Fget-started\u002Ffaq","1.get-started\u002F4.faq",{"title":1511,"path":1512,"stem":1513,"children":1514},"Concepts","\u002Fconcepts","2.concepts",[1515,1517,1521,1525,1529,1533,1537,1541,1545],{"title":1492,"path":1512,"stem":1516},"2.concepts\u002Findex",{"title":1518,"path":1519,"stem":1520},"How a work item runs","\u002Fconcepts\u002Fhow-a-work-item-runs","2.concepts\u002F1.how-a-work-item-runs",{"title":1522,"path":1523,"stem":1524},"Caps and budgets","\u002Fconcepts\u002Fcaps-and-budgets","2.concepts\u002F2.caps-and-budgets",{"title":1526,"path":1527,"stem":1528},"Why a permission gate","\u002Fconcepts\u002Fpermission-gate","2.concepts\u002F3.permission-gate",{"title":1530,"path":1531,"stem":1532},"Vocabulary","\u002Fconcepts\u002Fvocabulary","2.concepts\u002F4.vocabulary",{"title":1534,"path":1535,"stem":1536},"Where a step runs","\u002Fconcepts\u002Fwhere-a-step-runs","2.concepts\u002F5.where-a-step-runs",{"title":1538,"path":1539,"stem":1540},"How review and CI waits settle","\u002Fconcepts\u002Fhow-review-and-ci-waits-settle","2.concepts\u002F6.how-review-and-ci-waits-settle",{"title":1542,"path":1543,"stem":1544},"How test scopes run","\u002Fconcepts\u002Fhow-test-scopes-run","2.concepts\u002F7.how-test-scopes-run",{"title":1546,"path":1547,"stem":1548},"How workers and machines behave","\u002Fconcepts\u002Fhow-workers-and-machines-behave","2.concepts\u002F8.how-workers-and-machines-behave",{"title":1550,"path":1551,"stem":1552,"children":1553},"Guides","\u002Fguides","3.guides",[1554,1556,1606,1632,1652,1714],{"title":1492,"path":1551,"stem":1555},"3.guides\u002Findex",{"title":1557,"path":1558,"stem":1559,"children":1560},"Day to day","\u002Fguides\u002Fday-to-day","3.guides\u002F1.day-to-day\u002Findex",[1561,1562,1566,1570,1574,1578,1582,1586,1590,1594,1598,1602],{"title":1492,"path":1558,"stem":1559},{"title":1563,"path":1564,"stem":1565},"Split work into slices","\u002Fguides\u002Fday-to-day\u002Fsplit-work-into-slices","3.guides\u002F1.day-to-day\u002F01.split-work-into-slices",{"title":1567,"path":1568,"stem":1569},"The setup wizard on first start","\u002Fguides\u002Fday-to-day\u002Ffirst-run","3.guides\u002F1.day-to-day\u002F02.first-run",{"title":1571,"path":1572,"stem":1573},"File a work item","\u002Fguides\u002Fday-to-day\u002Ffile-a-work-item","3.guides\u002F1.day-to-day\u002F03.file-a-work-item",{"title":1575,"path":1576,"stem":1577},"Use Kraft from your agent","\u002Fguides\u002Fday-to-day\u002Fagent-integration","3.guides\u002F1.day-to-day\u002F04.agent-integration",{"title":1579,"path":1580,"stem":1581},"Reviewing a change","\u002Fguides\u002Fday-to-day\u002Freview-a-change","3.guides\u002F1.day-to-day\u002F05.review-a-change",{"title":1583,"path":1584,"stem":1585},"Raise a cap on a stopped item","\u002Fguides\u002Fday-to-day\u002Fraise-a-cap","3.guides\u002F1.day-to-day\u002F06.raise-a-cap",{"title":1587,"path":1588,"stem":1589},"Kraft for VS Code","\u002Fguides\u002Fday-to-day\u002Fvscode","3.guides\u002F1.day-to-day\u002F07.vscode",{"title":1591,"path":1592,"stem":1593},"Reach the board from your phone","\u002Fguides\u002Fday-to-day\u002Fkraft-on-a-phone","3.guides\u002F1.day-to-day\u002F08.kraft-on-a-phone",{"title":1595,"path":1596,"stem":1597},"Get notified when an item needs you","\u002Fguides\u002Fday-to-day\u002Fnotifications","3.guides\u002F1.day-to-day\u002F09.notifications",{"title":1599,"path":1600,"stem":1601},"Take over a stopped item","\u002Fguides\u002Fday-to-day\u002Ftake-over-an-item","3.guides\u002F1.day-to-day\u002F10.take-over-an-item",{"title":1603,"path":1604,"stem":1605},"Use Kraft from Herdr","\u002Fguides\u002Fday-to-day\u002Fherdr","3.guides\u002F1.day-to-day\u002F11.herdr",{"title":1607,"path":1608,"stem":1609,"children":1610},"Customize and automate","\u002Fguides\u002Fcustomize","3.guides\u002F2.customize\u002Findex",[1611,1612,1616,1620,1624,1628],{"title":1492,"path":1608,"stem":1609},{"title":1613,"path":1614,"stem":1615},"Write your own chain","\u002Fguides\u002Fcustomize\u002Fwrite-your-own-chain","3.guides\u002F2.customize\u002F1.write-your-own-chain",{"title":1617,"path":1618,"stem":1619},"Add a security review or a gate reviewer","\u002Fguides\u002Fcustomize\u002Fadd-review-agents","3.guides\u002F2.customize\u002F2.add-review-agents",{"title":1621,"path":1622,"stem":1623},"Schedule or webhook work","\u002Fguides\u002Fcustomize\u002Fschedule-and-webhook-work","3.guides\u002F2.customize\u002F3.schedule-and-webhook-work",{"title":1625,"path":1626,"stem":1627},"Share chains with add-ons","\u002Fguides\u002Fcustomize\u002Fshare-chains-with-addons","3.guides\u002F2.customize\u002F4.share-chains-with-addons",{"title":1629,"path":1630,"stem":1631},"Publish an add-on","\u002Fguides\u002Fcustomize\u002Fpublish-an-add-on","3.guides\u002F2.customize\u002F5.publish-an-add-on",{"title":1633,"path":1634,"stem":1635,"children":1636},"Agents and harnesses","\u002Fguides\u002Fharnesses","3.guides\u002F3.harnesses\u002Findex",[1637,1638,1642,1646,1650],{"title":1492,"path":1634,"stem":1635},{"title":1639,"path":1640,"stem":1641},"Switch a task to another harness","\u002Fguides\u002Fharnesses\u002Fswitch-harness","3.guides\u002F3.harnesses\u002F1.switch-harness",{"title":1643,"path":1644,"stem":1645},"Add or override a harness","\u002Fguides\u002Fharnesses\u002Fadding-a-harness","3.guides\u002F3.harnesses\u002F2.adding-a-harness",{"title":1647,"path":1648,"stem":1649},"Build a worker Kit","\u002Fguides\u002Fharnesses\u002Fworker-kit","3.guides\u002F3.harnesses\u002F3.worker-kit",{"title":1000,"path":999,"stem":1651},"3.guides\u002F3.harnesses\u002F4.give-a-worker-its-login",{"title":1653,"path":1654,"stem":1655,"children":1656},"Run the server","\u002Fguides\u002Frun","3.guides\u002F4.run\u002Findex",[1657,1658,1662,1666,1670,1674,1678,1682,1686,1690,1694,1698,1702,1706,1710],{"title":1492,"path":1654,"stem":1655},{"title":1659,"path":1660,"stem":1661},"Remote access","\u002Fguides\u002Frun\u002Fremote-access","3.guides\u002F4.run\u002F01.remote-access",{"title":1663,"path":1664,"stem":1665},"Put a proxy in front of Kraft","\u002Fguides\u002Frun\u002Fput-a-proxy-in-front-of-kraft","3.guides\u002F4.run\u002F02.put-a-proxy-in-front-of-kraft",{"title":1667,"path":1668,"stem":1669},"Restart Kraft without ending running steps","\u002Fguides\u002Frun\u002Frestart-kraft","3.guides\u002F4.run\u002F03.restart-kraft",{"title":1671,"path":1672,"stem":1673},"Back up and restore the database","\u002Fguides\u002Frun\u002Fback-up-and-restore","3.guides\u002F4.run\u002F04.back-up-and-restore",{"title":1675,"path":1676,"stem":1677},"Find the logs","\u002Fguides\u002Frun\u002Ffind-the-logs","3.guides\u002F4.run\u002F05.find-the-logs",{"title":1679,"path":1680,"stem":1681},"Run Kraft as a service","\u002Fguides\u002Frun\u002Frun-as-a-service","3.guides\u002F4.run\u002F06.run-as-a-service",{"title":1683,"path":1684,"stem":1685},"Upgrade Kraft","\u002Fguides\u002Frun\u002Fupgrade-kraft","3.guides\u002F4.run\u002F07.upgrade-kraft",{"title":1687,"path":1688,"stem":1689},"Move onto kraft-default","\u002Fguides\u002Frun\u002Fupgrade-your-configuration","3.guides\u002F4.run\u002F08.upgrade-your-configuration",{"title":1691,"path":1692,"stem":1693},"Coming from 1.4","\u002Fguides\u002Frun\u002Fcoming-from-1-4","3.guides\u002F4.run\u002F09.coming-from-1-4",{"title":1695,"path":1696,"stem":1697},"Free disk space","\u002Fguides\u002Frun\u002Ffree-disk-space","3.guides\u002F4.run\u002F10.free-disk-space",{"title":1699,"path":1700,"stem":1701},"Rotate the token","\u002Fguides\u002Frun\u002Frotate-the-token","3.guides\u002F4.run\u002F11.rotate-the-token",{"title":1703,"path":1704,"stem":1705},"Run items in your own checkout","\u002Fguides\u002Frun\u002Frun-items-in-place","3.guides\u002F4.run\u002F12.run-items-in-place",{"title":1707,"path":1708,"stem":1709},"Run a step on another machine","\u002Fguides\u002Frun\u002Frun-a-step-on-another-machine","3.guides\u002F4.run\u002F13.run-a-step-on-another-machine",{"title":1711,"path":1712,"stem":1713},"Use the console from another machine","\u002Fguides\u002Frun\u002Fuse-the-console-from-another-machine","3.guides\u002F4.run\u002F14.use-the-console-from-another-machine",{"title":1715,"path":1716,"stem":1717},"Kraft Lite","\u002Fguides\u002Fkraft-lite","3.guides\u002F5.kraft-lite",{"title":1719,"path":1720,"stem":1721,"children":1722},"Troubleshooting","\u002Ftroubleshooting","4.troubleshooting",[1723,1725,1729,1733,1737,1741,1745,1748,1751,1755,1759,1763],{"title":1492,"path":1720,"stem":1724},"4.troubleshooting\u002Findex",{"title":1726,"path":1727,"stem":1728},"Failed tasks and fix loops","\u002Ftroubleshooting\u002Ffailed-tasks-and-fix-loops","4.troubleshooting\u002F01.failed-tasks-and-fix-loops",{"title":1730,"path":1731,"stem":1732},"Launch and setup stops","\u002Ftroubleshooting\u002Flaunch-and-setup-stops","4.troubleshooting\u002F02.launch-and-setup-stops",{"title":1734,"path":1735,"stem":1736},"Caps, budgets and waits","\u002Ftroubleshooting\u002Fcaps-budgets-and-waits","4.troubleshooting\u002F03.caps-budgets-and-waits",{"title":1738,"path":1739,"stem":1740},"Forge stops","\u002Ftroubleshooting\u002Fforge-stops","4.troubleshooting\u002F04.forge-stops",{"title":1742,"path":1743,"stem":1744},"Worktree and git stops","\u002Ftroubleshooting\u002Fworktree-and-git-stops","4.troubleshooting\u002F05.worktree-and-git-stops",{"title":825,"path":1746,"stem":1747},"\u002Ftroubleshooting\u002Fsandbox-and-kit-stops","4.troubleshooting\u002F06.sandbox-and-kit-stops",{"title":1749,"path":824,"stem":1750},"A kind: os sandbox is refused","4.troubleshooting\u002F07.os-sandbox-refusals",{"title":1752,"path":1753,"stem":1754},"Doctor failures","\u002Ftroubleshooting\u002Fdoctor-failures","4.troubleshooting\u002F08.doctor-failures",{"title":1756,"path":1757,"stem":1758},"Starting and reaching Kraft","\u002Ftroubleshooting\u002Fstarting-and-reaching-kraft","4.troubleshooting\u002F09.starting-and-reaching-kraft",{"title":1760,"path":1761,"stem":1762},"Add-on problems","\u002Ftroubleshooting\u002Faddon-problems","4.troubleshooting\u002F10.addon-problems",{"title":1764,"path":1765,"stem":1766},"Add-on validation messages","\u002Ftroubleshooting\u002Faddon-validate-messages","4.troubleshooting\u002F11.addon-validate-messages",{"title":1768,"path":1769,"stem":1770,"children":1771},"Reference","\u002Freference","5.reference",[1772,1774,1820,1854,1858,1862,1957,1999,2025,2029,2033,2051,2055,2059,2063],{"title":1492,"path":1769,"stem":1773},"5.reference\u002Findex",{"title":1775,"path":1776,"stem":1777,"children":1778},"Web UI","\u002Freference\u002Fweb-ui","5.reference\u002F00.web-ui\u002Findex",[1779,1780,1784,1788,1792,1796,1800,1804,1808,1812,1816],{"title":1492,"path":1776,"stem":1777},{"title":1781,"path":1782,"stem":1783},"Sidebar, search and keyboard","\u002Freference\u002Fweb-ui\u002Fsidebar-search-and-keyboard","5.reference\u002F00.web-ui\u002F0.sidebar-search-and-keyboard",{"title":1785,"path":1786,"stem":1787},"The board","\u002Freference\u002Fweb-ui\u002Fboard","5.reference\u002F00.web-ui\u002F1.board",{"title":1789,"path":1790,"stem":1791},"An item's page","\u002Freference\u002Fweb-ui\u002Fitem-page","5.reference\u002F00.web-ui\u002F2.item-page",{"title":1793,"path":1794,"stem":1795},"Fix loops and test scopes","\u002Freference\u002Fweb-ui\u002Ffix-loops-and-test-scopes","5.reference\u002F00.web-ui\u002F3.fix-loops-and-test-scopes",{"title":1797,"path":1798,"stem":1799},"Config before an item starts","\u002Freference\u002Fweb-ui\u002Fconfig-before-start","5.reference\u002F00.web-ui\u002F4.config-before-start",{"title":1801,"path":1802,"stem":1803},"The review page","\u002Freference\u002Fweb-ui\u002Freview-page","5.reference\u002F00.web-ui\u002F5.review-page",{"title":1805,"path":1806,"stem":1807},"Templates","\u002Freference\u002Fweb-ui\u002Ftemplates","5.reference\u002F00.web-ui\u002F6.templates",{"title":1809,"path":1810,"stem":1811},"Settings","\u002Freference\u002Fweb-ui\u002Fsettings","5.reference\u002F00.web-ui\u002F7.settings",{"title":1813,"path":1814,"stem":1815},"Analytics","\u002Freference\u002Fweb-ui\u002Fanalytics","5.reference\u002F00.web-ui\u002F8.analytics",{"title":1817,"path":1818,"stem":1819},"The board on a phone","\u002Freference\u002Fweb-ui\u002Fon-a-phone","5.reference\u002F00.web-ui\u002F9.on-a-phone",{"title":1821,"path":1822,"stem":1823,"children":1824},"CLI","\u002Freference\u002Fcli","5.reference\u002F01.cli\u002Findex",[1825,1826,1830,1834,1838,1842,1846,1850],{"title":1492,"path":1822,"stem":1823},{"title":1827,"path":1828,"stem":1829},"Item verbs","\u002Freference\u002Fcli\u002Fitem","5.reference\u002F01.cli\u002F2.item",{"title":1831,"path":1832,"stem":1833},"View verbs","\u002Freference\u002Fcli\u002Fview","5.reference\u002F01.cli\u002F3.view",{"title":1835,"path":1836,"stem":1837},"Repo verbs","\u002Freference\u002Fcli\u002Frepo","5.reference\u002F01.cli\u002F4.repo",{"title":1839,"path":1840,"stem":1841},"Server verbs","\u002Freference\u002Fcli\u002Fserver","5.reference\u002F01.cli\u002F5.server",{"title":1843,"path":1844,"stem":1845},"Add-on verbs","\u002Freference\u002Fcli\u002Faddon","5.reference\u002F01.cli\u002F6.addon",{"title":1847,"path":1848,"stem":1849},"Machine verbs","\u002Freference\u002Fcli\u002Fworker","5.reference\u002F01.cli\u002F7.worker",{"title":1851,"path":1852,"stem":1853},"Forge verbs","\u002Freference\u002Fcli\u002Fforge","5.reference\u002F01.cli\u002F8.forge",{"title":1855,"path":1856,"stem":1857},"Console","\u002Freference\u002Fconsole","5.reference\u002F01.console",{"title":1859,"path":1860,"stem":1861},"Work item statuses","\u002Freference\u002Fstatuses","5.reference\u002F02.statuses",{"title":1863,"path":1864,"stem":1865,"children":1866},"Configuration","\u002Freference\u002Fconfiguration","5.reference\u002F03.configuration\u002Findex",[1867,1868,1885,1889,1893,1897,1901,1905,1909,1937,1938,1942,1946,1950,1954],{"title":1492,"path":1864,"stem":1865},{"title":648,"path":1869,"stem":1870,"children":1871},"\u002Freference\u002Fconfiguration\u002Frepos","5.reference\u002F03.configuration\u002F02.repos\u002Findex",[1872,1873,1877,1881],{"title":1492,"path":1869,"stem":1870},{"title":1874,"path":1875,"stem":1876},"How connect proposes commands","\u002Freference\u002Fconfiguration\u002Frepos\u002Fconnect-proposals","5.reference\u002F03.configuration\u002F02.repos\u002F1.connect-proposals",{"title":1878,"path":1879,"stem":1880},"detectors.yaml","\u002Freference\u002Fconfiguration\u002Frepos\u002Fdetectors","5.reference\u002F03.configuration\u002F02.repos\u002F2.detectors",{"title":1882,"path":1883,"stem":1884},"Workspaces","\u002Freference\u002Fconfiguration\u002Frepos\u002Fworkspaces","5.reference\u002F03.configuration\u002F02.repos\u002F3.workspaces",{"title":1886,"path":1887,"stem":1888},"policy.yaml","\u002Freference\u002Fconfiguration\u002Fpolicy","5.reference\u002F03.configuration\u002F03.policy",{"title":1890,"path":1891,"stem":1892},"Library and chains","\u002Freference\u002Fconfiguration\u002Flibrary-and-chains","5.reference\u002F03.configuration\u002F04.library-and-chains",{"title":1894,"path":1895,"stem":1896},"access.yaml","\u002Freference\u002Fconfiguration\u002Faccess","5.reference\u002F03.configuration\u002F06.access",{"title":1898,"path":1899,"stem":1900},"intake.yaml","\u002Freference\u002Fconfiguration\u002Fintake","5.reference\u002F03.configuration\u002F07.intake",{"title":1902,"path":1903,"stem":1904},"notify.yaml","\u002Freference\u002Fconfiguration\u002Fnotify","5.reference\u002F03.configuration\u002F08.notify",{"title":1906,"path":1907,"stem":1908},"theme.yaml","\u002Freference\u002Fconfiguration\u002Ftheme","5.reference\u002F03.configuration\u002F09.theme",{"title":1910,"path":1911,"stem":1912,"children":1913},"Sandboxed workers","\u002Freference\u002Fconfiguration\u002Fsandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002Findex",[1914,1915,1919,1923,1925,1929,1933,1935,1936],{"title":1492,"path":1911,"stem":1912},{"title":1916,"path":1917,"stem":1918},"Resource limits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fresource-limits","5.reference\u002F03.configuration\u002F10.sandbox\u002F1.resource-limits",{"title":1920,"path":1921,"stem":1922},"Callbacks from a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcallbacks","5.reference\u002F03.configuration\u002F10.sandbox\u002F2.callbacks",{"title":239,"path":238,"stem":1924},"5.reference\u002F03.configuration\u002F10.sandbox\u002F3.network-policy",{"title":1926,"path":1927,"stem":1928},"Credentials","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcredentials","5.reference\u002F03.configuration\u002F10.sandbox\u002F4.credentials",{"title":1930,"path":1931,"stem":1932},"Kits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fkits","5.reference\u002F03.configuration\u002F10.sandbox\u002F5.kits",{"title":292,"path":291,"stem":1934},"5.reference\u002F03.configuration\u002F10.sandbox\u002F6.sandbox-yaml",{"title":1476,"path":1477,"stem":1478},{"title":5,"path":1470,"stem":1472},{"title":1481,"path":1482,"stem":1483},{"title":1939,"path":1940,"stem":1941},"Add-ons and collections","\u002Freference\u002Fconfiguration\u002Faddons","5.reference\u002F03.configuration\u002F12.addons",{"title":1943,"path":1944,"stem":1945},"Repo libraries","\u002Freference\u002Fconfiguration\u002Frepo-libraries","5.reference\u002F03.configuration\u002F13.repo-libraries",{"title":1947,"path":1948,"stem":1949},"update.yaml","\u002Freference\u002Fconfiguration\u002Fupdate","5.reference\u002F03.configuration\u002F14.update",{"title":1951,"path":1952,"stem":1953},"workers.yaml","\u002Freference\u002Fconfiguration\u002Fworkers","5.reference\u002F03.configuration\u002F15.workers",{"title":1955,"path":655,"stem":1956},"forges.yaml","5.reference\u002F03.configuration\u002F16.forges",{"title":1958,"path":1959,"stem":1960,"children":1961},"Chain file keys","\u002Freference\u002Fchain-nodes","5.reference\u002F04.chain-nodes\u002Findex",[1962,1963,1967,1971,1975,1979,1983,1987,1991,1995],{"title":1492,"path":1959,"stem":1960},{"title":1964,"path":1965,"stem":1966},"The shipped chains","\u002Freference\u002Fchain-nodes\u002Fshipped-chains","5.reference\u002F04.chain-nodes\u002F1.shipped-chains",{"title":1968,"path":1969,"stem":1970},"Subprocess tasks","\u002Freference\u002Fchain-nodes\u002Fsubprocess-tasks","5.reference\u002F04.chain-nodes\u002F2.subprocess-tasks",{"title":1972,"path":1973,"stem":1974},"Fix loop and judge","\u002Freference\u002Fchain-nodes\u002Ffix-loop","5.reference\u002F04.chain-nodes\u002F3.fix-loop",{"title":1976,"path":1977,"stem":1978},"Result file","\u002Freference\u002Fchain-nodes\u002Fresult-file","5.reference\u002F04.chain-nodes\u002F4.result-file",{"title":1980,"path":1981,"stem":1982},"Merge queue and train drops","\u002Freference\u002Fchain-nodes\u002Fmerge-queue-drops","5.reference\u002F04.chain-nodes\u002F5.merge-queue-drops",{"title":1984,"path":1985,"stem":1986},"What the final review approves","\u002Freference\u002Fchain-nodes\u002Ffinal-review-approval","5.reference\u002F04.chain-nodes\u002F6.final-review-approval",{"title":1988,"path":1989,"stem":1990},"Waiting for a pipeline by ID","\u002Freference\u002Fchain-nodes\u002Fwait-for-a-pipeline","5.reference\u002F04.chain-nodes\u002F7.wait-for-a-pipeline",{"title":1992,"path":1993,"stem":1994},"read_only","\u002Freference\u002Fchain-nodes\u002Fread-only","5.reference\u002F04.chain-nodes\u002F8.read-only",{"title":1996,"path":1997,"stem":1998},"Step outputs","\u002Freference\u002Fchain-nodes\u002Fstep-outputs","5.reference\u002F04.chain-nodes\u002F9.step-outputs",{"title":2000,"path":2001,"stem":2002,"children":2003},"Agent harnesses","\u002Freference\u002Fharnesses","5.reference\u002F05.harnesses\u002Findex",[2004,2005,2009,2013,2017,2021],{"title":1492,"path":2001,"stem":2002},{"title":2006,"path":2007,"stem":2008},"Unattended runs","\u002Freference\u002Fharnesses\u002Funattended-runs","5.reference\u002F05.harnesses\u002F2.unattended-runs",{"title":2010,"path":2011,"stem":2012},"Agent profiles","\u002Freference\u002Fharnesses\u002Fagent-profiles","5.reference\u002F05.harnesses\u002F3.agent-profiles",{"title":2014,"path":2015,"stem":2016},"Harness definition files and harness profiles","\u002Freference\u002Fharnesses\u002Fharness-files","5.reference\u002F05.harnesses\u002F4.harness-files",{"title":2018,"path":2019,"stem":2020},"Fallback and escalation","\u002Freference\u002Fharnesses\u002Ffallback-and-escalation","5.reference\u002F05.harnesses\u002F5.fallback-and-escalation",{"title":2022,"path":2023,"stem":2024},"Cost reporting","\u002Freference\u002Fharnesses\u002Fcost-reporting","5.reference\u002F05.harnesses\u002F6.cost-reporting",{"title":2026,"path":2027,"stem":2028},"Permission gate","\u002Freference\u002Fpermissions","5.reference\u002F06.permissions",{"title":2030,"path":2031,"stem":2032},"Inbound triggers","\u002Freference\u002Ftriggers","5.reference\u002F07.triggers",{"title":2034,"path":2035,"stem":2036,"children":2037},"HTTP API","\u002Freference\u002Fhttp-api","5.reference\u002F08.http-api\u002Findex",[2038,2039,2043,2047],{"title":1492,"path":2035,"stem":2036},{"title":2040,"path":2041,"stem":2042},"Filing, reading and deciding work items","\u002Freference\u002Fhttp-api\u002Fwork-items","5.reference\u002F08.http-api\u002F2.work-items",{"title":2044,"path":2045,"stem":2046},"The work item object","\u002Freference\u002Fhttp-api\u002Fwork-item-object","5.reference\u002F08.http-api\u002F4.work-item-object",{"title":2048,"path":2049,"stem":2050},"Connecting a repo","\u002Freference\u002Fhttp-api\u002Fconnect-a-repo","5.reference\u002F08.http-api\u002F5.connect-a-repo",{"title":2052,"path":2053,"stem":2054},"MCP tools","\u002Freference\u002Fmcp-tools","5.reference\u002F09.mcp-tools",{"title":2056,"path":2057,"stem":2058},"Events","\u002Freference\u002Fevents","5.reference\u002F10.events",{"title":2060,"path":2061,"stem":2062},"VS Code extension","\u002Freference\u002Fvscode-extension","5.reference\u002F11.vscode-extension",{"title":2064,"path":2065,"stem":2066},"Kraft Lite reference","\u002Freference\u002Fkraft-lite","5.reference\u002F12.kraft-lite",{"title":2068,"path":2069,"stem":2070,"children":2071},"Project","\u002Fproject","6.project",[2072,2074,2078,2082,2086,2090,2094,2098,2102,2106],{"title":1492,"path":2069,"stem":2073},"6.project\u002Findex",{"title":2075,"path":2076,"stem":2077},"Security","\u002Fproject\u002Fsecurity","6.project\u002F1.security",{"title":2079,"path":2080,"stem":2081},"Security in depth","\u002Fproject\u002Fsecurity-in-depth","6.project\u002F1.security-in-depth",{"title":2083,"path":2084,"stem":2085},"Data and privacy","\u002Fproject\u002Fdata-and-privacy","6.project\u002F2.data-and-privacy",{"title":2087,"path":2088,"stem":2089},"Unreleased","\u002Fproject\u002Funreleased","6.project\u002F3.unreleased",{"title":2091,"path":2092,"stem":2093},"What's new","\u002Fproject\u002Fwhats-new","6.project\u002F3.whats-new",{"title":2095,"path":2096,"stem":2097},"Status and support","\u002Fproject\u002Fstatus-and-support","6.project\u002F4.status-and-support",{"title":2099,"path":2100,"stem":2101},"Architecture","\u002Fproject\u002Farchitecture","6.project\u002F5.architecture",{"title":2103,"path":2104,"stem":2105},"Source map","\u002Fproject\u002Fsource-map","6.project\u002F6.source-map",{"title":2107,"path":2108,"stem":2109},"Contributing","\u002Fproject\u002Fcontributing","6.project\u002F7.contributing",1796240522708,"0565eaa1-20e2-4e9c-b830-6822a3524be2"]