diff --git a/backend/src/lib/config.ts b/backend/src/lib/config.ts index 56ae40a..7388ad0 100644 --- a/backend/src/lib/config.ts +++ b/backend/src/lib/config.ts @@ -1,4 +1,5 @@ import { z } from 'zod'; +import { PRODUCT_ID } from './product-config.js'; const envSchema = z.object({ PORT: z.coerce.number().default(4016), @@ -11,7 +12,7 @@ const envSchema = z.object({ COSMOS_DATABASE: z.string().default('bytelyst'), JWT_SECRET: z.string().min(1, 'JWT_SECRET is required'), DB_PROVIDER: z.enum(['cosmos', 'memory']).default('cosmos'), - PRODUCT_ID: z.string().default('bytelyst-notes'), + PRODUCT_ID: z.string().default(PRODUCT_ID), PLATFORM_SERVICE_URL: z.string().default('http://localhost:4003'), EXTRACTION_SERVICE_URL: z.string().default('http://localhost:4005'), MCP_SERVER_URL: z.string().default('http://localhost:4007'), diff --git a/docs/roadmaps/08_ARCHITECTURE_REUSE_MASTER_ROADMAP.md b/docs/roadmaps/08_ARCHITECTURE_REUSE_MASTER_ROADMAP.md index 67acca2..57c54b8 100644 --- a/docs/roadmaps/08_ARCHITECTURE_REUSE_MASTER_ROADMAP.md +++ b/docs/roadmaps/08_ARCHITECTURE_REUSE_MASTER_ROADMAP.md @@ -36,11 +36,11 @@ This roadmap tracks the execution work required to bring `learning_ai_notes` int # Phase R0 — Identity and Boundary Lock -- [ ] Confirm `shared/product.json` is the canonical product identity source -- [ ] Align web product identity defaults with `shared/product.json` -- [ ] Align mobile product identity defaults with `shared/product.json` -- [ ] Standardize auth storage prefixes across web and mobile -- [ ] Standardize telemetry and diagnostics product tagging +- [x] Confirm `shared/product.json` is the canonical product identity source +- [x] Align web product identity defaults with `shared/product.json` +- [x] Align mobile product identity defaults with `shared/product.json` +- [x] Standardize auth storage prefixes across web and mobile +- [x] Standardize telemetry and diagnostics product tagging - [ ] Document which code must remain product-local - [ ] Document which concerns must come from common platform packages/services diff --git a/docs/roadmaps/09_BACKEND_REUSE_ALIGNMENT_ROADMAP.md b/docs/roadmaps/09_BACKEND_REUSE_ALIGNMENT_ROADMAP.md index 8e0a580..7dd7326 100644 --- a/docs/roadmaps/09_BACKEND_REUSE_ALIGNMENT_ROADMAP.md +++ b/docs/roadmaps/09_BACKEND_REUSE_ALIGNMENT_ROADMAP.md @@ -36,10 +36,10 @@ Keep the backend strongly product-specific for notes domain logic while maximizi # Phase B0 — Identity and Config Alignment -- [ ] Keep `shared/product.json` as the backend identity source +- [x] Keep `shared/product.json` as the backend identity source - [ ] Ensure all persisted docs use the canonical product identity field -- [ ] Review backend env schema for any duplicated or drifting product constants -- [ ] Keep service URLs explicit for platform/extraction/MCP dependencies +- [x] Review backend env schema for any duplicated or drifting product constants +- [x] Keep service URLs explicit for platform/extraction/MCP dependencies # Phase B1 — Shared-Service Boundary Discipline diff --git a/docs/roadmaps/10_WEB_REUSE_ALIGNMENT_ROADMAP.md b/docs/roadmaps/10_WEB_REUSE_ALIGNMENT_ROADMAP.md index 4c64282..1d3616a 100644 --- a/docs/roadmaps/10_WEB_REUSE_ALIGNMENT_ROADMAP.md +++ b/docs/roadmaps/10_WEB_REUSE_ALIGNMENT_ROADMAP.md @@ -16,11 +16,11 @@ Make the web app the strongest notes authoring/operator surface while ensuring t # Phase W0 — Identity and Config Alignment -- [ ] Align `web/src/lib/product-config.ts` with `shared/product.json` -- [ ] Standardize auth storage prefix with backend/mobile identity -- [ ] Standardize telemetry product tagging -- [ ] Standardize diagnostics product tagging -- [ ] Remove conflicting default `productId` values +- [x] Align `web/src/lib/product-config.ts` with `shared/product.json` +- [x] Standardize auth storage prefix with backend/mobile identity +- [x] Standardize telemetry product tagging +- [x] Standardize diagnostics product tagging +- [x] Remove conflicting default `productId` values # Phase W1 — Auth and Platform Reuse diff --git a/docs/roadmaps/11_MOBILE_REUSE_ALIGNMENT_ROADMAP.md b/docs/roadmaps/11_MOBILE_REUSE_ALIGNMENT_ROADMAP.md index 2347788..3d6c98b 100644 --- a/docs/roadmaps/11_MOBILE_REUSE_ALIGNMENT_ROADMAP.md +++ b/docs/roadmaps/11_MOBILE_REUSE_ALIGNMENT_ROADMAP.md @@ -16,10 +16,10 @@ Make the React Native / Expo MVP follow the ByteLyst reuse-first path more stric # Phase M0 — Identity and Config Alignment -- [ ] Align mobile config with `shared/product.json` -- [ ] Remove hardcoded raw identity values where a canonical source can be used -- [ ] Standardize auth storage prefix with web/backend -- [ ] Standardize platform/product base URL strategy +- [x] Align mobile config with `shared/product.json` +- [x] Remove hardcoded raw identity values where a canonical source can be used +- [x] Standardize auth storage prefix with web/backend +- [x] Standardize platform/product base URL strategy # Phase M1 — Shared Client and SDK Alignment