Repository navigation
fix(translations): localize five per-language fields admins edit - #1002
Conversation
Five fields hold text or a target that differs per language and stored one value for all 19 locales, so an admin editing one with the panel switched to French replaced the English everyone else reads (#981). The app-card picker invites it: in the French admin it lists only French meditations. `videos.subtitles` and the three `app-cards` destination `meditation` fields take `localized: true` directly — `jsonField` passes extra props through, and one edit in `destinationFields` covers all three view tabs. The three form-builder defaults cannot: the plugin's `fields: { select: … }` option replaces a block's whole field list rather than merging into it, so `formFields` maps `defaultFields` instead. It copies rather than mutating, because `generateFormCollection` puts the plugin's own module-level block objects straight into `blocks`, which the production config and the test harness both build from. Localization changes the stored schema, not the generated types, so `src/payload-types.ts` is untouched. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDFbCbs1hbpbWxYi66cE5x
…ables Generated by `db:migrations:create`, then hand-edited to backfill — the generated delta adds each locale column and drops the base column, so every existing value is lost: video 1's captions, the meditation 15 app cards open, and all 3 forms' titles. The precedent is `20260911_235823_pages_app_cards_localize_status.ts`. Each value is copied into the `en` row alone. Fallback is on, so every other locale keeps reading what it reads today and an editor narrows it per locale from there. `forms.title` is required, so it needs a value in every locale row that already exists or the `SET NOT NULL` aborts on a form carrying only a French `submit_button_label`. Its English text is copied to those rows as the starting value. The constraint is therefore added last, not by the generated `ADD COLUMN … NOT NULL`, which cannot succeed against a populated table. `videos_locales.title` is `NOT NULL`, so an `en` row cannot be inserted for a video that has none, and the cues would be dropped silently. A guard raises instead; the migration is one transaction, so the schema is left untouched. Verified by round trip against PostgreSQL 16 on a database carrying the pre-migration chain and rows shaped to hit both arms — an app card with no `en` row (insert) and a version row with one (conflict update), plus a French form row with no title. After `up` every value reads the same at `en` and the base columns are gone; after `down` every value is back on the base column with `forms.title` `NOT NULL` again, and the non-English rows survive both ways. The guard was watched aborting on a video with cues and no `en` row, naming the count and leaving the schema unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDFbCbs1hbpbWxYi66cE5x
Asserted functionally, not off the config: Payload strips `localized` from the sanitized config a booted instance exposes, so reading the flag back would pass either way (`tests/AGENTS.md`). Each case was watched failing with its defect reintroduced — the flag removed from `videos.subtitles`, from the app card's `meditation`, and `localizePerLanguage` bypassed for all three form fields. The forms cases are three `it`s over one shared edit so a field that stops being localized names itself instead of hiding behind the first failure. Two fixture facts the type-checker caught or the run surfaced, both recorded at their call sites: `title` is required and was already localized on videos and app cards, so a French save owes one of its own whatever this change does; and `createMeditation` takes `locale` as an override, not a dependency, so the French meditation was being created at the default locale. The videos fallback case is labelled as pinning fallback rather than localization — an unlocalized column answers it the same way — because it is what makes the migration's en-only backfill correct. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDFbCbs1hbpbWxYi66cE5x
From the branch review. **The videos guard is gone.** It raised when a video held cues with no `en` locale row, to avoid dropping them. But `prodMigrations` applies migrations in-process on boot, so that exception is a Railway boot crash-loop armed by a data condition nobody can evaluate before deploying, with production SQL as the only way out — the opposite of what `src/migrations/AGENTS.md` asks for. The file already resolved the same obstacle the other way two statements later: `forms_locales.title` is `NOT NULL` too, and `forms.title` supplies it. `videos.title` is itself localized, so there is no unlocalized English to read — the `en` row borrows the title from whichever locale row the video has. That writes one value the old schema did not hold, which the docblock now states, and it is the only way to satisfy "every existing value reads the same at `en`" for such a row: the base column was read by every locale, so leaving the cues behind loses them outright. All five fields now follow one rule — insert the `en` row, or update it where it exists. Also from the review: - The three `up()` backfill blocks and two `down()` blocks are one each. The ordering constraint is binary (after the ADD COLUMNs, before the DROPs), and the cited precedent uses a single block. - `"title" = EXCLUDED."title"` dropped from the forms `ON CONFLICT`: every pre-existing row has a NULL title at that point, so the `IS NULL` fill two lines down already owns it. Proven by the round trip — form 501's `en` row keeps its own `submit_button_label` and takes its title from the fill. - `down()`'s two `UPDATE "forms"` statements are one, preferring the `en` row and falling back to the lowest-id locale row. It now restores `redirect_url` for a form with no `en` row too, which the pair left NULL. - The production row counts are out of the docblock. They are a moving target. Re-verified end to end against PostgreSQL 16, on data covering every arm: a video with cues and an `en` row, one with cues and only a French row (the case that used to abort the deploy), one with no cues that must gain no row, a card with no `en` row, a version row that had one, a form with a titleless French row, and a form with no locale rows at all. Every value reads the same at `en` after `up`, and is back on its base column after `down` with `forms.title` `NOT NULL` again. The test comments lose three copies of one rule already stated in `tests/AGENTS.md`, and the fallback case is deleted — it pinned Payload's own localization fallback, which that guide lists under what not to test, and its own comment conceded it stayed green with the defect reintroduced. The two meditations now share a narrator and thumbnail instead of uploading their own. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDFbCbs1hbpbWxYi66cE5x
The Form Builder section said three things the wrapper does that the plugin
options cannot, then listed four. It is five now, and the new one is the
reason a reader would otherwise reach for `fields: { select: … }` and find it
replaces the block's whole field list.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KDFbCbs1hbpbWxYi66cE5x
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
`atlas-report-issue-form` updates a form at `locale: 'de'` to give its blocks German labels. Localizing `forms.title` and `forms.redirect.url` made that save owe a German value for each, and the fixture's `confirmationType: 'redirect'` is what keeps the URL required. The save was refused with `Title, Redirect > URL to redirect to`, so the labels case never reached its assertion. The German data now carries both. Confirmed by reverting the fixture and watching the same two field names come back. Worth a reviewer's eye beyond this spec: the per-locale requirement the PR body records for `title` applies to `redirect.url` on the same terms. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JtFpUCoAoQYgF7GoKuUjmS
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Scope matches #981 exactly: five fields, one migration, four specs, nothing smuggled in. Skipping pnpm generate:types is right — localized moves storage, not types, so no types:cms sync is owed. #1001 is rightly filed, not folded: the half-localized destination/meditation pair needs a product call.
The form-builder walk earns its place, but the real question is upstream: the plugin already localizes label and defaultValue in that same block. Two things the body under-reports — redirect.url is now required per locale, and the migration's INSERTs create locale rows its cited precedent never would.
Findings
should-fix— the migration invents locale rows carrying_status: 'draft', and only one invented value is disclosed.src/migrations/20261020_170450_localize_admin_edited_fields.ts:90should-fix—redirect.urlis required per locale too, and #977 decided this question the other way.tests/int/atlas-report-issue-form.int.spec.ts:298consider— localizeplaceholderupstream and delete the walk.src/collections/Forms/fields.ts:70
What was checked
Read whole: the four source files, the migration, its snapshot, the four specs, the profile. Against node_modules/@payloadcms/plugin-form-builder: title and redirect.url are text, required: true, and placeholder is used by the select block alone, inside a row, beside an already-localized label and defaultValue. From the snapshot: all five _locales tables carry the (_locale, _parent_id) unique index ON CONFLICT needs, and no inserted row meets a hidden NOT NULL sibling. appCardsForAudience reads at req.locale with fallback on, so app clients keep today's target. Backfill compared against the 20260911_235823 precedent.
All three ## Preview links 404 — the Railway environment was not up.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
…ze-admin-edited-fields
The backfill's three `INSERT`s create locale rows where the cited precedent only ever updated. `app_cards_locales._status` and `_app_cards_v_locales.version__status` default to `'draft'`, and both are the localized publish state since #718 — so a card with no `en` row gained one marked draft where it had no English state at all, and `down()` deletes no rows. Both are now inserted as an explicit NULL, cast to their own enum so the coercion is stated rather than inferred, and left out of `ON CONFLICT DO UPDATE` so an existing row keeps the state it had. The docblock says what an inserted row carries. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J2zahGY651q5iepAL49FJL
`title` and `redirect.url` ship `required: true`, and Payload validates a required localized field against that locale's own value — the English fallback does not satisfy it. So localizing them refused every save in any other locale unless the editor retyped both, which is what the German-labels case in `atlas-report-issue-form` hit. #977 settled the same question for `lessons.title`, and `src/collections/AGENTS.md` records it as the rule. `localizePerLanguage` now drops `required` as it localizes, through one `perLanguage` helper shared with the `placeholder` descent. The spec's German data goes back to carrying neither value, so it is the guard again — reintroducing the flag fails it with `Title, Redirect > URL to redirect to`, watched. `forms_locales.title` therefore stops being `NOT NULL`, in a stacked migration: `20261020_170450` has already deployed to this PR's preview, and reshaping a migration that has run is #633's crash-loop. Its generated delta also re-emitted four `lessons` statements that `20261017_093546` already ships — trimmed, with the snapshot kept, which is also what makes the newest snapshot whole again after merging `main`. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J2zahGY651q5iepAL49FJL
|
Three threads settled, and the base merged in first.
Gate green, plus 95 targeted int cases. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
#1007 split the Form Builder section out of src/collections/AGENTS.md into src/plugins/formBuilder/AGENTS.md, leaving a pointer; this branch had added a bullet to that section in place. Both are kept: the pointer stands, and the #981 bullet moves to the section's new home. The bullet's reference to #977's `lessons.title` rule, and the same breadcrumb in src/collections/Forms/fields.ts, now name src/collections/Lessons/AGENTS.md — #1007 moved the reason there. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GJv9myYNG1F1pVEGZ2Hn57
|
Merged Both sides wanted the same section changed. #1007 moved the Form Builder section out to Kept both: main's pointer stands, and the #981 bullet moved to the section's new home. One follow-on the diff does not explain. The bullet cited #977's Lean gate green. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Both sides appended migrations, so the registry in src/migrations/index.ts conflicted twice. Kept both sides, interleaved by timestamp, which is the order migrate:create itself generates: main's five event-import migrations sit around this branch's two. That merge left the newest-by-timestamp snapshot stale again. 20261020_185917 was taken before main's `imports` tables existed, so it is newest and missing them — the #566 out-of-order snapshot trap, armed for whoever generates the next migration. 20261020_235623_merge_981_main_snapshot is the heal: its `.json` was generated on the merged tree and carries both branches' schema, and its DDL is empty because every statement migrate:create emitted is byte-identical to what main's own snapshot already records as applied. src/payload-types.ts auto-merged to main's file plus this branch's two lines, Form.title and Form.redirect.url becoming optional. No product file overlaps. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0153p83du2NKAkyKiayY6UG1
|
Merged That re-armed the #566 snapshot trap.
Lean gate green. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
#1002 localized `meditation` on the same three view tabs, against the same snapshot parent, so every hunk keeps both sides: - `destinationFields()` carries `localized: true` on `destination` and on `meditation`. The comment calling every relationship target shared was true only before #1002, so it now names the three that still are. - `src/migrations/index.ts`: both branches' migrations, in timestamp order. - `app-cards-for-audience.int.spec.ts`: one `per-language destination` describe holding main's meditation case and this branch's two. 35 pass. - `20261021_024228_merge_1002_main_snapshot` is new, and snapshot-only. `20261021_014535` left the newest snapshot without the columns #1002 moved, so `migrate:create` re-emitted all of them — the out-of-order snapshot trap `src/migrations/AGENTS.md` names. A probe now writes no files. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017SW78tqnG85nKPBWAYgUTg
Three docs conflicted on the same axis: main re-measured the unit lane after #1005 added a spec, while this branch had reformatted the tables prettier now owns. Took main's figures — 218 files / 2795 tests, and the two session rows it added to tests/PERF.md — and re-ran the formatter over them, so neither side loses. AGENTS.md keeps this branch's `pnpm format:check` line beside main's repinned count. main's src/collections/Forms/fields.ts (#1002) arrived unformatted and would have failed the gate this branch adds, so prettier ran over it too. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SRTQ21Ydtb9NUo22SCXqMm
…-locale-fallback Both conflicts are this branch's code against #998's prettier 3.9.10 reformat, so each hunk keeps this branch's behaviour and prettier reapplies main's shape. - `lessons.ts`: `unitGroupSpecs` kept `labels` in the `evaluate` destructure; main had only collapsed the `.map()` callback onto one line. - `shared.ts`: main reformatted a type annotation inside `getWmAppConfig`'s hand-rolled request cache, which this branch replaced with `memoizeOnRequest`. #1002 localized `app-cards` destination `meditation`, which no check in the `appCards` section reads, so the per-locale table in the PR body still holds. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AvMHhCzKemzTFd4e7TjxJS
Summary
_localestables, copying each existing value intoenfirst.Change outline
Contract — the five fields
Each becomes per-locale. The three app-card view tabs share one declaration, so
destinationFields()covers all three.Flow — how the three form-builder defaults get localized
The plugin ships them unlocalized, and its
fields: { select: … }option merges arrays by source — so reachingplaceholderthrough it means re-supplying the block's whole field list, label thunks included. The field list is mapped on the way through instead.formFields({ defaultFields }) src/collections/Forms/fields.ts strip `emails` + map localizePerLanguage over each remaining field + title (text) → perLanguage + redirect (group) → localizeNamedText(fields, 'url') + fields (blocks) → select block → localizeNamedText(block.fields, 'placeholder') + # placeholder sits inside a `row`, hence the descent + perLanguage = { localized: true, required: false } append actionType, recipient, clientCopies rather than mutates:
generateFormCollectionputs the plugin's own module-level block objects straight intoblocks, and the production config and the test harness both build from them.requiredcomes off with the flag.titleandredirect.urlarerequired: trueupstream, and Payload validates a required localized field against that locale's own value — the English fallback does not satisfy it. Left on, the flag refuses every save in any second locale unless the editor retypes both, which is what the German-labels case inatlas-report-issue-formhit. #977 settled the same question forlessons.title, andsrc/collections/AGENTS.mdrecords it as the rule.Contract — migration tables
Generated, then hand-edited so each value is carried across before the base column goes.
One rule for all five — insert the
enrow, or update it where it exists. Two things the generated delta got wrong, both fixed:Two locale tables carry a
NOT NULLsibling, so a row inserted for a parent that had none must satisfy it:forms_locales.titlefromforms.title, andvideos_locales.titlefrom whichever locale row the video does have. That second one is the only value this migration writes that the old schema did not hold — see Notes.An inserted row states its publish state rather than taking the table's.
app_cards_locales._statusand_app_cards_v_locales.version__statusdefault to'draft', and both are the localized publish state since #718 — so a card with noenrow would gain one marked draft where it had no English state at all, anddown()deletes no rows. Both are inserted as an explicitNULL, cast to their own enum, and left out ofON CONFLICT DO UPDATEso an existing row keeps what it had.Preview
A Railway PR environment forks configuration and variables, never volume data, so every content table is empty. Each link opens the collection's list; create a row and switch the admin locale to see the change. Local dev auto-signs-in, and a preview signs you in as
PREVIEW_ADMIN_EMAIL.subtitles, switch locale, confirm the cues are per-languagetitle, the redirect URL, and aselectfield's placeholderData: not seeded.
previewUrl.seedis unset for this repo, so there is no seeding command to run against the host.Migration
Two files, deliberately not one:
src/migrations/20261020_170450_localize_admin_edited_fields.ts— moves the five fields.videos,app_cards,_app_cards_v,formsandforms_blocks_selectlose the five base columns; their_localestables gain them. Every existing value is copied into theenrow first.forms_locales.titleendsNOT NULL, asforms.titlewas.src/migrations/20261020_185917_forms_title_optional_per_locale.ts— drops thatNOT NULLagain, becauseforms.titlestops beingrequired. Stacked rather than folded in: the first migration has already deployed to this PR's preview, and reshaping a migration that has run leaves the columns in place with nopayload_migrationsrow naming the new one, which crash-loops the boot migration (feat(access): add embed metadata and canonical ownership to Clients #633,src/migrations/AGENTS.md).envalue back onto its base column before dropping the locale columns, and restoresforms.title'sNOT NULLafter backfilling it, preferring theenrow and falling back to the lowest-id locale row. The second fills any NULL title with''before restoring the constraint, as20261017_093546's own rollback does — there is no other source on that table.Test results
pnpm lint,pnpm typecheck,pnpm typecheck:tests,pnpm test:unit(2642 passed)tests/int/videos.int.spec.ts,tests/int/app-cards-for-audience.int.spec.ts,tests/int/forms-action-type.int.spec.ts,tests/int/atlas-report-issue-form.int.spec.tspnpm db:migrations:create chain_probe --skip-emptywrites no files on the merged treeManual verification
The migration was round-tripped locally against PostgreSQL 16, on a database carrying the real pre-migration chain and rows shaped to hit every arm: a video with cues and an
enrow (conflict update), a video with cues and only a French row (insert, with a borrowed title), a video with no cues that must gain no row, an app card with noenrow (insert), a version row that had one (conflict update), a form with a titleless French row (theSET NOT NULLedge), and a form with no locale rows at all. Afterupevery value read the same atenand the base columns were gone; afterdownevery value was back on its base column withforms.titleNOT NULLagain, and the non-English rows survived both ways.⚠ That round trip predates the second migration and the explicit-NULL publish state, so it is evidence about the first migration as it was issued. Neither change touches the paths it exercised — one column list gained a literal, and the second migration is two statements on an empty constraint — but the run itself has not been repeated.
What that cannot cover, and a reviewer should:
enrow, no select blocks, andredirect_urlempty on all 3. Compare everyenvalue before and after.titleis now optional, in every locale including English. That is the cost of localizing a previously-required field, and the same tradelessons.titletook in fix(lessons): translating a Path Step overwrites its English text #977. Confirm an untitled form reads acceptably in the admin list, which usestitleas its label.Notes for reviewer
videos_locales.titleisNOT NULLandvideos.titleis itself localized, so there is no unlocalized English to read. A video whose only locale row is, say, French therefore lands that French title in the newenrow, where English rendered blank before. The alternative is losing the cues: the base column they came from was read by every locale, so leaving them behind drops them outright. An earlier revision raised an exception instead — the branch review rejected that, correctly:prodMigrationsapplies migrations in-process on boot, so it was a Railway boot crash-loop armed by a data condition nobody can evaluate before deploying, which is the opposite of whatsrc/migrations/AGENTS.mdasks for. Production has no such row.origin/mainwas merged in, and it moved the snapshot chain. The merge is clean (a77ca5c), but it brought fix(lessons): translating a Path Step overwrites its English text #977's two lesson migrations, whose timestamps sort below this branch's — so this branch's snapshot was both the newest and stale, which is the feat(regions): country slug = ISO alpha-2 code #566 duplicate-re-emission trap armed for whoever generates the next migration. The second migration's own.json, taken on the merged tree, is what makes the newest snapshot whole again. Its generated delta re-emitted fourlessonsstatements that20261017_093546already ships; those are trimmed, and the file's docblock names them.destinationselect decides which target column the app reads, and it stays global whileurland nowmeditationare per-locale. A French editor switching a card's destination flips the discriminator for every locale and writes the target intofronly, so English loses its destination. Pre-existing —urlhas been localized since it was written — but this PR is what makes the pair half-localized by intent. It needs six more enum columns and a product call on whether languages may point at different kinds of destination, so it is not folded in here.src/payload-types.tscarries two lines, and only two. Localization changes the stored schema, not the generated types — but droppingrequireddoes:Form.titleandForm.redirect.urlbecome optional. ⚠ The file also gets rewritten with one unrelatedverificationStageunion collapsed onto a 110-character line, past the repo's 100printWidth, by anypayloadCLI run or integration-spec boot in this environment. That hunk is reverted here, and it came back twice during this session.pages.featuredVideostays unlocalized as the ticket directs.page,lectureandalbumdestinations were checked and are not the same case — those documents carry their own localized fields, whereas a meditation document is single-locale. Lessons'panels[].subtitlesandintroSubtitlesare the same column type but sit beside unlocalizedpanels[].title/text, so that whole panel tree is a different change.down()backfills were flagged for lacking the source-NULL guard their videos sibling has, which rewrites some rows to the NULL they already hold. Left as is — at this scale it is no-op row churn in a rollback path, and three added OR-chains cost more reading than the work they save. Also left: localizingplaceholderupstream in@payloadcms/plugin-form-builder. It would not delete the walk, since droppingrequiredfromtitleandredirect.urlstays this repo's to do; filing it upstream is a maintainer's call, and reachable from no loop session.PageTemplate.tsxin WeMeditateWeb still labels the inline track "EN" whatever language the captions are in, and only matters once a non-English caption exists.Detail
Why the form fields are mapped rather than configured.
formBuilderPluginbuilds its block set fromfields[fieldKey], and forselect: trueit returns the plugin's module-levelSelectobject unchanged — no merge happens. Passingfields: { select: {...} }instead takes thedeepMergeWithSourceArrayspath, which replaces target arrays with the source's, so supplying afieldsarray to reachplaceholderis what would discard the block's field list. The plugin does export its block table, so the same walk could be written insrc/plugins/formBuilder/index.tsagainstfields.select— that is the same hand-walk one module further from the spec that pins it, so it stayed informFields.Why
placeholderneeded a descent. In the plugin'sSelectdefinition the sharedplaceholderfield is spread inside arowwrapper, whileredirect.urlsits directly in the group'sfields.localizeNamedTexthandles both by walking through any field with nonameof its own.placeholderis used by theselectblock alone, verified against the plugin'sfields.js, so no other block is touched. Atabsfield would not be walked; the comment says so, and the spec would catch it.Test shape. Asserted functionally, never off the config: Payload strips
localizedfrom the sanitized config a booted instance exposes (tests/AGENTS.md), so reading the flag back would pass either way. Each case was watched failing with its defect reintroduced — the flag removed fromvideos.subtitlesand from the app card'smeditation, andlocalizePerLanguagebypassed for all three form fields. The forms cases are threeits over one shared edit, so a field that stops being localized names itself rather than hiding behind the first failure.What pins the
requiredhalf. No new spec:tests/int/atlas-report-issue-form.int.spec.tsalready saves German labels and carries neither value, so it is the guard. Puttingrequiredback fails it withValidationError: The following fields are invalid: Title, Redirect > URL to redirect to— watched, then restored. The six lines of German data a CI fix added to get past that validation are reverted, which is what hands the assertion back to the spec.Two fixture facts worth keeping.
titleis required and was already localized on both videos and app cards, so a French save owes one of its own whatever this change does — the first run of the videos spec failed on exactly that. AndcreateMeditationtakeslocaleas an override (its third argument), not a dependency, so the French meditation was initially created at the default locale;pnpm typecheck:testscaught it.Also dropped in the review pass. A videos case asserting the English fallback was deleted: it pinned Payload's own localization fallback, which
tests/AGENTS.mdlists under what not to test, and its own comment conceded it stayed green with the defect reintroduced. Three copies of one rule already stated in that guide were cut to a line each. The threeup()backfill blocks became one, matching the cited precedent, and a dead"title" = EXCLUDED."title"clause came out of the formsON CONFLICT— the round trip proves theIS NULLfill two lines down already owns it.Anomaly, recorded not explained.
pnpm payload migratetwice exited 0 having done nothing, with an empty log, when its output was piped; redirecting stdout to a file ran it correctly both times.src/migrations/AGENTS.mdalready warns that piping loses this command's output. Every migration result above was taken from a redirected run and confirmed against the database. Separately, bothmigrate:createruns in this session logged a nodemailerCONNECT_TIMEOUTwhile verifying the SMTP transport at boot, then generated normally.Closes #981