fix(config): complete phase-a identity alignment

This commit is contained in:
saravanakumardb1 2026-03-10 11:59:12 -07:00
parent 8174962ef1
commit b73d5e9a96
5 changed files with 19 additions and 18 deletions

View File

@ -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'),

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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