Skip to content
Back to skills

orunmila

ASecurity

Use this skill when the user wants to audit, verify, or visualize what an AI coding agent actually did versus what it claimed - or wants the agent STOPPED from finishing on an unbacked claim. Triggers include "audit this session", "did you actually do that", "show me what changed vs what you said", "stain map", "dye trace my agent's changes", "set up a trust/verification layer", "stop my agent lying", "make the agent check its own work", "catch phantom completions", "undisclosed scope creep",...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsrustgobashnodeawsgitsecurity

Works with

  • cursor
  • terminal

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add RevSheggs/orunmila --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of orunmila?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for orunmila
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/revsheggs-orunmila/badge)](https://www.skillsdirectory.com/skills/revsheggs-orunmila)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: orunmila
description: Use this skill when the user wants to audit, verify, or visualize what an AI coding agent actually did versus what it claimed - or wants the agent STOPPED from finishing on an unbacked claim. Triggers include "audit this session", "did you actually do that", "show me what changed vs what you said", "stain map", "dye trace my agent's changes", "set up a trust/verification layer", "stop my agent lying", "make the agent check its own work", "catch phantom completions", "undisclosed scope creep", or "silently dropped requirements" in agent-driven coding work.
license: Apache-2.0
---

# Orunmila - claim-vs-reality verification for AI coding agents

## Overview

Orunmila hooks into an agent's tool-call lifecycle, captures every file write
(with a real before/after diff), every command run (with exit code), and every
other tool call - then reconciles the agent's own claim about what it did
against that ground truth. It does NOT just log activity (plenty of tools do
that well, e.g. Gryph). The distinguishing job is reconciliation: did the claim
match reality, and is there a receipt for it at all.

**It has three lenses, and they install separately. Work out which the user wants
before installing anything.**

| | The Stain Map | The Closeout Gate | The Babaláwo |
|---|---|---|---|
| what it does | records + reports | **refuses** | judges the record |
| when | after each turn | before a turn is allowed to end | at each session's closeout |
| can it stop the agent? | never | yes - 2 of its 6 laws block | never |
| agents | all supported agents | `claude-code` and `cursor` | `claude-code` (through the intake) |
| install | `npx orunmila install` | `npx orunmila install --with-gate` | `npx orunmila install --intake`, then `npx orunmila install --with-judge` |

If the user says *"show me what my agent did"*, *"audit"*, *"stain map"*,
*"dye trace"* - they want **the Stain Map**.
If the user says *"stop it lying"*, *"make it check its own work"*, *"don't let
it tell me it's done when it isn't"* - they want **the Closeout Gate**, which
needs the Stain Map underneath it.
If they want a verdict on a whole session (Clean, Look at this, Violation or
Incomplete, each finding naming what both witnesses recorded; Unproven when the
session's log does not show the Sentinel watching), that is **the Babaláwo**; it reads
the intake's record (`npx orunmila install --intake`, then `orunmila intake start`).
If unsure, install the first two with `--with-gate` and say what each one does.

## Outcome categories (the Stain Map)

- `verified` - claimed, evidence backs it up
- `partial` - touched, but the diff is scaffolding-only (comments/stubs, no real logic)
- `phantom` - claimed, zero evidence anywhere in the turn
- `phantom_verification` - claimed "tested/works/verified" with no passing command behind it
- `unverifiable` - too hedged/vague to check at all ("added some basic validation")
- `undisclosed` - a file changed that no claim and no part of the original ask covers
- `silently_dropped` - part of the original request has zero evidence AND was never mentioned again
- `untracked_write` - the Filesystem Sentinel saw a real disk change no tool call accounts for

It also tags soft cause-hints (`vague-hedge`, `high-specificity-mismatch`,
`error-in-context`) to help a human judge whether a mismatch looks like a
shortcut or a confabulation - never asserting which, because intent is not
observable from the outside.

## Setup

1. Check Node is available: `node --version` (needs >=18).
2. Install the lens the user wants, into the current project:
   ```bash
   npx orunmila install                 # The Stain Map only
   npx orunmila install --with-gate     # both lenses
   npx orunmila install --gate-only     # add the gate to an existing install
   ```
   Add `--global` to install into `~/.claude/settings.json` instead, covering
   every project. Add `--agent <id>` for a non-Claude agent
   (`npx orunmila agents` lists them); `--agent cursor --with-gate` gives Cursor
   both lenses.
3. **Tell the user to start a new session.** Hooks are read at session start, so
   an already-running session will not pick this up. This step is skipped
   constantly and it is the usual reason someone reports "it isn't working".
4. Confirm what landed: `npx orunmila lenses`.

Every route (npm, npx, pnpm) leaves the same thing behind: a copy of Orunmila in
`~/.orunmila/runtime/`, and hooks that run it through one fixed starter,
`~/.orunmila/bin/orunmila-start.js`, so clearing npx's or pnpm's cache does not
break them. `orunmila update` moves that copy to npm's latest (it asks the
registry, sending only the package's name; it switches only while no session is
recorded). `orunmila install` also turns on a check once a day that does this by
itself, unless the user has already chosen; `orunmila install --without-updates`
turns it off. Say so when you install it: it is Orunmila's one internet call.
That daily check asks npm's public registry, or the one `orunmila install
--registry URL` named, and never a registry from the environment (a project's
settings file can set one for every hook); `orunmila update` by hand reads
`ORUNMILA_REGISTRY` as before. Either way a version is downloaded only after its
npm provenance shows it was published from a GitHub Actions run of
`RevSheggs/orunmila`, the one trusted publisher; otherwise it is refused and the
words say how to install it by hand with npm.

## Using the Stain Map

- After each turn a terminal stain report prints automatically. Run `npx orunmila
  watch` in a second terminal, in the project folder, to live-tail reports **and**
  run the Filesystem Sentinel; its watch rows are what let a session read Clean
  without the intake.
- The full report, and the one to reach for by default:
  ```bash
  npx orunmila trail
  ```
  Writes a self-contained `.html` file - the complete trail (the glove) plus
  lineage plus the claim-vs-reality stains, in one page that loads nothing from
  the internet. Tabs: Timeline, Tree, Graph, 3D Map, Dashboard, Report, Glossary. The
  Report tab carries a copy-paste prompt that sends the agent back to fix every
  flagged item.
- `npx orunmila report --verdicts --session <id>` - the session report from the
  intake's record: its top line first (Clean session, N things to look at, N
  violations, Incomplete record, or Unproven when the session's own log does not
  show the Sentinel watching), then the joint figure: of the agent's edits inside
  the watched folders, the share both witnesses recorded (the edits outside the
  watched folders follow, as context, never first), then each finding in one
  sentence. `--html <file>` writes
  it as one offline page; `--json` gives it to the agent.
- `npx orunmila trailer --session <id> --append <file>` - the session's verdict
  as git trailers on a commit message, by the report's rule: a judge's clean
  verdict that the Sentinel's watch rows do not prove reads `unproven (judge:
  clean, …)`. A convenience, not evidence: `orunmila verify` over the session's
  logs proves the record.
- `npx orunmila html` - the older mismatch-only report; `report --verdicts --html`
  replaces it.
- `npx orunmila json` / `npx orunmila trail --json` - machine-readable, for
  downstream tooling. `--facts-only` drops the inferred lineage layer.
- `npx orunmila status` - which lenses are live, event counts, log size, the
  sentinel's ignore list, and each time the hooks' starter did not use a variable
  a project's `.claude` settings may have set.
- `npx orunmila demo` - renders a sample report from a scripted session. Use this
  to show someone what they'd get before installing anything.

## Using the Closeout Gate

```bash
npx orunmila laws                         # what it enforces, and which layer each law came from
npx orunmila laws --check --session <id>  # replay the laws over a past session, read-only
npx orunmila laws --init                  # scaffold the user's own laws file
ORUNMILA_LAWS=off                         # disable the gate for one session
```

**What a block means.** The gate runs on the Stop hook. If it blocks, the turn
is not over: the agent must fix what was flagged and respond again. In Cursor the
block arrives as an automatic follow-up message, marked as Orunmila's. Two laws
block - `no-green-without-command` (a verification claim with no passing
command) and
`no-grep-as-basis` (a claim about a named file resting only on a pattern
match). Four advise: `no-claim-without-receipt`,
`no-absolute-without-enumeration`, `no-uncertainty-as-fact`,
`no-assumption-language`.

**If you are the agent being blocked:** do the thing, don't rephrase. A block on
`no-green-without-command` wants a command actually run with its real output
shown; a block on `no-grep-as-basis` wants the file opened and read. Restating
the claim more confidently will block again.

**Important for anyone running the gate:** a pipe hides an exit code.
`npm test | tail` exits 0 with the suite on fire, so the gate does not count an
unguarded pipe as a passing run. Use `set -o pipefail` when you pipe a test
run. Do not end the command with `; echo $?`: the whole line then exits 0, and
the gate counts that as a pass.

**The claims block** (`ORUNMILA_CLAIMS_BLOCK=1`, off by default). The agent is
asked, with each prompt, to end its turn with a fenced `orunmila-claims` block:
`changed:` the files it changed, `proved:` each command that shows the work
passes, `not done:` what it did not do. Each `proved:` command must have run in
the turn and passed with its own exit status; each `changed:` file is checked in
the record; `not done:` lines are shown in the session report. Prose claims are
still read, so a block hides nothing.

**What counts as proof.** By default, any command in the turn that did not fail
backs a green claim, except an unguarded pipe. With `ORUNMILA_STRICT_PROOF=1`
(off by default, not yet recommended) only a test-runner step whose recorded
status is a pass counts, with nothing after it deciding the line's status and
no pipe after it unless `set -o pipefail` came first. The guide's "What counts
as proof" (`docs/GUIDE.md`) has the runner list and the measured cost.

**Three more switches, each off by default.** `ORUNMILA_GATE_SESSION_RECEIPTS=1`
lets what the session's earlier turns read, wrote or ran count as evidence for
the four advisory laws (a claim of passing tests still needs a passing command in
the turn it is made). `ORUNMILA_GATE_READ_CONTENT=1` lets a phrase quoted from a
file the turn read in full count, while the file's bytes are unchanged; the gate
opens only the files the turn read, never searches the project.
`ORUNMILA_GATE_ADMISSIONS=1` stops the advisory laws flagging a sentence that
says what was not checked ("I haven't read X", "I only checked that …") or opens
as a guess ("Likely …"); a claim of passing tests beside it still blocks. The two
blocking laws are unchanged by all three. Each one's limits: the guide's Closeout
Gate section (`docs/GUIDE.md`).

**Blocks are budgeted.** Two per user message by default; the agent's answer
after a block does not refill the budget. Once spent, findings degrade to advice
and the exhaustion is recorded, so the agent cannot be pinned in a
blocked-respond-blocked loop. Any internal error exits 0 silently: a broken law
engine stops enforcing, it never stops the agent.

## Honest limits - say these if asked

- The gate runs for **`claude-code` and `cursor`**; in Cursor a block arrives as a
  follow-up message and advice is not shown. Other agents get the Stain Map.
- **`no-green-without-command` reads phrasing, not meaning.** It catches "Tests
  pass.", "All tests pass." and "It works.". It no longer blocks an honest
  negative such as "I tested none of it." or "Nothing was tested.", but a
  negation it does not recognise can still read as a claim. It accepts any
  command in the turn that did not fail, even one that tested nothing.
- Law findings are **heuristic: they read prose, not facts.** A finding says
  "recheck this", not "you lied".
- The labelled sentence corpus is **a regression check, not a security level**:
  it shows a change did not make the readers worse on sentences already found,
  and says nothing about a claim worded some new way.
- `exit 0` is not "correct" - it means a command ran and passed, not that it
  tested the right thing.
- Lineage (read -> write) is a **turn-scoped heuristic**, stamped `inferred`, not
  proven data flow.
- Detection accuracy is **100% on a labelled set of 17 turns / 38 assertions**
  (`npm run accuracy`). Say "100% on our labelled set", never "100% accurate" -
  the set is small.
- The standalone Filesystem Sentinel (`watch`, `watch-fs`) writes carry **no
  session id**, so on a machine with two concurrent sessions over one tree each
  adopts the other's writes. Read its touch list as "what changed on this
  machine while I worked", never as authorship. The intake's record names the
  sessions that overlapped, credits a change only to the session that made it,
  and no longer counts an idle second session (`ORUNMILA_PEER_BUSY=0` turns that
  off).
- A session whose record does not show the Sentinel watching whenever the agent
  edited a file reads **Unproven**, never Clean. Without the intake, those rows
  come from `npx orunmila watch` (or `watch-fs`) kept running in the project
  folder: a row at its start, a heartbeat each minute, a row at its stop, in the
  event log, which keeps no chain (anything running as the user can add a row);
  the intake's record is chained. The Sentinel watches folders outside the
  project only if the user chose it, through the intake (`orunmila install
  --with-watch-memory`, `--with-follow-outside`); the report names each outside
  folder the agent wrote in, watched or not.
- **No AI model and no internet call does Orunmila's work.** An AI pass over
  semantic claims is not part of the free version; only updates of Orunmila
  itself may reach the internet.

Status for each known issue, open and closed: `review/ISSUES.md` (as of 2026-10-28); findings since are in `CHANGELOG.md`.

## If something looks wrong

Hook payload shapes and transcript formats are not guaranteed stable contracts
and may shift between agent versions. If reports come back empty or claims are
not extracting:

```bash
npx orunmila debug-transcript /path/to/transcript.jsonl
```

This dumps the raw vs. normalized shape of the last few transcript lines so the
parser can be adjusted.

## Extending to another agent

Every capture script writes the same flat event shape (see
`src/store/eventlog.js`) regardless of which agent produced it. Adding an agent
is a registry entry in `src/capture/agents.js` (id, config path, its event names
per lifecycle phase), not a code fork - everything downstream (reconciliation,
rendering, the laws) is agent-agnostic.

Files in this skill

  • .c8rc.json418 B
  • .prettierignore49 B
  • .prettierrc.json154 B
  • CHANGELOG.md86.6 KB
  • CODE_OF_CONDUCT.md1.6 KB
  • CONTRIBUTING.md9.4 KB
  • NOTICE211 B
  • SECURITY.md14.4 KB
  • SKILL.md14.5 KB
  • THIRD_PARTY_LICENSES963 B
  • TRADEMARKS.md3.8 KB
  • bench-results/2026-06-24_aider_openrouter_anthropic_claude-haiku-4.5.json3.5 KB
  • bench-results/2026-06-24_aider_openrouter_anthropic_claude-sonnet-4.json3.5 KB
  • bench-results/2026-06-24_aider_openrouter_deepseek_deepseek-chat.json3.5 KB
  • bench-results/2026-06-24_aider_openrouter_deepseek_deepseek-r1.json3.6 KB
  • bench-results/2026-06-24_aider_openrouter_deepseek_deepseek-v3.1-terminus.json3.6 KB
  • bench-results/2026-06-24_aider_openrouter_google_gemini-2.5-flash.json3.5 KB
  • bench-results/2026-06-24_aider_openrouter_google_gemini-2.5-pro-preview.json3.6 KB
  • bench-results/2026-06-24_aider_openrouter_meta-llama_llama-3.1-70b-instruct.json3.5 KB
  • bench-results/2026-06-24_aider_openrouter_meta-llama_llama-3.3-70b-instruct.json3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.