us-east-1M0 validates a local scaffold and reviewable infrastructure template. It does not provision, update, or publish a shared environment.
From the repository root with Node 22.x, pnpm 10.34.5, and Docker available:
corepack pnpm install --frozen-lockfile
corepack pnpm check
corepack pnpm compose:config
corepack pnpm prisma:validate
corepack pnpm expo:check
corepack pnpm coverage
corepack pnpm cdk:synth
Review synthesis output locally for unexpected resources, broad permissions, public data paths,
missing encryption, and placeholder configuration. Confirm that the versioned source bucket
expires current and noncurrent quarantine/, processing/, and temporary legacy originals/
versions after 1 day and that the separate non-versioned diary-retention bucket expires diary/
objects after 365 days. Synthesis success is not deployment approval.
Before releasing the matching mobile/API code, apply Prisma migrations in timestamp order:
20260919201000_photo_upload_client_operation adds adult-scoped authorization idempotency.
Existing rows receive deterministic legacy-<publicId> operation IDs before the column becomes
required and unique.20260919202500_legacy_photo_source_drain records the exact legacy source key/version and
deletion time while a worker transactionally repoints an outstanding job from originals/ to
its sanitized processing/ object.Keep the versioned originals/ lifecycle fallback until monitoring confirms no outstanding legacy
jobs or versions remain. Do not remove it in the same rollout as the compatibility worker.
The mobile SQLCipher migration is runtime and adult-scoped. Offline command schema version 1 rows
are normalized to version 2 in one transaction (occurredAt from the canonical command timestamp,
portion amount 1, unit serving) and corrupt rows still fail closed. The encrypted photo workflow
database also creates a durable upload-attempt table; it stores identifiers, stage, and an optional
app-owned temporary URI, never photo bytes. Native SQLCipher, SecureStore, camera, and filesystem
migration behavior still requires simulator/device validation.
cdk deploy or equivalent provisioning commandsEvery item below is PENDING:
PENDING: define only after the environment and release mechanism exist. It must identify inputs by immutable version, include a change record, require pre-deployment evidence, use staged health checks, prevent concurrent deploys, and link the tested rollback point. Never add secret values to this document.
For M0, retain only the command results and reviewed synthesized diff in the normal development workflow. Do not describe synthesis artifacts as a deployed stack.