Skip to content

The Sentinel, gate by gate

The Sentinel is the set of synchronous hooks kj harden installs in your agent’s harness. Every message it prints starts with karajan sentinel: and ends with a link to its section on this page. The host harness may wrap it in its own words (Claude Code says “stop says”, “PreToolUse hook error”) — the body is Karajan’s.

Two rules apply to everything below. First: the Sentinel blocks before the action runs — nothing is undone, because nothing happened. Second: there is no escape (ADR 0015). Each message names the remedy, and a decision that belongs to the project has its own channel outside the session (see escapes).

You don’t run the Sentinel; it watches your agent’s session. When Claude Code (or Codex, Antigravity, the VS Code assistant) is about to do something the project forbids — commit straight to main, edit a supervisor file, run a mutating command that can’t be checked — the action is stopped in the moment, and the reason appears in the session with a link to the exact rule below:

karajan sentinel: card-first — work needs a tracked card before it starts …
— doc: https://karajancode.com/docs/guides/sentinel/#card-first

Your agent reads that, does the sanctioned thing instead (branch first, ask you, use kj worktree), and moves on. You didn’t configure anything — kj harden put the watchman there once, and it explains itself every time it acts.

The Sentinel is a set of synchronous git/harness hooks. See where they live, and watch one fire:

Terminal window
cat .karajan/hooks/pre-commit # the generated guards (do not hand-edit — kj harden owns them)
git commit -m "wip" # on main → the pre-commit hook rejects it: direct commits on main are not allowed

Every block is written to .karajan/traces/denials.jsonl in the gate’s own words; only policy denies are also sealed in the decision log that kj policy report reads.

Work needs a tracked card before it starts. Editing sources on the base branch, or on a branch whose name references no card, is blocked. Create the card (kj hu add), move it to running, and work on a feat/<CARD-ID>-description branch. No escape (ADR 0015).

A card planned with a tier (kj hu add --tier) is written by kj code, in a clean context and on the model of its tier, as kj run did before 5.0: it costs fewer tokens than writing it in your agent’s long conversation. The first time in a session that your agent goes to write that card’s code itself, the Sentinel stops it once with the command: kj code --card <id> --brief, then kj review --staged, and kj code --card <id> --retry --brief if the review rejects it. If your agent tries again, the write passes and the decision is recorded in the session. Tests stay out, so your agent can write them first. A card planned without a tier is never stopped, nor is kj code’s own coder. kj hu tier <id> says a card’s tier.

The RAG must have answered about a zone before the session touches it (ADR 0010). Every kj_rag_query / kj rag query of the session leaves a ledger of the sources it returned; editing a source none of them returned (nor a sibling in its directory) is blocked with the query to run. A new file only needs the session to have consulted at all. Tests and docs stay out, like card-first, and so does JSON or TOML config; YAML, shell, Terraform, a Dockerfile or a Makefile count as source. A file the index cannot hold, or an empty index, is decided by the gate itself. A file the index could hold but does not, the gate indexes on the spot (the hook runs outside the host sandbox, where the embedder is reachable) and then asks for the query; when kj cannot index it, the gate says why and the command to run from your terminal. No escape (ADR 0015).

Each write belongs to the lane (worktree) of the path it touches (ADR 0034). One session can work several lanes of the same repo: a write in another lane is allowed while no other live session holds it, and the session then holds that lane. A lane another live session is in, or wrote in during the last 30 minutes, is refused with the reason; two sessions never write in the same lane. Each write is judged with its own lane’s branch, card and supervisor; reading is free. There is no escape (ADR 0015): a deliberate crossing is your user’s, in their own terminal.

In Bash the guard blocks what it sees for certain: a literal path into a held lane, wherever it is in a command that does not only read. Relative paths count from the session’s directory: a cd is not followed. What it cannot read (any cd or pushd in such a command, a command substitution, a shell expansion, a quoted path with spaces, a redirection to a variable) is denied while another live session holds any other lane of the repo, and the message names the held lanes (the first two, and how many more). With none held there is nothing to protect: it passes with a warning, said once per session and kind and recorded in .karajan/traces/warnings.jsonl (ADR 0071): the kind and a short hash of the command, never its text. If the lanes cannot be read, it is denied. Where the host sandbox denies .kj/worktrees, the sandbox confines Bash and this guard does not judge it. A command whose every part is proven to only read is never refused nor warned by this guard, whoever holds a lane: plain readers, cd with a literal target, sed -n, for loops, $( ) that only reads, and variables as arguments of plain readers, with output only to the session, /dev/null or another descriptor. No git command is on that list: git runs what its config names.

