Muhammad Atashi
PERMITDIFF — PERMISSION CHANGE · BEFORE RELEASECase 04 of 11 · /work/permitdiff
Index04 / 11
SourcePublic repo
Work / PermitDiffOpen releaseIsolated Evaluation HarnessPublic sourcePinned @ 8997ff4

PermitDiff

Detect when a permission change grants more authority.

CORE QUESTION — Did this permission change grant more authority?

OwnsDetects authority expansion in agent permission changesStackPython · Scenario corpus · Static analysis · Claude preapprovalPublic referenceTensorScholar/permitdiff @ 8997ff4 · verification: make check

A text diff sees two numbers. PermitDiff sees that a refund was denied before and allowed after the policy change.

Maturity · Isolated Evaluation Harness — Pinned public reference; no external corpus result is claimed.

FIG. 2 — Authority delta probeInteractive policy diff
StageRecorded boundary
Candidate permission changes are compared against baseline authority before release, never inferred after rollout.

Engineering decisions — ledger of 4, as recorded. The signal edge marks the rejected alternative in each row.

RefDecision — and whyTrade-off acceptedRejected alternative
ACompare decisions, not text The ceiling change is one number. The $150 refund is a new allow.Requires structured policy parsing instead of universal text regexes across arbitrary YAML dialects.Inspect raw git line diffs on policy YAML.
BKeep the two channels separate A scenario corpus can miss a rule. A static check can be incomplete. Neither one gets to hide the other.Outputs two independent diagnostic channels that reviewers must examine before waiving.Collapse scenario replay and static checks into a single heuristic score.
CFail closed on an unknown change If a changed rule cannot be shown to be non-expanding, the public verdict is block.Produces false-positive blocks when dynamic predicates exceed the bounded analyzer.Downgrade unanalyzable rule changes to warnings.
DMake the result reproducible Both YAML inputs and corpus fixtures are hashed into canonical digests in the report.Rejects non-canonical or dynamically fetched policy references unless resolved to a pinned git commit.Compare unpinned mutable branches without source digests.

Revision table — evidence provenance, verbatim from the record

RevEvidenceResultSemantics
AAuthority transition
This is one runnable reference example, not an external benchmark.
The public quickstart shows refund.create at $150 (15,000 minor units) move from deny to allow when the ceiling rises from $100 to $500 (10,000 → 50,000 minor units; 100 minor units = $1 USD).REPRODUCIBLE Synthetic
BExternal corpus
Local reference tests are not independent validation.
No external corpus result is claimed.RECORDED Not claimed

Audience — AI Security Teams · AppSec · Agent Platform Engineers · Security Engineering · CI/CD and Release Engineering

REF. — Class A public evidencepinned · reproducible
Artifacthttps://github.com/TensorScholar/permitdiff
Pinned commit8997ff45d28212f5be90095fde3da48c8fdaea60
Verificationmake check
Recorded output — bounded refund-ceiling expansion comparison
decision: review
observed: {'same': 2, 'expanded': 1, 'restricted': 0, 'unknown': 0}
findings: ['rule_scope_broadened:refund-allow']
reasons: ['authority_expansion']
PermitDiff reference comparison
baseline:  baseline v0 digest=80c0a334ae89...
candidate: candidate v1 digest=6e93f3d9c299...
corpus: 3 scenarios digest=cb0a3af02493...
Summary:
  privilege_expansions: 1
  restrictions: 0
  unknown_transitions: 0
  new_allows: 1
  approval_bypasses: 0
  static_authority_expansions: 1
  static_authority_unknowns: 0
Transitions:
  [unchanged/note] corpus-000: refund.create amount=5000 unchanged (allow (rule refund-allow)); no review signal.
  [expanded/high] corpus-001: refund.create amount=15000 deny (default) -> allow (rule refund-allow).
  [unchanged/note] corpus-002: search.query amount=0 unchanged (deny (default)); no review signal.
Static findings:
  [potential_expansion] rule_scope_broadened: Rule 'refund-allow': allow scope broadened (match relation: broader).
Unknown semantics fail closed. See examples/README.md for the full suite.
REF. — The pinned public artifact. Verification command as recorded; the boundary rows above still apply.

Measurement contract — what would make the preferred answer fail?

EVALUATION METHOD

A permission change needs a review when the same scenario is denied before and allowed after.

Public reference quickstart: refund.create ceiling 10_000 → 50_000 minor units ($100 → $500 at 100 minor units = $1 USD), scenarios at $50 (5_000), $150 (15_000), and search.query at 0.

01

$50 refund

allow on both policies
02

$150 refund

deny, then allow
03

search.query

deny on both policies
04

Static ceiling

widened allow bound, checked apart from the corpus
05

Public verdict

review · authority_expansion
06

Not claimed

runtime authorization, proof, production IAM, external validation

Research program authority-change — as recorded

Status: Public reference published

Question: Can a permission change be shown to grant more authority before release, without treating an unresolved rule as safe?

Method: same scenarios on baseline and candidate · bounded static check · fail closed when a changed rule cannot be shown to be non-expanding

Observed: The public reference demonstrates a bounded authority-expansion example.

Boundary: No external corpus result is claimed.

NOTE 1 — OWNERSHIP.

Personal engineering project

Published under Apache-2.0 at github.com/TensorScholar/permitdiff (v0.1.0rc2+ with Git ref baseline resolution and Claude Code preapproval projection). Verified via make check; no external customer corpus result is claimed.

NOTE 2 — READING. Numbers on this page carry their boundary lines. Quoting a result without its boundary omits its scope.

Exclusions — Not a runtime authorizer · Not a security proof · Not production IAM · No external validation claimed

Quick navigation

Jump to System or Page

↑↓ select↵ openESC close