1.8 KiB
1.8 KiB
Tasks — @suaveplan/api-auth-rolled
1. Spec authoring
- 1.1 Read design doc (§2.3)
- 1.2 Read
openspec/AGENTS.mdSections 13 and 14 - 1.3 Draft
proposal.md— focused session-resolver scope - 1.4 Draft
specs/api-auth-rolled/spec.md - 1.5 Every requirement carries
**Verified by:**
2. Implementation
- 2.1 Scaffold
packages/api-stack/api/api-auth-rolled/ - 2.2
src/error-codes/— 20-code registry - 2.3
src/options/— Zod-validated options + named defaults - 2.4
src/token-rotator/— rotating-key state machine - 2.5
src/principal-projection/— DB row →Principal - 2.6
src/session/— JWT signing + verification + cookie/bearer extraction - 2.7
src/security-schemes/—api-openapicontribution - 2.8
src/composition/—createRolledAuthAdapterfactory + conformance - 2.9
src/index.ts— explicit named re-exports
3. Tests
- 3.1
error-codes.test.ts - 3.2
options.test.ts - 3.3
token-rotator.test.ts - 3.4
principal-projection.test.ts - 3.5
session.test.ts— happy path + expired + revoked + retired kid - 3.6
security-schemes.test.ts - 3.7
composition.spec-conformance.test.ts— every code triggered - 3.8
composition.test.ts—createRolledAuthAdaptersurface
4. Documentation
- 4.1 Sibling
.mdper implementation.ts - 4.2
README.md## Modules
5. Pre-archive verification
- 5.1
bunx turbo lint typecheck test --filter=@suaveplan/api-auth-rolled(gate) - 5.2
bunx turbo test:coverage --filter=@suaveplan/api-auth-rolled100/100/100/100
6. Archive
- 6.1 Fold spec delta into
openspec/specs/api-auth-rolled/spec.md - 6.2 Move folder to archive
- 6.3 Tick
8.12in umbrella tasks - 6.4 Refresh
MANIFEST.md