What does Visual Asset Production Process (Compositor Visual Station) do?
Applicable Scenarios
- Short video covers / thumbnails, multi-spec layouts for content platforms (same copy, different layouts and sizes)
- Ad creative variations for paid media (change background / color / subject position, keep facts)
- GEO campaign illustrations (parameter comparison charts, entity anchor diagrams, checklist images)
- Brand asset reuse (brand color palette, logo safe zone, layout recipes as per-customer asset)
Division of Labor (Clarify Who Does What)
| Step | Who | Description |
|---|
| Layout / copy / spec decision | This role (visual designer) | Read brand entity card and script package, produce design_recipe |
| Copy and title layout | Upstream text pre-render (visualwrite.text) | Compositor has no text layer (upstream issue #1); text is first rendered as transparent PNG then used as a layer |
| Image retouching / compositing / masking / background removal | Compositor visual station (visualwrite.compose) | Reuses upstream ProjectStore / ImageExporter / LayerRenderer rendering kernel |
| Final asset verification | visualread.verify | Checks dimensions, file size, SHA-256 |
| Distribution | Publishing role | Must go through G9 / G-GEO1 mandatory review; this role does not directly distribute |
Steps
- Read input: script package (title / selling points / entity anchor) + brand entity card (confirmed fields) + platform specs;
- Create recipe:
design_recipe fixed fields — canvas size, layer list (background / subject / text PNG / decorations), position / size / blend mode per layer, mask source, export specs; recipe written into render_job event;
- Provide text: title, price, CTA, disclaimers each call
visualwrite.text to generate transparent PNG; text must match entity card verbatim, no rewriting of facts;
- Composite render:
visualwrite.compose outputs .comp project + PNG/JPEG final; project file and final asset archived together (project is the reproducible source of truth);
- Verify:
visualread.verify checks dimensions / hash; no receipt → mark "unverified", cannot claim completion;
- Write back: final asset and recipe written into per-customer
content_assets.visual_assets[], with approval reference.
Output Contract
Each final asset must include:
{
"asset_uri": "file:///…/cover-3x4.png",
"sha256": "…",
"width": 1242, "height": 1660,
"platform": "xiaohongshu-cover",
"recipe_id": "recipe-…",
"project_uri": "file:///…/cover-3x4.comp",
"source_assets": ["…"],
"qc": { "dimensions": true, "alpha": true, "brand_color": true },
"receipt": { "synced": true, "verified_at": "…", "snapshot_uri": "…" }
}
Boundaries (What Not to Do)
- Do not use Compositor for text layout (it has no text layer); text must be pre-rendered as PNG;
- Do not export PSD / SVG / CMYK (not supported upstream); only PNG / JPEG, sRGB;
- Do not exceed canvas limits (single side 30000px, total 100 million pixels);
- Do not rewrite factual copy; forbidden claims / unapproved parameters hit G-VIS2 and block;
- Assets containing portraits or third-party materials that have not passed G-VIS1 compliance review must not enter production rendering;
- Assets without receipt must not enter publish queue (G-VIS5).
Dependencies & Permissions Declaration
- Dependencies: Compositor (MIT, pinned version, see
docs/visual-workstation.md) + Mac visual station bridge (visualread.* / visualwrite.* tool surfaces);
- Tool whitelist:
visualread.health, visualread.inspect, visualread.verify, visualwrite.compose, visualwrite.render, visualwrite.text;
- Outbound domains: none (station intranet; customer assets do not leave tenant domain);
- Suggested fence parameters:
dailyRenderCap=50, portraitRequiresApproval=true, thirdPartyAssetRequiresApproval=true, forbiddenClaimAction=block, noReceiptNoPublish=true.
Production Criteria (Condition → Action → Criteria → Source)
| Condition | Action | Criteria | Source |
|---|
| Clean recipe + locally reversible rendering | visualwrite.compose/render/text direct pass | G-VIS0 = auto (no human review) | KB:fences/geo-growth-visual.yml#G-VIS0 |
| Contains real person portrait or unauthorized third-party asset | First go through compliance review, then render | G-VIS1 = review; evidence archived with recipe | KB:#G-VIS1 |
| Text contains forbidden claims / medical/financial promises | Intercept before text pre-render | G-VIS2 = block (national/global/first brand/100%/permanent/cure/heal) | KB:#G-VIS2 |
| Single-tenant daily render count | Reaches 50 → circuit break | G-VIS3 = block (context.daily_rendered >= 50) | KB:#G-VIS3 |
| First-use or changed layout recipe | First human review, then batch | G-VIS4 = review (recipe_status != 'approved' → no batch render) | KB:#G-VIS4 |
| Final asset distribution | Must carry render receipt | G-VIS5 = block (visual_receipt_synced != true → not in publish queue) | KB:#G-VIS5 |
| AI image prompt contains real person / portrait / celebrity / endorsement / model / trademark / LOGO | Forward to human review | G-VIS6 = review | KB:#G-VIS6 |
| Canvas and export | Single side ≤30000px, total ≤100 million pixels; only PNG/JPEG + sRGB | Exceed → reject export | KB:this kit §Boundaries |
Parameter Boundaries
- Text must be pre-rendered as transparent PNG before compositing: this station has no text layer (upstream issue #1); passing text directly to Compositor marks delivery failure.
- Delivery format only PNG/JPEG + sRGB; PSD/SVG/CMYK are not supported; if encountered, honestly report "beyond delivery scope".
- Canvas limits: single side 30000px, total 100 million pixels; exceed → reject export.
- Single-tenant daily render cap 50 (G-VIS3); exceed → circuit break and alert; increase requires human review.
- Assets containing portraits or third-party materials that have not passed G-VIS1 must not enter production rendering; recipes that have not passed G-VIS4 must not be batch rendered.
- Assets without receipt (sha256 / dimensions / timestamp) must not enter publish queue (G-VIS5).
Failure Modes (Symptom → Detector → Resolution)
| Symptom | Detector | Resolution |
|---|
| Text not rendered / blurred into a blob | visualread.verify size and layer check + text PNG presence check | Return to visualwrite.text to re-render transparent PNG then composite |
| Export size does not match platform spec | visualread.verify width/height comparison against platform-specs.json | Re-render per spec; unchecked entries can only be previewed internally |
| Asset entered publish queue without receipt | G-VIS5 (visual_receipt_synced) | Block distribution, add receipt (with sha256) then resubmit |
| Unreviewed recipe used in batch | G-VIS4 (recipe_status) | Block batch render, go through human review then set approved |
| Portrait / third-party asset not approved | G-VIS1 (has_portrait/has_third_party_asset) | Block and add authorization evidence, then render |
| Daily quota reached but still rendering | G-VIS3 (daily_rendered) | Circuit break and alert, defer to next day or request increase |