Skip to main content

User guide · Chapter 9 of 13

The gate, reviews and approvals

How ODIN's gate checks each agent action, what it refuses, how code reviews and the Decision Audit work, and how approvals keep a person in charge.

On this page

Friday morning one of Acme's agents tries something it should not. This is where ODIN earns its keep.

What does the gate do?

Before each edit, commit or command in Claude Code, the ODIN plugin asks ODIN whether it may run. If the project has rule cards the agent has not read, the gate names them and the agent reads them first. Data leaving the company is refused. A message sent outside the company is held for a person to approve. If ODIN cannot be reached, the action goes ahead and you are told it was not checked.

What happens when an agent damages something?

ODIN's watch notices when an action empties a file or cuts a tracked file to almost nothing. Your administrators get an email, the miss appears on the Monitoring page, and ODIN learns a gate rule so the same action is stopped next time. The file can be restored from git.

How are code reviews done?

ODIN reviews merge requests on GitLab and GitHub against the project's rules, requirements and history. Each finding cites the rule it comes from, and findings are posted after a person approves them.

What is the ODIN engineering standard?

Every software project holds the same short set of engineering rules, and ODIN puts them there for you: code follows SOLID, each fact lives in one place (DRY), and a named design pattern is used only where it removes a real problem, never for its own sake. A software project is one whose sector, or whose company's sector, is software, or that a GitLab or GitHub source feeds. The rules appear in the project's record as accepted items marked as ODIN's own, so reviews and agents cite them. You can reword or reject any of them and ODIN will not put it back. If your project already had the same words waiting as a proposal, ODIN accepts that proposal instead of adding a second copy.

What is the Decision Audit?

A scored, explained judgement of a change or an idea: a merge request, a requirement, a deployment. It names its factors, how sure it is, and what would change its mind. Your team's feedback improves it.

What does ODIN do before my agent builds something new?

Before your agent chooses how to build something, it asks ODIN what the company has already found on that topic, and ODIN says what to do next, starting with whether the company already built it in another project. A finding is saved with its sources and proposed, and a person with approval rights accepts or rejects it in the console under Research; a finding past its look-again date is marked stale. When an agent is about to add a new dependency, ODIN asks first unless you kept a finding that day.

How does ODIN make my agent think before it recommends?

Say "Hey Odin, think this through: should we ...". Thinking is different from researching. Your agent states the real goal, lists options across every side of the question before judging any (doing nothing included), writes down its assumptions, makes the case against as if the choice had already failed, weighs the trade-offs and checks how your similar decisions went. It shows you the recommendation with its risks and forecasts you can check later ("80% likely by 15 December"). ODIN keeps the thinking and audits it with the Decision Audit, saying what it lacks. When you know how it turned out, tell your agent ("it worked" or "it failed"): ODIN scores the forecasts and learns what your good decisions have in common. Administrators can set the company's own checklist for a kind of question.

How does ODIN help my agent build screens?

Before a page or form is built, your agent asks ODIN for its brief ("Hey Odin, give me the brief for the pricing page"): who uses it, their task, device, accessibility needs, your voice and the content, each cited from your record. Where your record says nothing, the agent asks you instead of guessing. It writes the screen's plan (its one main action, what it shows while loading, when empty and on an error, how it works by keyboard) for your yes, then builds with your design system only. ODIN refuses an edit that adds a hard-coded colour or size, a field without a label, an image without a description, a clickable box that is not a button or raw HTML from data, says which line and how to fix it, and can measure contrast, touch targets and keyboard use in a real browser at every screen size.

What is ODIN Design?

Arriving soon. Give ODIN your brand (its name, logo, one brand colour and the words for your voice) and it derives your full colour system, light and dark, with every text colour checked for legibility, plus type and spacing. Your agent exports it for any stack: CSS variables, Tailwind, design tokens, WordPress or email. Website blocks, page templates and email templates built from your brand come next.

What happens to an action the gate holds?

When the gate asks a person about an action, or refuses one a person may overrule, ODIN keeps it as a held action. Your administrators and the project's managers see every held action waiting, with its count, apart from the ones already decided (ask your agent for odin_holds). Each one shows who was held, the command or file with any credential removed, the rule, and a risk score out of 100 with its reasons. Approving it lets the person who was held run that exact action once; denying it closes it. A held action is decided once: a second click, a late answer or a link used twice changes nothing. One nobody answers expires after a day (the platform setting gate.hold_hours). Once the tool runs, the held action shows whether it ran or failed; when ODIN never hears back it says unknown, never success.

Can a command always be allowed?

Yes, for one plain command. A project manager or an administrator turns a held shell command into an always-allow rule (odin_always_allow), and from then on that command runs without asking in that project, but only as one plain command: piping it, chaining it, redirecting it or wrapping it in sudo or bash -c asks again. The words of the rule come from the held action ODIN stored, never from what an agent sends. Commands that run other code or reach the network (shells, interpreters, curl, ssh, rm and more) and anything held by a safety rule can never be always allowed; a person can still let one run once.

Can someone wrap a command to get past the gate?

No. The gate reads a command the way the shell does. A refusal looks inside pipes, lists, sudo, env, xargs, timeout, find -exec, $( ), backticks, bash -c and eval, three levels deep, so wrapping a refused command still refuses it. A refusal also tells the agent plainly that it is your company's control, not a fault to work around.

Does installing an MCP server or a plugin need approval?

Always. Adding an MCP server, a plugin, an extension, a skill, an agent, a command or a hook, from any agent's command line or by writing its settings file, waits for a person, whatever your rule levels say. This stops a prompt injection from planting something your agents would load every time.

Can I approve from Slack or Teams?

Yes. A held action with a high risk score (70 or more by default, the setting gate.notify_risk) goes to your company's alert channels with a one-time link. The message carries the risk and its reasons, never the command itself. The link works once, for 30 minutes, for someone signed in who may decide it; your agent can make one with odin_approval_link.

What happens if the project's rules cannot be read?

The gate refuses changes until they can be. If a project's record is there but its settings do not parse, edits and commands are refused with that reason, and a person can let one action run with odin_override while it is fixed.

Does ODIN learn from what people approve?

It keeps lessons, never rules. Each decision on a held action becomes evidence for a lesson: the rule and the command, and whether people allowed or refused it. A lesson is withdrawn when a person reverses the decision behind it. By default lessons are only recorded; with the setting lessons.mode at 2 the gate shows the agent what people decided before, as information. A lesson never changes a rule; ask your agent for odin_lessons.

How do I tie evidence to a compliance control?

An administrator binds an event, a held action or an audit-log entry to a control of ISO/IEC 42001, NIST AI RMF, the EU AI Act or AIUC-1 (odin_bind_evidence), with a role (baseline, proof, verification or supporting) and the quotes that support the claim. ODIN stores a snapshot whose name is the fingerprint of its content, so evidence cannot be edited in place, and marks the binding verified only when every quote appears word for word in the snapshot. Write the control's statement with odin_evidence_statement; when more evidence is bound later, the control shows the statement as stale until it is written again (odin_evidence).

Questions

Can the gate block my work by mistake?

The gate asks rather than blocks when it is unsure, and every refusal says why and what to read. You can pause ODIN for a while if you need to (see Tips and quick commands).

Is the gate on in ChatGPT or Claude's apps?

The gate runs where the ODIN plugin runs, in Claude Code. Other agents still answer from ODIN and record their tool calls on ODIN's server.