---
title: "Access policy verification | VibeRaven"
description: "The same owner-update policy can guard user-editable data or expose fields the server controls. We checked which cases met a strict runtime criterion."
canonical: "https://viberaven.dev/research/policy-shapes"
---

# A policy shape flagged 22.4% · the runtime estimate was about 4.5%

The same owner-update policy can guard user-editable data or expose fields the server controls. We checked which cases met a strict runtime criterion.

[All studies](https://viberaven.dev/research)

## What we measured

### Policy shape prevalence

The static shape appeared in 168 of 749 fully loaded repositories. The runtime estimate applies the confirmation rate to that group. The marked range is the propagated 95% Wilson interval, about 1.8% to 9.3%.

- Static shape: 22.4%
- Runtime estimate: ≈4.5%

- [Study report](https://github.com/ohad6k/viberaven-research/blob/2d45c586d8d73b8913651894f4451b8071086daf/studies/policy-shapes/README.md)

### Strict runtime confirmations

Follow-up covered repositories flagged by the static rule. A strict confirmation required a successful isolated write and a server-side writer visible in source.

- Strict confirmations: 4 of 20

- [Follow-up counts](https://github.com/ohad6k/viberaven-research/blob/2d45c586d8d73b8913651894f4451b8071086daf/data/policy-verification-aggregate.csv)

## Method

We screened row-level security policies for an owner-update shape on profile-style tables with columns flagged by name. The static denominator included only repositories whose database schema loaded fully. We then drew a random follow-up sample within each of two strata defined by a builder marker.

For the follow-up we reviewed who controlled the flagged data, then checked actual behavior in an isolated environment that represented the platform’s default grants. We multiplied the share flagged in the fully loaded cohort by the strict confirmation rate from the follow-up.

## Limits

A small follow-up sample leaves a wide interval. The estimate covers this policy shape and the fully loaded cohort. Related templates can recur in the corpus, and column names can miss values the application controls.

Pinned source and isolated execution establish the benchmark result. Production grants and policy state can differ. The Supabase User Management example behaved as intended for the fields shipped in the example. An application that extends it with server-controlled fields changes that ownership model.

## What to check

When a profile schema grows, review who can change the new fields. Verify that legitimate profile edits work and that values governing access or billing stay under application control.

## Report and data

- [Study report](https://github.com/ohad6k/viberaven-research/blob/2d45c586d8d73b8913651894f4451b8071086daf/studies/policy-shapes/README.md)
- [Research repository on GitHub](https://github.com/ohad6k/viberaven-research)
- [Static shape counts](https://github.com/ohad6k/viberaven-research/blob/2d45c586d8d73b8913651894f4451b8071086daf/data/policy-shape-clusters.csv)
- [Follow-up counts](https://github.com/ohad6k/viberaven-research/blob/2d45c586d8d73b8913651894f4451b8071086daf/data/policy-verification-aggregate.csv)

Source: https://viberaven.dev/research/policy-shapes

Run `npx viberaven`.
