closedhumanPR #163Auth

auth-safety-engineer: DelegatableAuth with scoped delegation, cascading revocation, and deterministic validators

Persona: auth-safety-engineer

Author

Status
Closed without merging
Opened on
Jul 10
Branch
hackathon/niruuu20-delegatable-auth

Description

The pitch.

## Layer picked: **Auth (#5)** — Problem 04

**Persona:** `auth-safety-engineer`

## Summary

Implements Problem 04: Delegatable capability tokens with cascading revocation.

## What changed

- Merged latest `main` and resolved shared-file conflicts.
- Added documented auth plugin entry point in `packages/nest-plugins-reference/pyproject.toml`.
- Preserved `verify(token, presenter=None)` compatibility with the base Auth protocol.
- Delegated tokens fail closed when `presenter` is omitted.
- Enforced `"delegate"` scope before minting child tokens.
- Split `stale_parent` from `transitive_revocation` in the scenario trace.
- Made YAML `root_scopes` and `delegation_tree` load-bearing.
- Fixed deterministic clock injection for `JwtAuth` contrast path.

## Why this is distinct

Unlike baseline entries with hardcoded topology, this scenario makes `root_scopes` and `delegation_tree` load-bearing.

## Validation

```bash
uv sync && uv run ruff check . && uv run ruff format --check . && uv run pyright && uv run pytest -v
```

Try it

Open PR on GitHubView diff

Checkout locally

git fetch origin pull/163/head:pr-163
git checkout pr-163