The identity lock (ADR 0005): gh and its per-account wrappers must run under the account this clone declares (kj identity set), and the pre-commit and pre-push hooks check the email of every commit. Born from a real incident: one unswitched gh call posted as a client account on a public repo. There is no escape (ADR 0015): switch the account, not the lock. More in Governance.

A merged card must be moved in the tracker before anything else advances: a commit, a new PR or another merge is denied, and the turn cannot end. git push is not read (ADR 0015). Clear it with the real tracker call (update_card via MCP, or kj hu move). An epic and a card split across PRs are decided by the gate. No escape (ADR 0015).

gh pr merge waits for the PR’s CI. Before the merge runs, kj merge-gate reads the PR’s checks, taking the latest run of each one. A check still running or red stops the merge, and the message names it. A PR with no check yet stops it too when the repo has workflows, because its CI has not started. gh pr merge --auto passes, since GitHub itself waits for the checks.

Where .karajan/policy.yml exists, it is evaluated on every Bash command and every file edit (Write, Edit, MultiEdit, NotebookEdit). A deny names its rule and reason. Security-tagged rules have NO escape and NO arbitration. The rest have no escape here either (ADR 0015): a rule that misfires is fixed in .karajan/policy.yml by your user, through a PR. An exception granted with kj policy grant lifts a rule only at the commit gate, never in this check.

The rules you wrote in your MD files (CLAUDE.md, AGENTS.md, your feedback memories), compiled into .karajan/rules.yml, are checked before every tool call, MCP tools included (ADR 0016). A rule is a condition over the call: which tool, with which arguments. “Sprints last one day” stops being something the agent has to remember: a call that creates a week-long sprint is denied before it runs, and the message names the rule, the MD it comes from and what it says. kj rules list shows every rule found in your MD files, kj rules eval evaluates one call, and kj rules test runs each rule’s own examples.

kj rules coverage crosses every rule of your MD files with rules.yml and says what each one became: a deterministic gate, a judgment one, out of scope (a rule about how the agent thinks or answers, declared with its reason, has no tool call to gate) or nothing yet. A rule with no gate is listed by name, and so is a stale one: when you reword a rule in its MD, what was compiled for the old wording no longer matches any text. --strict exits 1 while either remains. You do not have to remember to run it: once a project has a rules.yml, every session start tells the agent how many rules have no gate and how many are stale.

Nobody writes rules.yml by hand, and the agent does not write it at all. kj rules compile writes the proposal’s skeleton to .karajan/rules.proposed.yml (what is already approved, plus one entry per rule with no gate, with its id and its literal text) and hands your agent the format, with no model called by kj: the agent knows its own tools, so it is the one that can name them. It gives each entry its kind and its condition; kj rules check proves the result (every rule is one of your MD files, cites its literal text and passes its own examples), and kj rules approve shows you each rule next to what it was compiled to, and which rules leave, before it installs anything. Approving is a human act with the same layers as the supervisor’s seal: no agent session runs it, and what lands is exactly what you were shown.

The approved rules live in two files, and where a rule goes is decided by where it is written, not by the proposal. A rule written in a file of the project (CLAUDE.md, AGENTS.md) goes to .karajan/rules.yml, which travels with the repo: the team inherits it. A rule written only in your private files (your global CLAUDE.md, your feedback memories) goes to .karajan/rules.local.yml, which git ignores, so approving your own rules never publishes your own words. Both govern as one rule set, and a session can write neither.

The agent that writes the proposal is the one the rules will watch, so it does not get to call its own work good. Three things stand between a weak compilation and your approval. kj rules review has a different AI read the proposal rule by rule, asking whether each compilation is as strong as its text; its verdict is tied to the proposal’s exact content, and without it kj rules approve does not offer the proposal at all. A rejection does not decide for you: the proposal is still offered, but its objections are the first thing you read, and you decide with them in front of you. Then, what you read is ordered by what can hurt: first the rules that lose or change force against what you had approved, then the ones with no effective gate (judgment and out of scope block nothing), then the gates.

There is no escape. If a rule is compiled wrong, your user fixes .karajan/rules.yml, which a session cannot edit. A rules.yml that cannot be evaluated denies every call until it is fixed, because rules silently off would be every call allowed. With no rules.yml, this gate does not exist.

