[{"data":1,"prerenderedAt":2229},["ShallowReactive",2],{"navigation_docs":3,"-reference-configuration-repo-libraries":639,"-reference-configuration-repo-libraries-surround":2224},[4,32,71,234,285,600],{"title":5,"path":6,"stem":7,"children":8},"Get started","\u002Fget-started","1.get-started",[9,12,16,20,24,28],{"title":10,"path":6,"stem":11},"Overview","1.get-started\u002Findex",{"title":13,"path":14,"stem":15},"Why Kraft","\u002Fget-started\u002Fwhy-kraft","1.get-started\u002F0.why-kraft",{"title":17,"path":18,"stem":19},"Install","\u002Fget-started\u002Finstall","1.get-started\u002F1.install",{"title":21,"path":22,"stem":23},"Your first work item","\u002Fget-started\u002Ffirst-work-item","1.get-started\u002F2.first-work-item",{"title":25,"path":26,"stem":27},"The real chain","\u002Fget-started\u002Fthe-real-chain","1.get-started\u002F3.the-real-chain",{"title":29,"path":30,"stem":31},"FAQ","\u002Fget-started\u002Ffaq","1.get-started\u002F4.faq",{"title":33,"path":34,"stem":35,"children":36},"Concepts","\u002Fconcepts","2.concepts",[37,39,43,47,51,55,59,63,67],{"title":10,"path":34,"stem":38},"2.concepts\u002Findex",{"title":40,"path":41,"stem":42},"How a work item runs","\u002Fconcepts\u002Fhow-a-work-item-runs","2.concepts\u002F1.how-a-work-item-runs",{"title":44,"path":45,"stem":46},"Caps and budgets","\u002Fconcepts\u002Fcaps-and-budgets","2.concepts\u002F2.caps-and-budgets",{"title":48,"path":49,"stem":50},"Why a permission gate","\u002Fconcepts\u002Fpermission-gate","2.concepts\u002F3.permission-gate",{"title":52,"path":53,"stem":54},"Vocabulary","\u002Fconcepts\u002Fvocabulary","2.concepts\u002F4.vocabulary",{"title":56,"path":57,"stem":58},"Where a step runs","\u002Fconcepts\u002Fwhere-a-step-runs","2.concepts\u002F5.where-a-step-runs",{"title":60,"path":61,"stem":62},"How review and CI waits settle","\u002Fconcepts\u002Fhow-review-and-ci-waits-settle","2.concepts\u002F6.how-review-and-ci-waits-settle",{"title":64,"path":65,"stem":66},"How test scopes run","\u002Fconcepts\u002Fhow-test-scopes-run","2.concepts\u002F7.how-test-scopes-run",{"title":68,"path":69,"stem":70},"How workers and machines behave","\u002Fconcepts\u002Fhow-workers-and-machines-behave","2.concepts\u002F8.how-workers-and-machines-behave",{"title":72,"path":73,"stem":74,"children":75},"Guides","\u002Fguides","3.guides",[76,78,120,146,168,230],{"title":10,"path":73,"stem":77},"3.guides\u002Findex",{"title":79,"path":80,"stem":81,"children":82},"Day to day","\u002Fguides\u002Fday-to-day","3.guides\u002F1.day-to-day\u002Findex",[83,84,88,92,96,100,104,108,112,116],{"title":10,"path":80,"stem":81},{"title":85,"path":86,"stem":87},"Split work into slices","\u002Fguides\u002Fday-to-day\u002Fsplit-work-into-slices","3.guides\u002F1.day-to-day\u002F1.split-work-into-slices",{"title":89,"path":90,"stem":91},"The setup wizard on first start","\u002Fguides\u002Fday-to-day\u002Ffirst-run","3.guides\u002F1.day-to-day\u002F2.first-run",{"title":93,"path":94,"stem":95},"File a work item","\u002Fguides\u002Fday-to-day\u002Ffile-a-work-item","3.guides\u002F1.day-to-day\u002F3.file-a-work-item",{"title":97,"path":98,"stem":99},"Use Kraft from your agent","\u002Fguides\u002Fday-to-day\u002Fagent-integration","3.guides\u002F1.day-to-day\u002F4.agent-integration",{"title":101,"path":102,"stem":103},"Reviewing a change","\u002Fguides\u002Fday-to-day\u002Freview-a-change","3.guides\u002F1.day-to-day\u002F5.review-a-change",{"title":105,"path":106,"stem":107},"Raise a cap on a stopped item","\u002Fguides\u002Fday-to-day\u002Fraise-a-cap","3.guides\u002F1.day-to-day\u002F6.raise-a-cap",{"title":109,"path":110,"stem":111},"Kraft for VS Code","\u002Fguides\u002Fday-to-day\u002Fvscode","3.guides\u002F1.day-to-day\u002F7.vscode",{"title":113,"path":114,"stem":115},"Reach the board from your phone","\u002Fguides\u002Fday-to-day\u002Fkraft-on-a-phone","3.guides\u002F1.day-to-day\u002F8.kraft-on-a-phone",{"title":117,"path":118,"stem":119},"Get notified when an item needs you","\u002Fguides\u002Fday-to-day\u002Fnotifications","3.guides\u002F1.day-to-day\u002F9.notifications",{"title":121,"path":122,"stem":123,"children":124},"Customize and automate","\u002Fguides\u002Fcustomize","3.guides\u002F2.customize\u002Findex",[125,126,130,134,138,142],{"title":10,"path":122,"stem":123},{"title":127,"path":128,"stem":129},"Write your own chain","\u002Fguides\u002Fcustomize\u002Fwrite-your-own-chain","3.guides\u002F2.customize\u002F1.write-your-own-chain",{"title":131,"path":132,"stem":133},"Add a security review or a gate reviewer","\u002Fguides\u002Fcustomize\u002Fadd-review-agents","3.guides\u002F2.customize\u002F2.add-review-agents",{"title":135,"path":136,"stem":137},"Schedule or webhook work","\u002Fguides\u002Fcustomize\u002Fschedule-and-webhook-work","3.guides\u002F2.customize\u002F3.schedule-and-webhook-work",{"title":139,"path":140,"stem":141},"Share chains with add-ons","\u002Fguides\u002Fcustomize\u002Fshare-chains-with-addons","3.guides\u002F2.customize\u002F4.share-chains-with-addons",{"title":143,"path":144,"stem":145},"Publish an add-on","\u002Fguides\u002Fcustomize\u002Fpublish-an-add-on","3.guides\u002F2.customize\u002F5.publish-an-add-on",{"title":147,"path":148,"stem":149,"children":150},"Agents and harnesses","\u002Fguides\u002Fharnesses","3.guides\u002F3.harnesses\u002Findex",[151,152,156,160,164],{"title":10,"path":148,"stem":149},{"title":153,"path":154,"stem":155},"Switch a task to another harness","\u002Fguides\u002Fharnesses\u002Fswitch-harness","3.guides\u002F3.harnesses\u002F1.switch-harness",{"title":157,"path":158,"stem":159},"Add or override a harness","\u002Fguides\u002Fharnesses\u002Fadding-a-harness","3.guides\u002F3.harnesses\u002F2.adding-a-harness",{"title":161,"path":162,"stem":163},"Build a worker Kit","\u002Fguides\u002Fharnesses\u002Fworker-kit","3.guides\u002F3.harnesses\u002F3.worker-kit",{"title":165,"path":166,"stem":167},"Give a worker its login","\u002Fguides\u002Fharnesses\u002Fgive-a-worker-its-login","3.guides\u002F3.harnesses\u002F4.give-a-worker-its-login",{"title":169,"path":170,"stem":171,"children":172},"Run the server","\u002Fguides\u002Frun","3.guides\u002F4.run\u002Findex",[173,174,178,182,186,190,194,198,202,206,210,214,218,222,226],{"title":10,"path":170,"stem":171},{"title":175,"path":176,"stem":177},"Remote access","\u002Fguides\u002Frun\u002Fremote-access","3.guides\u002F4.run\u002F01.remote-access",{"title":179,"path":180,"stem":181},"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":183,"path":184,"stem":185},"Restart Kraft without ending running steps","\u002Fguides\u002Frun\u002Frestart-kraft","3.guides\u002F4.run\u002F03.restart-kraft",{"title":187,"path":188,"stem":189},"Back up and restore the database","\u002Fguides\u002Frun\u002Fback-up-and-restore","3.guides\u002F4.run\u002F04.back-up-and-restore",{"title":191,"path":192,"stem":193},"Find the logs","\u002Fguides\u002Frun\u002Ffind-the-logs","3.guides\u002F4.run\u002F05.find-the-logs",{"title":195,"path":196,"stem":197},"Run Kraft as a service","\u002Fguides\u002Frun\u002Frun-as-a-service","3.guides\u002F4.run\u002F06.run-as-a-service",{"title":199,"path":200,"stem":201},"Upgrade Kraft","\u002Fguides\u002Frun\u002Fupgrade-kraft","3.guides\u002F4.run\u002F07.upgrade-kraft",{"title":203,"path":204,"stem":205},"Move onto kraft-default","\u002Fguides\u002Frun\u002Fupgrade-your-configuration","3.guides\u002F4.run\u002F08.upgrade-your-configuration",{"title":207,"path":208,"stem":209},"Coming from 1.4","\u002Fguides\u002Frun\u002Fcoming-from-1-4","3.guides\u002F4.run\u002F09.coming-from-1-4",{"title":211,"path":212,"stem":213},"Free disk space","\u002Fguides\u002Frun\u002Ffree-disk-space","3.guides\u002F4.run\u002F10.free-disk-space",{"title":215,"path":216,"stem":217},"Rotate the token","\u002Fguides\u002Frun\u002Frotate-the-token","3.guides\u002F4.run\u002F11.rotate-the-token",{"title":219,"path":220,"stem":221},"Run items in your own checkout","\u002Fguides\u002Frun\u002Frun-items-in-place","3.guides\u002F4.run\u002F12.run-items-in-place",{"title":223,"path":224,"stem":225},"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":227,"path":228,"stem":229},"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":231,"path":232,"stem":233},"Kraft Lite","\u002Fguides\u002Fkraft-lite","3.guides\u002F5.kraft-lite",{"title":235,"path":236,"stem":237,"children":238},"Troubleshooting","\u002Ftroubleshooting","4.troubleshooting",[239,241,245,249,253,257,261,265,269,273,277,281],{"title":10,"path":236,"stem":240},"4.troubleshooting\u002Findex",{"title":242,"path":243,"stem":244},"Failed tasks and fix loops","\u002Ftroubleshooting\u002Ffailed-tasks-and-fix-loops","4.troubleshooting\u002F01.failed-tasks-and-fix-loops",{"title":246,"path":247,"stem":248},"Launch and setup stops","\u002Ftroubleshooting\u002Flaunch-and-setup-stops","4.troubleshooting\u002F02.launch-and-setup-stops",{"title":250,"path":251,"stem":252},"Caps, budgets and waits","\u002Ftroubleshooting\u002Fcaps-budgets-and-waits","4.troubleshooting\u002F03.caps-budgets-and-waits",{"title":254,"path":255,"stem":256},"Forge stops","\u002Ftroubleshooting\u002Fforge-stops","4.troubleshooting\u002F04.forge-stops",{"title":258,"path":259,"stem":260},"Worktree and git stops","\u002Ftroubleshooting\u002Fworktree-and-git-stops","4.troubleshooting\u002F05.worktree-and-git-stops",{"title":262,"path":263,"stem":264},"Sandbox and Kit stops","\u002Ftroubleshooting\u002Fsandbox-and-kit-stops","4.troubleshooting\u002F06.sandbox-and-kit-stops",{"title":266,"path":267,"stem":268},"A kind: os sandbox is refused","\u002Ftroubleshooting\u002Fos-sandbox-refusals","4.troubleshooting\u002F07.os-sandbox-refusals",{"title":270,"path":271,"stem":272},"Doctor failures","\u002Ftroubleshooting\u002Fdoctor-failures","4.troubleshooting\u002F08.doctor-failures",{"title":274,"path":275,"stem":276},"Starting and reaching Kraft","\u002Ftroubleshooting\u002Fstarting-and-reaching-kraft","4.troubleshooting\u002F09.starting-and-reaching-kraft",{"title":278,"path":279,"stem":280},"Add-on problems","\u002Ftroubleshooting\u002Faddon-problems","4.troubleshooting\u002F10.addon-problems",{"title":282,"path":283,"stem":284},"Add-on validation messages","\u002Ftroubleshooting\u002Faddon-validate-messages","4.troubleshooting\u002F11.addon-validate-messages",{"title":286,"path":287,"stem":288,"children":289},"Reference","\u002Freference","5.reference",[290,292,338,372,376,380,490,532,558,562,566,584,588,592,596],{"title":10,"path":287,"stem":291},"5.reference\u002Findex",{"title":293,"path":294,"stem":295,"children":296},"Web UI","\u002Freference\u002Fweb-ui","5.reference\u002F00.web-ui\u002Findex",[297,298,302,306,310,314,318,322,326,330,334],{"title":10,"path":294,"stem":295},{"title":299,"path":300,"stem":301},"Sidebar, search and keyboard","\u002Freference\u002Fweb-ui\u002Fsidebar-search-and-keyboard","5.reference\u002F00.web-ui\u002F0.sidebar-search-and-keyboard",{"title":303,"path":304,"stem":305},"The board","\u002Freference\u002Fweb-ui\u002Fboard","5.reference\u002F00.web-ui\u002F1.board",{"title":307,"path":308,"stem":309},"An item's page","\u002Freference\u002Fweb-ui\u002Fitem-page","5.reference\u002F00.web-ui\u002F2.item-page",{"title":311,"path":312,"stem":313},"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":315,"path":316,"stem":317},"Config before an item starts","\u002Freference\u002Fweb-ui\u002Fconfig-before-start","5.reference\u002F00.web-ui\u002F4.config-before-start",{"title":319,"path":320,"stem":321},"The review page","\u002Freference\u002Fweb-ui\u002Freview-page","5.reference\u002F00.web-ui\u002F5.review-page",{"title":323,"path":324,"stem":325},"Templates","\u002Freference\u002Fweb-ui\u002Ftemplates","5.reference\u002F00.web-ui\u002F6.templates",{"title":327,"path":328,"stem":329},"Settings","\u002Freference\u002Fweb-ui\u002Fsettings","5.reference\u002F00.web-ui\u002F7.settings",{"title":331,"path":332,"stem":333},"Analytics","\u002Freference\u002Fweb-ui\u002Fanalytics","5.reference\u002F00.web-ui\u002F8.analytics",{"title":335,"path":336,"stem":337},"The board on a phone","\u002Freference\u002Fweb-ui\u002Fon-a-phone","5.reference\u002F00.web-ui\u002F9.on-a-phone",{"title":339,"path":340,"stem":341,"children":342},"CLI","\u002Freference\u002Fcli","5.reference\u002F01.cli\u002Findex",[343,344,348,352,356,360,364,368],{"title":10,"path":340,"stem":341},{"title":345,"path":346,"stem":347},"Item verbs","\u002Freference\u002Fcli\u002Fitem","5.reference\u002F01.cli\u002F2.item",{"title":349,"path":350,"stem":351},"View verbs","\u002Freference\u002Fcli\u002Fview","5.reference\u002F01.cli\u002F3.view",{"title":353,"path":354,"stem":355},"Repo verbs","\u002Freference\u002Fcli\u002Frepo","5.reference\u002F01.cli\u002F4.repo",{"title":357,"path":358,"stem":359},"Server verbs","\u002Freference\u002Fcli\u002Fserver","5.reference\u002F01.cli\u002F5.server",{"title":361,"path":362,"stem":363},"Add-on verbs","\u002Freference\u002Fcli\u002Faddon","5.reference\u002F01.cli\u002F6.addon",{"title":365,"path":366,"stem":367},"Machine verbs","\u002Freference\u002Fcli\u002Fworker","5.reference\u002F01.cli\u002F7.worker",{"title":369,"path":370,"stem":371},"Forge verbs","\u002Freference\u002Fcli\u002Fforge","5.reference\u002F01.cli\u002F8.forge",{"title":373,"path":374,"stem":375},"Console","\u002Freference\u002Fconsole","5.reference\u002F01.console",{"title":377,"path":378,"stem":379},"Work item statuses","\u002Freference\u002Fstatuses","5.reference\u002F02.statuses",{"title":381,"path":382,"stem":383,"children":384},"Configuration","\u002Freference\u002Fconfiguration","5.reference\u002F03.configuration\u002Findex",[385,386,404,408,412,416,420,424,428,466,470,474,478,482,486],{"title":10,"path":382,"stem":383},{"title":387,"path":388,"stem":389,"children":390},"repos.yaml","\u002Freference\u002Fconfiguration\u002Frepos","5.reference\u002F03.configuration\u002F02.repos\u002Findex",[391,392,396,400],{"title":10,"path":388,"stem":389},{"title":393,"path":394,"stem":395},"How connect proposes commands","\u002Freference\u002Fconfiguration\u002Frepos\u002Fconnect-proposals","5.reference\u002F03.configuration\u002F02.repos\u002F1.connect-proposals",{"title":397,"path":398,"stem":399},"detectors.yaml","\u002Freference\u002Fconfiguration\u002Frepos\u002Fdetectors","5.reference\u002F03.configuration\u002F02.repos\u002F2.detectors",{"title":401,"path":402,"stem":403},"Workspaces","\u002Freference\u002Fconfiguration\u002Frepos\u002Fworkspaces","5.reference\u002F03.configuration\u002F02.repos\u002F3.workspaces",{"title":405,"path":406,"stem":407},"policy.yaml","\u002Freference\u002Fconfiguration\u002Fpolicy","5.reference\u002F03.configuration\u002F03.policy",{"title":409,"path":410,"stem":411},"Library and chains","\u002Freference\u002Fconfiguration\u002Flibrary-and-chains","5.reference\u002F03.configuration\u002F04.library-and-chains",{"title":413,"path":414,"stem":415},"access.yaml","\u002Freference\u002Fconfiguration\u002Faccess","5.reference\u002F03.configuration\u002F06.access",{"title":417,"path":418,"stem":419},"intake.yaml","\u002Freference\u002Fconfiguration\u002Fintake","5.reference\u002F03.configuration\u002F07.intake",{"title":421,"path":422,"stem":423},"notify.yaml","\u002Freference\u002Fconfiguration\u002Fnotify","5.reference\u002F03.configuration\u002F08.notify",{"title":425,"path":426,"stem":427},"theme.yaml","\u002Freference\u002Fconfiguration\u002Ftheme","5.reference\u002F03.configuration\u002F09.theme",{"title":429,"path":430,"stem":431,"children":432},"Sandboxed workers","\u002Freference\u002Fconfiguration\u002Fsandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002Findex",[433,434,438,442,446,450,454,458,462],{"title":10,"path":430,"stem":431},{"title":435,"path":436,"stem":437},"Resource limits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fresource-limits","5.reference\u002F03.configuration\u002F10.sandbox\u002F1.resource-limits",{"title":439,"path":440,"stem":441},"Callbacks from a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcallbacks","5.reference\u002F03.configuration\u002F10.sandbox\u002F2.callbacks",{"title":443,"path":444,"stem":445},"Network policy","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fnetwork-policy","5.reference\u002F03.configuration\u002F10.sandbox\u002F3.network-policy",{"title":447,"path":448,"stem":449},"Credentials","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fcredentials","5.reference\u002F03.configuration\u002F10.sandbox\u002F4.credentials",{"title":451,"path":452,"stem":453},"Kits","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fkits","5.reference\u002F03.configuration\u002F10.sandbox\u002F5.kits",{"title":455,"path":456,"stem":457},"sandbox.yaml","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fsandbox-yaml","5.reference\u002F03.configuration\u002F10.sandbox\u002F6.sandbox-yaml",{"title":459,"path":460,"stem":461},"Git in a sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fgit-in-a-sandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002F7.git-in-a-sandbox",{"title":463,"path":464,"stem":465},"The OS sandbox","\u002Freference\u002Fconfiguration\u002Fsandbox\u002Fos-sandbox","5.reference\u002F03.configuration\u002F10.sandbox\u002F8.os-sandbox",{"title":467,"path":468,"stem":469},"Environment variables","\u002Freference\u002Fconfiguration\u002Fenvironment-variables","5.reference\u002F03.configuration\u002F11.environment-variables",{"title":471,"path":472,"stem":473},"Add-ons and collections","\u002Freference\u002Fconfiguration\u002Faddons","5.reference\u002F03.configuration\u002F12.addons",{"title":475,"path":476,"stem":477},"Repo libraries","\u002Freference\u002Fconfiguration\u002Frepo-libraries","5.reference\u002F03.configuration\u002F13.repo-libraries",{"title":479,"path":480,"stem":481},"update.yaml","\u002Freference\u002Fconfiguration\u002Fupdate","5.reference\u002F03.configuration\u002F14.update",{"title":483,"path":484,"stem":485},"workers.yaml","\u002Freference\u002Fconfiguration\u002Fworkers","5.reference\u002F03.configuration\u002F15.workers",{"title":487,"path":488,"stem":489},"forges.yaml","\u002Freference\u002Fconfiguration\u002Fforges","5.reference\u002F03.configuration\u002F16.forges",{"title":491,"path":492,"stem":493,"children":494},"Chain file keys","\u002Freference\u002Fchain-nodes","5.reference\u002F04.chain-nodes\u002Findex",[495,496,500,504,508,512,516,520,524,528],{"title":10,"path":492,"stem":493},{"title":497,"path":498,"stem":499},"The shipped chains","\u002Freference\u002Fchain-nodes\u002Fshipped-chains","5.reference\u002F04.chain-nodes\u002F1.shipped-chains",{"title":501,"path":502,"stem":503},"Subprocess tasks","\u002Freference\u002Fchain-nodes\u002Fsubprocess-tasks","5.reference\u002F04.chain-nodes\u002F2.subprocess-tasks",{"title":505,"path":506,"stem":507},"Fix loop and judge","\u002Freference\u002Fchain-nodes\u002Ffix-loop","5.reference\u002F04.chain-nodes\u002F3.fix-loop",{"title":509,"path":510,"stem":511},"Result file","\u002Freference\u002Fchain-nodes\u002Fresult-file","5.reference\u002F04.chain-nodes\u002F4.result-file",{"title":513,"path":514,"stem":515},"Merge queue and train drops","\u002Freference\u002Fchain-nodes\u002Fmerge-queue-drops","5.reference\u002F04.chain-nodes\u002F5.merge-queue-drops",{"title":517,"path":518,"stem":519},"What the final review approves","\u002Freference\u002Fchain-nodes\u002Ffinal-review-approval","5.reference\u002F04.chain-nodes\u002F6.final-review-approval",{"title":521,"path":522,"stem":523},"Waiting for a pipeline by ID","\u002Freference\u002Fchain-nodes\u002Fwait-for-a-pipeline","5.reference\u002F04.chain-nodes\u002F7.wait-for-a-pipeline",{"title":525,"path":526,"stem":527},"read_only","\u002Freference\u002Fchain-nodes\u002Fread-only","5.reference\u002F04.chain-nodes\u002F8.read-only",{"title":529,"path":530,"stem":531},"Step outputs","\u002Freference\u002Fchain-nodes\u002Fstep-outputs","5.reference\u002F04.chain-nodes\u002F9.step-outputs",{"title":533,"path":534,"stem":535,"children":536},"Agent harnesses","\u002Freference\u002Fharnesses","5.reference\u002F05.harnesses\u002Findex",[537,538,542,546,550,554],{"title":10,"path":534,"stem":535},{"title":539,"path":540,"stem":541},"Unattended runs","\u002Freference\u002Fharnesses\u002Funattended-runs","5.reference\u002F05.harnesses\u002F2.unattended-runs",{"title":543,"path":544,"stem":545},"Agent profiles","\u002Freference\u002Fharnesses\u002Fagent-profiles","5.reference\u002F05.harnesses\u002F3.agent-profiles",{"title":547,"path":548,"stem":549},"Harness definition files and harness profiles","\u002Freference\u002Fharnesses\u002Fharness-files","5.reference\u002F05.harnesses\u002F4.harness-files",{"title":551,"path":552,"stem":553},"Fallback and escalation","\u002Freference\u002Fharnesses\u002Ffallback-and-escalation","5.reference\u002F05.harnesses\u002F5.fallback-and-escalation",{"title":555,"path":556,"stem":557},"Cost reporting","\u002Freference\u002Fharnesses\u002Fcost-reporting","5.reference\u002F05.harnesses\u002F6.cost-reporting",{"title":559,"path":560,"stem":561},"Permission gate","\u002Freference\u002Fpermissions","5.reference\u002F06.permissions",{"title":563,"path":564,"stem":565},"Inbound triggers","\u002Freference\u002Ftriggers","5.reference\u002F07.triggers",{"title":567,"path":568,"stem":569,"children":570},"HTTP API","\u002Freference\u002Fhttp-api","5.reference\u002F08.http-api\u002Findex",[571,572,576,580],{"title":10,"path":568,"stem":569},{"title":573,"path":574,"stem":575},"Filing, reading and deciding work items","\u002Freference\u002Fhttp-api\u002Fwork-items","5.reference\u002F08.http-api\u002F2.work-items",{"title":577,"path":578,"stem":579},"The work item object","\u002Freference\u002Fhttp-api\u002Fwork-item-object","5.reference\u002F08.http-api\u002F4.work-item-object",{"title":581,"path":582,"stem":583},"Connecting a repo","\u002Freference\u002Fhttp-api\u002Fconnect-a-repo","5.reference\u002F08.http-api\u002F5.connect-a-repo",{"title":585,"path":586,"stem":587},"MCP tools","\u002Freference\u002Fmcp-tools","5.reference\u002F09.mcp-tools",{"title":589,"path":590,"stem":591},"Events","\u002Freference\u002Fevents","5.reference\u002F10.events",{"title":593,"path":594,"stem":595},"VS Code extension","\u002Freference\u002Fvscode-extension","5.reference\u002F11.vscode-extension",{"title":597,"path":598,"stem":599},"Kraft Lite reference","\u002Freference\u002Fkraft-lite","5.reference\u002F12.kraft-lite",{"title":601,"path":602,"stem":603,"children":604},"Project","\u002Fproject","6.project",[605,607,611,615,619,623,627,631,635],{"title":10,"path":602,"stem":606},"6.project\u002Findex",{"title":608,"path":609,"stem":610},"Security","\u002Fproject\u002Fsecurity","6.project\u002F1.security",{"title":612,"path":613,"stem":614},"Security in depth","\u002Fproject\u002Fsecurity-in-depth","6.project\u002F1.security-in-depth",{"title":616,"path":617,"stem":618},"Data and privacy","\u002Fproject\u002Fdata-and-privacy","6.project\u002F2.data-and-privacy",{"title":620,"path":621,"stem":622},"What's new","\u002Fproject\u002Fwhats-new","6.project\u002F3.whats-new",{"title":624,"path":625,"stem":626},"Status and support","\u002Fproject\u002Fstatus-and-support","6.project\u002F4.status-and-support",{"title":628,"path":629,"stem":630},"Architecture","\u002Fproject\u002Farchitecture","6.project\u002F5.architecture",{"title":632,"path":633,"stem":634},"Source map","\u002Fproject\u002Fsource-map","6.project\u002F6.source-map",{"title":636,"path":637,"stem":638},"Contributing","\u002Fproject\u002Fcontributing","6.project\u002F7.contributing",{"id":640,"title":475,"body":641,"description":2217,"extension":2218,"links":2219,"meta":2220,"navigation":2221,"path":476,"seo":2222,"stem":477,"__hash__":2223},"docs\u002F5.reference\u002F03.configuration\u002F13.repo-libraries.md",{"type":642,"value":643,"toc":2199},"minimark",[644,651,674,685,690,730,736,834,843,850,929,933,949,1024,1033,1056,1059,1065,1100,1112,1119,1147,1171,1190,1196,1199,1203,1228,1232,1235,1257,1280,1284,1289,1299,1330,1363,1414,1418,1421,1459,1472,1479,1483,1488,1510,1536,1539,1542,1558,1586,1589,1625,1639,1707,1710,1713,1775,1782,1798,1807,1811,1814,1835,1846,1906,1912,1929,2032,2110,2116,2120,2131,2134,2142,2146,2161,2173,2177,2195],[645,646,647],"p",{},[648,649,650],"em",{},"Added in 2.1",[645,652,653,654,658,659,663,664,669,670,673],{},"A ",[655,656,657],"strong",{},"repo library"," is the chains, library components, skills and agent profiles a connected repository keeps in ",[660,661,662],"code",{},".kraft\u002F"," on its default branch. Every instance that connects the repository is offered them, and loads them only for that repository's own items. There is no ",[665,666,668],"a",{"href":667},"\u002Fconcepts\u002Fvocabulary#collection","collection"," to add and no add-on to install, and the repository's own ",[660,671,672],{},"id"," is the namespace.",[645,675,676,677,680,681,684],{},"A repo library holds what a ",[665,678,679],{"href":472},"Kraft add-on"," holds, under the same limits, in a lighter shape: no manifest and one library per repository. ",[665,682,139],{"href":683},"\u002Fguides\u002Fcustomize\u002Fpublish-an-add-on#or-share-from-the-repository-itself"," walks through it.",[686,687,689],"h2",{"id":688},"the-layout","The layout",[691,692,698],"pre",{"className":693,"code":695,"language":696,"meta":697},[694],"language-text","my-repo\u002F\n  .kraft\u002F\n    library.yaml\n    profiles.yaml\n    chains\u002Fdefault.yaml\n    chains\u002Fhotfix.yaml\n    skills\u002Frelease-notes\u002FSKILL.md\n","text","",[660,699,700,706,710,714,718,722,726],{"__ignoreMap":697},[701,702,705],"span",{"className":703},[704],"line","my-repo\u002F\n",[701,707,709],{"className":708},[704],"  .kraft\u002F\n",[701,711,713],{"className":712},[704],"    library.yaml\n",[701,715,717],{"className":716},[704],"    profiles.yaml\n",[701,719,721],{"className":720},[704],"    chains\u002Fdefault.yaml\n",[701,723,725],{"className":724},[704],"    chains\u002Fhotfix.yaml\n",[701,727,729],{"className":728},[704],"    skills\u002Frelease-notes\u002FSKILL.md\n",[645,731,732,733,735],{},"These four things sit directly in ",[660,734,662],{},", each optional:",[737,738,739,752],"table",{},[740,741,742],"thead",{},[743,744,745,749],"tr",{},[746,747,748],"th",{},"Path",[746,750,751],{},"Holds",[753,754,755,789,807,824],"tbody",{},[743,756,757,763],{},[758,759,760],"td",{},[660,761,762],{},"library.yaml",[758,764,765,766,769,770,769,773,776,777,780,781,784,785,788],{},"The ",[660,767,768],{},"tasks",", ",[660,771,772],{},"steps",[660,774,775],{},"nodes"," and ",[660,778,779],{},"steering"," sections, as in ",[665,782,783],{"href":410},"the local file",", and ",[660,786,787],{},"addons",", the add-ons whose chains this library's chains extend.",[743,790,791,796],{},[758,792,793],{},[660,794,795],{},"profiles.yaml",[758,797,653,798,801,802,806],{},[660,799,800],{},"profiles:"," section of ",[665,803,805],{"href":804},"\u002Freference\u002Fharnesses\u002Fagent-profiles#define-an-agent-profile","agent profiles",".",[743,808,809,814],{},[758,810,811],{},[660,812,813],{},"chains\u002F\u003Cname>.yaml",[758,815,816,817,819,820,823],{},"One chain per file. The chain is named by its ",[660,818,672],{},", or by ",[660,821,822],{},"\u003Cname>"," when it has none.",[743,825,826,831],{},[758,827,828],{},[660,829,830],{},"skills\u002F\u003Cname>\u002FSKILL.md",[758,832,833],{},"One method per directory.",[645,835,653,836,838,839,842],{},[660,837,662],{}," with none of them isn't a repo library. A repository that only holds ",[660,840,841],{},".kraft\u002Fcollection.json"," is a collection and is unaffected, and one repository may be both.",[645,844,845,846,849],{},"An add-on's ",[660,847,848],{},"addon.json"," is derived, never written:",[737,851,852,862],{},[740,853,854],{},[743,855,856,859],{},[746,857,858],{},"Add-on field",[746,860,861],{},"Repo library",[753,863,864,881,891,905,919],{},[743,865,866,872],{},[758,867,868,871],{},[660,869,870],{},"name",", namespace",[758,873,874,875,877,878,880],{},"The repository's ",[660,876,672],{}," in ",[660,879,387],{},". There is no alias.",[743,882,883,888],{},[758,884,885],{},[660,886,887],{},"version",[758,889,890],{},"The first 12 hex digits of the digest, wherever a version is shown. A change is a different digest.",[743,892,893,898],{},[758,894,895],{},[660,896,897],{},"requires.harnesses",[758,899,900,901,904],{},"Every ",[660,902,903],{},"harness:"," its tasks and agent profile fallbacks name.",[743,906,907,912],{},[758,908,909],{},[660,910,911],{},"requires.profiles",[758,913,914,915,918],{},"Every bare ",[660,916,917],{},"profile:"," its tasks name.",[743,920,921,926],{},[758,922,923],{},[660,924,925],{},"requires.kraft",[758,927,928],{},"None. A file this Kraft can't read fails the check.",[686,930,932],{"id":931},"names","Names",[645,934,935,936,939,940,943,944,948],{},"Outside the files, everything is ",[660,937,938],{},"\u003Crepo-id>:\u003Cname>",", such as ",[660,941,942],{},"my-repo:hotfix",", and it resolves only where ",[665,945,947],{"href":946},"#who-can-name-it","Who can name it"," says. The repository ID differs between machines, so no file writes it. Inside the files, references resolve as in an add-on:",[737,950,951,964],{},[740,952,953],{},[743,954,955,958,961],{},[746,956,957],{},"Key",[746,959,960],{},"A bare name means",[746,962,963],{},"Qualified",[753,965,966,994,1011],{},[743,967,968,978,981],{},[758,969,970,769,973,769,975],{},[660,971,972],{},"extends",[660,974,779],{},[660,976,977],{},"skill",[758,979,980],{},"The library's own declaration.",[758,982,983,986,987,989,990,993],{},[660,984,985],{},"library:\u003Cname>"," only. A ",[660,988,977],{}," may also name ",[660,991,992],{},"kraft:"," or another tool's plugin.",[743,995,996,1001,1004],{},[758,997,998],{},[660,999,1000],{},"profile",[758,1002,1003],{},"The instance's agent profile.",[758,1005,1006,1008,1009,806],{},[660,1007,985],{},", for a profile in its ",[660,1010,795],{},[743,1012,1013,1018,1021],{},[758,1014,1015],{},[660,1016,1017],{},"harness",[758,1019,1020],{},"The instance's harness profile.",[758,1022,1023],{},"Never qualified.",[645,1025,1026,1027,784,1029,1032],{},"Any other qualifier is refused, the repository's own ID included. A connected repository's ID is a reserved namespace from connect onward, even before its library is accepted: an add-on or another repo library may not name it in a ",[660,1028,977],{},[660,1030,1031],{},"\u003Crepo-id>:\u003Cskill>"," is never handed to an agent as another tool's plugin.",[645,1034,1035,1036,1039,1040,1043,1044,1046,1047,1049,1050,1052,1053,1055],{},"Accepting is refused when the ID is ",[660,1037,1038],{},"kraft",", is an add-on's namespace (one a pending ",[660,1041,1042],{},"as:"," would take included), or is longer than 64 characters. The message says to set another ",[660,1045,672],{}," on the entry in ",[660,1048,387],{},". Accepting writes an ",[660,1051,672],{}," when the entry has none, made from its name, skipping one that is taken, ",[660,1054,1038],{},", or an add-on's namespace.",[686,1057,947],{"id":1058},"who-can-name-it",[645,1060,1061,1062,1064],{},"A repo library is the repository's own business. ",[660,1063,938],{}," resolves only for:",[1066,1067,1068,1076,1087],"ul",{},[1069,1070,1071,1072,1075],"li",{},"a work item filed in that repository. For a ",[665,1073,1074],{"href":402},"workspace"," item that is the root; a member's library isn't reachable from it.",[1069,1077,1078,1079,1081,1082,776,1085,806],{},"that repository's own entry in ",[660,1080,387],{},": its ",[660,1083,1084],{},"default_chain",[660,1086,779],{},[1069,1088,1089,1090,1092,1093,1095,1096,1099],{},"an ",[660,1091,417],{}," schedule, or a pre-2.0 ",[660,1094,405],{}," trigger, whose ",[660,1097,1098],{},"repo"," is that repository.",[645,1101,1102,1103,776,1105,769,1108,1111],{},"Everywhere else it is refused. That covers another repository's entry, your own ",[660,1104,762],{},[660,1106,1107],{},"chains\u002F",[660,1109,1110],{},"harnesses.yaml"," fallbacks, a chain revision's added node, and copying a chain or component into your library.",[645,1113,1114,1115,1118],{},"Every refusal says ",[660,1116,1117],{},"visible only to items in my-repo",", in one of these forms:",[1066,1120,1121,1127,1133],{},[1069,1122,1123,1124,806],{},"A reference in a file: ",[660,1125,1126],{},"my-repo:ship is in my-repo's repo library, visible only to items in my-repo",[1069,1128,1129,1130,806],{},"A copy: the same, followed by ",[660,1131,1132],{},"; edit it in that repository's .kraft\u002F",[1069,1134,1135,1136,1139,1140,1143,1144,806],{},"A door that resolves a chain, then checks which libraries it reads: ",[660,1137,1138],{},"it reads my-repo's repo library, visible only to items in my-repo",". Filing prints ",[660,1141,1142],{},"chain 'my-repo:ship': it reads ...",", and a chain revision's added node prints ",[660,1145,1146],{},"add: it reads ...",[645,1148,1149,1150,1153,1154,1156,1157,1162,1163,1166,1167,1170],{},"Each door refuses it before anything is written: filing, duplicating and switching an item's chain answer ",[660,1151,1152],{},"422",", a save of the file answers ",[660,1155,1152],{},", and auto-intake and a schedule skip it with a warning. A file edited by hand isn't enforced when it is read: ",[665,1158,1159],{"href":271},[660,1160,1161],{},"kraft admin doctor","'s ",[660,1164,1165],{},"repo libraries"," row and ",[660,1168,1169],{},"kraft admin templates lint"," report it until it is fixed. An item already filed with another repository's library finishes on its pinned version.",[645,1172,1173,1174,1177,1178,1181,1182,1185,1186,806],{},"A launch that reads another repository's skill or agent profile, a ",[660,1175,1176],{},"fallback:"," entry included, stops with ",[660,1179,1180],{},"my-repo's repo library is visible only to items in my-repo",". A connected ID with no accepted library stops with ",[660,1183,1184],{},"repository 'my-repo' has no accepted repo library",". A launch that reads neither runs, whatever your files name. See ",[665,1187,1189],{"href":1188},"\u002Ftroubleshooting\u002Flaunch-and-setup-stops#a-task-kraft-wouldnt-launch","A task Kraft wouldn't launch",[645,1191,1192,1193,1195],{},"An ID that is ",[660,1194,1038],{}," or an add-on's namespace, set by hand or minted before IDs skipped them, names no repo library and reserves nothing.",[645,1197,1198],{},"The first accept of a library is refused while something outside the repository already names its id: a reference in your own files, or an add-on's skill. Change those first. A later change is never refused for another file's reference.",[686,1200,1202],{"id":1201},"what-it-may-hold","What it may hold",[645,1204,1205,1206,1210,1211,1214,1215,1218,1219,1223,1224,806],{},"Exactly what an ",[665,1207,1209],{"href":1208},"\u002Freference\u002Fconfiguration\u002Faddons#what-an-add-on-may-set","add-on may hold",": limits and never permissions, no ",[660,1212,1213],{},"subprocess"," task, no ",[660,1216,1217],{},"harnesses"," section, no reference into an add-on or another repo library, and the same ",[665,1220,1222],{"href":1221},"\u002Freference\u002Fconfiguration\u002Faddons#size-and-content-limits","size and content limits",". Harness profiles stay per machine. The one exception: ",[665,1225,1227],{"href":1226},"#building-on-an-add-ons-chain","a chain may extend a listed add-on's chain",[686,1229,1231],{"id":1230},"where-it-is-read-from","Where it is read from",[645,1233,1234],{},"The server asks the remote which commit to trust, then reads that commit's files from the connected checkout's object store:",[1236,1237,1238,1244,1251],"ol",{},[1069,1239,1240,1243],{},[660,1241,1242],{},"git ls-remote --symref origin HEAD"," gives the default branch's name and commit. It runs in the checkout, with its git config and credentials.",[1069,1245,1246,1247,1250],{},"When the checkout lacks that commit, ",[660,1248,1249],{},"git fetch origin \u003Ccommit>"," fetches it.",[1069,1252,1253,1254,1256],{},"Kraft reads ",[660,1255,662],{}," from that commit as blobs.",[1066,1258,1259,1262,1265,1268,1275],{},[1069,1260,1261],{},"The checkout's branches, remote-tracking refs, working tree and worktrees are never read, so moving one changes nothing.",[1069,1263,1264],{},"The server does this, never the CLI, so a check works at connect exactly when it works later.",[1069,1266,1267],{},"A checkout that lacks the blobs, a partial clone, is refused with a message naming the commit. Nothing is fetched lazily.",[1069,1269,1270,1271,1274],{},"A repository with no ",[660,1272,1273],{},"origin"," has no repo library.",[1069,1276,765,1277,1279],{},[660,1278,1273],{}," URL is recorded with credentials removed.",[686,1281,1283],{"id":1282},"building-on-an-add-ons-chain","Building on an add-on's chain",[645,1285,1286],{},[648,1287,1288],{},"Added in 2.2",[645,1290,1291,1292,1295,1296,1298],{},"List the add-ons your chains build on in ",[660,1293,1294],{},".kraft\u002Flibrary.yaml",", by ID, and name each one in a chain's top-level ",[660,1297,972],{}," by its own name:",[691,1300,1304],{"className":1301,"code":1302,"language":1303,"meta":697,"style":697},"language-yaml shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark-high-contrast","# .kraft\u002Flibrary.yaml\naddons: [base@org]\n","yaml",[660,1305,1306,1313],{"__ignoreMap":697},[701,1307,1309],{"class":704,"line":1308},1,[701,1310,1312],{"class":1311},"sq92B","# .kraft\u002Flibrary.yaml\n",[701,1314,1316,1319,1323,1327],{"class":704,"line":1315},2,[701,1317,787],{"class":1318},"sb7M8",[701,1320,1322],{"class":1321},"s7iLA",": [",[701,1324,1326],{"class":1325},"semJd","base@org",[701,1328,1329],{"class":1321},"]\n",[691,1331,1333],{"className":1301,"code":1332,"language":1303,"meta":697,"style":697},"# .kraft\u002Fchains\u002Fship.yaml\nextends: base:default\nremove: [external_approval]\n",[660,1334,1335,1340,1350],{"__ignoreMap":697},[701,1336,1337],{"class":704,"line":1308},[701,1338,1339],{"class":1311},"# .kraft\u002Fchains\u002Fship.yaml\n",[701,1341,1342,1344,1347],{"class":704,"line":1315},[701,1343,972],{"class":1318},[701,1345,1346],{"class":1321},": ",[701,1348,1349],{"class":1325},"base:default\n",[701,1351,1353,1356,1358,1361],{"class":704,"line":1352},3,[701,1354,1355],{"class":1318},"remove",[701,1357,1322],{"class":1321},[701,1359,1360],{"class":1325},"external_approval",[701,1362,1329],{"class":1321},[1066,1364,1365,1374,1383,1393,1399,1408],{},[1069,1366,1367,1370,1371,1373],{},[655,1368,1369],{},"The name is the add-on's, not this machine's namespace."," Kraft maps it to whatever namespace the instance installed ",[660,1372,1326],{}," under, its alias included, so one file works everywhere.",[1069,1375,1376,1382],{},[655,1377,1378,1379,1381],{},"Only a chain's top-level ",[660,1380,972],{}," may name it."," A task, a step or a nested node still can't.",[1069,1384,1385,1392],{},[655,1386,1387,1388,1391],{},"A new entry in ",[660,1389,1390],{},"addons:"," is Reach."," It holds an automatic update for a person, since uninstalling or disabling that add-on is then refused.",[1069,1394,1395,1398],{},[655,1396,1397],{},"Accepting needs every listed add-on to load here."," Otherwise it is refused, naming the add-on and why. If one stops loading later, the chains through it stop resolving, with its reason. They never fall back to another add-on that holds the name.",[1069,1400,1401,1404,1405,1407],{},[655,1402,1403],{},"An update of the add-on never fails because of your chain."," If it would break the chain, the update waits for a person (auto-update holds it), and once taken, your repository's items refuse that chain until ",[660,1406,662],{}," is fixed.",[1069,1409,1410,1413],{},[655,1411,1412],{},"Uninstalling or disabling the add-on is refused"," while this library lists it.",[686,1415,1417],{"id":1416},"accepting","Accepting",[645,1419,1420],{},"A repo library isn't loaded until a person accepts it.",[1066,1422,1423,1429,1446,1452],{},[1069,1424,1425,1428],{},[660,1426,1427],{},"kraft repo connect",", run in a terminal, prints the review and asks whether to take it.",[1069,1430,1431,1434,1435,1438,1439,1442,1443,806],{},[660,1432,1433],{},"-y",", a connect with no terminal, ",[660,1436,1437],{},"--json",", the web UI and an agent's ",[660,1440,1441],{},"ensure_repo"," never ask. The library waits for ",[660,1444,1445],{},"kraft repo library",[1069,1447,1448,1449,806],{},"A library that was never accepted isn't loaded, and is no fault: health stays ",[660,1450,1451],{},"ok",[1069,1453,1454,1455,806],{},"After a first load is accepted at a prompt, Kraft asks once whether to take later text changes without asking, and says what that trusts. See ",[665,1456,1458],{"href":1457},"#automatic-updates","Automatic updates",[645,1460,1461,1462,1465,1466,1471],{},"The first review shows everything as new, names the remote URL and commit, and says so when the library's ",[660,1463,1464],{},"default"," chain becomes the chain new items in this repo run. ",[665,1467,1469],{"href":1468},"\u002Freference\u002Fcli\u002Frepo#repo-library",[660,1470,1445],{}," shows a review and takes it.",[645,1473,1474,1475,1478],{},"An accept is refused with a ",[660,1476,1477],{},"409"," and writes nothing when the remote or the lock changed since the review a person read.",[686,1480,1482],{"id":1481},"changes","Changes",[645,1484,1485,1486,806],{},"The server asks the remote about every accepted library after each start and once a day. A library nobody accepted isn't asked about, except when a person runs ",[660,1487,1445],{},[1066,1489,1490,1504,1507],{},[1069,1491,1492,1493,1496,1497,1500,1501,1503],{},"A change is reported as ",[655,1494,1495],{},"waiting",", and nothing is applied, unless the entry opted in to ",[665,1498,1499],{"href":1457},"automatic updates",". ",[660,1502,1445],{}," shows its review and takes it.",[1069,1505,1506],{},"The accepted version keeps serving, and health isn't degraded.",[1069,1508,1509],{},"A change is refused, and the accepted version kept, for the reasons an add-on update is: a broken content rule, a harness or profile the instance lacks, a chain that doesn't resolve, or a chain or reference of yours that would stop resolving.",[645,1511,1512,1513,1516,1517,1519,1520,1524,1525,1528,1529,1532,1533,806],{},"Each outcome is kept in ",[660,1514,1515],{},"run\u002Faddons\u002Fstatus.json"," beside the add-ons'. The ",[660,1518,1165],{}," row of ",[665,1521,1522],{"href":271},[660,1523,1161],{}," names a waiting or held change and a failed check. A library that was accepted and no longer loads is listed by ",[660,1526,1527],{},"GET \u002Fapi\u002Fhealth"," under ",[660,1530,1531],{},"invalid_templates"," as ",[660,1534,1535],{},"repo library \u003Cid>",[645,1537,1538],{},"One repo library or add-on change runs at a time.",[686,1540,1458],{"id":1541},"automatic-updates",[645,1543,1544,1545,1549,1550,1553,1554,1557],{},"A repository's entry in ",[665,1546,1547],{"href":388},[660,1548,387],{}," can set ",[660,1551,1552],{},"library_auto_update: true",", default ",[660,1555,1556],{},"false",", to take changes to its accepted repo library without a person when nothing but text changed. It is set in three ways:",[1066,1559,1560,1569,1575],{},[1069,1561,1562,1563,1565,1566,1568],{},"by answering yes to the question ",[660,1564,1427],{}," or ",[660,1567,1445],{}," asks once, in a terminal, after a first load is accepted;",[1069,1570,1571,1572,1574],{},"by editing ",[660,1573,387],{},";",[1069,1576,1577,1578,1581,1582,1585],{},"with ",[660,1579,1580],{},"PATCH \u002Fapi\u002Frepos",", which marks the entry ",[660,1583,1584],{},"managed: true"," as every such save does.",[645,1587,1588],{},"A change is applied unattended only when all three rules hold:",[1236,1590,1591,1594,1610],{},[1069,1592,1593],{},"The review has no Reach line.",[1069,1595,1596,1597,769,1600,769,1603,1565,1606,1609],{},"No chain differs other than in its ",[660,1598,1599],{},"prompt",[660,1601,1602],{},"message",[660,1604,1605],{},"description",[660,1607,1608],{},"icon",", and no chain is added or removed. A chain here is every one that resolves through the library, the library's own and yours.",[1069,1611,1612,1613,1616,1617,1620,1621,1624],{},"No changed skill or steering text is one that a gate's ",[660,1614,1615],{},"auto_review",", a fix loop's ",[660,1618,1619],{},"judge"," or an ",[660,1622,1623],{},"escalation"," names.",[645,1626,1627,1628,1631,1632,1565,1635,1638],{},"A change that fails rule 2 or 3 is ",[655,1629,1630],{},"held"," with the reason, such as ",[660,1633,1634],{},"chain my-repo:ship changes more than text",[660,1636,1637],{},"skill my-repo:verdict is read by a task that decides a gate",". A person may still take it: those reasons aren't Reach lines, and the review reads as it did.",[737,1640,1641,1651],{},[740,1642,1643],{},[743,1644,1645,1648],{},[746,1646,1647],{},"Outcome",[746,1649,1650],{},"Meaning",[753,1652,1653,1663,1672,1682,1693],{},[743,1654,1655,1660],{},[758,1656,1657],{},[660,1658,1659],{},"up to date",[758,1661,1662],{},"The remote's files are the accepted ones.",[743,1664,1665,1669],{},[758,1666,1667],{},[660,1668,1495],{},[758,1670,1671],{},"A change, or the remote no longer has a library, and the entry hasn't opted in. Nothing is applied.",[743,1673,1674,1679],{},[758,1675,1676],{},[660,1677,1678],{},"applied",[758,1680,1681],{},"The entry opted in and the change passed the three rules. It is loaded, and the server logs its review.",[743,1683,1684,1688],{},[758,1685,1686],{},[660,1687,1630],{},[758,1689,1690,1691,806],{},"The entry opted in and a Reach line or a rule above stopped the change. The message says why. Run ",[660,1692,1445],{},[743,1694,1695,1700],{},[758,1696,1697],{},[660,1698,1699],{},"failed",[758,1701,1702,1703,1706],{},"The check couldn't be made, the candidate was refused, or the lock was busy (",[660,1704,1705],{},"kind: busy","). The accepted version keeps loading.",[645,1708,1709],{},"The key is read again just before a change is applied, so clearing it during a slow check is honoured.",[645,1711,1712],{},"A repo library adds four Reach lines to a change of an already accepted one. Each holds an unattended apply:",[737,1714,1715,1725],{},[740,1716,1717],{},[743,1718,1719,1722],{},[746,1720,1721],{},"Line",[746,1723,1724],{},"When",[753,1726,1727,1737,1747,1765],{},[743,1728,1729,1734],{},[758,1730,1731],{},[660,1732,1733],{},"origin's URL changed: \u003Cwas> -> \u003Cnow>",[758,1735,1736],{},"The remote's URL isn't the one that was accepted.",[743,1738,1739,1744],{},[758,1740,1741],{},[660,1742,1743],{},"the default branch changed: \u003Cwas> -> \u003Cnow>",[758,1745,1746],{},"The remote's default branch isn't the one that was accepted.",[743,1748,1749,1754],{},[758,1750,1751],{},[660,1752,1753],{},"becomes the chain new items in this repo run: \u003Cid>:default",[758,1755,1756,1757,1759,1760,1762,1763,806],{},"The change adds a ",[660,1758,1464],{}," chain, and the entry's ",[660,1761,1084],{}," is unset or ",[660,1764,1464],{},[743,1766,1767,1772],{},[758,1768,1769],{},[660,1770,1771],{},"new items in this repo go back to the instance's default chain",[758,1773,1774],{},"The change removes it.",[645,1776,1777,1778,1781],{},"Two things differ from ",[665,1779,1780],{"href":472},"add-on auto-update",":",[1066,1783,1784,1790],{},[1069,1785,1786,1789],{},[655,1787,1788],{},"A repo library has no version."," Every merge to the default branch that changes the files is a candidate, which rule 2 is there to make safe.",[1069,1791,1792,1797],{},[655,1793,1794,1795],{},"A candidate whose files are the accepted ones is ",[660,1796,1659],{}," even from a moved URL or branch, and the lock keeps the old ones. The next change is then held on the URL or branch line until a person takes it, which rewrites the lock.",[645,1799,1800,1801,1803,1804,806],{},"A first load and a removed library always wait for a person. A remote that no longer has a library is reported ",[660,1802,1495],{}," and never dropped. Opting in trusts whoever can merge to the default branch with what the repository's agents are told: see ",[665,1805,608],{"href":1806},"\u002Fproject\u002Fsecurity-in-depth#repo-libraries",[686,1808,1810],{"id":1809},"the-default-chain","The default chain",[645,1812,1813],{},"An item filed with no chain runs, in order:",[1236,1815,1816,1824,1830],{},[1069,1817,1818,1819,1821,1822,1574],{},"the ",[660,1820,1084],{}," of the repository's entry, when it is set and isn't ",[660,1823,1464],{},[1069,1825,1826,1829],{},[660,1827,1828],{},"\u003Crepo-id>:default",", when the repository's library is loaded and has that chain;",[1069,1831,1832,1833,806],{},"the instance's ",[660,1834,1464],{},[645,1836,1837,1839,1840,1842,1843,1845],{},[660,1838,1464],{}," counts as unset because connecting through the API writes it into every entry. To keep the instance's own chain after accepting a library with a ",[660,1841,1464],{}," chain, name another chain in ",[660,1844,1084],{},", or decline the library.",[737,1847,1848,1858],{},[740,1849,1850],{},[743,1851,1852,1855],{},[746,1853,1854],{},"Caller",[746,1856,1857],{},"Behaviour",[753,1859,1860,1877,1887,1898],{},[743,1861,1862,1874],{},[758,1863,1864,769,1867,769,1870,1873],{},[660,1865,1866],{},"kraft item create",[660,1868,1869],{},"POST \u002Fapi\u002Fwork-items",[660,1871,1872],{},"POST \u002Fapi\u002Ftriggers",", auto-intake",[758,1875,1876],{},"Follow the order above. Another repository's library is refused.",[743,1878,1879,1884],{},[758,1880,1881,1882],{},"A cron schedule in ",[660,1883,417],{},[758,1885,1886],{},"Unchanged: it names its own chain.",[743,1888,1889,1892],{},[758,1890,1891],{},"Duplicating an item",[758,1893,1894,1895,1897],{},"The copy runs the chain the original ran. An item that ran the instance's ",[660,1896,1464],{}," stays on it.",[743,1899,1900,1903],{},[758,1901,1902],{},"Settings drafts",[758,1904,1905],{},"Show and count the chain step 2 would pick.",[686,1907,1909],{"id":1908},"repo-librarieslock",[660,1910,1911],{},"repo-libraries.lock",[645,1913,1914,1917,1918,1921,1922,1924,1925,1928],{},[660,1915,1916],{},"config\u002Frepo-libraries.lock"," records the accepted version of each repo library, keyed by repository ID. ",[660,1919,1920],{},"config\u002Faddons.lock"," isn't touched. Only ",[660,1923,1445],{}," and an ",[665,1926,1927],{"href":1457},"automatic update"," write it.",[691,1930,1932],{"className":1301,"code":1931,"filename":1916,"language":1303,"meta":697,"style":697},"# Written by `kraft repo library`. Do not edit.\nlock_version: 1\nrepos:\n  my-repo:\n    git: https:\u002F\u002Fgithub.com\u002Facme\u002Fmy-repo.git\n    branch: main\n    commit: f4a11422cc8377a6ae61353897431dafa72b8ef5\n    tree: de1b745c4020ff2d468c14451da2f28a5fb56207\n    digest: sha256:f915f6266d319e9c0bc2bb2483683d74f307839138258901919e7d071fd37da4\n    updated_at: '2026-10-11T13:23:58.690123Z'\n",[660,1933,1934,1939,1950,1958,1966,1977,1988,1999,2010,2021],{"__ignoreMap":697},[701,1935,1936],{"class":704,"line":1308},[701,1937,1938],{"class":1311},"# Written by `kraft repo library`. Do not edit.\n",[701,1940,1941,1944,1946],{"class":704,"line":1315},[701,1942,1943],{"class":1318},"lock_version",[701,1945,1346],{"class":1321},[701,1947,1949],{"class":1948},"ssYy9","1\n",[701,1951,1952,1955],{"class":704,"line":1352},[701,1953,1954],{"class":1318},"repos",[701,1956,1957],{"class":1321},":\n",[701,1959,1961,1964],{"class":704,"line":1960},4,[701,1962,1963],{"class":1318},"  my-repo",[701,1965,1957],{"class":1321},[701,1967,1969,1972,1974],{"class":704,"line":1968},5,[701,1970,1971],{"class":1318},"    git",[701,1973,1346],{"class":1321},[701,1975,1976],{"class":1325},"https:\u002F\u002Fgithub.com\u002Facme\u002Fmy-repo.git\n",[701,1978,1980,1983,1985],{"class":704,"line":1979},6,[701,1981,1982],{"class":1318},"    branch",[701,1984,1346],{"class":1321},[701,1986,1987],{"class":1325},"main\n",[701,1989,1991,1994,1996],{"class":704,"line":1990},7,[701,1992,1993],{"class":1318},"    commit",[701,1995,1346],{"class":1321},[701,1997,1998],{"class":1325},"f4a11422cc8377a6ae61353897431dafa72b8ef5\n",[701,2000,2002,2005,2007],{"class":704,"line":2001},8,[701,2003,2004],{"class":1318},"    tree",[701,2006,1346],{"class":1321},[701,2008,2009],{"class":1325},"de1b745c4020ff2d468c14451da2f28a5fb56207\n",[701,2011,2013,2016,2018],{"class":704,"line":2012},9,[701,2014,2015],{"class":1318},"    digest",[701,2017,1346],{"class":1321},[701,2019,2020],{"class":1325},"sha256:f915f6266d319e9c0bc2bb2483683d74f307839138258901919e7d071fd37da4\n",[701,2022,2024,2027,2029],{"class":704,"line":2023},10,[701,2025,2026],{"class":1318},"    updated_at",[701,2028,1346],{"class":1321},[701,2030,2031],{"class":1325},"'2026-10-11T13:23:58.690123Z'\n",[737,2033,2034,2043],{},[740,2035,2036],{},[743,2037,2038,2041],{},[746,2039,2040],{},"Field",[746,2042,1650],{},[753,2044,2045,2057,2067,2077,2090,2100],{},[743,2046,2047,2052],{},[758,2048,2049],{},[660,2050,2051],{},"git",[758,2053,2054,2056],{},[660,2055,1273],{},"'s URL when it was accepted, with credentials removed.",[743,2058,2059,2064],{},[758,2060,2061],{},[660,2062,2063],{},"branch",[758,2065,2066],{},"The remote's default branch then.",[743,2068,2069,2074],{},[758,2070,2071],{},[660,2072,2073],{},"commit",[758,2075,2076],{},"The commit of that branch that was read.",[743,2078,2079,2084],{},[758,2080,2081],{},[660,2082,2083],{},"tree",[758,2085,2086,2087,2089],{},"The git tree of ",[660,2088,662],{}," in that commit.",[743,2091,2092,2097],{},[758,2093,2094],{},[660,2095,2096],{},"digest",[758,2098,2099],{},"The digest of the library's files, derived manifest included.",[743,2101,2102,2107],{},[758,2103,2104],{},[660,2105,2106],{},"updated_at",[758,2108,2109],{},"When the entry was written.",[645,2111,2112,2113,2115],{},"An entry whose repository ID is no longer in ",[660,2114,387],{}," isn't loaded and is no fault. The next accept or disconnect drops it.",[686,2117,2119],{"id":2118},"work-items-restore-and-the-store","Work items, restore and the store",[645,2121,2122,2123,2126,2127,2130],{},"A work item records the repo library its chain resolved through as it does an add-on: ID (",[660,2124,2125],{},"library@repo:\u003Crepo-id>","), commit, tree, source (",[660,2128,2129],{},".\u002F.kraft",") and digest. It reads that version's skills and agent profiles until it ends.",[645,2132,2133],{},"A missing store is restored by fetching the commit into the connected checkout and extracting again. The files are kept only if their digest matches. A repository with open items can't be disconnected, so the checkout is there. When the commit is gone from the remote, the item stops as one with an unrestorable add-on does.",[645,2135,2136,2137,2141],{},"The extracted files sit in the content-addressed store add-ons use, and every file read from it is ",[665,2138,2140],{"href":2139},"\u002Freference\u002Fconfiguration\u002Faddons#the-digest","checked against its digest"," as an add-on's is.",[686,2143,2145],{"id":2144},"disconnecting","Disconnecting",[645,2147,2148,2151,2152,2154,2155,2157,2158,2160],{},[660,2149,2150],{},"kraft repo disconnect"," drops the lock entry. It is refused while local configuration names the namespace, and lists each reference, a valid one or one a hand edit left: the repository's own schedule in ",[660,2153,417],{},", a ",[660,2156,1084],{}," of another repository, or an ",[660,2159,972],{}," in your own chains. Running items finish on their pinned version.",[645,2162,2163,2164,2166,2167,2169,2170,806],{},"Saving a ",[660,2165,387],{}," that removes or renames the ",[660,2168,672],{}," of an accepted library is reported before it is applied: ",[660,2171,2172],{},"would leave repo library my-repo out: repository id 'my-repo' is no longer in repos.yaml",[686,2174,2176],{"id":2175},"related","Related",[1066,2178,2179,2184,2190],{},[1069,2180,2181,2183],{},[665,2182,471],{"href":472},": the same content, published through a collection.",[1069,2185,2186,1346,2188,806],{},[665,2187,353],{"href":354},[660,2189,1445],{},[1069,2191,2192,2194],{},[665,2193,608],{"href":1806},": what accepting trusts.",[2196,2197,2198],"style",{},"html pre.shiki code .sq92B, html code.shiki .sq92B{--shiki-light:#66707B;--shiki-default:#66707B;--shiki-dark:#BDC4CC}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 .ssYy9, html code.shiki .ssYy9{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#91CBFF}",{"title":697,"searchDepth":1315,"depth":1315,"links":2200},[2201,2202,2203,2204,2205,2206,2208,2209,2210,2211,2212,2214,2215,2216],{"id":688,"depth":1315,"text":689},{"id":931,"depth":1315,"text":932},{"id":1058,"depth":1315,"text":947},{"id":1201,"depth":1315,"text":1202},{"id":1230,"depth":1315,"text":1231},{"id":1282,"depth":1315,"text":2207},"Building on an add-​on's chain",{"id":1416,"depth":1315,"text":1417},{"id":1481,"depth":1315,"text":1482},{"id":1541,"depth":1315,"text":1458},{"id":1809,"depth":1315,"text":1810},{"id":1908,"depth":1315,"text":2213},"repo-​libraries.​lock",{"id":2118,"depth":1315,"text":2119},{"id":2144,"depth":1315,"text":2145},{"id":2175,"depth":1315,"text":2176},"A connected repository's .kraft\u002F folder as a library: its layout, names, where Kraft reads it from, how a person accepts it, automatic updates, the default chain, and repo-libraries.lock.","md",null,{},true,{"title":475,"description":2217},"YV941-u0P8ac-5rOiNvjAo7yZCAhevVQilJP5tgeYU8",[2225,2227],{"title":471,"path":472,"stem":473,"description":2226,"children":-1},"The files of a Kraft add-on and its collection, addons.yaml and addons.lock, the naming rules, what an add-on may set, and when an add-on loads, updates and is restored.",{"title":479,"path":480,"stem":481,"description":2228,"children":-1},"Every field in update.yaml: automatic updates, restarting when Kraft is free, the release channel and the hours Kraft may update in.",1795735393611]