Skip to content
Directory
GitHub Star
Evidence, tags & source code

Recovering Only Missing AI Images: Visual Briefs and Multi-Variant Delivery ​

Suppose my personal research report needs an English landscape card, a Chinese landscape card and an English square card. The landscape cards complete but the square download fails. Marking the entire batch failed and resubmitting would duplicate completed work and might incur another image-generation charge.

This synthetic design extends image generation and deterministic financial facts to batch delivery and recovery. It is not evidence of a real generation request.

Freeze the visual brief and delivery inputs ​

To express long-term accumulation, a brief could describe abstract paper stairs, soft colors and empty space on the right, without sending real fund names, holdings or full report text. Explicit user composition, theme and exclusions take priority over default style. Structural checks can reject missing or overlong fields and obvious source-text leakage, but they cannot prove the actual image contains no text. Inspect the output appropriately.

For design exploration, a model may generate whole creative candidates. When titles, disclosures and financial figures must be exact, generate a background and render immutable report text and charts in code. Locales and aspect ratios may reuse one background, or explicitly request a different composition.

One batch, independently recoverable variants ​

Freeze reportRevision, visual revision, locale, size, required candidates, budget and authorization at task creation. These are synthetic states, not production records:

json
{
  "batchId": "sample-batch-001",
  "reportRevision": "sample-v3",
  "visualRevision": "sample-background-v1",
  "variants": [
    {"locale":"en","size":"1200x630","state":"ready"},
    {"locale":"zh-CN","size":"1200x630","state":"ready"},
    {"locale":"en","size":"1080x1080","state":"retry"}
  ]
}

Claim missing work by variant identity; commit only with the current execution identity and original snapshot. Preserve completed landscape cards and repair the square card alone. If a visual was already selected, reuse its revision for repair. An explicit visual change creates a new revision rather than overwriting the old batch.

Which stage consumed the time? ​

StageEvidence and recovery
Submission to claimQueue delay, wakeup receipt, lease; scan compensation
Brief generationInput revision, structure, bounded budget; explicit fallback or stop
Upstream image generationAttempt, provider status and cost; reconcile unknown
RetrievalResult reference, download and decoding; bounded retrieval retry
Programmatic compositionDimensions, fonts, figures and chart data; reuse saved background
Batch publicationExpected variants, actual revisions and authorization; read back committed output

Do not collapse an upstream HTTP 504, function deadline or failed image download into one generation-timeout label. Explicit rejection differs from a dispatched request with an unknown outcome. Bound each stage's duration and attempts, and control the total budget separately. A download retry must not automatically trigger another paid generation. Restrict returned URLs to authorized hosts, bound sizes, inspect redirects and decode actual image bytes instead of accepting arbitrary backend download destinations.

Decide when delivery is complete ​

When all candidates are mandatory, publish a new batch only after all are available. If partial display is supported, label missing variants honestly. Do not delete old reports or previously published cards because a newer generation failed. Verify completion records, actual files and download authorization.

Use a fixed synthetic background and fake provider: two cards succeed and the third download fails; retry only the third. Check that a stale worker cannot commit, read original candidates after restart and verify fixed text and charts across locales and sizes. Real image quality, billing and actual client visibility require separate qualification.

Image generation and report cards are Planned in the Open ETF Agent application roadmap; this essay designs independently recoverable delivery.

Engineering notes, evidence and boundaries. · Contact: hpoenixf@foxmail.com · WeChat: hpoenixf0510