1003 B
1003 B
Auth Security AGENTS
Purpose & Scope
- Working directory:
src/__Libraries/StellaOps.Auth.Security/. - Roles: backend engineer, QA automation.
- Focus: DPoP proof validation, nonce issuance/consumption, replay cache strategies, and security primitives.
Required Reading (treat as read before DOING)
docs/README.mddocs/07_HIGH_LEVEL_ARCHITECTURE.mddocs/modules/platform/architecture-overview.mddocs/modules/authority/architecture.md- Relevant sprint files.
Working Agreements
- Keep validation deterministic (TimeProvider) and avoid nondeterministic RNG in tests.
- Normalize inputs consistently across nonce stores; avoid mutable shared state.
- Respect offline/air-gap posture and keep secrets out of logs.
- Update
docs/implplan/SPRINT_*.mdand localTASKS.mdwhen starting or completing work.
Testing
- Use xUnit + FluentAssertions + TestKit.
- Cover DPoP validation (algorithms, htm/htu/nonce, clock skew, replay), nonce stores, and replay cache behavior.