Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(recall): clear reference images when the recalled image had none (#10284)
Lincoln Stein0931f7100ebe
diff --git a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/animaLLLiteCanvasGraphs.json b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/animaLLLiteCanvasGraphs.jsonindex abcc325e80..4c1dc20dde 100644--- a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/animaLLLiteCanvasGraphs.json+++ b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/animaLLLiteCanvasGraphs.json@@ -386,6 +386,7 @@"hash": "blake3:qwen3"},"clip_skip": 0,+ "ref_images": [],"anima_inpaint_adapter": {"base": "anima","cond_in_channels": 4,@@ -880,6 +881,7 @@"hash": "blake3:qwen3"},"clip_skip": 0,+ "ref_images": [],"strength": 0.6,"control_layers": [{@@ -1516,6 +1518,7 @@"hash": "blake3:qwen3"},"clip_skip": 0,+ "ref_images": [],"anima_inpaint_adapter": {"base": "anima","cond_in_channels": 4,diff --git a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/externalCanvasGraphs.json b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/externalCanvasGraphs.jsonindex 8f229623f7..20771c4114 100644--- a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/externalCanvasGraphs.json+++ b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/externalCanvasGraphs.json@@ -185,6 +185,7 @@"openai_quality": "auto","openai_background": "auto","clip_skip": 0,+ "ref_images": [],"control_layers": [],"controlnets": [],"t2iAdapters": []@@ -455,6 +456,7 @@"openai_quality": "auto","openai_background": "auto","clip_skip": 0,+ "ref_images": [],"control_layers": [],"controlnets": [],"t2iAdapters": []diff --git a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux2ControlCanvasGraphs.json b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux2ControlCanvasGraphs.jsonindex b94ff395cb..7caaaac065 100644--- a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux2ControlCanvasGraphs.json+++ b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux2ControlCanvasGraphs.json@@ -319,6 +319,7 @@"type": "core_metadata","width": 768,"clip_skip": 0,+ "ref_images": [],"strength": 0.6,"control_layers": [{@@ -800,6 +801,7 @@"type": "core_metadata","width": 768,"clip_skip": 0,+ "ref_images": [],"strength": 0.6,"control_layers": [{@@ -1172,6 +1174,7 @@"type": "core_metadata","width": 768,"clip_skip": 0,+ "ref_images": [],"control_layers": [{"begin_step_percent": 0,diff --git a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux3LayoutCanvasGraphs.json b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux3LayoutCanvasGraphs.jsonindex 14c6d89284..d390df0cfd 100644--- a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux3LayoutCanvasGraphs.json+++ b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/flux3LayoutCanvasGraphs.json@@ -650,6 +650,7 @@"type": "core_metadata","width": 768,"clip_skip": 0,+ "ref_images": [],"strength": 0.6,"control_layers": [],"controlnets": [],@@ -977,6 +978,7 @@"type": "core_metadata","width": 768,"clip_skip": 0,+ "ref_images": [],"control_layers": [],"controlnets": [],"t2iAdapters": [],@@ -1626,6 +1628,7 @@"hash": "blake3:pup"},"clip_skip": 0,+ "ref_images": [],"control_layers": [],"controlnets": [],"t2iAdapters": [],diff --git a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/qwenImageControlCanvasGraphs.json b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/qwenImageControlCanvasGraphs.jsonindex b06bfad271..a291da2be6 100644--- a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/qwenImageControlCanvasGraphs.json+++ b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/qwenImageControlCanvasGraphs.json@@ -326,6 +326,7 @@"qwen_image_quantization": "none","qwen_image_shift": "auto","clip_skip": 0,+ "ref_images": [],"strength": 0.6,"control_layers": [{@@ -754,6 +755,7 @@"qwen_image_quantization": "none","qwen_image_shift": "auto","clip_skip": 0,+ "ref_images": [],"strength": 0.6,"control_layers": [{@@ -1228,6 +1230,7 @@"qwen_image_quantization": "none","qwen_image_shift": "auto","clip_skip": 0,+ "ref_images": [],"strength": 0.6,"control_layers": [{@@ -1605,6 +1608,7 @@"qwen_image_quantization": "none","qwen_image_shift": "auto","clip_skip": 0,+ "ref_images": [],"control_layers": [{"begin_step_percent": 0,diff --git a/invokeai/frontend/webv2/src/features/generation/core/graph.test.ts b/invokeai/frontend/webv2/src/features/generation/core/graph.test.tsindex a4e588655b..ad00406749 100644--- a/invokeai/frontend/webv2/src/features/generation/core/graph.test.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/graph.test.ts@@ -554,6 +554,12 @@ describe('compileGenerateGraph', () => {});});+ it('records an empty reference list when generating without references', () => {+ const graph = compile(sd1Model, { referenceImages: [] });++ expect(getNodeByType(graph, 'core_metadata')?.ref_images).toEqual([]);+ });+it('wires SD IP Adapter reference images into denoise', () => {const graph = compile(sd1Model, {referenceImages: [diff --git a/invokeai/frontend/webv2/src/features/generation/core/graph.ts b/invokeai/frontend/webv2/src/features/generation/core/graph.tsindex e25e96d16a..ae41acb88a 100644--- a/invokeai/frontend/webv2/src/features/generation/core/graph.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/graph.ts@@ -98,27 +98,15 @@ const toImageField = (image: GenerateReferenceImageAsset) => ({image_name: getEffectiveReferenceImage(image).image_name,});-const addReferenceImageMetadata = (- graph: BackendGraphContract,- outputNode: BackendInvocationContract,- settings: GenerateSettings-) => {- const enabled = settings.referenceImages.filter(- (referenceImage) => referenceImage.isEnabled && referenceImage.config.image- );-- if (enabled.length === 0) {- return;- }-+/** Recorded even when empty, on the `core_metadata` node `addMetadata` added: an empty list tells recall to clear. */+const addReferenceImageMetadata = (graph: BackendGraphContract, settings: GenerateSettings) => {const metadata = Object.values(graph.nodes).find((node) => node.type === 'core_metadata');if (metadata) {- metadata.ref_images = enabled;- return;+ metadata.ref_images = settings.referenceImages.filter(+ (referenceImage) => referenceImage.isEnabled && referenceImage.config.image+ );}-- outputNode.ref_images = enabled;};const addIPAdapterReferenceImages = (@@ -490,7 +478,7 @@ const buildSDGraph = (...(refiner ? getRefinerMetadata(settings, model, refiner) : {}),scheduler,});- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: {@@ -768,7 +756,7 @@ const buildFluxGraph = (vae: vaeModel ?? undefined,...(shouldUsePidDecode(settings, model.base) ? getPidMetadata(settings) : {}),});- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: {@@ -898,7 +886,7 @@ const buildFlux2Graph = (vae: vaeModel ?? undefined,...(shouldUsePidDecode(settings, model.base) ? getPidMetadata(settings) : {}),});- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: {@@ -1167,7 +1155,7 @@ const buildQwenImageGraph = (scheduler: undefined,...(shouldUsePidDecode(settings, model.base) ? getPidMetadata(settings) : {}),});- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: null,@@ -1381,7 +1369,7 @@ const buildAnimaGraph = (scheduler,vae: vaeModel,});- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: {@@ -1578,7 +1566,7 @@ const buildKrea2Graph = (qwen3_vl_vision_tower: qwen3VlVisionTowerModel ?? undefined,vae: vaeModel ?? undefined,});- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: {@@ -1664,7 +1652,7 @@ const buildQwenImage21Graph = (vae: vaeModel ?? undefined,});addEdge(graph, denoise, 'metadata', output, 'metadata');- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: null,@@ -1946,7 +1934,7 @@ const buildFlux3Graph = (// Metadata records the caption encoded, not the prompt typed (recall restores `positive_prompt`).addEdge(graph, layoutPrompt, 'value', metadata, 'flux3_caption');}- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return {conditioning: null,@@ -2184,7 +2172,7 @@ export const buildExternalGraph = (scheduler: undefined,...getExternalProviderMetadata(settings, model),});- addReferenceImageMetadata(graph, output, settings);+ addReferenceImageMetadata(graph, settings);return graph;};diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.ts b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.tsindex 7cf2d506a5..9bd0ada06c 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.test.ts@@ -864,6 +864,38 @@ describe('model-family tuning recall', () => {expect(recallOverChanged(record(qwenModel, { qwen_image_shift: null }), qwenModel)?.qwenImageShift).toBeNull();});});++ it('keeps the current Krea-2 style reference for a legacy record that did not list its references', () => {+ const styleReference = normalizeReferenceImages([+ {+ config: {+ image: { original: { image: { height: 512, image_name: 'current.png', width: 512 } } },+ styleStrength: 1,+ type: 'krea2_reference_image',+ },+ id: 'current-style',+ isEnabled: true,+ },+ ]);+ const result = buildImageRecallSettings({+ currentValues: createValues({ model: krea2Model, modelKey: krea2Model.key, referenceImages: styleReference }),+ image,+ kind: 'all',+ // The legacy UI recorded only the strength of the style reference it used.+ metadata: {+ app_version: '6.12.0',+ generation_mode: 'krea2_txt2img',+ krea2_style_strength: 0.6,+ model: { key: krea2Model.key },+ },+ models: [],+ supportedModels: [krea2Model],+ vaeModels: [],+ });++ expect(result?.values.referenceImages).toEqual(styleReference);+ expect(result?.fields).not.toContain('referenceImages');+ });});describe('recall offered for a single recallable delta', () => {@@ -1311,6 +1343,116 @@ describe('legacy records', () => {expect(result?.values.referenceImages).toEqual([]);});++ it('clears the current references when a generation record omits them', () => {+ const result = recall(+ { app_version: '6.0.0', generation_mode: 'txt2img', model: { key: sdxlModel.key }, positive_prompt: 'silent' },+ { referenceImages: currentReferenceImages },+ [sdxlModel]+ );++ expect(result?.values.referenceImages).toEqual([]);+ expect(result?.fields).toContain('referenceImages');+ });++ it('leaves the current references when the recorded list cannot be read', () => {+ // v6.3–6.10 recorded Kontext references as a list nested inside `ref_images`.+ const nested = [[{ config: { image: { image_name: 'kontext.png' }, type: 'flux_kontext' }, id: 'kontext' }]];+ const result = recall(+ {+ app_version: '7.0.0',+ generation_mode: 'txt2img',+ model: { key: sdxlModel.key },+ positive_prompt: 'nested',+ ref_images: nested,+ },+ { referenceImages: currentReferenceImages },+ [sdxlModel]+ );++ expect(result?.values.referenceImages).toEqual(currentReferenceImages);+ expect(result?.fields).not.toContain('referenceImages');+ });++ it('leaves the current references on a record that is not a generation record', () => {+ // An upscale or hand-built workflow record names a model without saying what references ran.+ const result = recall(+ { app_version: '7.0.0', model: { key: sdxlModel.key }, positive_prompt: 'upscaled' },+ { referenceImages: currentReferenceImages },+ [sdxlModel]+ );++ expect(result?.values.referenceImages).toEqual(currentReferenceImages);+ expect(result?.fields).not.toContain('referenceImages');+ });++ it('keeps the current references for a model that takes none', () => {+ const zImageModel: MainModelConfig = { base: 'z-image', key: 'z-model', name: 'Z-Image', type: 'main' };+ const result = recall(+ {+ app_version: '7.0.0',+ generation_mode: 'z_image_txt2img',+ model: { key: zImageModel.key },+ positive_prompt: 'no references',+ },+ { referenceImages: currentReferenceImages },+ [sdxlModel, zImageModel]+ );++ expect(result?.values.model.key).toBe(zImageModel.key);+ expect(result?.values.referenceImages.map((reference) => reference.id)).toEqual(['current-reference']);+ expect(result?.fields).not.toContain('referenceImages');+ });++ it('leaves the current references for a v4.2 record that kept its IP-Adapters in control layers', () => {+ const result = recall(+ {+ app_version: '6.0.0',+ control_layers: { layers: [{ type: 'ip_adapter_layer' }], version: 2 },+ generation_mode: 'txt2img',+ model: { key: sdxlModel.key },+ positive_prompt: 'v4.2',+ },+ { referenceImages: currentReferenceImages },+ [sdxlModel]+ );++ expect(result?.values.referenceImages).toEqual(currentReferenceImages);+ expect(result?.fields).not.toContain('referenceImages');+ });++ it('leaves the current references on a v5 record, which may have dropped the ones it used', () => {+ // v5 Canvas-staged images saved to the Gallery lost `canvas_v2_metadata`, and their references with it.+ const result = recall(+ {+ app_version: '5.15.0',+ generation_mode: 'sdxl_txt2img',+ model: { key: sdxlModel.key },+ positive_prompt: 'v5',+ },+ { referenceImages: currentReferenceImages },+ [sdxlModel]+ );++ expect(result?.values.referenceImages).toEqual(currentReferenceImages);+ expect(result?.fields).not.toContain('referenceImages');+ });++ it('leaves the current references when the record names no recallable model', () => {+ const result = recall(+ {+ app_version: '7.0.0',+ generation_mode: 'txt2img',+ model: { key: 'not-installed' },+ positive_prompt: 'silent',+ },+ { referenceImages: currentReferenceImages },+ [sdxlModel]+ );++ expect(result?.values.referenceImages).toEqual(currentReferenceImages);+ expect(result?.fields).not.toContain('referenceImages');+ });});describe('model identity', () => {diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.ts b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.tsindex 61e745008b..29021f735f 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecall.ts@@ -61,6 +61,7 @@ import {MIN_ZIMAGE_SEED_VARIANCE_RANDOMIZE_PERCENT,normalizeMossImageSkipLayers,normalizeReferenceImages,+ takesReferenceImages,getRecallDefaultVae,resolveModelDefaultVae,} from '@features/generation/settings';@@ -1124,6 +1125,9 @@ const getMetadataConcepts = (return { loras, skipped };};+/** Legacy-UI Krea-2 generation graphs used a style reference without recording `ref_images`. */+const LEGACY_UNRECORDED_REFERENCE_BASE = 'krea-2';+const boundReferenceEntries = (entries: unknown[]): unknown[] =>entries.length > 10000 ? [...entries.slice(0, 10000), null] : entries;@@ -1222,10 +1226,13 @@ export const readMetadataReferenceImages = (assets?: ReadonlyMap<string, Pick<GalleryImage, 'width' | 'height'>>,models?: readonly ComponentModelConfig[],mainModel?: GenerateModelConfig-): { images: GenerateReferenceImage[] | null; names: string[]; partial: boolean } => {+): { absent: boolean; images: GenerateReferenceImage[] | null; names: string[]; partial: boolean } => {const entries = getMetadataReferenceEntries(metadata);if (entries === null) {- return { images: null, names: [], partial: false };+ // `absent`: the record has no reference entry at all. An unreadable `ref_images` (v6.3–6.10 nested Kontext lists)+ // or a v4.2 object-form `control_layers`, whose global IP-Adapter layers are not read here, still lists some.+ const absent = isRecord(metadata) && !('ref_images' in metadata) && !isRecord(metadata.control_layers);+ return { absent, images: null, names: [], partial: false };}const names = new Set<string>();const ipAdapterModels = models?.filter((model) => model.type === 'ip_adapter');@@ -1277,6 +1284,7 @@ export const readMetadataReferenceImages = (});const images = normalizeReferenceImages(hydrated).filter((ref) => ref.config.image !== null);return {+ absent: false,images: images.length > 0 || entries.length === 0 ? images : null,names: [...names],partial: images.length < entries.length,@@ -1562,7 +1570,20 @@ export const buildImageRecallSettings = ({// References must fit the effective model, which is still the current one when the recorded model was not recalled.referenceRecall = readMetadataReferenceImages(metadata, referenceAssets, models, values.model);- const recordedReferenceImages = referenceRecall.images;+ // v6+ generation graphs omitted `ref_images` only when no references were used, so such a record without a+ // reference entry had none. v5 Canvas-staged records dropped the references they used along with+ // `canvas_v2_metadata`, so older records prove nothing. A model that takes no references keeps them, switched off.+ const recordedReferenceImages =+ referenceRecall.images ??+ (referenceRecall.absent &&+ model &&+ isGenerationRecord(metadata) &&+ Number.parseInt(getString(metadata, 'app_version') ?? '', 10) >= 6 &&+ takesReferenceImages(values.model) &&+ values.model.base !== LEGACY_UNRECORDED_REFERENCE_BASE+ ? []+ : null);+ // Only the base decides; an encoder without a vision tower is flagged by validation, not recalled away.const referenceImages = getCompatibleReferenceImages(resolveReferenceImageModels(recordedReferenceImages ?? [], models),values.model,diff --git a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecallContract.test.ts b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecallContract.test.tsindex d3eca0d6d3..230f9a71e7 100644--- a/invokeai/frontend/webv2/src/workbench/image-actions/imageRecallContract.test.ts+++ b/invokeai/frontend/webv2/src/workbench/image-actions/imageRecallContract.test.ts@@ -36,6 +36,8 @@ import {getGenerationUiPolicy,isSupportedGenerateModel,isVaeModelConfig,+ normalizeReferenceImages,+ takesReferenceImages,} from '@features/generation/settings';import { compileModelOnlyUpscaleGraph, compileUpscaleGraph } from '@features/upscale/core/graph';import { CASES as UPSCALE_CASES, INSTALLED, valuesForCase } from '@features/upscale/core/upscaleGraphCoverage.testing';@@ -411,6 +413,17 @@ const baselineValues = (): GenerateWidgetValues => ({positivePrompt: 'the baseline prompt',promptTemplate: { id: 'template', name: 'Template', negativePrompt: 'lowres', positivePrompt: '{prompt}, detailed' },promptTemplateViewMode: true,+ referenceImages: normalizeReferenceImages([+ {+ config: {+ image: { height: 512, image_name: 'baseline-reference.png', width: 512 },+ model: { base: 'sdxl', key: 'baseline-adapter', name: 'Baseline adapter', type: 'ip_adapter' },+ type: 'ip_adapter',+ },+ id: 'baseline-reference',+ isEnabled: true,+ },+ ]),seed: 123,seedMode: 'random',});@@ -950,6 +963,16 @@ describe('image recall contract', () => {expect(failures).toEqual([]);});+ it('records the reference list on every generation record of a family that takes references', () => {+ // Recall reads a missing list as "none", so a builder that forgets to record its references would clear them.+ const missing = getCases()+ .filter(({ model, record }) => typeof record.generation_mode === 'string' && takesReferenceImages(model))+ .filter(({ record }) => !Array.isArray(record.ref_images))+ .map(({ label }) => label);++ expect(missing).toEqual([]);+ });+it('G8: restores the default a generation record implies for each key it lacks', () => {const offDefaults = offDefaultBaselineValues();const failures: string[] = [];diff --git a/invokeai/frontend/webv2/src/workbench/projects/README.md b/invokeai/frontend/webv2/src/workbench/projects/README.mdindex fcf52808df..f636358dcf 100644--- a/invokeai/frontend/webv2/src/workbench/projects/README.md+++ b/invokeai/frontend/webv2/src/workbench/projects/README.md@@ -141,6 +141,6 @@ All/Remix share one recall path across Gallery, Preview, staging and local queueStandalone legacy `controlnets` and `t2iAdapters` records restore executed maps only when no modern Canvas or `control_layers` record is present. Name-only image fields are hydrated from Gallery DTOs, preferring recorded processed maps; those reads are deduplicated and reused by Canvas validation. Resolved installed models determine the adapter kind, including Control LoRA, LLLite and Fun models. These generation-wide maps fit the current Canvas frame, including its origin, because they carry no authored world position; modern `control_layers` keep their recorded geometry. Old empty, invalid or unavailable adapter lists preserve existing work. Unsupported per-step weight lists and crop/fill resize modes report partial recall rather than replacing them with scalar weights or stretched maps.-Legacy `ipAdapters` records restore global Generate reference images with their model, image, weight, CLIP Vision encoder, method and step window. Modern `ref_images` take precedence, including explicit empty lists; historical Canvas reference-image arrays and entity containers are also accepted. Name-only images use actual Gallery dimensions, and asset lookup failures leave independent Generate fields recallable. Single-image lists are equivalent to one image; multi-image embeddings and per-step weight lists are unsupported and report partial recall. Reference projection examines at most 10,000 entries and reports truncation; image reads use sequential batches of at most 1,000 distinct names and stop when the account or originating project expires.+Legacy `ipAdapters` records restore global Generate reference images with their model, image, weight, CLIP Vision encoder, method and step window. Modern `ref_images` take precedence, including explicit empty lists; historical Canvas reference-image arrays and entity containers are also accepted. Every Generate graph of a family that takes references records `ref_images`, empty when none ran. A v6+ generation record (one with `generation_mode` and an `app_version` of 6 or later) whose model is recalled and takes references, but which has no reference entry, is read as an empty list: older v6+ graphs omitted it only when no references ran, while v5 Canvas-staged records dropped the references they used. Exceptions keep the current references: Krea-2, whose legacy graphs used a style reference without recording it; a `ref_images` that cannot be read, such as the nested Kontext lists of v6.3–6.10; and v4.2 object-form `control_layers`, which held global IP-Adapters. A model that takes no references keeps them, switched off. Name-only images use actual Gallery dimensions, and asset lookup failures leave independent Generate fields recallable. Single-image lists are equivalent to one image; multi-image embeddings and per-step weight lists are unsupported and report partial recall. Reference projection examines at most 10,000 entries and reports truncation; image reads use sequential batches of at most 1,000 distinct names and stop when the account or originating project expires.Legacy `canvas_v2_metadata` is an image-metadata adapter, separate from project schema migration. Its image-backed layers are projected directly; ordered paint, masks, gradients, erasure and layer adjustments are flattened into intermediate paint bitmaps, retaining local offsets, layer position, opacity, stack order, prompts and adapters. Preparation uploads stay intermediate, including unanswered uploads and results abandoned by account, project or document changes. After synchronous Canvas and Generate commits, only images produced by that preparation and retained in the committed Canvas are promoted to durable Canvas assets. Adoption captures its names once, continues for the originating project across navigation, and stops scheduling requests when its account expires. Rejected layers and failed commits never promote their uploads; borrowed Gallery assets are untouched. Promotion failure preserves the applied recall and reports that pixels remain temporary: recent-upload grace, open-project and undo holds, and saved references protect them under the existing intermediates policy. Decoding and uploads are sequential and account-fenced; each raster conversion is limited to 16,777,216 pixels and 16,384 pixels per side, with 64 megapixels and 128 raster uploads per recall; pressure opacity strokes also preflight a shared limit of 67,108,864 work units per recall: layer surfaces, full-output buffers/copies and stamp sampling retain their pixel charges, with 20 preparation units reserved per raw `(x, y, pressure)` point before smoothing and one per planned stamp. Reservations and attempted preparation remain charged when a layer is refused, so later layers cannot repeat expensive work after the limit is exhausted. An over-budget layer is reported and skipped before raster allocation; usable layers remain available for partial recall. Unsupported legacy vector layers force partial recall; their paths are not silently discarded during a complete replacement. Unsupported layer composite operations are reported and skipped because the current canvas blend contract has no Porter-Duff layer modes. A legacy record with no layers retains legacy's no-op behavior. Current records retain groups, original/derived control sources and transforms through the ordinary canvas contract. Details displays recorded settings, layer/control summaries, components, concepts and references without model or asset lookups; the complete raw JSON remains available.