- .gitignore: /files/*.svg reverted to /files/logos.svg — files/preview.svg is
deliberately NOT ignored anymore (it is the editable source of preview.png
and lives committed in the private variants repo). The public export still
excludes files/*.svg (LimeSurvey's image validator rejects SVG for images).
- variants/build.php: copyDirRecursive() gained a $neverOverwrite list;
files/preview.svg is copied into a variant only at FIRST creation (seeded
from the mother when the definitions dir has none) and never overwritten on
later builds. The build prints a WARNING when the variant's preview.png is
md5-identical to the mother's, enforcing the standing rule that every
variant has its own preview.
- Standing rule recorded in AGENTS.md (project) and ~/.vibe/AGENTS.md.
Verified in a /tmp sandbox build: first build copies/seeds preview.svg; a
user-edited preview.svg survives rebuilds (also when the definitions copy
changes); all other assets are still overwritten; identical-preview.png
warning fires; php -l clean; export_public.sh exit 0 with no .svg in the zip.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>