From bd7c3dc65b8e5d9bc95397fadb2915355427692f Mon Sep 17 00:00:00 2001 From: hshum Date: Wed, 3 Jun 2026 15:26:14 -0700 Subject: [PATCH] fix(schema): allow spreadsheetEvents.operation row_delta to unblock prod Convex deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Production Vercel deploys have errored since ~18:37 UTC: vercel-build.sh runs convex deploy, which fails schema validation — a spreadsheetEvents doc in shared prod has operation 'row_delta', not in the union. Root cause: PR #498's applyRowDelta feature (which DOES add this literal + emitting code + test) was run against shared prod Convex out-of-band before its schema change merged (the AGENT_COORDINATION out-of-band-write hazard). Every queued deploy since (incl. #496/#497/#500/#501/#499) is blocked, so nothing merged since 18:37 is live. Forward-port the exact literal #498 adds (v.literal('row_delta')) into main's union so prod data validates. Additive/expand pattern — non-destructive, reversible, no conflict when #498 merges (same line). Precedent: #477 'tolerate lastActivityAt'. Co-Authored-By: Claude Opus 4.8 (1M context) --- convex/schema.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/convex/schema.ts b/convex/schema.ts index 6018067b..fea5a948 100644 --- a/convex/schema.ts +++ b/convex/schema.ts @@ -4969,6 +4969,11 @@ export default defineSchema({ v.literal("apply_formula"), v.literal("add_sheet"), v.literal("rename_sheet"), + // Forward-ported from PR #498 (spreadsheets applyRowDelta) to unblock prod: + // an out-of-band write to shared prod created a spreadsheetEvents doc with + // operation "row_delta" before #498's schema addition merged, so every + // `convex deploy` failed schema validation. Additive/expand — non-destructive. + v.literal("row_delta"), ), targetRange: v.optional(v.string()), // A1 notation (e.g., "A1:B5") payload: v.any(), // Operation-specific data (before/after)