fix(portability): validate envelope contents before importing (#2) - #17
rksharma-owg wants to merge 3 commits into
Conversation
- Add Zod validation schemas for exported memories, aliases, and envelopes - Validate envelope structure in validateExportEnvelope before inserting rows - Surface descriptive error messages identifying invalid fields - Add unit tests for malformed and missing envelope fields Co-authored-by: Google Antigravity <antigravity@google.com>
|
@rksharma-owg is attempting to deploy a commit to the vignesh's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Nice work @rksharma-owg - the zod schemas and path-specific errors are exactly what #2 needed. Issue: this and your #19 both rewrite If that works, we'll close this as superseded once #19 carries the validation - your work lives on there. |
|
Superseded by #19 (now merged). Per the plan we discussed, the envelope validation and version enforcement from this PR were folded into #19, which also adds the skip-malformed-rows behavior - so #19 closes both #1 and #2 in one coherent change. Merging both would have conflicted since they rewrite the same |
What & why
Related issue
Closes #
How was it tested?
Checklist
npm run cipasses locally (typecheck + tests + build + smoke)src/db/migrate.ts(never edited a shipped one)npm run benchand included the before/after numbers below