The Steward’s sweep can declare the project state bad enough that starting new work is blocked (security invariants, persistently red main — only where the project opted in). Remedy what the report names. There is no escape (ADR 0015): if work must go on, your user sets method_gates.steward back to inform.

With method_gates.claims: block (the default is off), a hard datum that this turn’s own outputs DENY is a proven hallucination: in a PR body passed with --body-file to gh pr create or gh pr edit, the PR is refused before it exists, and in the final message, the turn cannot end. Verify the datum or mark it unverified. Detail: kj claims check.

kj release check must be green before the package is released (npm publish, gh release create), and the guard recognizes the verb wherever the flags sit (npm --prefix x publish is a publish). A deploy is not read (KJC-BUG-0373): deploying database rules or a site is not a release of the package, and gating it kept an open database from being closed.

Since a deploy is not read, a red check no longer blocks the deploy that repairs it. remedied_by still exists, but only kj release check --for-command <cmd> uses it: the Sentinel asks the check only about npm publish and gh release create, which no remedy covers. An item declares its remedy like this:

release_check:
items:
- name: the deployed landing shows the version as current
command: curl -sf https://example.com/docs/ | grep -q 'v{version}'
remedied_by: firebase deploy

Run by hand, kj release check --for-command "firebase deploy" lifts that item, keeps it red in the report because the fact has not changed, and says which item it lifted. Any other red check still fails. A package publication is never excused: npm publish and gh release create are irreversible, so no declared remedy covers them, and there is no escape (ADR 0015): what the check names is repaired first.

The review runs in the commit hook, so a flag that skips the hook skips the verdict, the policy and the privacy scan with it. git commit --no-verify is denied, and so is any abbreviation git would accept (--no-ver, -n, a short-flag cluster carrying it). Naming core.hooksPath is denied too, in any of git’s doors to it (-c, config, --config-env, GIT_CONFIG_KEY_n, GIT_CONFIG_PARAMETERS), because moving that key switches off every hook at once. Even reading it, or a grep or a message that only mentions it: the key is looked for anywhere in the command, in any case, because exempting reads invited slipping a change in behind one. Staging everything (git add -A, git add ., git add -u) or staging the agent’s runtime files (.claude locks, .kj/, the local identity, the Sentinel’s state) is denied too: stage by name.

If the hook is broken, fixing it is the answer. There is no escape (ADR 0015): if the commit really has to go in without it, your user runs it in their own terminal. The --no-verify that kj harden --commit uses internally is not affected, because it never goes through a tool call.

In a repo that has turned the review gate on (.karajan/review-gate committed), a git commit needs an APPROVED cross-AI verdict for the exact diff that is staged. The pre-commit hook checks it, and the Sentinel checks it too before the command runs. So a repo whose hook does not run the gate, or a review piped into tail that hid its failure, can no longer let a commit through.

  • No verdict, or a REJECTED one: the commit is denied. Run kj review --staged on its own (not piped) and commit after it approves.
  • Staging and committing in one command (git add … && git commit, git commit -a, git commit <paths>) is denied as well: the verdict is checked against what is already staged, and that command changes it on the way. Stage by name, review, then commit.

The Sentinel’s own files (.karajan/harness, hooks) are read-only from inside a session — a supervisor a session can edit is no supervisor. Only the human dismantles or regenerates it (kj harden), outside the session. Tampering is detected against what the installed kj itself would write.

A Bash command that names them is denied unless the name is only text: the quoted title or body of gh pr|issue|release create|edit|comment|review, a commit message, or a heredoc with a quoted delimiter (<<'EOF') that such a command reads from stdin (--body-file -, -F -). So a PR can describe a seal. Anything the Sentinel cannot prove is only text is still denied: a redirection, a chain, an unquoted heredoc (it expands $( )), or a heredoc that repeats its delimiter before the end.

