Numera Comic Colorizer
Colorize from the imported source. The Rust CLI owns local import, exchange validation, composition, and QA. A host image tool or artist can propose color; a proposal is never the final page. Do not overwrite input art or send it outside the workspace without authorization for the actual destination.
Start or resume
Get the source, output location and format (page folder, CBZ, or raster PDF), and any user-locked colors or approved references. Use lossless delivery unless the user requests a JPEG quality level. Keep originals, working files, and exports separate. For an existing project, run status and resume before starting work. Run sequentially unless parallel mode is authorized for this workflow; parallel coordination governs workers and merges.
PowerShell 7 example (replace the bundle, input, and project paths):
$BundleRoot = "$env:LOCALAPPDATA\Numera Comic Colorizer Bundle"
$ColorizerExe = Join-Path $BundleRoot 'bin\numera-comic-colorizer.exe'
$ProjectBase = 'C:\Comics\Chapter 01 Color'
$ProjectFile = Join-Path $ProjectBase 'work\project.json'
& $ColorizerExe doctor
if ($LASTEXITCODE -ne 0) { throw 'Doctor failed.' }
& $ColorizerExe import 'C:\Comics\Chapter 01.cbz' --out $ProjectBase
if ($LASTEXITCODE -ne 0) { throw 'Import failed.' }
& $ColorizerExe status --project $ProjectFile --json
if ($LASTEXITCODE -ne 0) { throw 'Status failed.' }
Give import --out the project base directory; the CLI creates work/ inside it. Use --project $ProjectFile for later steps. Use --json for machine output and read diagnostics separately.
Use import --reading-direction ltr or --reading-direction rtl to override the direction. Otherwise import reads ComicInfo.xml from a CBZ, CBR, or folder, and <Manga>YesAndRightToLeft</Manga> selects right-to-left.
Six stages, seven roles
| Stage | Role | Required handoff |
|---|---|---|
| 1 | Reference & Character Color Planner | Evidence-ranked references, distinct character states, provisional or conflicted colors marked |
| 2 | Protection & Color Layout Planner | Source-coordinate region mapping and inspected protection, editable, uncertain, alpha, and region-ID masks |
| 3 | Reference, Palette & Style Review Agent | Review reference identity and lighting; approve and lock the palette, style, and scene decisions before color application |
| 4 | Color Application Agent | Route requests to verified host capabilities or local input, ingest validated candidates, and locally compose from the source |
| 5a | Adversarial Color & Preservation Reviewer | Open every full rendered page and required crop; record artifact-bound pass/fail receipts. Read-only on art, masks, and palettes |
| 5b | Targeted Color Defect Repair Agent | Change only failed regions and affected dependencies within the repair budget. Return changed artifacts to 5a; never approve own repair |
| 6 | Final Continuity & Delivery Agent | Verify current QA and review receipts, inspect continuity, and run qa package on the export. Never waive failures |
Workflow and prompts defines the handoffs. Record completed searches with references ingest --record-search-round <CHARACTER[:STATE]> --search-round-id <ID> and keep the receipts on resume. Use qa repair or repair plan to plan fixes; qa check records the round once it validates a new post-repair render. If no repair is needed, record that 5b had no input. Do not claim independent review if a single agent performed separate role passes.
Delivery quality
Use export --quality lossless (the default) for lossless PNG folders, CBZ, or Flate-compressed raster PDF. The optional pure Rust JPEG levels are very-low (50), low (68), medium (82), and high (92). They write .jpg pages in folders or CBZ, or DCTDecode raster streams in PDF. They affect only delivery files. Leave work/originals/ and work/rendered/ untouched. preview is a lossless PNG folder and has no --quality flag.
Run qa package on the delivery. It verifies exact decoded pixels for lossless exports (lossless_verified: true) and checks decoded RGB fidelity for JPEG (lossless_verified: false). It checks chapter metadata in CBZ and page geometry in raster PDF, including the visible crop and image placement.
What blocks publication
- A changed protected or uncertain pixel, or any change outside the editable mask. Preserve ink, text, sound effects, gutters, and screentone details as defined by the masks. Read preservation before editing masks or composing.
- A missing, stale, failed, or self-approved review receipt. Run
qa check,qa verify-review,export, thenqa package; stop when any step fails. Mark anypreviewas unfinished and never present it as verified delivery. - A missing original host artifact, unverified crop placement, or a submission with unknown outcome. Read host image tools before submitting and recovery before retrying.
Read reference research for source priority and search limits, color policy for character states and scene light, quality review before Stage 5, and GPU policy when selecting or diagnosing a compute device.