From 5d9c2fa33ba2b8257cde2122b60790ee38bf83de Mon Sep 17 00:00:00 2001 From: nfel Date: Sun, 30 Aug 2026 14:47:20 +0330 Subject: [PATCH] docs(auth): include domain error checkpoint --- REFACTORING-AUDIT.md | 3 ++- REFACTORING-TODO.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/REFACTORING-AUDIT.md b/REFACTORING-AUDIT.md index 21163f7..cad1a23 100644 --- a/REFACTORING-AUDIT.md +++ b/REFACTORING-AUDIT.md @@ -265,8 +265,9 @@ The current composition root is `cmd/serve.go`; `repository.System` aggregates P - Added `auth/domain/model` with transport/persistence-independent User, Identity, Session, Permission, Role, RolePermission, and BankInfo entities. - Added validated `NationalID`, `MobileNumber`, and `BirthDate` value objects plus domain-level user status values. +- Added stable domain error vocabulary independent of gRPC status codes. - Added `auth/domain/ports` repository and cache interfaces using only standard library types and domain models. -- Focused value-object tests and the full Auth test suite pass; commit `32f182b`. +- Focused value-object/domain tests and the full Auth test suite pass; commits `32f182b` and `d292822`. - Existing `domain/db` remains the legacy persistence mapping until A003 introduces explicit infrastructure mappings. ### `I001` — publisher-backed ICO purchase map diff --git a/REFACTORING-TODO.md b/REFACTORING-TODO.md index 2fd02b3..a86dde6 100644 --- a/REFACTORING-TODO.md +++ b/REFACTORING-TODO.md @@ -105,7 +105,7 @@ This is the authoritative execution tracker for the refactor. Work is performed | ID | Status | Task | Acceptance check / note | |---|---|---|---| | A001 | `DONE` | Map every auth RPC to business operations and dependencies. | Method-level migration map is recorded in `REFACTORING-AUDIT.md`; completed on `2026-08-30`. | -| A002 | `DONE` | Introduce auth domain entities, value objects, errors, and repository ports. | Added pure Auth entities/value objects and inward-facing repository/cache ports with no gRPC, GORM, Redis, or framework imports; committed as `32f182b`. | +| A002 | `DONE` | Introduce auth domain entities, value objects, errors, and repository ports. | Added pure Auth entities/value objects, domain errors, and inward-facing repository/cache ports with no gRPC, GORM, Redis, or framework imports; committed as `32f182b`/`d292822`. | | A003 | `TODO` | Move auth persistence and Redis implementations into infrastructure. | Explicit persistence/domain mappings exist and repository tests pass. | | A004 | `TODO` | Extract OTP application use cases and thin gRPC adapters. | OTP behavior and status mapping remain compatible. | | A005 | `TODO` | Extract authentication/JWT application use cases and adapters. | Token behavior, validation, and status mapping remain compatible. | @@ -286,4 +286,4 @@ Append one row whenever a task changes status. Existing rows are never rewritten | 2026-08-30 | A001 | `TODO` | `STARTED` | Began the method-level Auth RPC and dependency migration map before package moves. | | 2026-08-30 | A001 | `STARTED` | `DONE` | Mapped every public/internal RPC to its use-case operation, persistence ports, external providers, cache, wallet, notification, and configuration dependencies in `REFACTORING-AUDIT.md`. | | 2026-08-30 | A002 | `TODO` | `STARTED` | Began the pure Auth domain model and port foundation. | -| 2026-08-30 | A002 | `STARTED` | `DONE` | Added transport/persistence-independent entities, NationalID/Mobile/BirthDate value objects, and repository/cache ports; focused and full Auth tests pass in `32f182b`. | +| 2026-08-30 | A002 | `STARTED` | `DONE` | Added transport/persistence-independent entities, NationalID/Mobile/BirthDate value objects, domain errors, and repository/cache ports; focused and full Auth tests pass in `32f182b`/`d292822`. |