From 85e5a65bbedad0ad3c2799be1d75dd6e9f2bf070 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Thu, 12 Nov 2026 22:50:21 -0800 Subject: [PATCH 1/8] fix(infra): align Railway IaC with verified live configuration Preserve current staging sources, sleeping policy and inherited preview API limits. Record named-partial adoption, redacted rollback snapshots and empty production/staging/preview plans without applying changes. Refs: LVT-336 --- .railway/README.md | 19 +- .railway/config.test.mjs | 43 +- .../evidence/2026-11-12/live-inventory.json | 1864 +++++++++++++++++ .../2026-11-12/preview128-plan-summary.json | 46 + .../2026-11-12/production-plan-summary.json | 42 + .../2026-11-12/staging-plan-summary.json | 88 + .railway/evidence/2026-11-12/verification.md | 104 + .railway/railway.ts | 13 +- 8 files changed, 2206 insertions(+), 13 deletions(-) create mode 100644 .railway/evidence/2026-11-12/live-inventory.json create mode 100644 .railway/evidence/2026-11-12/preview128-plan-summary.json create mode 100644 .railway/evidence/2026-11-12/production-plan-summary.json create mode 100644 .railway/evidence/2026-11-12/staging-plan-summary.json create mode 100644 .railway/evidence/2026-11-12/verification.md diff --git a/.railway/README.md b/.railway/README.md index d9526137..b6009b9a 100644 --- a/.railway/README.md +++ b/.railway/README.md @@ -30,7 +30,7 @@ deployment. Do not put its path in the dashboard's legacy **Config File** field. 2. Verify the declared source connections and roots: `/` for api, worker, website; `/apps/dashboard` for dashboard; `/apps/learn` for learn. For a PR environment, set `RAILWAY_CONFIG_BRANCH` to its existing GitHub branch for every plan/apply. - Production uses `main`; staging retains `offseason/mock-game-charged-up`. + Production and staging use `main`, matching the verified live services. Compare variable names with `env` in the file and add `preserve()` entries for any newly configured variables before applying. Never include secret values. Preserve Dashboard's existing release workflow when deciding source/deploy policy. 3. Confirm the preview has isolated Postgres/Redis and sandbox integration keys. @@ -75,3 +75,20 @@ API retains the private database migration/start command and staging's 2 CPU / `bun run enqueue tournaments 2025` or `bun run backfill 1992 2025`. See [Railway's IaC migration guide](https://docs.railway.com/infrastructure-as-code#migrating-from-config-as-code). + +## Verified live state (November 12, 2026) + +The Lovat project is `c210dce8-37af-4bf0-b1e0-7e28b30597c6` in **8033 Admin's +Projects**. The connected list-projects inventory omitted it; a direct project ID +lookup and the local Railway CLI both work. See the +[cutover verification record](evidence/2026-11-12/verification.md) and redacted +configuration snapshot. The five application services already belong to the +`lovat-apps` named partial in production, staging and PR #128. + +The audit found source/sleeping/preview-limit drift in the authored file. The +updated definitions preserve the observed live settings rather than changing +service availability, cost or staging source on the next apply. Healthcheck +readiness (LVT-339), required deployment checks (LVT-337), and release migrations +(LVT-338) remain separate proposed changes. No live settings were applied by +this audit. Secret-value isolation and a restore/rollback exercise still need +independent evidence. diff --git a/.railway/config.test.mjs b/.railway/config.test.mjs index b9b5e430..6abb5d37 100644 --- a/.railway/config.test.mjs +++ b/.railway/config.test.mjs @@ -20,19 +20,20 @@ for (const environment of ["production", "staging"]) { for (const resource of graph.resources) { assert.equal(resource.build.builder, "DOCKERFILE"); assert(resource.build.watchPatterns.includes("/.railway/**")); - assert.notEqual(resource.deploy.sleepApplication, true); + assert.equal( + resource.deploy.sleepApplication, + resource.name === "worker" || + (resource.name === "api" && environment === "production") + ? undefined + : true, + ); assert.equal( resource.deploy.restartPolicyType ?? "ON_FAILURE", "ON_FAILURE", ); // Keep source connections and credential values during adoption. assert.equal(resource.source.repo, "HighlanderRobotics/lovat"); - assert.equal( - resource.source.branch, - environment === "production" - ? "main" - : "offseason/mock-game-charged-up", - ); + assert.equal(resource.source.branch, "main"); assert(Object.keys(resource.variables).length > 0); for (const value of Object.values(resource.variables)) { assert.deepEqual(value, { type: "preserve" }); @@ -89,3 +90,31 @@ test("refuses preview plans without an explicit source branch", () => { else process.env.RAILWAY_CONFIG_BRANCH = previous; } }); + +test("preview retains inherited sleeping and API limits without owning databases", (t) => { + const previous = process.env.RAILWAY_CONFIG_BRANCH; + process.env.RAILWAY_CONFIG_BRANCH = + "jackshim415/lvt-334-server-redact-request-analytics-and"; + t.after(() => { + if (previous === undefined) { + delete process.env.RAILWAY_CONFIG_BRANCH; + } else { + process.env.RAILWAY_CONFIG_BRANCH = previous; + } + }); + const graph = config( + createRailwayContext({ environment: "lovat-pr-128", projectName: "lovat" }), + ); + assert.equal(graph.resources.length, 5); + for (const resource of graph.resources) { + assert.equal(resource.source.branch, process.env.RAILWAY_CONFIG_BRANCH); + assert.equal( + resource.deploy.sleepApplication, + resource.name === "worker" ? undefined : true, + ); + } + const api = graph.resources.find((r) => r.name === "api"); + assert.deepEqual(api.deploy.limitOverride, { + containers: { cpu: 2, memoryBytes: 2147483648 }, + }); +}); diff --git a/.railway/evidence/2026-11-12/live-inventory.json b/.railway/evidence/2026-11-12/live-inventory.json new file mode 100644 index 00000000..7b503c13 --- /dev/null +++ b/.railway/evidence/2026-11-12/live-inventory.json @@ -0,0 +1,1864 @@ +{ + "observedDate": "2026-11-12", + "projectId": "c210dce8-37af-4bf0-b1e0-7e28b30597c6", + "environments": { + "production": { + "inventory": { + "project": { + "id": "c210dce8-37af-4bf0-b1e0-7e28b30597c6", + "name": "lovat", + "workspaceName": "8033 Admin's Projects" + }, + "environment": { + "id": "9f0088a8-9fe7-4afa-b634-cd1db046f045", + "name": "production", + "isEphemeral": false + }, + "staged": null, + "region": null, + "services": [ + { + "id": "2c361c7e-0936-4777-a3a8-31973b08f9c5", + "name": "website", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "88edfb74-54a0-48fe-a0ff-eadd00a762e6", + "status": "SLEEPING", + "createdAt": "2026-11-13T04:07:25.000Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "99a7baae-d20f-48d1-83a8-f4d0965f26f2", + "name": "worker", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "dff1453c-3fef-4684-bd5b-afd5ed5657be", + "status": "SUCCESS", + "createdAt": "2026-11-10T15:45:45.345Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "7466d74a-228c-43e4-8dfb-28e9d7a5975d", + "name": "dashboard", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "4b556c2e-db29-48ba-b882-0e5587554f50", + "status": "SLEEPING", + "createdAt": "2026-11-13T04:07:24.999Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "356589e7-d546-4eeb-84d8-6dec0fa40863", + "name": "learn", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "4f666324-b7a4-4b6a-b44e-bcc61f8cfa17", + "status": "SLEEPING", + "createdAt": "2026-11-13T04:07:25.008Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "c8bca5d9-eb38-4d3c-9318-40a5b72fe0bd", + "name": "Postgres", + "state": "live", + "source": { + "image": "ghcr.io/railwayapp-templates/postgres-ssl:16", + "repo": null, + "branch": null + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [ + { + "volumeId": "3dfadc08-5ed0-4470-893a-a15f5667fc66", + "volumeName": "ink-volume", + "mountPath": "/var/lib/postgresql/data" + } + ], + "latestDeployment": { + "id": "bc51912a-9629-46ee-821c-00959427e43d", + "status": "SUCCESS", + "createdAt": "2026-11-05T15:07:12.359Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "f2015c97-62cd-4f1b-9144-4c64d13e487b", + "name": "api", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "e7374dcb-6e4f-44a4-b11a-29dc4c8f4234", + "status": "SUCCESS", + "createdAt": "2026-11-13T00:54:07.820Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "a6e778c7-4c13-48ba-81bd-f3db8c9ec0f0", + "name": "Redis", + "state": "live", + "source": { + "image": "redis:8.10.3", + "repo": null, + "branch": null + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [ + { + "volumeId": "1de4c728-4246-43d0-98e6-41a83cd44672", + "volumeName": "redis-volume", + "mountPath": "/data" + } + ], + "latestDeployment": { + "id": "69a85feb-f093-46c2-9332-978be094bb04", + "status": "SUCCESS", + "createdAt": "2026-11-05T15:09:12.796Z", + "url": null + }, + "stagedChangeCount": 0 + } + ], + "volumes": [ + { + "id": "3dfadc08-5ed0-4470-893a-a15f5667fc66", + "name": "ink-volume", + "state": "live", + "region": "us-west2", + "sizeMB": 5000, + "mountedOn": { + "serviceId": "c8bca5d9-eb38-4d3c-9318-40a5b72fe0bd", + "serviceName": "Postgres", + "mountPath": "/var/lib/postgresql/data" + }, + "stagedChangeCount": 0 + }, + { + "id": "1de4c728-4246-43d0-98e6-41a83cd44672", + "name": "redis-volume", + "state": "live", + "region": "us-west2", + "sizeMB": 5000, + "mountedOn": { + "serviceId": "a6e778c7-4c13-48ba-81bd-f3db8c9ec0f0", + "serviceName": "Redis", + "mountPath": "/data" + }, + "stagedChangeCount": 0 + } + ], + "buckets": [ + { + "id": "3cb0fa95-8aa3-4148-a899-488969e2a66f", + "name": "Postgres-PITR", + "state": "live", + "region": "sjc", + "stagedChangeCount": 0 + } + ], + "sharedVariableNames": [] + }, + "services": { + "api": { + "service": { + "id": "f2015c97-62cd-4f1b-9144-4c64d13e487b", + "name": "api", + "state": "live" + }, + "environment": { + "id": "9f0088a8-9fe7-4afa-b634-cd1db046f045", + "name": "production" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "lovat-server-production.up.railway.app": {} + }, + "customDomains": { + "api.lovat.app": {} + }, + "privateNetworkEndpoint": "lovat-server" + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/server/**", + "/packages/db/**", + "/.railway/**" + ], + "buildEnvironment": "V3", + "dockerfilePath": "apps/server/Dockerfile" + }, + "deploy": { + "startCommand": "sh -c 'export DATABASE_URL=\"$DATABASE_PRIVATE_URL\"; npm --prefix ../../packages/db run db:deploy && exec npm start'", + "healthcheckPath": "/status", + "healthcheckTimeout": 1200, + "restartPolicyMaxRetries": 20, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1, + "stackerAssignment": null + } + } + }, + "configFile": "" + }, + "stagedChanges": [], + "variableNames": [ + "AUTH0_DOMAIN", + "BASE_URL", + "DATABASE_PRIVATE_URL", + "DATABASE_URL", + "DIRECT_DATABASE_URL", + "LOVAT_SIGNING_KEY", + "LOVAT_WEBSITE", + "PIT_DISPLAY_KEY", + "PORT", + "POSTHOG_PROJECT_API_KEY", + "REDIS_URL", + "RESEND_KEY", + "SLACK_APP_ID", + "SLACK_CLIENT_ID", + "SLACK_CLIENT_SECRET", + "SLACK_VERIFICATION_KEY", + "SLACK_WEBHOOK", + "TBA_KEY" + ], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "d6a75eb5-6e96-4eef-9219-724c366960bc", + "domain": "lovat-server-production.up.railway.app", + "targetPort": null + } + ], + "customDomains": [ + { + "id": "b9ce5260-9264-463a-9581-0c9370d8f8ef", + "domain": "api.lovat.app", + "targetPort": null + } + ] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "e7374dcb-6e4f-44a4-b11a-29dc4c8f4234", + "status": "SUCCESS", + "createdAt": "2026-11-13T00:54:07.820Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "worker": { + "service": { + "id": "99a7baae-d20f-48d1-83a8-f4d0965f26f2", + "name": "worker", + "state": "live" + }, + "environment": { + "id": "9f0088a8-9fe7-4afa-b634-cd1db046f045", + "name": "production" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/", + "checkSuites": false + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/worker/**", + "/packages/db/**", + "/.railway/**" + ], + "buildEnvironment": "V3", + "dockerfilePath": "apps/worker/Dockerfile" + }, + "deploy": { + "startCommand": "bun index.ts", + "healthcheckPath": "/health", + "healthcheckTimeout": 120, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + }, + "drainingSeconds": 60 + } + }, + "stagedChanges": [], + "variableNames": ["DATABASE_URL", "TBA_KEY", "WORKER_CONCURRENCY"], + "volumes": [], + "domains": { + "serviceDomains": [], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "dff1453c-3fef-4684-bd5b-afd5ed5657be", + "status": "SUCCESS", + "createdAt": "2026-11-10T15:45:45.345Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "dashboard": { + "service": { + "id": "7466d74a-228c-43e4-8dfb-28e9d7a5975d", + "name": "dashboard", + "state": "live" + }, + "environment": { + "id": "9f0088a8-9fe7-4afa-b634-cd1db046f045", + "name": "production" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/apps/dashboard" + }, + "networking": { + "serviceDomains": { + "dashboard-production-4f76.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": ["/apps/dashboard/**", "/.railway/**"], + "buildEnvironment": "V3", + "dockerfilePath": "Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "cdn": { + "enabled": true + } + }, + "stagedChanges": [], + "variableNames": ["LOVAT_API_BASE", "LOVAT_WEBSITE_URL", "PORT"], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "5208be5a-3be3-4c3d-9b11-1f8d6da50d14", + "domain": "dashboard-production-4f76.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "4b556c2e-db29-48ba-b882-0e5587554f50", + "status": "SLEEPING", + "createdAt": "2026-11-13T04:07:24.999Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "website": { + "service": { + "id": "2c361c7e-0936-4777-a3a8-31973b08f9c5", + "name": "website", + "state": "live" + }, + "environment": { + "id": "9f0088a8-9fe7-4afa-b634-cd1db046f045", + "name": "production" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "website-production-8b64.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/website/**", + "/CHANGELOG.md", + "/.railway/**" + ], + "buildEnvironment": "V3", + "dockerfilePath": "apps/website/Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "cdn": { + "enabled": true + } + }, + "stagedChanges": [], + "variableNames": [ + "LOVAT_API_BASE", + "LOVAT_SIGNING_KEY", + "ORIGIN", + "PORT", + "PUBLIC_DASHBOARD_URL", + "PUBLIC_LEARN_URL", + "PUBLIC_WEBSITE_URL", + "RECAPTCHA_SECRET_KEY", + "RECAPTCHA_SITE_KEY" + ], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "e83ba00f-5578-4243-aeb0-b6e01dac726e", + "domain": "website-production-8b64.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "88edfb74-54a0-48fe-a0ff-eadd00a762e6", + "status": "SLEEPING", + "createdAt": "2026-11-13T04:07:25.000Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "learn": { + "service": { + "id": "356589e7-d546-4eeb-84d8-6dec0fa40863", + "name": "learn", + "state": "live" + }, + "environment": { + "id": "9f0088a8-9fe7-4afa-b634-cd1db046f045", + "name": "production" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/apps/learn" + }, + "networking": { + "serviceDomains": { + "learn-production-3ca4.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": ["/apps/learn/**", "/.railway/**"], + "buildEnvironment": "V3", + "dockerfilePath": "Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "cdn": { + "enabled": true + } + }, + "stagedChanges": [], + "variableNames": ["PORT", "PUBLIC_WEBSITE_URL"], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "c83f6e01-854c-4c09-afa6-4da8869e0e1a", + "domain": "learn-production-3ca4.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "4f666324-b7a4-4b6a-b44e-bcc61f8cfa17", + "status": "SLEEPING", + "createdAt": "2026-11-13T04:07:25.008Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + } + } + }, + "staging": { + "inventory": { + "project": { + "id": "c210dce8-37af-4bf0-b1e0-7e28b30597c6", + "name": "lovat", + "workspaceName": "8033 Admin's Projects" + }, + "environment": { + "id": "1902828c-65ae-455c-90c8-5a370b7cedab", + "name": "staging", + "isEphemeral": false + }, + "staged": null, + "region": null, + "services": [ + { + "id": "7466d74a-228c-43e4-8dfb-28e9d7a5975d", + "name": "dashboard", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "bea9389e-51c7-4f9b-937e-781d8e2ba770", + "status": "SLEEPING", + "createdAt": "2026-11-13T00:54:59.597Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "a6e778c7-4c13-48ba-81bd-f3db8c9ec0f0", + "name": "Redis", + "state": "live", + "source": { + "image": "redis:8.2.9", + "repo": null, + "branch": null + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [ + { + "volumeId": "1de4c728-4246-43d0-98e6-41a83cd44672", + "volumeName": "redis-volume", + "mountPath": "/data" + } + ], + "latestDeployment": { + "id": "d11b183e-43bc-450e-b009-30777e4c6a99", + "status": "SUCCESS", + "createdAt": "2026-09-11T03:33:58.784Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "356589e7-d546-4eeb-84d8-6dec0fa40863", + "name": "learn", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "0ec66e42-74a4-4b4a-817c-adbfafc90b2d", + "status": "SLEEPING", + "createdAt": "2026-11-12T03:22:27.956Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "c8bca5d9-eb38-4d3c-9318-40a5b72fe0bd", + "name": "Postgres", + "state": "live", + "source": { + "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest", + "repo": null, + "branch": null + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [ + { + "volumeId": "3dfadc08-5ed0-4470-893a-a15f5667fc66", + "volumeName": "ink-volume", + "mountPath": "/var/lib/postgresql/data" + } + ], + "latestDeployment": { + "id": "a73fde67-df04-42ea-ab77-96e1c5c51909", + "status": "SUCCESS", + "createdAt": "2026-11-03T05:11:34.562Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "99a7baae-d20f-48d1-83a8-f4d0965f26f2", + "name": "worker", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "e5e29a90-fb23-4c1f-927a-c92c15ca70ed", + "status": "SUCCESS", + "createdAt": "2026-11-12T03:22:27.757Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "2655a246-ede9-46b7-a4d1-fce379d985d4", + "name": "support", + "state": "live", + "source": null, + "regions": ["sfo"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "8fa44b29-1dfe-4d77-b3d0-acd3632251c6", + "status": "FAILED", + "createdAt": "2026-09-24T23:29:09.508Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "f2015c97-62cd-4f1b-9144-4c64d13e487b", + "name": "api", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "f25a26d6-dab0-4534-b42a-db10d84f03bc", + "status": "SUCCESS", + "createdAt": "2026-11-13T00:54:07.822Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "2c361c7e-0936-4777-a3a8-31973b08f9c5", + "name": "website", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "main" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "551ab25c-7443-4f53-8fd1-60ec2bb14c0c", + "status": "SLEEPING", + "createdAt": "2026-11-12T03:22:27.695Z", + "url": null + }, + "stagedChangeCount": 0 + } + ], + "volumes": [ + { + "id": "3dfadc08-5ed0-4470-893a-a15f5667fc66", + "name": "ink-volume", + "state": "live", + "region": "us-west2", + "sizeMB": 5000, + "mountedOn": { + "serviceId": "c8bca5d9-eb38-4d3c-9318-40a5b72fe0bd", + "serviceName": "Postgres", + "mountPath": "/var/lib/postgresql/data" + }, + "stagedChangeCount": 0 + }, + { + "id": "1de4c728-4246-43d0-98e6-41a83cd44672", + "name": "redis-volume", + "state": "live", + "region": "us-west2", + "sizeMB": 5000, + "mountedOn": { + "serviceId": "a6e778c7-4c13-48ba-81bd-f3db8c9ec0f0", + "serviceName": "Redis", + "mountPath": "/data" + }, + "stagedChangeCount": 0 + } + ], + "buckets": [], + "sharedVariableNames": [] + }, + "services": { + "api": { + "service": { + "id": "f2015c97-62cd-4f1b-9144-4c64d13e487b", + "name": "api", + "state": "live" + }, + "environment": { + "id": "1902828c-65ae-455c-90c8-5a370b7cedab", + "name": "staging" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "lovat-server-staging.up.railway.app": {} + }, + "privateNetworkEndpoint": "lovat-server" + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/server/**", + "/packages/db/**", + "/.railway/**" + ], + "buildCommand": "", + "buildEnvironment": "V3", + "dockerfilePath": "apps/server/Dockerfile", + "nixpacksPlan": { + "repo": "MangoSwirl/lovat-server" + } + }, + "deploy": { + "startCommand": "sh -c 'export DATABASE_URL=\"$DATABASE_PRIVATE_URL\"; npm --prefix ../../packages/db run db:deploy && exec npm start'", + "healthcheckPath": "/status", + "limitOverride": { + "containers": { + "cpu": 2, + "memoryBytes": 2147483648 + } + }, + "healthcheckTimeout": 1200, + "restartPolicyMaxRetries": 20, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "configFile": "" + }, + "stagedChanges": [], + "variableNames": [ + "AUTH0_DOMAIN", + "BASE_URL", + "CORS_ALLOWED_ORIGINS", + "DATABASE_PRIVATE_URL", + "DATABASE_URL", + "DIRECT_DATABASE_URL", + "LOVAT_SIGNING_KEY", + "LOVAT_WEBSITE", + "NPM_CONFIG_PRODUCTION", + "PIT_DISPLAY_KEY", + "PORT", + "POSTHOG_PROJECT_API_KEY", + "REDIS_URL", + "RESEND_KEY", + "SLACK_APP_ID", + "SLACK_CLIENT_ID", + "SLACK_CLIENT_SECRET", + "SLACK_VERIFICATION_KEY", + "SLACK_WEBHOOK", + "TBA_KEY" + ], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "5db43b64-860e-4a9f-8b6b-6b27ee758194", + "domain": "lovat-server-staging.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "f25a26d6-dab0-4534-b42a-db10d84f03bc", + "status": "SUCCESS", + "createdAt": "2026-11-13T00:54:07.822Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "worker": { + "service": { + "id": "99a7baae-d20f-48d1-83a8-f4d0965f26f2", + "name": "worker", + "state": "live" + }, + "environment": { + "id": "1902828c-65ae-455c-90c8-5a370b7cedab", + "name": "staging" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "privateNetworkEndpoint": "learn-b671070f-ed43-449f-9106-1f2605856b3a" + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/worker/**", + "/packages/db/**", + "/.railway/**" + ], + "buildEnvironment": "V3", + "dockerfilePath": "apps/worker/Dockerfile" + }, + "deploy": { + "startCommand": "bun index.ts", + "healthcheckPath": "/health", + "healthcheckTimeout": 120, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + }, + "drainingSeconds": 60 + } + }, + "stagedChanges": [], + "variableNames": ["DATABASE_URL", "TBA_KEY", "WORKER_CONCURRENCY"], + "volumes": [], + "domains": { + "serviceDomains": [], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "e5e29a90-fb23-4c1f-927a-c92c15ca70ed", + "status": "SUCCESS", + "createdAt": "2026-11-12T03:22:27.757Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "dashboard": { + "service": { + "id": "7466d74a-228c-43e4-8dfb-28e9d7a5975d", + "name": "dashboard", + "state": "live" + }, + "environment": { + "id": "1902828c-65ae-455c-90c8-5a370b7cedab", + "name": "staging" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/apps/dashboard", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "lovat-dashboard-staging.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": ["/apps/dashboard/**", "/.railway/**"], + "buildEnvironment": "V3", + "dockerfilePath": "Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "cdn": { + "enabled": true + } + }, + "stagedChanges": [], + "variableNames": ["LOVAT_API_BASE", "LOVAT_WEBSITE_URL", "PORT"], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "6a02b62b-fdd7-4c01-af21-e0f903675f6c", + "domain": "lovat-dashboard-staging.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "bea9389e-51c7-4f9b-937e-781d8e2ba770", + "status": "SLEEPING", + "createdAt": "2026-11-13T00:54:59.597Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "website": { + "service": { + "id": "2c361c7e-0936-4777-a3a8-31973b08f9c5", + "name": "website", + "state": "live" + }, + "environment": { + "id": "1902828c-65ae-455c-90c8-5a370b7cedab", + "name": "staging" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "lovat-website-staging.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/website/**", + "/CHANGELOG.md", + "/.railway/**" + ], + "buildEnvironment": "V3", + "dockerfilePath": "apps/website/Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "cdn": { + "enabled": true + } + }, + "stagedChanges": [], + "variableNames": [ + "LOVAT_API_BASE", + "LOVAT_SIGNING_KEY", + "ORIGIN", + "PORT", + "PUBLIC_DASHBOARD_URL", + "PUBLIC_LEARN_URL", + "PUBLIC_WEBSITE_URL" + ], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "eb71dc27-1c2a-4d1e-abc3-8ae1e7b64e37", + "domain": "lovat-website-staging.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "551ab25c-7443-4f53-8fd1-60ec2bb14c0c", + "status": "SLEEPING", + "createdAt": "2026-11-12T03:22:27.695Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "learn": { + "service": { + "id": "356589e7-d546-4eeb-84d8-6dec0fa40863", + "name": "learn", + "state": "live" + }, + "environment": { + "id": "1902828c-65ae-455c-90c8-5a370b7cedab", + "name": "staging" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "main", + "rootDirectory": "/apps/learn", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "lovat-learn-staging.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": ["/apps/learn/**", "/.railway/**"], + "buildEnvironment": "V3", + "dockerfilePath": "Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "cdn": { + "enabled": true + } + }, + "stagedChanges": [], + "variableNames": ["PORT", "PUBLIC_WEBSITE_URL"], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "6bcc1ed3-4368-4b41-8239-5e29bbaefa11", + "domain": "lovat-learn-staging.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "0ec66e42-74a4-4b4a-817c-adbfafc90b2d", + "status": "SLEEPING", + "createdAt": "2026-11-12T03:22:27.956Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + } + } + }, + "preview128": { + "inventory": { + "project": { + "id": "c210dce8-37af-4bf0-b1e0-7e28b30597c6", + "name": "lovat", + "workspaceName": "8033 Admin's Projects" + }, + "environment": { + "id": "d42d9835-c01a-48c4-bcd2-424fa61e93c3", + "name": "lovat-pr-128", + "isEphemeral": true + }, + "staged": null, + "region": null, + "services": [ + { + "id": "99a7baae-d20f-48d1-83a8-f4d0965f26f2", + "name": "worker", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": null, + "stagedChangeCount": 0 + }, + { + "id": "2c361c7e-0936-4777-a3a8-31973b08f9c5", + "name": "website", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "bbbdf529-a857-4de3-b7ff-ec7e0eb3fd96", + "status": "SLEEPING", + "createdAt": "2026-11-13T06:30:36.234Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "c8bca5d9-eb38-4d3c-9318-40a5b72fe0bd", + "name": "Postgres", + "state": "live", + "source": { + "image": "ghcr.io/railwayapp-templates/postgres-ssl:latest", + "repo": null, + "branch": null + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [ + { + "volumeId": "3dfadc08-5ed0-4470-893a-a15f5667fc66", + "volumeName": "ink-volume", + "mountPath": "/var/lib/postgresql/data" + } + ], + "latestDeployment": { + "id": "ccbbcb55-e3ca-498f-8adf-387631b3e6da", + "status": "SUCCESS", + "createdAt": "2026-11-13T06:30:35.957Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "2655a246-ede9-46b7-a4d1-fce379d985d4", + "name": "support", + "state": "live", + "source": null, + "regions": ["sfo"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": null, + "stagedChangeCount": 0 + }, + { + "id": "f2015c97-62cd-4f1b-9144-4c64d13e487b", + "name": "api", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "4c063820-8764-4190-9814-a689df7fe417", + "status": "SUCCESS", + "createdAt": "2026-11-13T06:30:36.218Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "7466d74a-228c-43e4-8dfb-28e9d7a5975d", + "name": "dashboard", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "1ab2fa7e-023e-4463-a573-bab102debd96", + "status": "SLEEPING", + "createdAt": "2026-11-13T06:30:36.241Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "356589e7-d546-4eeb-84d8-6dec0fa40863", + "name": "learn", + "state": "live", + "source": { + "image": null, + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and" + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [], + "latestDeployment": { + "id": "575feabd-6eb6-43e9-8c84-18277c508c32", + "status": "SLEEPING", + "createdAt": "2026-11-13T06:30:36.210Z", + "url": null + }, + "stagedChangeCount": 0 + }, + { + "id": "a6e778c7-4c13-48ba-81bd-f3db8c9ec0f0", + "name": "Redis", + "state": "live", + "source": { + "image": "redis:8.2.9", + "repo": null, + "branch": null + }, + "regions": ["us-west2"], + "numReplicas": 1, + "cronSchedule": null, + "volumeMounts": [ + { + "volumeId": "1de4c728-4246-43d0-98e6-41a83cd44672", + "volumeName": "redis-volume", + "mountPath": "/data" + } + ], + "latestDeployment": { + "id": "df7c6773-5dbb-4c35-99b8-0b9d499eca36", + "status": "SUCCESS", + "createdAt": "2026-11-13T06:30:35.963Z", + "url": null + }, + "stagedChangeCount": 0 + } + ], + "volumes": [ + { + "id": "1de4c728-4246-43d0-98e6-41a83cd44672", + "name": "redis-volume", + "state": "live", + "region": "us-west2", + "sizeMB": 50000, + "mountedOn": { + "serviceId": "a6e778c7-4c13-48ba-81bd-f3db8c9ec0f0", + "serviceName": "Redis", + "mountPath": "/data" + }, + "stagedChangeCount": 0 + }, + { + "id": "3dfadc08-5ed0-4470-893a-a15f5667fc66", + "name": "ink-volume", + "state": "live", + "region": "us-west2", + "sizeMB": 50000, + "mountedOn": { + "serviceId": "c8bca5d9-eb38-4d3c-9318-40a5b72fe0bd", + "serviceName": "Postgres", + "mountPath": "/var/lib/postgresql/data" + }, + "stagedChangeCount": 0 + } + ], + "buckets": [], + "sharedVariableNames": [] + }, + "services": { + "api": { + "service": { + "id": "f2015c97-62cd-4f1b-9144-4c64d13e487b", + "name": "api", + "state": "live" + }, + "environment": { + "id": "d42d9835-c01a-48c4-bcd2-424fa61e93c3", + "name": "lovat-pr-128" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "api-lovat-pr-128.up.railway.app": {} + }, + "privateNetworkEndpoint": "lovat-server" + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/server/**", + "/packages/db/**", + "/.railway/**" + ], + "buildCommand": "", + "buildEnvironment": "V3", + "dockerfilePath": "apps/server/Dockerfile", + "nixpacksPlan": { + "repo": "MangoSwirl/lovat-server" + } + }, + "deploy": { + "startCommand": "sh -c 'export DATABASE_URL=\"$DATABASE_PRIVATE_URL\"; npm --prefix ../../packages/db run db:deploy && exec npm start'", + "healthcheckPath": "/status", + "limitOverride": { + "containers": { + "cpu": 2, + "memoryBytes": 2147483648 + } + }, + "healthcheckTimeout": 1200, + "restartPolicyMaxRetries": 20, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + }, + "configFile": "" + }, + "stagedChanges": [], + "variableNames": [ + "AUTH0_DOMAIN", + "BASE_URL", + "CORS_ALLOWED_ORIGINS", + "DATABASE_PRIVATE_URL", + "DATABASE_URL", + "DIRECT_DATABASE_URL", + "LOVAT_SIGNING_KEY", + "LOVAT_WEBSITE", + "NPM_CONFIG_PRODUCTION", + "PIT_DISPLAY_KEY", + "PORT", + "POSTHOG_PROJECT_API_KEY", + "REDIS_URL", + "RESEND_KEY", + "SLACK_APP_ID", + "SLACK_CLIENT_ID", + "SLACK_CLIENT_SECRET", + "SLACK_VERIFICATION_KEY", + "SLACK_WEBHOOK", + "TBA_KEY" + ], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "a43013c8-b72c-4a6d-af6b-094114be68e9", + "domain": "api-lovat-pr-128.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "4c063820-8764-4190-9814-a689df7fe417", + "status": "SUCCESS", + "createdAt": "2026-11-13T06:30:36.218Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "worker": { + "service": { + "id": "99a7baae-d20f-48d1-83a8-f4d0965f26f2", + "name": "worker", + "state": "live" + }, + "environment": { + "id": "d42d9835-c01a-48c4-bcd2-424fa61e93c3", + "name": "lovat-pr-128" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "privateNetworkEndpoint": "learn-b671070f-ed43-449f-9106-1f2605856b3a" + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/worker/**", + "/packages/db/**", + "/.railway/**" + ], + "buildEnvironment": "V3", + "dockerfilePath": "apps/worker/Dockerfile" + }, + "deploy": { + "startCommand": "bun index.ts", + "healthcheckPath": "/health", + "healthcheckTimeout": 120, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + }, + "drainingSeconds": 60 + } + }, + "stagedChanges": [], + "variableNames": ["DATABASE_URL", "TBA_KEY", "WORKER_CONCURRENCY"], + "volumes": [], + "domains": { + "serviceDomains": [], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": null, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "dashboard": { + "service": { + "id": "7466d74a-228c-43e4-8dfb-28e9d7a5975d", + "name": "dashboard", + "state": "live" + }, + "environment": { + "id": "d42d9835-c01a-48c4-bcd2-424fa61e93c3", + "name": "lovat-pr-128" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and", + "rootDirectory": "/apps/dashboard", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "dashboard-lovat-pr-128.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": ["/apps/dashboard/**", "/.railway/**"], + "buildEnvironment": "V3", + "dockerfilePath": "Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + } + }, + "stagedChanges": [], + "variableNames": ["LOVAT_API_BASE", "LOVAT_WEBSITE_URL", "PORT"], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "89fd7818-22a0-48bf-8972-abb41371550a", + "domain": "dashboard-lovat-pr-128.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "1ab2fa7e-023e-4463-a573-bab102debd96", + "status": "SLEEPING", + "createdAt": "2026-11-13T06:30:36.241Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "website": { + "service": { + "id": "2c361c7e-0936-4777-a3a8-31973b08f9c5", + "name": "website", + "state": "live" + }, + "environment": { + "id": "d42d9835-c01a-48c4-bcd2-424fa61e93c3", + "name": "lovat-pr-128" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and", + "rootDirectory": "/", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "website-lovat-pr-128.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/apps/website/**", + "/CHANGELOG.md", + "/.railway/**" + ], + "buildEnvironment": "V3", + "dockerfilePath": "apps/website/Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + } + }, + "stagedChanges": [], + "variableNames": [ + "LOVAT_API_BASE", + "LOVAT_SIGNING_KEY", + "ORIGIN", + "PORT", + "PUBLIC_DASHBOARD_URL", + "PUBLIC_LEARN_URL", + "PUBLIC_WEBSITE_URL" + ], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "933ad1f3-42dd-42aa-bccf-fd88f3f14b32", + "domain": "website-lovat-pr-128.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "bbbdf529-a857-4de3-b7ff-ec7e0eb3fd96", + "status": "SLEEPING", + "createdAt": "2026-11-13T06:30:36.234Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + }, + "learn": { + "service": { + "id": "356589e7-d546-4eeb-84d8-6dec0fa40863", + "name": "learn", + "state": "live" + }, + "environment": { + "id": "d42d9835-c01a-48c4-bcd2-424fa61e93c3", + "name": "lovat-pr-128" + }, + "staged": null, + "config": { + "source": { + "repo": "HighlanderRobotics/lovat", + "branch": "jackshim415/lvt-334-server-redact-request-analytics-and", + "rootDirectory": "/apps/learn", + "checkSuites": false + }, + "networking": { + "serviceDomains": { + "learn-lovat-pr-128.up.railway.app": {} + } + }, + "build": { + "builder": "DOCKERFILE", + "watchPatterns": ["/apps/learn/**", "/.railway/**"], + "buildEnvironment": "V3", + "dockerfilePath": "Dockerfile" + }, + "deploy": { + "healthcheckPath": "/healthz", + "healthcheckTimeout": 120, + "restartPolicyMaxRetries": 3, + "sleepApplication": true, + "useLegacyStacker": false, + "ipv6EgressEnabled": false, + "runtime": "V2", + "multiRegionConfig": { + "us-west2": { + "numReplicas": 1 + } + } + } + }, + "stagedChanges": [], + "variableNames": ["PORT", "PUBLIC_WEBSITE_URL"], + "volumes": [], + "domains": { + "serviceDomains": [ + { + "id": "b13c725b-921d-42e4-9044-f73153744614", + "domain": "learn-lovat-pr-128.up.railway.app", + "targetPort": null + } + ], + "customDomains": [] + }, + "tcpProxies": [], + "latestDeployment": { + "id": "575feabd-6eb6-43e9-8c84-18277c508c32", + "status": "SLEEPING", + "createdAt": "2026-11-13T06:30:36.210Z", + "url": null + }, + "tracing": { + "tracingEnabled": false, + "autoInstrumentationEnabled": false, + "autoInstrumentationActive": false + } + } + } + } + }, + "credentialIsolation": { + "verified": false, + "reason": "Variable values withheld by connected app; only names and provisioned resources are visible." + } +} diff --git a/.railway/evidence/2026-11-12/preview128-plan-summary.json b/.railway/evidence/2026-11-12/preview128-plan-summary.json new file mode 100644 index 00000000..f5a2e712 --- /dev/null +++ b/.railway/evidence/2026-11-12/preview128-plan-summary.json @@ -0,0 +1,46 @@ +{ + "observedDate": "2026-11-12", + "context": { + "projectId": "c210dce8-37af-4bf0-b1e0-7e28b30597c6", + "projectName": "lovat", + "environmentId": "d42d9835-c01a-48c4-bcd2-424fa61e93c3", + "environmentName": "lovat-pr-128", + "configEtag": "4d1991890e68aaefcbeb49148d9f55bf325ae85ac5513d488f2a1ed22ac3392a" + }, + "ownership": {}, + "baselineChanges": [ + { + "summary": "Update api deploy.limitOverride.containers.cpu, deploy.limitOverride.containers.memoryBytes, deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": [ + "deploy.limitOverride.containers.cpu (2 \u2192 null)", + "deploy.limitOverride.containers.memoryBytes (2147483648 \u2192 null)", + "deploy.sleepApplication (true \u2192 null)" + ] + }, + { + "summary": "Update dashboard deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + }, + { + "summary": "Update website deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + }, + { + "summary": "Update learn deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + } + ], + "baselineDiagnostics": [], + "note": "Read-only plan; no apply, staged patch or deployment was requested.", + "alignedChanges": [], + "alignedDiagnostics": [], + "alignedConfigEtag": "4d1991890e68aaefcbeb49148d9f55bf325ae85ac5513d488f2a1ed22ac3392a" +} diff --git a/.railway/evidence/2026-11-12/production-plan-summary.json b/.railway/evidence/2026-11-12/production-plan-summary.json new file mode 100644 index 00000000..aa3a44bd --- /dev/null +++ b/.railway/evidence/2026-11-12/production-plan-summary.json @@ -0,0 +1,42 @@ +{ + "observedDate": "2026-11-12", + "context": { + "projectId": "c210dce8-37af-4bf0-b1e0-7e28b30597c6", + "projectName": "lovat", + "environmentId": "9f0088a8-9fe7-4afa-b634-cd1db046f045", + "environmentName": "production", + "configEtag": "836fda7d45c69402d150c376dee636579517a957916eaa058e908dfd19463de8" + }, + "ownership": { + "service.api": "lovat-apps", + "service.dashboard": "lovat-apps", + "service.learn": "lovat-apps", + "service.website": "lovat-apps", + "service.worker": "lovat-apps" + }, + "baselineChanges": [ + { + "summary": "Update dashboard deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + }, + { + "summary": "Update website deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + }, + { + "summary": "Update learn deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + } + ], + "baselineDiagnostics": [], + "note": "Read-only plan; no apply, staged patch or deployment was requested.", + "alignedChanges": [], + "alignedDiagnostics": [], + "alignedConfigEtag": "836fda7d45c69402d150c376dee636579517a957916eaa058e908dfd19463de8" +} diff --git a/.railway/evidence/2026-11-12/staging-plan-summary.json b/.railway/evidence/2026-11-12/staging-plan-summary.json new file mode 100644 index 00000000..3fe44582 --- /dev/null +++ b/.railway/evidence/2026-11-12/staging-plan-summary.json @@ -0,0 +1,88 @@ +{ + "observedDate": "2026-11-12", + "context": { + "projectId": "c210dce8-37af-4bf0-b1e0-7e28b30597c6", + "projectName": "lovat", + "environmentId": "1902828c-65ae-455c-90c8-5a370b7cedab", + "environmentName": "staging", + "configEtag": "507874d54ee1cb60cadf52892e50fe9ee05a26650ed8538be98990de97c694c3" + }, + "ownership": { + "service.api": "lovat-apps", + "service.dashboard": "lovat-apps", + "service.learn": "lovat-apps", + "service.website": "lovat-apps", + "service.worker": "lovat-apps" + }, + "baselineChanges": [ + { + "summary": "Update api source.branch", + "severity": "safe", + "kind": "resource.update", + "details": [ + "source.branch (null \u2192 \"offseason/mock-game-charged-up\")" + ] + }, + { + "summary": "Update api deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + }, + { + "summary": "Update worker source.branch", + "severity": "safe", + "kind": "resource.update", + "details": [ + "source.branch (null \u2192 \"offseason/mock-game-charged-up\")" + ] + }, + { + "summary": "Update dashboard source.branch", + "severity": "safe", + "kind": "resource.update", + "details": [ + "source.branch (null \u2192 \"offseason/mock-game-charged-up\")" + ] + }, + { + "summary": "Update dashboard deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + }, + { + "summary": "Update website source.branch", + "severity": "safe", + "kind": "resource.update", + "details": [ + "source.branch (null \u2192 \"offseason/mock-game-charged-up\")" + ] + }, + { + "summary": "Update website deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + }, + { + "summary": "Update learn source.branch", + "severity": "safe", + "kind": "resource.update", + "details": [ + "source.branch (null \u2192 \"offseason/mock-game-charged-up\")" + ] + }, + { + "summary": "Update learn deploy.sleepApplication", + "severity": "safe", + "kind": "resource.update", + "details": ["deploy.sleepApplication (true \u2192 null)"] + } + ], + "baselineDiagnostics": [], + "note": "Read-only plan; no apply, staged patch or deployment was requested.", + "alignedChanges": [], + "alignedDiagnostics": [], + "alignedConfigEtag": "507874d54ee1cb60cadf52892e50fe9ee05a26650ed8538be98990de97c694c3" +} diff --git a/.railway/evidence/2026-11-12/verification.md b/.railway/evidence/2026-11-12/verification.md new file mode 100644 index 00000000..3ec5662a --- /dev/null +++ b/.railway/evidence/2026-11-12/verification.md @@ -0,0 +1,104 @@ +# Lovat Railway cutover verification — November 12, 2026 + +Read-only inspection used Railway MCP plus Railway CLI **5.62.1**. The project is +`lovat` (`c210dce8-37af-4bf0-b1e0-7e28b30597c6`) in **8033 Admin's Projects**. +The connector's list-projects response omitted this project; direct lookup by +the project ID from GitHub's deployment status links and CLI linking succeeded. +No infrastructure apply, deployment, variable update, resource deletion or DNS +change was performed. Opening the associated application PRs automatically +created Railway preview builds through the existing GitHub integration. + +## Verified state + +| Environment | ID | App source branch | Named partial | Aligned plan | +| ------------ | -------------------------------------- | --------------------------------------------------------- | --------------------------- | ------------ | +| production | `9f0088a8-9fe7-4afa-b634-cd1db046f045` | `main` | `lovat-apps`, all five apps | No changes | +| staging | `1902828c-65ae-455c-90c8-5a370b7cedab` | `main` | `lovat-apps`, all five apps | No changes | +| lovat-pr-128 | `d42d9835-c01a-48c4-bcd2-424fa61e93c3` | `jackshim415/lvt-334-server-redact-request-analytics-and` | `lovat-apps`, all five apps | No changes | + +All environments had no pending staged patch at inspection. Ownership maps +contain exactly `service.api`, `service.worker`, `service.dashboard`, +`service.website` and `service.learn`; databases and storage are outside this +partial. Legacy Config File is blank on API; the other four apps have no legacy +file configured. All five use Dockerfile builds and include `/.railway/**` in +their watch patterns. API and Worker additionally watch `/packages/db/**`. + +| App | Source root | Dockerfile | Current healthcheck | +| --------- | ----------------- | ------------------------- | ----------------------- | +| api | `/` | `apps/server/Dockerfile` | `/status`, 1200 seconds | +| worker | `/` | `apps/worker/Dockerfile` | `/health`, 120 seconds | +| dashboard | `/apps/dashboard` | `Dockerfile` | `/healthz`, 120 seconds | +| website | `/` | `apps/website/Dockerfile` | `/healthz`, 120 seconds | +| learn | `/apps/learn` | `Dockerfile` | `/healthz`, 120 seconds | + +All apps use one replica in `us-west2`. Dashboard, Website and Learn sleep in all +three environments; API sleeps in staging/previews and stays awake in production. +Staging and preview API have two CPUs/2 GiB container limits. Worker drains for +60 seconds. Current API start runs Prisma deploy before npm start; Worker does +not run migrations. This verifies the declared migration owner, not safe +coordination across concurrent API releases (LVT-338). + +## Drift fixed in the authoring file + +The baseline plans would have removed web sleeping in production; changed all +five staging sources back to `offseason/mock-game-charged-up`; removed staging +and preview sleeping; and removed the inherited preview API limits. The +accompanying IaC change preserves the observed source/sleeping/limit settings. +Replanned production, staging and PR #128 all return **zero changes and zero +diagnostics**, with no apply requested. See the individual plan summaries for +before/after differences and live config ETags. + +Deployment gates remain disabled in source config (LVT-337). API readiness and +termination are proposed in LVT-339; applying those settings requires deploying +the new image first. This audit intentionally leaves those live settings as +observed. No source root, watch path, variable set or resource identity changed. + +## Storage, credentials and remaining verification + +Production and staging each show Postgres and Redis volumes at 5 GB; PR #128 +shows its environment-provisioned volumes at 50 GB. Railway resource IDs are +project-scoped logical identities reused across environments, so matching IDs +alone do **not** establish shared data or isolation. Production additionally has +the `Postgres-PITR` bucket in `sjc`; its presence alone does not establish backup +coverage, retention or successful recovery. LVT-346 owns restore evidence. + +The OAuth connector exposes variable names only, with `valuesRedacted: true`. +No secret values were fetched or committed. The required variable names are +preserved in the partial, but PostgreSQL/Redis connection targets, credentials +and sandbox integration isolation remain **unverified**. An administrator must +verify their references/targets and sandbox credentials before running writes, +provider integrations, database copies or dependency fault injection in preview. + +PR #128's API, Website, Dashboard and Learn deployment checks passed during this +inspection. Its Worker had no preview deployment at the snapshot point. A +passing deployment or static health endpoint does not prove dependency health, +import freshness or isolation. No manual production traffic, fault injection, +restore or rollback exercise was performed. Keep LVT-336 open until the remaining +isolation and rollback evidence is recorded; named-partial adoption itself is +confirmed for the inspected environments. + +## Reproduce without applying changes + +From the repository root, with Node 22.20.0 and the pinned `.railway` tooling: + +```sh +railway link --project c210dce8-37af-4bf0-b1e0-7e28b30597c6 --environment production --service api +railway config partials list --json +railway config plan --json +# Repeat linking/planning for staging. +railway link --project c210dce8-37af-4bf0-b1e0-7e28b30597c6 --environment lovat-pr-128 --service api +railway config partials list --json +RAILWAY_CONFIG_BRANCH=jackshim415/lvt-334-server-redact-request-analytics-and railway config plan --json +``` + +Run CLI commands directly from the shell. The SDK's native-evaluation version +guard uses environment variable `_` to find the executable; a Python subprocess +wrapper left it pointing at Python and incorrectly reported an old Railway CLI. +Direct commands succeeded. Do not bypass the version requirement or upgrade the +pinned tooling to compensate for that wrapper behavior. + +The [live inventory](live-inventory.json) includes config, deployment IDs, +networking and variable **names** for rollback/reference. The plan summaries +exclude graph variable values. Before using a snapshot for recovery, recheck the +current project/environment, ETag, active deployment and staged changes. Use the +normal reviewed IaC procedure and preserve resources outside this partial. diff --git a/.railway/railway.ts b/.railway/railway.ts index 56de5485..dfbe957f 100644 --- a/.railway/railway.ts +++ b/.railway/railway.ts @@ -5,7 +5,8 @@ export const partial = "lovat-apps"; // Railway omits platform defaults from stored config: sleeping defaults to false, // restart policy to ON_FAILURE, and retry count to 10. Do not re-declare those -// defaults, which otherwise produce a perpetual no-op plan. +// defaults, which otherwise produce a perpetual no-op plan. Explicit sleeping +// settings below preserve the non-default live production/staging/preview policy. export default defineRailway((ctx) => { if (!ctx.environment?.trim()) { throw new Error( @@ -17,9 +18,7 @@ export default defineRailway((ctx) => { const branch = production ? "main" : (process.env.RAILWAY_CONFIG_BRANCH ?? - (ctx.environment === "staging" - ? "offseason/mock-game-charged-up" - : undefined)); + (ctx.environment === "staging" ? "main" : undefined)); if (!branch?.trim()) { throw new Error( @@ -46,6 +45,7 @@ export default defineRailway((ctx) => { }, deploy: { healthcheckPath: "/healthz", + sleepApplication: true, healthcheckTimeout: 120, restartPolicyMaxRetries: 3, }, @@ -61,6 +61,7 @@ export default defineRailway((ctx) => { }, deploy: { healthcheckPath: "/healthz", + sleepApplication: true, healthcheckTimeout: 120, restartPolicyMaxRetries: 3, }, @@ -109,9 +110,10 @@ export default defineRailway((ctx) => { }, }, restartPolicyMaxRetries: 20, + ...(!production ? { sleepApplication: true } : {}), healthcheckPath: "/status", healthcheckTimeout: 1200, - ...(ctx.environment === "staging" + ...(!production ? { limitOverride: { containers: { cpu: 2, memoryBytes: 2147483648 } } } : {}), }, @@ -136,6 +138,7 @@ export default defineRailway((ctx) => { }, deploy: { healthcheckPath: "/healthz", + sleepApplication: true, healthcheckTimeout: 120, restartPolicyMaxRetries: 3, }, From 11732690a1d900be3d555b68f21fac02abcacc9f Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Thu, 12 Nov 2026 22:51:09 -0800 Subject: [PATCH 2/8] docs(infra): distinguish inherited preview settings from partial ownership Refs: LVT-336 --- .railway/README.md | 3 ++- .railway/evidence/2026-11-12/verification.md | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.railway/README.md b/.railway/README.md index b6009b9a..7db40584 100644 --- a/.railway/README.md +++ b/.railway/README.md @@ -83,7 +83,8 @@ Projects**. The connected list-projects inventory omitted it; a direct project I lookup and the local Railway CLI both work. See the [cutover verification record](evidence/2026-11-12/verification.md) and redacted configuration snapshot. The five application services already belong to the -`lovat-apps` named partial in production, staging and PR #128. +`lovat-apps` named partial in production and staging. PR #128 inherits matching +settings but has no explicit partial ownership; preview adoption remains open. The audit found source/sleeping/preview-limit drift in the authored file. The updated definitions preserve the observed live settings rather than changing diff --git a/.railway/evidence/2026-11-12/verification.md b/.railway/evidence/2026-11-12/verification.md index 3ec5662a..0b083d76 100644 --- a/.railway/evidence/2026-11-12/verification.md +++ b/.railway/evidence/2026-11-12/verification.md @@ -16,10 +16,12 @@ created Railway preview builds through the existing GitHub integration. | staging | `1902828c-65ae-455c-90c8-5a370b7cedab` | `main` | `lovat-apps`, all five apps | No changes | | lovat-pr-128 | `d42d9835-c01a-48c4-bcd2-424fa61e93c3` | `jackshim415/lvt-334-server-redact-request-analytics-and` | `lovat-apps`, all five apps | No changes | -All environments had no pending staged patch at inspection. Ownership maps +All environments had no pending staged patch at inspection. Production/staging ownership maps contain exactly `service.api`, `service.worker`, `service.dashboard`, `service.website` and `service.learn`; databases and storage are outside this -partial. Legacy Config File is blank on API; the other four apps have no legacy +partial. PR #128 has an empty ownership map. Its empty plan confirms matching +inherited settings, **not** explicit preview partial adoption. That adoption +requires a separately reviewed apply and subsequent ownership verification. Legacy Config File is blank on API; the other four apps have no legacy file configured. All five use Dockerfile builds and include `/.railway/**` in their watch patterns. API and Worker additionally watch `/packages/db/**`. @@ -74,8 +76,8 @@ inspection. Its Worker had no preview deployment at the snapshot point. A passing deployment or static health endpoint does not prove dependency health, import freshness or isolation. No manual production traffic, fault injection, restore or rollback exercise was performed. Keep LVT-336 open until the remaining -isolation and rollback evidence is recorded; named-partial adoption itself is -confirmed for the inspected environments. +isolation, preview ownership and rollback evidence is recorded; named-partial +adoption itself is confirmed for production and staging. ## Reproduce without applying changes From 8dbd2f98e04566760f7cdca7d1efdf49bc8a65d7 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Fri, 20 Nov 2026 15:44:11 -0800 Subject: [PATCH 3/8] ci: require CodeQL and web images for tested deployments Refs: LVT-336, LVT-337 --- .github/ci-filters.json | 13 ++++++ .github/workflows/ci.yml | 16 +++++++ .github/workflows/codeql.yml | 46 +++++++++----------- .github/workflows/web-hosting.yml | 9 +--- .railway/evidence/2026-11-12/verification.md | 2 +- .railway/railway.ts | 6 ++- scripts/ci-results.mjs | 3 +- scripts/ci-results.test.mjs | 11 +++++ scripts/ci-selection.test.mjs | 11 +++++ 9 files changed, 80 insertions(+), 37 deletions(-) diff --git a/.github/ci-filters.json b/.github/ci-filters.json index 98a44f50..a778da2d 100644 --- a/.github/ci-filters.json +++ b/.github/ci-filters.json @@ -53,6 +53,19 @@ "scripts/ci-results.*", "scripts/ci-selection.*" ], + "web-images": [ + "apps/dashboard/**", + "apps/learn/**", + "apps/website/**", + "CHANGELOG.md", + ".railway/**", + ".github/workflows/ci.yml", + ".github/workflows/web-hosting.yml", + ".github/ci-filters.json", + "scripts/test-web-hosting.mjs", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], "reviewer": [ "tools/pr-reviewer/**", ".github/workflows/ai-review.yml", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13998d25..498a67a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,7 @@ jobs: dashboard: ${{ steps.filter.outputs.dashboard }} collection: ${{ steps.filter.outputs.collection }} website: ${{ steps.filter.outputs.website }} + web-images: ${{ steps.filter.outputs.web-images }} learn: ${{ steps.filter.outputs.learn }} reviewer: ${{ steps.filter.outputs.reviewer }} contracts: ${{ steps.filter.outputs.contracts }} @@ -32,6 +33,19 @@ jobs: with: filters: .github/ci-filters.json + codeql: + uses: ./.github/workflows/codeql.yml + permissions: + contents: read + pull-requests: read + packages: read + security-events: write + + web-images: + needs: changes + if: ${{ needs.changes.outputs.web-images == 'true' }} + uses: ./.github/workflows/web-hosting.yml + structure: name: Structure runs-on: ubuntu-latest @@ -586,6 +600,8 @@ jobs: changes, structure, railway-config, + codeql, + web-images, contracts, reviewer, server, diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 053105c7..8f5c6000 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,37 +1,12 @@ name: CodeQL on: - push: - branches: [main] - paths: - - '.github/workflows/**' - - 'apps/**' - - 'packages/**' - - 'scripts/**' - - 'tools/**' - - '.github/actions/**' - - '.github/codeql-filters.json' - - '*' - pull_request: - branches: [main] - paths: - - '.github/workflows/**' - - 'apps/**' - - 'packages/**' - - 'scripts/**' - - 'tools/**' - - '.github/actions/**' - - '.github/codeql-filters.json' - - '*' + workflow_call: workflow_dispatch: permissions: contents: read -concurrency: - group: codeql-${{ github.ref }} - cancel-in-progress: true - jobs: changes: name: Detect CodeQL inputs @@ -169,3 +144,22 @@ jobs: path: ${{ runner.temp }}/codeql-results/*.sarif if-no-files-found: error retention-days: 7 + + result: + name: Require applicable CodeQL analyses + if: ${{ always() }} + needs: [changes, analyze] + runs-on: ubuntu-latest + permissions: {} + env: + DETECTION_RESULT: ${{ needs.changes.result }} + ANALYSIS_SELECTED: ${{ needs.changes.outputs.any }} + ANALYSIS_RESULT: ${{ needs.analyze.result }} + steps: + - name: Check scan outcome + run: | + test "$DETECTION_RESULT" = success + case "$ANALYSIS_SELECTED:$ANALYSIS_RESULT" in + true:success|false:skipped) ;; + *) echo 'An applicable CodeQL analysis did not succeed.' >&2; exit 1 ;; + esac diff --git a/.github/workflows/web-hosting.yml b/.github/workflows/web-hosting.yml index 591a75a7..d9cafc9d 100644 --- a/.github/workflows/web-hosting.yml +++ b/.github/workflows/web-hosting.yml @@ -1,13 +1,6 @@ name: Web hosting images on: - pull_request: - paths: - - 'apps/website/**' - - 'CHANGELOG.md' - - 'apps/learn/**' - - 'apps/dashboard/**' - - '.github/workflows/web-hosting.yml' - - 'scripts/test-web-hosting.mjs' + workflow_call: workflow_dispatch: permissions: contents: read diff --git a/.railway/evidence/2026-11-12/verification.md b/.railway/evidence/2026-11-12/verification.md index 0b083d76..97400481 100644 --- a/.railway/evidence/2026-11-12/verification.md +++ b/.railway/evidence/2026-11-12/verification.md @@ -14,7 +14,7 @@ created Railway preview builds through the existing GitHub integration. | ------------ | -------------------------------------- | --------------------------------------------------------- | --------------------------- | ------------ | | production | `9f0088a8-9fe7-4afa-b634-cd1db046f045` | `main` | `lovat-apps`, all five apps | No changes | | staging | `1902828c-65ae-455c-90c8-5a370b7cedab` | `main` | `lovat-apps`, all five apps | No changes | -| lovat-pr-128 | `d42d9835-c01a-48c4-bcd2-424fa61e93c3` | `jackshim415/lvt-334-server-redact-request-analytics-and` | `lovat-apps`, all five apps | No changes | +| lovat-pr-128 | `d42d9835-c01a-48c4-bcd2-424fa61e93c3` | `jackshim415/lvt-334-server-redact-request-analytics-and` | Pending adoption | No changes | All environments had no pending staged patch at inspection. Production/staging ownership maps contain exactly `service.api`, `service.worker`, `service.dashboard`, diff --git a/.railway/railway.ts b/.railway/railway.ts index e5801eb8..9ffc3791 100644 --- a/.railway/railway.ts +++ b/.railway/railway.ts @@ -15,6 +15,10 @@ export default defineRailway((ctx) => { } const production = ctx.environment === "production"; + const waitForCi = process.env.RAILWAY_WAIT_FOR_CI; + if (waitForCi !== undefined && waitForCi !== "true" && waitForCi !== "false") { + throw new Error("RAILWAY_WAIT_FOR_CI must be true or false"); + } const branch = production ? "main" : (process.env.RAILWAY_CONFIG_BRANCH ?? @@ -30,7 +34,7 @@ export default defineRailway((ctx) => { github("HighlanderRobotics/lovat", { branch, rootDirectory, - checkSuites: false, + checkSuites: waitForCi === "true", }); const keep = (...names: string[]) => Object.fromEntries(names.map((name) => [name, preserve()])); diff --git a/scripts/ci-results.mjs b/scripts/ci-results.mjs index 0c7370d6..6960c9ca 100644 --- a/scripts/ci-results.mjs +++ b/scripts/ci-results.mjs @@ -10,6 +10,7 @@ export const jobSelectors = { "dashboard-browser": "dashboard", website: "website", "website-browser": "website", + "web-images": "web-images", learn: "learn", contracts: "contracts", }; @@ -25,7 +26,7 @@ const reportJobs = new Set([ ]); export function requireCiResults(needs, publishReports = false) { const errors = []; - for (const job of ["changes", "structure", "railway-config"]) + for (const job of ["changes", "structure", "railway-config", "codeql"]) if (needs[job]?.result !== "success") errors.push(`${job} must succeed`); const selected = needs.changes?.outputs ?? {}; for (const [job, selector] of Object.entries(jobSelectors)) { diff --git a/scripts/ci-results.test.mjs b/scripts/ci-results.test.mjs index 42a938d9..f17fe24c 100644 --- a/scripts/ci-results.test.mjs +++ b/scripts/ci-results.test.mjs @@ -6,6 +6,7 @@ function fixture(selected = []) { changes: { result: "success", outputs: {} }, structure: { result: "success" }, "railway-config": { result: "success" }, + codeql: { result: "success" }, }; for (const [job, selector] of Object.entries(jobSelectors)) { needs.changes.outputs[selector] = String(selected.includes(selector)); @@ -25,6 +26,16 @@ test("an applicable suite cannot silently skip, fail, cancel, or disappear", () assert.throws(() => requireCiResults(needs), /contracts/); } }); +test("image failures and unavailable CodeQL results fail the deployment gate", () => { + for (const result of ["skipped", "failure", "cancelled", undefined]) { + const needs = fixture(["web-images"]); + needs["web-images"].result = result; + assert.throws(() => requireCiResults(needs), /web-images/); + needs["web-images"].result = "success"; + needs.codeql.result = result; + assert.throws(() => requireCiResults(needs), /codeql/); + } +}); test("main publication requires all report producers even without changed files", () => { assert.throws(() => requireCiResults(fixture(), true), /required/); const needs = fixture([ diff --git a/scripts/ci-selection.test.mjs b/scripts/ci-selection.test.mjs index 1cc804a6..62aa5432 100644 --- a/scripts/ci-selection.test.mjs +++ b/scripts/ci-selection.test.mjs @@ -24,9 +24,20 @@ test("Server and database changes run consumer contracts while isolated web edit } const jobs = selectJobs(["apps/website/src/routes/+page.svelte"]); assert.equal(jobs.website, true); + assert.equal(jobs["web-images"], true); assert.equal(jobs.contracts, false); assert.equal(jobs.collection, false); }); +test("hosting smoke tests run for deployment configuration and image test edits", () => { + for (const path of [ + ".railway/railway.ts", + ".github/workflows/web-hosting.yml", + "scripts/test-web-hosting.mjs", + ]) { + assert.equal(selectJobs([path])["web-images"], true, path); + } + assert.equal(selectJobs(["apps/worker/src/worker.ts"])["web-images"], false); +}); test("workflow and selector changes choose all affected jobs", () => { for (const path of [".github/workflows/ci.yml", ".github/ci-filters.json"]) for (const selected of Object.values(selectJobs([path]))) From 0ce5590be9b88b4fd5156a5dabf772b10f6d8002 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Fri, 20 Nov 2026 15:53:17 -0800 Subject: [PATCH 4/8] fix(collection): align Expo patches with the CI compatibility check Reuse the four SDK 58 patch updates already verified on the Collection native-testing branch. Refs: LVT-337, LVT-274 --- apps/collection/package-lock.json | 260 +++++++++++++++--------------- apps/collection/package.json | 8 +- 2 files changed, 134 insertions(+), 134 deletions(-) diff --git a/apps/collection/package-lock.json b/apps/collection/package-lock.json index d0a76d74..31f5078a 100644 --- a/apps/collection/package-lock.json +++ b/apps/collection/package-lock.json @@ -15,16 +15,16 @@ "@react-native-menu/menu": "^2.0.0", "@react-native-picker/picker": "2.11.4", "@types/react": "~19.3.0", - "expo": "~58.0.25", + "expo": "~58.0.26", "expo-build-properties": "~58.0.12", "expo-constants": "~58.0.14", - "expo-dev-client": "~58.0.20", + "expo-dev-client": "~58.0.21", "expo-font": "~58.0.11", "expo-haptics": "~58.0.8", "expo-linear-gradient": "~58.0.4", "expo-linking": "~58.0.17", "expo-navigation-bar": "~58.0.4", - "expo-router": "~58.0.31", + "expo-router": "~58.0.32", "expo-screen-orientation": "~58.0.4", "expo-splash-screen": "~58.0.14", "expo-status-bar": "~58.0.5", @@ -62,7 +62,7 @@ "eslint-config-prettier": "^10.1.8", "eslint-plugin-react": "^7.37.5", "jest": "30.5.2", - "jest-expo": "58.0.14", + "jest-expo": "~58.0.15", "jest-junit": "16.0.0", "patch-package": "^8.0.1", "prettier": "^3.9.10", @@ -145,13 +145,13 @@ } }, "node_modules/@babel/generator": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.14.tgz", - "integrity": "sha512-qSY56jgW5JnSXzuekLVil6zaOQxOCtOHidr65KkaMBw772IuAY28Qx4ZykAcDn8+FRF15qk80XzKwgSc/RYW6g==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.15.tgz", + "integrity": "sha512-gNWJUX0FlevflramOkaInywOMhU1lkln38gAC7TFZv2tsWbLYbN/2WZFGcq8zbX0Z55e4vGa27IB/NaeZoauWQ==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.14", - "@babel/types": "^7.29.14", + "@babel/parser": "^7.29.15", + "@babel/types": "^7.29.15", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -384,9 +384,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz", - "integrity": "sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.15.tgz", + "integrity": "sha512-C2FuapQ2Kh1OnVHAoLi5rD3GBJ8COb9Q609T6HEpLqaBAo560PDP5OxBE5dCI/h951MBO/+bCUYU5SZ+8ZlV+w==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -411,14 +411,14 @@ } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.29.14.tgz", - "integrity": "sha512-sBCQEL5D9MYOI5RvWpYtXJBeFLuGGI40hU7wW4WtDvuSZGi0zDV+cn8y9sJWD5rKpjZdsde0+oJniLbU2vdfIg==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.29.15.tgz", + "integrity": "sha512-14dKROQSpuNYPw+4wpADe87YLS1VnP/ua3gKTRpEAX1ErBayLMgK/KpWbCP/uYiCSBAVGp/a7bY8MqRfFNRqOQ==", "license": "MIT", "dependencies": { "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.14", - "@babel/types": "^7.29.14" + "@babel/traverse": "^7.29.15", + "@babel/types": "^7.29.15" }, "engines": { "node": ">=6.9.0" @@ -438,12 +438,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.14.tgz", - "integrity": "sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.15.tgz", + "integrity": "sha512-RpKWyisHoP81twtSCgmE02iU0RnPcq1DN5bBEbpUePrjA9Q3wXhufnCJrrayPpoZieqFh3zyZQqwtSK0gGccRA==", "license": "MIT", "dependencies": { - "@babel/types": "^7.29.14" + "@babel/types": "^7.29.15" }, "bin": { "parser": "bin/babel-parser.js" @@ -470,9 +470,9 @@ } }, "node_modules/@babel/plugin-proposal-export-default-from": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.29.7.tgz", - "integrity": "sha512-p+G5BNXDcy3bOXplhY4HybQ1GxH3i2Tppmdm/3epyRu2VgJJZuUlZ61MqRTg582Q7ZLBdP7fePYvsumSEkMxcQ==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.29.15.tgz", + "integrity": "sha512-G9TJJ6ZTxhCGuFlYXB2W8ljMXhkaR2nZEV1DVetC0LgwaibQSVBHq2gD4ldxsfT4/vSzy/V2ARtCmGz1NUlSZg==", "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.29.7" @@ -826,9 +826,9 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.29.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.29.13.tgz", - "integrity": "sha512-q7f5zYLtDLqO11ydQK1w2RqZ1m5kmcAlmgZlfXssKgqVyL8+HgDvWXMxvuEz8TuJfq1UNsY9sB6ABjjtQkN6wA==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.29.15.tgz", + "integrity": "sha512-jfJWMNOYxJUQ3VMdMF0KpmPaugSKRbwLYqxM8UHOga7jKnlbhe18yhBKwiAkaOWrxmxesONjAhtEqTyn2rB2qg==", "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.29.7" @@ -909,9 +909,9 @@ } }, "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.29.7.tgz", - "integrity": "sha512-24B2nOy2TeJSMheqwPD4DDQOV/elLSIlKxjZt4i05H5AgdPdWR3n18HnNrcJ+j76WJd9gbwb9jPjNYUy6RautA==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.29.15.tgz", + "integrity": "sha512-wUo8dEPcDN/gO5/ZoNLDcAFqbJ//idBuMpprfa7NAZ6+Y3PRShTNLcgnKnBAW6vnEDMHiPDwDi62mM90qz7mcQ==", "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.29.7" @@ -940,9 +940,9 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.29.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.29.13.tgz", - "integrity": "sha512-dFjiIw+xBYpgLhYDc1QFQOZmMX44se0YCmXUjPsm9SQEj9HaCJAjvVnK6/yK9iE4E1LaKU5fIAKVJPZWCbKwXw==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.29.15.tgz", + "integrity": "sha512-JHa0QfVEG23goXwV1j8HT31EEIZ8nUJBKNTJ/UU1AwfRqY+7xXBEg9M61Tbz60sxKomE2MQBA3vovEbplL964Q==", "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.29.7", @@ -1308,17 +1308,17 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.14.tgz", - "integrity": "sha512-RAdQJrBgmIH1FWvN0X+1hoDxzMzlP4cv/1Zi4dn4tG1H0cTb+rw7CzUxQJhp1f4ANd8j5vH3fy8BAWFGkBDEsA==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.15.tgz", + "integrity": "sha512-ZfawBo2i8vvt+BTt37dWDKBPjUfm/H+bw+ltwsCRhW7gPtyNVwUXuNo54eO2Xo+P4VXpalPFfFISbBTRKC8SOQ==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.14", + "@babel/generator": "^7.29.15", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.14", + "@babel/parser": "^7.29.15", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.14", + "@babel/types": "^7.29.15", "debug": "^4.3.1" }, "engines": { @@ -1326,12 +1326,12 @@ } }, "node_modules/@babel/types": { - "version": "7.29.14", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.14.tgz", - "integrity": "sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==", + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.15.tgz", + "integrity": "sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ==", "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.14", + "@babel/helper-string-parser": "^7.29.15", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -1605,9 +1605,9 @@ } }, "node_modules/@expo/cli": { - "version": "58.1.20", - "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-58.1.20.tgz", - "integrity": "sha512-VXXcqGuXBngzItcP97ERWON3aHJOeAwDxuRlkxgbYfW9m9DpGHM6umGgjOPWWy14xSArUvwGZpg+D5Ms+hnnkg==", + "version": "58.1.21", + "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-58.1.21.tgz", + "integrity": "sha512-E+27FQ1Y26fVb0p1wVHBFkbe5oQubUXLwF/au5Vy8OCqDWrmbekBQamRI4mBhY15FhZQxAkyK0e6hXcEFKVBOw==", "license": "MIT", "dependencies": { "@expo/code-signing-certificates": "^0.0.7", @@ -1621,7 +1621,7 @@ "@expo/log-box": "^58.0.15", "@expo/log-box-utils": "^58.0.2", "@expo/metro": "~58.0.0", - "@expo/metro-config": "58.0.22", + "@expo/metro-config": "58.0.23", "@expo/metro-file-map": "^58.0.6", "@expo/osascript": "^2.8.1", "@expo/package-manager": "^1.14.2", @@ -1629,7 +1629,7 @@ "@expo/plist": "^0.10.2", "@expo/prebuild-config": "^58.0.20", "@expo/require-utils": "^58.0.6", - "@expo/router-server": "^58.0.22", + "@expo/router-server": "^58.0.23", "@expo/schema-utils": "^58.0.3", "@expo/spawn-async": "^1.8.0", "@expo/ws-tunnel": "^2.0.1", @@ -2026,9 +2026,9 @@ } }, "node_modules/@expo/metro-config": { - "version": "58.0.22", - "resolved": "https://registry.npmjs.org/@expo/metro-config/-/metro-config-58.0.22.tgz", - "integrity": "sha512-4sOL3FScET69+EBn8TvdnepcSI6B/mihzYIlLkDf5KfCcnBOpUwH6AhITp+WxE+BowtnCVlQd1vt5lF/nhBSAg==", + "version": "58.0.23", + "resolved": "https://registry.npmjs.org/@expo/metro-config/-/metro-config-58.0.23.tgz", + "integrity": "sha512-cEFdrMxH4cddH9rHDg2FxUAl4FUC7TBs8d8GYE1r+zXOjsScoKrQhMtLOPqIc2VEj3ehUFvto3EycrEgrWck+A==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.20.0", @@ -2053,7 +2053,7 @@ "hermes-parser": "^0.36.0", "jsc-safe-url": "^0.2.4", "lightningcss": "^1.30.1", - "noxcturnal": "^0.1.11", + "noxcturnal": "^0.1.14", "picomatch": "^4.0.4", "postcss": "^8.5.23", "resolve-from": "^5.0.0", @@ -2429,9 +2429,9 @@ } }, "node_modules/@expo/metro/node_modules/ws": { - "version": "7.5.13", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.13.tgz", - "integrity": "sha512-rsKI6xDBFVf4r/x8XyChGK04QR/XHroxs/jUcoWvtEZM8TPU/X/uIY9B1CsSzYws9ZJb/6bbBu7dPhFW00CAoA==", + "version": "7.5.14", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.14.tgz", + "integrity": "sha512-u9Oi2nQ8SZnTUAf6spLLKF5TyqoG3Nbbrd4ai6Sjo4P24bycDewhQqtNMIg4bFpnpH/TD4qk4IuAVhT0HIIqug==", "license": "MIT", "engines": { "node": ">=8.3.0" @@ -2785,9 +2785,9 @@ } }, "node_modules/@expo/router-server": { - "version": "58.0.22", - "resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-58.0.22.tgz", - "integrity": "sha512-e2x3gZRLaGsoU4M6PNkPuHH6/XQolMb6gVlT6dtm1HAO0GYipvX0pVt6nBsf2xuRJU/0hEvRjpI+vLueZDvxoA==", + "version": "58.0.23", + "resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-58.0.23.tgz", + "integrity": "sha512-Vcd/mskn2BSGt9dVAzAKlUFGbagfUlMT3afTgkw7KDpn8pwtkbm6M4g11158OcVSZ10m3VLvoySeZDFPskHLaQ==", "license": "MIT", "dependencies": { "debug": "^4.3.4" @@ -4990,9 +4990,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-darwin-arm64": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-arm64/-/noxcturnal-darwin-arm64-0.1.12.tgz", - "integrity": "sha512-46MqSBhSPSL/LbY0ZhH2Zh+MJUOLWuwEuk6FQLFeJYFepENuNoWinZO/P7xX3dZQ3g2OrJiPE6iWKMBgoeF+gA==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-arm64/-/noxcturnal-darwin-arm64-0.1.14.tgz", + "integrity": "sha512-5g1fvtfmDsaDzNoqZicO7UKUUaGm9HOTJy30KNxXbSJRreLOQwK0fd0wuAA0OEbBgJSQAvVdAovpjT5HvYRIWw==", "cpu": [ "arm64" ], @@ -5006,9 +5006,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-darwin-x64": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-x64/-/noxcturnal-darwin-x64-0.1.12.tgz", - "integrity": "sha512-Neaz3ytiqwdWkgX8aSxnPVGO1ZmzalUEhWOCo2gWQC6DJAps6BjfjZwhdFtiWCOQ9iuukDkWnaKYZG4N1Ab6Bw==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-x64/-/noxcturnal-darwin-x64-0.1.14.tgz", + "integrity": "sha512-rnZ8LRa+rYOyHmPS2PpPgxRHaeU0zJZ7Ii8huuAMbADfJHGceGBU8SQYqd7+Vs1VwSUcxRm4BMC4+QL1IgdqrA==", "cpu": [ "x64" ], @@ -5022,9 +5022,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-arm64-gnu": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-gnu/-/noxcturnal-linux-arm64-gnu-0.1.12.tgz", - "integrity": "sha512-amvAnI2qoxJ/LQjFL1pMQHgym/C+SKPATPDcX6W4wcttBRIDh54PbEWKSaWeFoZ1EsqIF2O4SsDXxjImWGVQzw==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-gnu/-/noxcturnal-linux-arm64-gnu-0.1.14.tgz", + "integrity": "sha512-9SZoiNaEKwFJ0V7cgpoCjHLh80fd8/wAJrbG1VWR8DJfkbVBvXhipTnxEISZ0LdidmthpVo0i2GiI6ToUdkmkg==", "cpu": [ "arm64" ], @@ -5038,9 +5038,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-arm64-musl": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-musl/-/noxcturnal-linux-arm64-musl-0.1.12.tgz", - "integrity": "sha512-dTY6LRtSfhZRYRW7Kc4DwAoU8vM0NqopXWWV3RJ8aux8nJ19uhCtRbpEzjIjAT8jG6/Ds5FLEXFqJgVLf4fr2A==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-musl/-/noxcturnal-linux-arm64-musl-0.1.14.tgz", + "integrity": "sha512-dxZXo7Xj00w8eeFac+ev/75lJd/62GSUIX4wwCN2yYn6r9Jrim3DJ6yKVZwmfqHDE0v55TZsif0/vdhNFxFXfQ==", "cpu": [ "arm64" ], @@ -5054,9 +5054,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-x64-gnu": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-gnu/-/noxcturnal-linux-x64-gnu-0.1.12.tgz", - "integrity": "sha512-v7PyVf9PgGRaFGq8DTilouKHIh/huXqfQOa9hIC7siseaxMzNX/HdweL9ZvXV7ZjkzUbbEZrg3YuIZ874PPYZA==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-gnu/-/noxcturnal-linux-x64-gnu-0.1.14.tgz", + "integrity": "sha512-ek3098/TS+Ma2vJUjzpIZnhU70lryFzFPEdKdQ5u+1w00QKvMg0teFa2mec1H8/ndK74/xYWy8e4d92Uz+s9Dg==", "cpu": [ "x64" ], @@ -5070,9 +5070,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-x64-musl": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-musl/-/noxcturnal-linux-x64-musl-0.1.12.tgz", - "integrity": "sha512-7oWCdgQ2T1qjC05bz8IHzVRdg/yC+3SRZnDxc1xdY/vPKvrMUHJUB7oiKLHbLPtuMx8m5+lagm7RBQabUTBvxw==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-musl/-/noxcturnal-linux-x64-musl-0.1.14.tgz", + "integrity": "sha512-qblXyvGhD5HoJSK32Q8YN6PnEz4GPXgr2KLgStpRG1oG8+BRPlrqZCaQRbQI5Bn3L8NZ+OjyGWhLEG1kgdzHBw==", "cpu": [ "x64" ], @@ -5086,9 +5086,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-win32-arm64-msvc": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-arm64-msvc/-/noxcturnal-win32-arm64-msvc-0.1.12.tgz", - "integrity": "sha512-Ma+0PV4nVdRXCYhgNontvuoAczRC11mbZ18LCaWY2aVTc76HjsQQEFPgXqRNlj2/Rjaax5EXUQqyLYYwI+ZB5A==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-arm64-msvc/-/noxcturnal-win32-arm64-msvc-0.1.14.tgz", + "integrity": "sha512-K9Q82l32juE/p7Ca6p36rAWfNzORkCyoL0R2aDUq3tkYOmivu3xTewnxUwDLTzDIuLsMgb4niy5vrtr4IXdNXw==", "cpu": [ "arm64" ], @@ -5102,9 +5102,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-win32-x64-msvc": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-x64-msvc/-/noxcturnal-win32-x64-msvc-0.1.12.tgz", - "integrity": "sha512-6QcmxWocHLMfQKT5cy0+KbIYbCpaTd50MC/k6t7pQrfnKMKav5tdQi0lsx3WRrIE/5qUNepNx5iv9DjSJTXrGg==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-x64-msvc/-/noxcturnal-win32-x64-msvc-0.1.14.tgz", + "integrity": "sha512-qiiOLLQUYnLZai3traWx90yzMLGZlkvwGNYMFkGw5MwnMifVgfl3Z3ooFiSYaVKjkTYqxBF9rOCvhFL6yXaoxA==", "cpu": [ "x64" ], @@ -7643,9 +7643,9 @@ } }, "node_modules/babel-preset-expo": { - "version": "58.0.25", - "resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-58.0.25.tgz", - "integrity": "sha512-uNRXWw2D6FU1hqye42XgbeUx110IxocpfwvV6QUdH7uuYMpqZPtP9Juzl7/HJdzrvrSGSRBBBPua7WlbtE1U7Q==", + "version": "58.0.26", + "resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-58.0.26.tgz", + "integrity": "sha512-ZCH0nRF6T5Txn2r7FqY66xcYN2ni80WzH3snBA0pFGHZpMeSgaADnb5jJmPGEnWKcb7p34ViGFf17jXoFQ1zGg==", "license": "MIT", "dependencies": { "@babel/generator": "^7.20.5", @@ -7694,7 +7694,7 @@ "peerDependencies": { "@babel/runtime": "^7.20.0", "expo": "*", - "expo-widgets": "^58.0.28", + "expo-widgets": "^58.0.29", "react-refresh": ">=0.14.0 <1.0.0" }, "peerDependenciesMeta": { @@ -9484,13 +9484,13 @@ } }, "node_modules/expo": { - "version": "58.0.25", - "resolved": "https://registry.npmjs.org/expo/-/expo-58.0.25.tgz", - "integrity": "sha512-Ih7pQYPS+2ZFS5APNtgOUp2AK/M+zfILK9Z5/wh6PoLn6XF3dh+nlcvugotytVzf8jX5/NBMcB7xJT+97oaNvw==", + "version": "58.0.26", + "resolved": "https://registry.npmjs.org/expo/-/expo-58.0.26.tgz", + "integrity": "sha512-6i4kqt5lbcQdxmtnkkJ3JR5sn+A3L+xO45duLhh2rndvrek/chX/GTysTYozl4oL3+txKD53pDlJd75XRYf9Ow==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.20.0", - "@expo/cli": "^58.1.20", + "@expo/cli": "^58.1.21", "@expo/config": "~58.0.12", "@expo/config-plugins": "~58.0.13", "@expo/devtools": "~58.0.2", @@ -9500,12 +9500,12 @@ "@expo/log-box": "^58.0.15", "@expo/log-box-utils": "^58.0.2", "@expo/metro": "~58.0.0", - "@expo/metro-config": "~58.0.22", + "@expo/metro-config": "~58.0.23", "@ungap/structured-clone": "^1.3.0", - "babel-preset-expo": "~58.0.25", + "babel-preset-expo": "~58.0.26", "expo-asset": "~58.0.21", "expo-constants": "~58.0.16", - "expo-file-system": "~58.0.13", + "expo-file-system": "~58.0.14", "expo-font": "~58.0.12", "expo-keep-awake": "~58.0.4", "expo-modules-autolinking": "~58.1.0", @@ -9607,12 +9607,12 @@ } }, "node_modules/expo-dev-client": { - "version": "58.0.20", - "resolved": "https://registry.npmjs.org/expo-dev-client/-/expo-dev-client-58.0.20.tgz", - "integrity": "sha512-Wp1q6KfvfwQN72M4lGW5KNnnZtRO3XdgcHstX33NlUE5cV3tw3LGHX6hgHu0xN19zKBK9Wb6yiN7JU7mGApMwQ==", + "version": "58.0.21", + "resolved": "https://registry.npmjs.org/expo-dev-client/-/expo-dev-client-58.0.21.tgz", + "integrity": "sha512-W1ZWddy0p64Z8j8FNOU4bCRDhbU8b5Gt7yZRouiw7bkyCfY5T3yODKTOLCVuhjbs3Oy3aUH6kLdn0i6hXozhqA==", "license": "MIT", "dependencies": { - "expo-dev-launcher": "~58.0.20", + "expo-dev-launcher": "~58.0.21", "expo-dev-menu": "~58.0.13", "expo-dev-menu-interface": "~58.0.2", "expo-manifests": "~58.0.1", @@ -9623,9 +9623,9 @@ } }, "node_modules/expo-dev-launcher": { - "version": "58.0.20", - "resolved": "https://registry.npmjs.org/expo-dev-launcher/-/expo-dev-launcher-58.0.20.tgz", - "integrity": "sha512-tm0K5l40cxYXIxYzcEuAKYnVx6T9o7aAb0gQdfooz4WYPgqf5dHfu5obdWwAvCU6j40hWSHEWaPGfPkoO9O7hQ==", + "version": "58.0.21", + "resolved": "https://registry.npmjs.org/expo-dev-launcher/-/expo-dev-launcher-58.0.21.tgz", + "integrity": "sha512-EAW01s7Y4sT7x1AHDE3Zo3mSa/6y6ImsMRMsIHWhG+5Os4rDzi1yIlXJoP13cNTkciVE5rK2Jt7xj0HkmfPmPA==", "license": "MIT", "dependencies": { "@expo/schema-utils": "^58.0.3", @@ -9660,9 +9660,9 @@ } }, "node_modules/expo-file-system": { - "version": "58.0.13", - "resolved": "https://registry.npmjs.org/expo-file-system/-/expo-file-system-58.0.13.tgz", - "integrity": "sha512-+/1aFErkawyky5UdWI06zYeO2DeHUnfaWnYHeiI8M8Z/sB6L66gI3WUxqtvUvKJoaM0Ti1CximD3x3JwteLYIg==", + "version": "58.0.14", + "resolved": "https://registry.npmjs.org/expo-file-system/-/expo-file-system-58.0.14.tgz", + "integrity": "sha512-VK67RQPDmWRHGbvpmPY5MeA1Ulw1LiyKs4KIN8na/q7SlkxYuPPR8biWsyX1S1/8XAHm6y2txUnYjCKh9l93lQ==", "license": "MIT", "peerDependencies": { "expo": "*", @@ -9843,9 +9843,9 @@ } }, "node_modules/expo-router": { - "version": "58.0.31", - "resolved": "https://registry.npmjs.org/expo-router/-/expo-router-58.0.31.tgz", - "integrity": "sha512-ERucCp882Yo3wDUZ/MKwW22UF5MtQxDFIQzWWnFXlqe9gfOnWN/smBcNNhQiVW5je3nX5OOd4o5RlTCojvCIrA==", + "version": "58.0.32", + "resolved": "https://registry.npmjs.org/expo-router/-/expo-router-58.0.32.tgz", + "integrity": "sha512-UEfbsGvjGL8MJXj/NHt/elUupdJ5tUDvaHdSy0fEfIIeUnOqixr6KJZlyv9OrJyl4OYmWt8HuCHDyT5Pzqbfkw==", "license": "MIT", "dependencies": { "@expo/log-box": "^58.0.15", @@ -9863,7 +9863,7 @@ "react-fast-compare": "^3.2.2", "react-is": "^19.1.0", "react-native-drawer-layout": "^4.2.12", - "react-native-screens": "^4.30.1 || ^5.0.0-alpha.3", + "react-native-screens": "^4.30.1 || ^5.0.0-beta.1", "server-only": "^0.0.1", "sf-symbols-typescript": "^2.1.0", "standard-navigation": "^0.0.5" @@ -9871,7 +9871,7 @@ "peerDependencies": { "@expo/log-box": "^58.0.15", "@expo/metro-runtime": "^58.0.17", - "@expo/ui": "^58.0.28", + "@expo/ui": "^58.0.29", "@testing-library/react-native": ">= 14.0.0", "expo": "*", "expo-constants": "^58.0.16", @@ -9883,7 +9883,7 @@ "react-native-gesture-handler": "*", "react-native-reanimated": "*", "react-native-safe-area-context": ">= 5.4.0", - "react-native-screens": "^4.30.1 || ^5.0.0-alpha.3", + "react-native-screens": "^4.30.1 || ^5.0.0-beta.1", "react-native-web": "*", "react-native-worklets": "*", "react-server-dom-webpack": "~19.0.4 || ~19.1.5 || ~19.2.4 || ~19.3.0" @@ -12849,9 +12849,9 @@ } }, "node_modules/jest-expo": { - "version": "58.0.14", - "resolved": "https://registry.npmjs.org/jest-expo/-/jest-expo-58.0.14.tgz", - "integrity": "sha512-LSIlvfPizQHBOmwgEE1qUgOeXl55aWJPXziY5O0iQEUUS+aAF/CWgFEjHmlmMiBx5lfSLkbb05Boi9GIhrTi2g==", + "version": "58.0.15", + "resolved": "https://registry.npmjs.org/jest-expo/-/jest-expo-58.0.15.tgz", + "integrity": "sha512-3m7JlS6Lmay8FfhTFGitmSjktO5uIgerxRidxv223MRauZnJjfxbKzK8A/ATot8Y+1Ac9qZY518+O7RQ2Xe58Q==", "dev": true, "license": "MIT", "dependencies": { @@ -17204,9 +17204,9 @@ } }, "node_modules/noxcturnal": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/noxcturnal/-/noxcturnal-0.1.12.tgz", - "integrity": "sha512-trkrCAq5t1ynqEbGdHGbGo1ItUye1uelApLhmU0/asW5NrfBRsMQDXBOpUTIfpcX7SdAvVjii7cEPIrfIrEVgg==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/noxcturnal/-/noxcturnal-0.1.14.tgz", + "integrity": "sha512-dYhWwCVfxlxnyzkVvP6W+XXd7lKikl04YckNur8xV4IejmgYDPq2ykSvzA2zfYVaNgEvmWDceOVRFn3sjry69Q==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.20.0", @@ -17216,14 +17216,14 @@ "node": ">=18" }, "optionalDependencies": { - "@noxcturnal/noxcturnal-darwin-arm64": "0.1.12", - "@noxcturnal/noxcturnal-darwin-x64": "0.1.12", - "@noxcturnal/noxcturnal-linux-arm64-gnu": "0.1.12", - "@noxcturnal/noxcturnal-linux-arm64-musl": "0.1.12", - "@noxcturnal/noxcturnal-linux-x64-gnu": "0.1.12", - "@noxcturnal/noxcturnal-linux-x64-musl": "0.1.12", - "@noxcturnal/noxcturnal-win32-arm64-msvc": "0.1.12", - "@noxcturnal/noxcturnal-win32-x64-msvc": "0.1.12" + "@noxcturnal/noxcturnal-darwin-arm64": "0.1.14", + "@noxcturnal/noxcturnal-darwin-x64": "0.1.14", + "@noxcturnal/noxcturnal-linux-arm64-gnu": "0.1.14", + "@noxcturnal/noxcturnal-linux-arm64-musl": "0.1.14", + "@noxcturnal/noxcturnal-linux-x64-gnu": "0.1.14", + "@noxcturnal/noxcturnal-linux-x64-musl": "0.1.14", + "@noxcturnal/noxcturnal-win32-arm64-msvc": "0.1.14", + "@noxcturnal/noxcturnal-win32-x64-msvc": "0.1.14" } }, "node_modules/npm-package-arg": { @@ -18015,9 +18015,9 @@ } }, "node_modules/postcss": { - "version": "8.5.32", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz", - "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "version": "8.5.33", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz", + "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==", "funding": [ { "type": "opencollective", @@ -19483,12 +19483,12 @@ } }, "node_modules/source-map-js": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", - "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.4.tgz", + "integrity": "sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==", "license": "BSD-3-Clause", "engines": { - "node": ">=0.10.0" + "node": ">=6.0.0" } }, "node_modules/source-map-support": { diff --git a/apps/collection/package.json b/apps/collection/package.json index 844490d8..fc18ce12 100644 --- a/apps/collection/package.json +++ b/apps/collection/package.json @@ -38,16 +38,16 @@ "@react-native-menu/menu": "^2.0.0", "@react-native-picker/picker": "2.11.4", "@types/react": "~19.3.0", - "expo": "~58.0.25", + "expo": "~58.0.26", "expo-build-properties": "~58.0.12", "expo-constants": "~58.0.14", - "expo-dev-client": "~58.0.20", + "expo-dev-client": "~58.0.21", "expo-font": "~58.0.11", "expo-haptics": "~58.0.8", "expo-linear-gradient": "~58.0.4", "expo-linking": "~58.0.17", "expo-navigation-bar": "~58.0.4", - "expo-router": "~58.0.31", + "expo-router": "~58.0.32", "expo-screen-orientation": "~58.0.4", "expo-splash-screen": "~58.0.14", "expo-status-bar": "~58.0.5", @@ -85,7 +85,7 @@ "eslint-config-prettier": "^10.1.8", "eslint-plugin-react": "^7.37.5", "jest": "30.5.2", - "jest-expo": "58.0.14", + "jest-expo": "~58.0.15", "jest-junit": "16.0.0", "patch-package": "^8.0.1", "prettier": "^3.9.10", From db09eaf32ba57c5d2dc8a4c0a649eaef1a5752ef Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Fri, 20 Nov 2026 15:49:00 -0800 Subject: [PATCH 5/8] test(server): cover rejected background tasks Refs: LVT-334 --- apps/server/test/errors.unit.test.ts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/apps/server/test/errors.unit.test.ts b/apps/server/test/errors.unit.test.ts index 929e2374..34d4c4aa 100644 --- a/apps/server/test/errors.unit.test.ts +++ b/apps/server/test/errors.unit.test.ts @@ -2,12 +2,32 @@ import express from "express"; import type { Request, Response } from "express"; import request from "supertest"; import { afterEach, describe, expect, it, vi } from "vitest"; -import { AppError, errorHandler, normalizeError } from "../src/lib/errors.js"; +import { + AppError, + errorHandler, + normalizeError, + runBackgroundTask, +} from "../src/lib/errors.js"; afterEach(() => { vi.restoreAllMocks(); }); +it("contains and sanitizes a rejected background task", async () => { + const failure = new Error("private provider details"); + const log = vi.spyOn(console, "error").mockImplementation(() => undefined); + + await expect( + runBackgroundTask(() => Promise.reject(failure), "Socket polling failed"), + ).resolves.toBeUndefined(); + + expect(log).toHaveBeenCalledExactlyOnceWith( + "Socket polling failed", + expect.objectContaining({ name: "Error" }), + ); + expect(JSON.stringify(log.mock.calls)).not.toContain(failure.message); +}); + describe("central error handling", () => { it.each(["constructor", "toString", "__proto__", "unrecognized"])( "treats unknown library error type %s as a generic server failure", From 01bd0c1ed7184bde5ebaa0e109a8bcdf6f416307 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Fri, 20 Nov 2026 15:55:31 -0800 Subject: [PATCH 6/8] fix(infra): preserve live API sleeping in Railway plans Refs: LVT-336, LVT-337 --- .railway/README.md | 8 ++++++++ .railway/config.test.mjs | 18 ++++++++++-------- .railway/railway.ts | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.railway/README.md b/.railway/README.md index 4215071a..93424014 100644 --- a/.railway/README.md +++ b/.railway/README.md @@ -110,6 +110,14 @@ Railway evaluates workflow conclusions and can ignore a cancelled workflow when another workflow passed. Keep the `main` CI workflow free of superseding-run cancellation. Verify the aggregate outcome and deployed SHA for each promotion. +The November 20 read-only production audit found the API already had sleeping +enabled. The graph now preserves that setting alongside the Worker's existing +six-hour schedule. The refreshed production plan proposed only the five +`source.checkSuites` updates and reported zero diagnostics. The PR #128 preview +plan also proposes explicitly writing +`WORKER_MODE=continuous` where the Worker previously used its default. Review +that reconciliation independently before using the preview to test Wait for CI. + ## Verified live state (November 12, 2026) The Lovat project is `c210dce8-37af-4bf0-b1e0-7e28b30597c6` in **8033 Admin's diff --git a/.railway/config.test.mjs b/.railway/config.test.mjs index 2c137c81..b973f3b1 100644 --- a/.railway/config.test.mjs +++ b/.railway/config.test.mjs @@ -10,15 +10,20 @@ test("Wait for CI requires an explicit setting when rendering a plan", (t) => { else process.env.RAILWAY_WAIT_FOR_CI = previous; }); const context = createRailwayContext({ environment: "production" }); + const sourceSettings = () => + config(context).resources.map((app) => app.source.checkSuites); delete process.env.RAILWAY_WAIT_FOR_CI; - assert(config(context).resources.every((app) => app.source.checkSuites === false)); + assert(sourceSettings().every((enabled) => enabled === false)); process.env.RAILWAY_WAIT_FOR_CI = "true"; - assert(config(context).resources.every((app) => app.source.checkSuites === true)); + assert(sourceSettings().every((enabled) => enabled === true)); process.env.RAILWAY_WAIT_FOR_CI = "false"; - assert(config(context).resources.every((app) => app.source.checkSuites === false)); + assert(sourceSettings().every((enabled) => enabled === false)); process.env.RAILWAY_WAIT_FOR_CI = "yes"; - assert.throws(() => config(context), /RAILWAY_WAIT_FOR_CI must be true or false/); + assert.throws( + () => config(context), + /RAILWAY_WAIT_FOR_CI must be true or false/, + ); }); for (const environment of ["production", "staging"]) { @@ -40,10 +45,7 @@ for (const environment of ["production", "staging"]) { assert(resource.build.watchPatterns.includes("/.railway/**")); assert.equal( resource.deploy.sleepApplication, - resource.name === "worker" || - (resource.name === "api" && environment === "production") - ? undefined - : true, + resource.name === "worker" ? undefined : true, ); assert.equal( resource.deploy.restartPolicyType ?? "ON_FAILURE", diff --git a/.railway/railway.ts b/.railway/railway.ts index 9ffc3791..d6f821ee 100644 --- a/.railway/railway.ts +++ b/.railway/railway.ts @@ -114,7 +114,7 @@ export default defineRailway((ctx) => { }, }, restartPolicyMaxRetries: 20, - ...(!production ? { sleepApplication: true } : {}), + sleepApplication: true, healthcheckPath: "/status", healthcheckTimeout: 1200, ...(!production From 1d26b41f423604ad0df9c782e316fb180e9d173e Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Fri, 20 Nov 2026 21:32:54 -0800 Subject: [PATCH 7/8] docs(infra): date the observed production API sleep policy Refs: LVT-336 --- .railway/evidence/2026-11-12/verification.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.railway/evidence/2026-11-12/verification.md b/.railway/evidence/2026-11-12/verification.md index 97400481..e52332b7 100644 --- a/.railway/evidence/2026-11-12/verification.md +++ b/.railway/evidence/2026-11-12/verification.md @@ -33,8 +33,10 @@ their watch patterns. API and Worker additionally watch `/packages/db/**`. | website | `/` | `apps/website/Dockerfile` | `/healthz`, 120 seconds | | learn | `/apps/learn` | `Dockerfile` | `/healthz`, 120 seconds | -All apps use one replica in `us-west2`. Dashboard, Website and Learn sleep in all -three environments; API sleeps in staging/previews and stays awake in production. +All apps used one replica in `us-west2` at the November 12 inspection. Dashboard, +Website, and Learn had sleeping enabled in all three environments. API sleeping +was enabled in staging and previews at that inspection. The November 20 audit +also confirmed it was enabled in production, and the current graph preserves it. Staging and preview API have two CPUs/2 GiB container limits. Worker drains for 60 seconds. Current API start runs Prisma deploy before npm start; Worker does not run migrations. This verifies the declared migration owner, not safe From 56265a24325a7b4fd8b4e162428f4474e753db5e Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Fri, 20 Nov 2026 21:56:02 -0800 Subject: [PATCH 8/8] ci: limit CodeQL to affected watch paths Refs: LVT-337 --- .github/codeql-filters.json | 5 ----- .railway/README.md | 7 ++++--- scripts/codeql-matrix.mjs | 3 +-- scripts/codeql-matrix.test.mjs | 12 +++++++++--- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/codeql-filters.json b/.github/codeql-filters.json index f392a966..176bb54f 100644 --- a/.github/codeql-filters.json +++ b/.github/codeql-filters.json @@ -1,9 +1,4 @@ { - "workflow": [ - ".github/workflows/codeql.yml", - ".github/codeql-filters.json", - "scripts/codeql-matrix*.mjs" - ], "actions": [".github/workflows/**", ".github/actions/**"], "javascript": [ "**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,svelte,astro}", diff --git a/.railway/README.md b/.railway/README.md index 93424014..272ce34c 100644 --- a/.railway/README.md +++ b/.railway/README.md @@ -85,9 +85,10 @@ Cron or PostgreSQL Serverless. GitHub requires `Monorepo CI` on `main`. That job requires Railway IaC checks, app tests, applicable production web image HTTP checks, and the CodeQL result. -CodeQL selects analyses by changed files. A successful selection with zero -applicable analyses passes, while a failed or cancelled selected analysis -fails the aggregate. CI runs on every push to `main`. +CodeQL selects each language by its watch paths. Only a manual CodeQL run +requests the full matrix. A successful selection with zero applicable analyses +passes the aggregate. A failed or cancelled selected analysis fails it. +CI runs on every push to `main`. `RAILWAY_WAIT_FOR_CI=true` opts all five GitHub sources in the linked environment into Railway's [Wait for CI](https://docs.railway.com/deployments/github-autodeploys). diff --git a/scripts/codeql-matrix.mjs b/scripts/codeql-matrix.mjs index a77aaf4f..5e858683 100644 --- a/scripts/codeql-matrix.mjs +++ b/scripts/codeql-matrix.mjs @@ -49,10 +49,9 @@ export function codeqlMatrix(changes, forceAll = false) { ) { throw new TypeError("Changed CodeQL filters must be an array of strings"); } - const all = forceAll || changes.includes("workflow"); return { include: jobs - .filter((job) => all || changes.includes(job.filter)) + .filter((job) => forceAll || changes.includes(job.filter)) .map(({ filter: _filter, ...job }) => job), }; } diff --git a/scripts/codeql-matrix.test.mjs b/scripts/codeql-matrix.test.mjs index 0b6e62ff..895b886f 100644 --- a/scripts/codeql-matrix.test.mjs +++ b/scripts/codeql-matrix.test.mjs @@ -1,4 +1,5 @@ import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; import test from "node:test"; import { codeqlMatrix } from "./codeql-matrix.mjs"; @@ -24,7 +25,12 @@ test("platform changes select only that platform", () => { ["java-kotlin"], ); }); -test("workflow edits outside CodeQL select only the Actions analysis", () => { +test("workflow edits select only the Actions analysis, including edits to CodeQL itself", () => { + const filters = JSON.parse( + readFileSync(new URL("../.github/codeql-filters.json", import.meta.url)), + ); + assert.equal(Object.hasOwn(filters, "workflow"), false); + assert(filters.actions.includes(".github/workflows/**")); assert.deepEqual( codeqlMatrix(["actions"]).include.map((job) => job.language), ["actions"], @@ -40,8 +46,8 @@ test("combined changes select each analysis once", () => { 2, ); }); -test("CodeQL configuration changes and explicit manual scans select all six analyses", () => { - assert.equal(codeqlMatrix(["workflow"]).include.length, 6); +test("only a manual full scan overrides language path selection", () => { + assert.deepEqual(codeqlMatrix(["workflow"]), { include: [] }); assert.equal(codeqlMatrix([], true).include.length, 6); }); test("invalid filter output fails rather than silently omitting analysis", () => {