# Authorization Regression Matrix

> After any deploy that touches authorization, replay the previously recorded matrix exactly and record every changed cell before declaring the release safe. Use when a release, config change or flag flip alters code or policy in a way that can move any authorization verdict

- Skill: `wsh7ash/authorization-regression-matrix` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/authorization-regression-matrix`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/authorization-regression-matrix/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/authorization-regression-matrix

---


# Authorization Regression Matrix

> After any deploy that touches authorization, replay the previously recorded matrix exactly and record every changed cell before declaring the release safe

**Use when:** a release, config change or flag flip alters code or policy in a way that can move any authorization verdict

**Avoid when:** no change affects authorization at all, and the team's own change log makes that visible for the release in question

## Procedure

1. Read the change narrative and identify which endpoints, roles, objects and layers the deploy plausibly touches.
2. Select matrix cells covering those surfaces, including the peer-object cells and the anonymous rows, since they move most often unnoticed.
3. Execute each selected cell pre-change and post-change with the exact same account, credential versions and request bodies.
4. Record every verdict difference as a changed cell, including expected-direction changes so the report does not alarm falsely.
5. Replay the changed cells on the second and third application instance if the deployment is staged or sharded.
6. Record which migration or config value moved each changed cell so the release can iterate precisely.

## Signals

- Cells changed despite the release note claiming its scope was unrelated, since middleware-wide tweaks move everything quietly.
- Peer-object cells flip, so the direct case regressed without anyone testing that specific object-level row.
- Anonymous rows shift, converting a previously refused path into an open one after a route-matching cleanup.
- Verdicts differ between instances, so the release moved state unevenly on partial deployment.

## Patterns

**1. Cell diff**

```text
POST release  #12: cells 40
/member->obj/B: 403  -> 404 (call body                    matching expected)
/anonymous->reports: 401 -> 200 changed
```

**2. Instance check**

```text
instance-1: 403, instance-2: 401, instance-3: 403  -> value not fully deployed
```

**3. Result row**

```text
release=2026-10-delta cells=40 changed=3 unexpected=0 instances-consistent=no at=inst-2
```

## Pitfalls

- Sampling only the endpoints the release note mentions, while general middleware or library changes affect the full matrix.
- Running the matrix only once, where one instance may have missed the release and shape your conclusions incorrectly.
- Ignoring request body changes that the release introduced, which silently shift the expected response shape of every cell.

## Done when

- Post-change matrix is executed against the identical pre-change state and every cell difference is explained.
- All deployment instances agree after re-testing the changed cells, or uneven rollout is correctly documented.

## References

- [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)