A command that only reads may name them too, and, in a repo with .karajan/policy.yml, the governance config the policy guards (.karajan/policy.yml, .karajan/rules.yml, .github/workflows/*.yml): every simple command in it is a known reader (cat, head, tail, grep, ls, wc, diff, cmp, stat, jq, sha1sum, sha256sum or md5sum; never git, whose reads can run what its config names), and its output goes to the session, /dev/null or another descriptor. A redirection to a file, a substitution, a variable, a heredoc or any other program is judged by what it names, as before.

When they differ, kj tells three cases apart. If the file is exactly what kj harden wrote (it records a sha256 per file in .karajan/harness/installed.json) and no human sealed it, kj has simply moved on: it regenerates the file itself and says so in one line. If a human sealed it, it is left alone and you are told that advancing it is theirs. Anything else was changed after installation, and that blocks. Forging the record gains nothing: the only thing it enables is restoring the file from the installed kj.

Human acts (sealing with kj harden --commit, enrolling the phone) are refused by the commands themselves when they run inside an agent session: the environment, the terminal, the process ancestry and a code typed back. The Sentinel does not read their text, so a card title or a commit message that mentions them passes; the phone key file itself stays off-limits to the session.

kj harden --commit makes one commit, and that commit is the human’s act: no AI reviews it. The verdicts check (kj review --verify-pr) and kj review --publish-pr accept it without a verdict when it holds .karajan/supervisor-provenance.json and every file it touches is one the seal vouches for, byte for byte at the head of the PR:

  • a seal signed by the roster’s phone or passkey vouches for the exact bytes of every file it lists, a workflow of your own included;
  • a seal with no signature (no roster, or the critical level when no signature was asked) vouches only for what kj recomputes itself: the hooks the seal re-rendered, a workflow whose only change is its kj pin, and the shared host settings without kj’s hooks.

Anything the seal does not vouch for makes it an ordinary commit that needs a verdict; and in a repo with .karajan/policy.yml, an agent’s review of a diff that touches the supervisor’s files is refused. So a change of your own to a workflow enters with a signed seal (at critical, a seal that changes the governance config asks the phone), and anything else goes in its own PR. A PR made only of seal commits needs no review.

kj review --publish-pr reads the seal from the working tree: run it from a checkout at the head of the PR. In CI the checkout is the PR’s merge, so the check sees it.

The check judges with the kj pinned in the PR’s own kj-verdicts.yml, because it runs on pull_request; a repo that ships kj itself judges with the kj of its base branch.

If a seal PR still cannot pass, your user merges it with gh pr merge --admin and signs the reason with kj main-guard-except <pr> --why "<reason>", a human act signed on the phone. The signature goes on the PR as a comment and covers its head commit, so a later push voids it. It is read by kj main-guard, the audit of each push to main. kj harden does not install a workflow for that audit: the exception only counts in a repo that runs kj main-guard on pushes to main (karajan-code runs it from its own kj-main-guard.yml).

A session does not discard changes it did not make. git checkout -- <path>, git checkout <path>, git checkout ., git checkout -f, git restore (of the working tree), git reset --hard, git switch --discard-changes and any git clean that is not a dry run are denied when what they would throw away includes a file the session did not own. A file is the session’s own when it was clean, or did not exist, the first time the session touched it. An edit on top of your uncommitted work leaves the file yours, not the session’s. For git clean the Sentinel asks git itself what would go (git clean -n with the same options), so ignored files under -x and nested repositories under -ff count too. git stash drop and git stash clear are always denied: saved work may not be the session’s. A git discard nested in $( ), backticks, eval, xargs or sh -c cannot be read, so it is denied too: run it as a simple command.

There is no escape, because it is data loss. The remedy never loses anything: git stash push -- <files> puts the change aside, recoverable, and the session tells you. Born from a real loss: a coder decided a .gitignore line “was probably made by the system” and ran git checkout .gitignore over the user’s change (issue #1886).

Inside the repo, files are written through the Edit and Write tools only, because that is the path every other gate guards (card-first, rag-first, no whole-file overwrite). A Bash command that writes a repo file is denied (where kj harden --sandbox is on and commands cannot leave the sandbox, this gate steps aside and the sandbox guards the supervisor, kj.config.yml and .ragignore instead): redirections (>, >>, >|, 2>), tee, sed -i, perl -i, cp, mv, install, ln, dd of=, truncate and touch, also behind env, sudo or command. A target the Sentinel cannot read ($VAR, backticks) is denied too. An inline script (node -e, python -c…) that names a write API is denied as well. Outside the repo (/tmp, a scratchpad, /dev/null) Bash stays free, and git mv renames inside it. The limit, said plainly: a program you run can write files (a script, a build), and a hook that reads commands cannot stop that; only a sandbox can. This gate closes the shell’s own ways of writing, which is where an agent routes around Edit/Write. Born from a real bypass: blocked by rag-first, a coder wrote the same change with cat > heredocs, including a whole-file overwrite (issue #1886).

An agent reads its rules when it starts and loses them when the context is compacted. A hook does not forget. After certain actions the Sentinel adds the rule that comes next to the agent’s context. It never blocks. Each reminder is given at most once every 25 actions:

  • after git add, the commit message limits (100 characters, lowercase subject, no attribution) and commitlint;
  • after a gh without an account switch, to name the account in the same command;
  • after gh pr create, to split an unfinished card before merging;
  • after syncing main, to create the next branch now.

Each one comes after the action that precedes the rule’s action, not before it, because a reminder before a tool call would have to approve that call and skip your permission prompt.

After a compaction or a resume, the Sentinel gives the agent back the project’s critical rules, short, with the state of its session: branch, card, and cards merged but not yet moved. The first rule is that Karajan governs: an agent does not change policies, gate settings or exclusions to get past a gate. A new session gets nothing extra, since CLAUDE.md already brings the rules.

Karajan governs, and it is obeyed. A session does not edit the rules that govern it: .karajan/policy.yml, .karajan/kj.config.yml, .karajan/rules.yml and .karajan/rules.local.yml (the rules of the MD files compiled into gates, ADR 0016 and 0017), .karajan/security-level.json and any .ragignore belong to the human, like the supervisor’s own files, and Edit or Write on them is denied even with the Sentinel switched off. One kj command that changes governance is not a human act, so a session can still run it: kj policy add --yes writes policy.yml (ADR 0012). kj policy grant, which records an exception, is a human act. If a gate looks wrong, the remedy is to propose the change to the user or file it with kj report-issue, never to loosen the rule. Every deny of the PreToolUse gate ends with the same line saying so.

In a team where only some people use kj, the Sentinel lives with whoever installed it. Its hooks are written to .claude/settings.local.json, which is personal and ignored by git through the clone’s own exclude file. A teammate who uses Claude Code without kj is never blocked. If an older kj put the hooks in the versioned .claude/settings.json, kj harden moves out only kj’s entries and leaves the rest. The git hooks in .karajan/hooks only run in a clone where someone ran kj harden, and they also run the hooks the repo already had in .git/hooks.

Everyone does see the CI workflows: a commit that credits an AI tool is rejected, the lint and tests of the stack run, and a change to the workflows or the policy needs a seal from someone with kj.

If a gate fails while it checks a command (a file it cannot read, a state it cannot use), the command stops, with the error in the message. Only commands that change something stop this way: Bash and edits. Reading tools go on. A state file that holds valid JSON of the wrong type reads as empty, like a corrupt one. When kj cannot answer the release check, the publish stops too, the same as the merge gate.

The turn cannot end while the method is red: merged cards not yet moved, sources edited on the base branch or on a branch that names no card, sources edited without touching a test, a supervisor changed outside kj harden, or, with method_gates.claims: block, a datum the turn’s own outputs deny. It does not run the suite or look at reviews. After 3 blocks in a row it steps aside and records it, except for a changed supervisor, which always blocks. Every lane the session wrote in is judged with its own branch and tree, and its violations name the lane. Resolve the listed violations. State: kj sentinel status.

ADR 0059: with the method green, the turn still does not end while the cards this session created or started are pending or running. The agent may stop only by naming its stop (Me paro por <reason> or Stopping because <reason>) for a reason kj can check in the session: an open handoff (kj handoff), a question to you that closes its message, or a background task it started that has not finished. A reason such as “the session is long” holds the turn and names the next card. A card the agent cannot do goes to failed or skipped. The board kj keeps on this machine has the last word: a card it has closed, or that someone else holds, does not hold the turn. After 3 holds in a row the gate steps aside and records it. method_gates.continuation: block (default), warn or off.

What only the user can do (a publish, a seal) is registered with kj handoff add, and the agent minds it so the user does not have to:

  • At the end of a turn, at most once every 30 minutes per lane, the turn is held once: the agent checks each pending handoff, closes with kj handoff done <id> the ones already done or no longer needed, and ends its message with the rest as its last lines, with the one step each needs. Work is never stopped for these.
  • A handoff registered with --blocking is one the agent cannot go on without. While it is pending, every Bash command but kj handoff and every file edit is denied (other tools, such as MCP calls, are not stopped): the agent stops and asks about that handoff alone, and closes it once the user did it or says to go on without it.

The Sentinel no longer reads git push (ADR 0015): what it checked is enforced where the agent cannot reach. The base branch is protected with the method’s required checks, the card and the tests are judged at commit by kj review, pre-push checks the identity of every commit it sends, and pending card moves keep the turn from ending (stop gate).

AI attribution is forbidden by a deterministic project rule — everywhere, with no escape. Three layers enforce it: the commit-msg hook rejects it in commit messages; the pre-commit hook scans the staged diff’s ADDED lines (changelog, docs, code comments — tool mentions stay legal, attribution does not); and the Sentinel scans every gh command that publishes text (PR/issue/release create, edit, comment, review), including the contents of --body-file/--notes-file — an unreadable file does not publish either. CI re-checks commits, PR body and title. Born from a real catch: 15 PR bodies shipped an attribution footer because only commit messages were scanned (KJC-BUG-0164).

ADR 0060: what a person signs on the phone depends on the project’s security level, in .karajan/security-level.json.

  • critical, the default. The phone signs only what changes who governs: enrolling a phone, lowering the level, loosening a gate, a policy grant, the main-guard exception and changing the panel. The other human acts (kj harden --commit, kj rules approve, kj hooks set, kj release approve) are confirmed at your terminal. A seal of what kj generates (hooks, harness, a workflow whose only change is the kj it pins) renews itself in kj harden. A seal that governs (the governance config, a deletion, any other workflow change) still asks the phone, and so does a seal the base branch’s CI would judge with a kj older than 5.27.1, so each repo’s first re-seal onto 5.27.1 or later is signed once.
  • max, the paranoid mode. Every human act is signed on the phone. kj security max turns it on, free; a repo whose record already says max keeps it.
  • normal. With no phone enrolled, every act, the critical ones included, is confirmed at the terminal; with one enrolled, the phone still signs each act. Lowering to it is a signed act.

kj security show says the level in force and where it comes from.

kj harden --sandbox turns on the Claude Code sandbox in .claude/settings.local.json where it can start on this machine. It denies writing the supervisor (hooks, harness, settings, kj.config.yml, .ragignore) and kj’s phone key, and lets out only kj’s state and package caches. It does not deny the lanes: the Sentinel’s cross-lane guard confines Bash there, so a session can work in its own lane. gh *, kj review * and kj worktree * run outside the sandbox, but only as a command of their own: inside && or ; they stay inside, and kj review then reaches neither Docker nor a running SonarQube. A dev server the agent starts is reachable from your browser on macOS (allowLocalBinding). On Linux the sandbox’s localhost is private, so a browser outside gets “connection refused”: start the server from your own terminal, or add that exact command to excludedCommands yourself.

The Sentinel reads the text of a Bash command, not what a script does. A script run by its path (node x.mjs, bash x.sh), any other interpreter and an npm script (npm run build) can write files, in another lane too, without it seeing them. The commit and push hooks, CI, the seal and the verdicts still hold. Only the host sandbox limits what a script writes: turn it on with kj harden --sandbox, and kj doctor (“Host sandbox”) says whether it is on or why it cannot start here. It limits writes to the project and denies the supervisor, but a session opened in the main checkout can still write the lanes inside it. Its frictions are the ones in sandbox: gh and kj review run outside it only as commands of their own (joined to others they stay inside, where kj review reaches neither Docker nor Sonar on localhost), and on Linux your browser does not see a server started inside.

An issue for karajan-code goes through kj report-issue, never through gh issue create by hand: the command sanitizes the report (no project code, paths or personal data) and checks it against the issues already open, so the same bug is not filed six times. The Sentinel denies a gh issue create whose --repo/-R names karajan-code and says the command to use; any other repository passes. Born from a real session that opened six issues by hand with kj installed and never hardened (KJC-BUG-0252).

There is none inside the session (ADR 0015): no gate reads a flag the agent can set. One thing sits outside that rule. Your user can switch the whole Sentinel off by starting the host with KJ_SENTINEL_OFF=1 in its environment; even then the supervisor’s files, the governance config, the phone key, AI attribution, issues for karajan-code and discarding changes the session did not make stay guarded. A dated exception to a rule that is not security is yours too: kj policy grant is a human act, typed in your terminal. Each decision that really is the project’s has its own channel, outside the session:

Case Channel
A rule that misfires your user fixes .karajan/policy.yml by PR
The Steward block must not stop work your user sets method_gates.steward to inform
A large PR is justified your user’s large-pr-justified label, judged in CI
A privacy false positive the allow list of ~/.karajan/privacy.yml
A crossing between lanes, or a skipped hook your user, in their own terminal
Switch the whole Sentinel off your user starts the host with KJ_SENTINEL_OFF=1

Karajan Code™ · AGPL-3.0