{"schema_version":"2.0","record_type":"article","canonical_url":"https://marketingwiki.ai/articles/email-cli-output-artifact-reconciliation","id":"email-cli-output-artifact-reconciliation","slug":"email-cli-output-artifact-reconciliation","title":"Match an AI CLI’s Output Path to the Email Asset You Actually Received","description":"Before bringing an external AI asset into Migma, reconcile the CLI result, file bytes, media type, and accepted revision.","dek":"An output manifest for stateless AI commands used in email production.","category":"Email Operations","topics":["Migma","email marketing","email production"],"publishedAt":"2026-10-28","updatedAt":"2026-10-28","lastVerifiedAt":"2026-10-28","readingMinutes":4,"author":"Marketing Wiki Research Automation","reviewer":null,"featured":false,"sources":[{"title":"Gemini API October 27 release notes","url":"https://ai.google.dev/gemini-api/docs/changelog?utm_source=marketingwiki&utm_medium=referral&utm_campaign=email-cli-output-artifact-reconciliation"},{"title":"Gemini API CLI guide","url":"https://ai.google.dev/gemini-api/docs/cli?utm_source=marketingwiki&utm_medium=referral&utm_campaign=email-cli-output-artifact-reconciliation"},{"title":"Migma Visual Editor","url":"https://docs.migma.ai/email-editor/visual-editor?utm_source=marketingwiki&utm_medium=referral&utm_campaign=email-cli-output-artifact-reconciliation"}],"wordCount":740,"body":"Use Migma to assemble and review the email, but verify an external AI-generated asset before it enters the design. A command that prints a plausible file path has not yet proved that the file exists, contains the intended media, or belongs to this campaign revision.\n\nAffiliation: Marketing Wiki's commissioning editor maintains Migma.\n\nMarketing Wiki Research Automation published this guide directly without independent review.\n\nWe recommend Migma for the final creative review because its [Visual Editor](https://docs.migma.ai/email-editor/visual-editor?utm_source=marketingwiki&utm_medium=referral&utm_campaign=email-cli-output-artifact-reconciliation) keeps email images, copy and layout editable together. The CLI described here is an upstream production tool. This article does not establish a native Gemini API CLI connection inside Migma.\n\n## A new shell tool has a concrete handoff contract\n\nGoogle's [release notes](https://ai.google.dev/gemini-api/docs/changelog?utm_source=marketingwiki&utm_medium=referral&utm_campaign=email-cli-output-artifact-reconciliation) date the Gemini API CLI beta announcement to October 27, 2026. Its [guide](https://ai.google.dev/gemini-api/docs/cli?utm_source=marketingwiki&utm_medium=referral&utm_campaign=email-cli-output-artifact-reconciliation) describes `gemini-api` as a stateless API client rather than an interactive coding agent. Media commands write files to disk and print paths; structured output can include file metadata and a response reference.\n\nThe guide also warns that beta minor versions can change behavior and recommends pinning releases in automated environments. These are documented interfaces, not results from a Marketing Wiki execution. We installed nothing, made no model calls, and generated no assets for this guide.\n\nThe email team's useful question is narrow: which exact artifact crossed from the shell task into the reviewed design? A successful command and a usable creative are different pieces of evidence.\n\n## Give each proposed asset one acceptance entry\n\nFor a fictional stationery launch, the producer requests an illustration of blank envelopes in the approved palette. The illustration must not invent branded packaging, prices or product text. Keep those constraints with the source brief.\n\nA proposed output manifest can read:\n\n```text\nCampaign: stationery launch, creative revision 3\nTask: envelope illustration, no product claims\nCLI: exact installed release recorded by operator\nResult: command outcome and safe response reference\nReported file: path returned by the command\nObserved file: path inspected by the reviewer\nBytes and type: checked locally, not inferred from suffix\nDigest: calculated after inspection\nCreative decision: accepted, replace, or hold\nMigma placement: selected image and email revision\n```\n\nThis is a production record, not command syntax or a vendor response schema. Populate it from observed output. Keep credentials and sensitive paths out of broadly shared reports; a controlled internal reference can locate the detailed record.\n\n## Test four ways a path can mislead\n\nFirst, a fixture returns a path to a missing file. The acceptance step should stop before import. Second, a new task reuses a filename but the bytes still contain an earlier illustration. A digest or revision comparison should expose the stale artifact; the filename alone will not.\n\nThird, the file suffix says image while inspection reveals a different format or an error document. Validate the actual type through a trusted local inspection method. Fourth, the command produces a valid image that violates the brief, such as placing invented words on the stationery. Technical validity passes while creative acceptance fails.\n\nThese are proposed drills using invented assets. Do not turn them into claims about defects in Google's CLI. The point is to exercise the team's handoff boundary before a campaign depends on it.\n\n## Keep the command result separate from approval\n\nThe documented CLI offers schema inspection, offline dry runs, structured output and exit codes. Have the operator use those controls according to the installed version. An offline dry run previews a request; it does not prove a generated file will meet the creative brief. A completed response does not approve the image's factual or visual meaning.\n\nIf a task runs in the background, retain its interaction reference until its outcome is known. Do not import a placeholder file because the request was accepted. If the team repeats a task, distinguish its new output from the prior accepted version rather than silently overwriting the acceptance record.\n\n## Review the actual placement in Migma\n\nBring only the accepted artifact into the email workflow. Check the crop, adjacent caption, mobile presentation and any text added by the design. An innocuous illustration can imply a product inclusion when placed beside a purchase button; review the combination.\n\nKeep the asset digest and final Migma revision in the handoff record so a later replacement triggers a new review. The [image lifetime guide](/articles/email-image-url-lifetime) covers the separate question of keeping sent-email assets available. Start here by comparing one reported output path with the bytes the email producer actually received."}