HanzoHIPs
Back to HIPs
HIP-1407DraftStandards TrackApplication

Hanzo Image — Layered Image Editing

Hanzo AI
Created: 2026-11-28
Requires: HIP-1406, HIP-0504, HIP-1415

HIP-1407: Hanzo Image — Layered Image Editing

Abstract

The layered image editing profile. The designated public implementation repository is hanzoai/image (planned; establish or reconcile it before implementation). This is the normative implementation target, not a claim of shipping.

Motivation

Creative work must be editable by people and agents without losing project fidelity or requiring a separate account, runtime or storage system.

Specification

The key words MUST, MUST NOT, SHOULD, SHOULD NOT and MAY are to be interpreted as in RFC 2119.

Editor requirements

Purpose: manual and agent-directed nondestructive image editing, photography, product imagery, design assets and batch image production.

The Image profile MUST support an editable document with stable layer IDs, raster/text/vector/adjustment layers as supported, transforms, masks, selection, blend modes, opacity, crop/resize, color corrections, filters, undo/redo, atomic save and export. An operation on a selected region MUST NOT change unselected pixels unless declared by the operation. Preserve original assets. Native project state, PSD import/export, PNG/JPEG/WebP/TIFF and alpha/ICC metadata MUST be covered by an explicit compatibility matrix. Unsupported format features MUST produce a warning, not silent loss.

Canonical command families: creative.image.open, crop, resize, select, mask, composite, adjust, filter, export; creative.layer.add, transform, reorder, remove. Exact IDs and schemas are generated by the command registry.

Iro image generation/editing MUST enter the project as a new editable layer or masked nondestructive operation with source and generation metadata. Segmentation, background removal, inpainting, expand, upscale and product variants are capability-discovered operations, not fabricated availability. Batch processing MUST compile to Tasks activities over a manifest of asset references with per-item results, partial failure reporting and bounded fanout.

Required UX: canvas, zoom/pan, layer and properties panels, history, asset browser, mask/selection tools, visual before/after, agent panel and editable handoff from Chat. Required tests: layer/mask round-trip, unaffected pixels, color and alpha fidelity, unsupported PSD feature report, crash recovery, undo of an agent turn, and a real batch product-photo export.

Integration and release

Implement the shared standard in HIP-1406 — Hanzo Creative — Shared Standard Library; the Studio catalog is the project/asset owner, Flow authors graphs, Tasks owns durable runs and Auto owns triggers. Long-running managed operations MUST return a Tasks run reference. Expose the same typed, versioned commands through the UI, SDK, CLI, MCP and Flow; unsupported operations fail closed and MUST NOT be advertised as shipped. Honor local-only execution and project revision/authorization constraints. Use Hanzo branding exclusively on product surfaces; retain required upstream legal attribution in notices. All application chrome, menus, layer/properties inspectors, dialogs, and unified Hanzo Settings MUST conform to HIP-0504 (GPU/canvas viewports permitted for the image canvas), and agent-generated parameter, filter, and batch panels MUST render via @hanzo/ui/a2ui per HIP-1415. Publish real end-to-end fixtures, supported platform/format matrix, pinned engine versions, hashes and run receipts.

Security Considerations

Validate all asset and project references against IAM, isolate untrusted media and code, bound CPU/memory/disk/time/network, pin dependencies and model licenses, and reject unsupported or unauthorized operations. No ambient credentials, silent cloud fallback or cross-tenant data leakage.

References

Copyright

Released under CC0 1.0 Universal Public Domain Dedication.