Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

ConstitutionCI found 32 widened agent grants in one real IronCurtain policy recompile

We diffed four real upstream recompiles of IronCurtain's default policy. Three widened the agent's tool grants (32, 70 and 138) and failed the gate until the approving label was added.

By David Discua

Measured in the lab

32
widened grants, web search recompile
4
real recompiles diffed
7/7
widening cases blocked without label
6.44 ms
slowest median diff
1961b50 to d2bc071web search tool32
d2bc071 to a5780e0GitHub MCP server70
a5780e0 to a07e105compile reliability138
a07e105 to 4971e77128 narrowed0
  • git_merge, git_rebase, git_cherry_pick and git_reset flagged escalate to allow
  • 7 of 7 widening cases fail without the label and pass with it
  • Narrowing-only recompile (128 narrowed) passes
  • Unknown condition key if.timeWindow fails closed with exit 2
  • Same file on both sides reports 0 changes

From reports/report.json · run on October 21, 2026. ConstitutionCI 0.1.0 on Bun 1.4.3; IronCurtain v0.14.0 @ d177f56 plus five earlier commits; timing is the median of 25 in-process runs

How it is wired

base + PRreportPolicy PRcompiled-policy.jsonConstitutionCIgrant diffMaintainerreviews widenings

01/03A PR recompiles the agent's policy file.

IronCurtain compiles a plain-English constitution into compiled-policy.json, the allow, escalate and deny rules its runtime enforces on an agent's tools. The compile step uses an LLM, so a recompile can widen what the agent may do without anyone noticing in a long JSON diff. ConstitutionCI is our CI gate for that file. It diffs the grants between base and PR and fails the PR when the allowlist widens and the approving label is missing. On four consecutive upstream recompiles of IronCurtain's default policy it found 32, 70, 138 and 0 widened grants. The catch is that it models the policy conservatively, so some of those may be widenings the engine itself would never allow.

The catch

ConstitutionCI is a model of the policy, and it leans toward reporting too much. It ignores tool annotations and IronCurtain's structural invariants (protected paths, sandbox auto-allow, the untrusted-domain gate). Paths are compared as strings, so ~/Downloads and an absolute home path count as different scopes, and a recompile that rewrites home paths shows up as broadened-scope. Dynamic lists compare by name only, and dynamic-lists.json values are not diffed.

We also did not run IronCurtain's compiler, because ironcurtain compile-policy calls an LLM. The lab diffs the policies the upstream project compiled and committed. And a label is only as strong as who can add it. Anyone allowed to label PRs can approve, so pair the gate with branch protection and required reviews.

What we ran (keyless)

bun install --frozen-lockfile
bun src/cli.ts gate \
  --base fixtures/upstream/history/generated-1961b5058068.json \
  --head fixtures/upstream/history/generated-d2bc071421cf.json
bun src/cli.ts gate --quiet --label constitution-widening-approved \
  --base fixtures/upstream/history/generated-1961b5058068.json \
  --head fixtures/upstream/history/generated-d2bc071421cf.json
bun run report

The first gate exits 1 and the labeled one exits 0. Real upstream recompiles, from reports/report.json, run on October 21, 2026:

RecompileRulesWidenedNarrowedNo labelMedian ms
1961b50 to d2bc071 (web search tool)11 to 153224fail1.3
d2bc071 to a5780e0 (GitHub MCP server)15 to 23706fail1.69
a5780e0 to a07e105 (compile reliability)23 to 5013881fail5.38
a07e105 to 4971e77 (remove Google Workspace)50 to 360128pass3.35
v0.14.0 against itself58 to 5800pass6.44

In the first recompile, git_merge, git_rebase, git_cherry_pick and git_reset went from escalate to allow, and web_search arrived as a new allow. Six one-edit variants of a real v0.14.0 policy check single cases. Deleting the git push escalate rule only narrowed and passed. Changing a git push escalate to allow gave 1 escalate-to-allow, moving the sandbox path to its parent gave 8 broadened-scope, dropping deny-git-clean gave 1 deny-to-allow, and adding *.example.com gave 1 broadened-scope. Adding an unknown if.timeWindow condition failed closed with exit 2.

How it is wired

Every allow and escalate rule becomes grants of server, tool, decision and argument scope, with rules shadowed by an earlier unconditional rule dropped, as IronCurtain evaluates first-match-wins. A PR grant is a widening unless a base grant at the same or a more permissive decision covers it. The gate writes a Markdown report for the job summary or a PR comment, plus JSON, and the reusable workflow's comment job never checks out or runs PR code.

Minilab (open source)

Upstream is provos/ironcurtain (614 stars, Apache-2.0, TypeScript, as of October 24, 2026). The fixtures are byte-for-byte copies of its committed policies with SHA-256 provenance. Re-run bun run report, or point bun src/cli.ts gate --base-ref origin/main --policy .ironcurtain/generated/compiled-policy.json at your own policy repo.

Run it yourself

SkilledDragonCorp/constitutionci

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run report

SkilledDragon is not affiliated with, endorsed by, or sponsored by IronCurtain or its authors. Numbers are from our own keyless lab run; re-run the report before relying on them. Marks belong to their owners.

All labs