Comic panel prompt builder
Skill wanshuiyin/ARIS-Movie-Director/skills/comic-panel-prompt-builder
Agentic, long-horizon visual generation: a fuzzy story → a cross-model-audited image-based movie. Brings ARIS's research-wiki + multi-agent debate to multimodal generation (intelligence lives in the agent; the diffusion model just renders). Image-based today, video next.
npx -y skills add wanshuiyin/ARIS-Movie-Director --skill comic-panel-prompt-builderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Phase-1 step of comic-author — the DETERMINISTIC compiler (搬运工原則) that turns ONE gate-approved panel_spec + its status:locked blueprint into the EXACT fixed-section bake string for the spiral engine via the shipped scripts/build_prompt.py (+ the canonical scripts/_validate.py vetoes). No Codex call in the happy path; it only emits, the engine bakes. Composes style_prefix + condition_string, injects the active failure_mode repair note on retry, and hard-REJECTS banned vocab (camera/lens/lighting/quality padding). Routes html_bubbles[] to the JSON viewer overlay, NEVER into the bake string (no baked bubbles unless the panel is text_mode:baked). Refuses unless the upstream blueprint is status==locked (the cross-layer gate's hand-off token) and every ref is a REAL locked asset path. Use when a panel_spec is locked and you need its prompt_bundle, just before comic-director's panel_gate.
SKILL.md
29.1 KB, as published. Nobody here has run it
comic-panel-prompt-builder — the Deterministic Bake Compiler (搬运工原則)
The last authoring step before a pixel ever gets baked. Given ONE upstream-approved panel_spec and its
status: locked blueprint, this skill COMPILES — it does not brainstorm — the exact message
comic-director (Phase 2/3) will hand to the agent mcp__codex__codex sidecar
bake (Codex's native image tool), plus the locked identity-ref list. It is the comic twin of the framework's
shot-prompt-builder: a pure Layer-3 transform
with no Codex call in the happy path — it only emits a prompt_bundle; the spiral engine submits it.
Everything the generation backend ever sees passes through here, so this is where the 搬运工原則 is
enforced at emit time: the bake backend (Codex's native image-generation tool; the underlying image model is
not pinned or attested by this repo) owns optics; ART_BIBLE.md owns style; no camera /
lens / lighting / "8K hyperrealistic cinematic" padding leaks into the bake, and no bubble text gets
baked unless the panel is explicitly text_mode: "baked". The author (storyboard/blueprint layers) decides
what; this skill decides nothing — it transcribes a locked spec into a backend-legal string and FAILS
(it never papers over) when the spec is malformed.
panel_spec (status:locked) ─▶ ① RESOLVE — load panel_spec + its blueprint + ART_BIBLE style_prefix
+ blueprint (status:locked) enforce 4 prerequisites (node_type, blueprint status:locked, REAL refs, style_prefix resolves)
▼
② COMPOSE — fixed-section condition_string (order is load-bearing, do NOT refactor)
▼ style_prefix + [BAKED DIALOGUE only if text_mode==baked] + SCENE + FIXED ELEMENTS
▼ + ALLOWED CHANGE vs prior panel + FORBIDDEN + SCREEN-TEXT WHITELIST(expected_literals)
▼
②·5 INJECT (retry only) — active failure_mode positive-invariants to the FRONT
▼
③ VALIDATE — banned-vocab + length + no-baked-bubbles + real-refs on the COMPOSED string
▼ (the hard gate — ANY hit = fail-closed, push the fix UPSTREAM)
▼
④ EMIT — write the prompt_bundle node; route html_bubbles[] to the JSON viewer ONLY
▼
pass? ─ no ─▶ exit 4 (banned/length) | exit 7 (failure_mode trigger still fires) | exit 3 (prereq)
│ yes
▼
⑤ stdout one-line JSON {prompt_bundle_id, panel_id, source_blueprint_id}
Role
You are a fail-closed transcriber, not an author. You take a panel_spec that an upstream layer already
gate-approved and its blueprint that the cross-layer gate already flipped to status: locked, and you
produce the single exact composed_prompt (style_prefix + a fixed-section condition string) + the locked
identity-ref paths that the spiral engine will bake — together with the deterministic proof (a clean
banned_vocab_scan) that the message is backend-legal. You never invent a scene element, a number, a cast
member, or a style adjective; you never silently fix a malformed spec (you FAIL and point upstream); and
you never call Codex on the happy path (a Codex call only ever appears as a reported upstream bug). The
cross-model judgement of the baked pixels is not yours — that lives downstream in comic-director's
panel_gate; keeping you deterministic is what stops the executor from self-acquitting.
Node — what this skill reads / writes (schemas/node_schema.json)
- Reads
panel_spec(node prefixpanel:) — payload fields used:source_storyboard_id,page_id,panel_id,sequence_index,page_type,world,asset_ids[],text_mode,expected_literals[],content_blueprint,bubbles[],side_narration,motifs. Thepanel_specmust be its layer's gate-approved output (status: locked), not a draft. - Reads the upstream
blueprint(node prefixblueprint:, found via the panel'scontent_blueprint) — payload fields used (the schema's 9blueprintrequired fields, verbatim fromvalidate_wiki.pyPAYLOAD_REQUIRED):source_panel_id,content_svg,expected_literals[],safe_zones[],html_bubbles[],crop,negative_space_policy,generator_script,file_sha256. Refuse unless the blueprint isstatus: locked— that is the schema signal that the cross-layer gate signed off (the gate's ⑥ FLIP writesstatus → lockedon advance;comic-blueprint-authoremits blueprints atstatus: locked). Theblueprintnode has NOreview_statusfield (only theassetnode does, and"approved"is not even a legalstatusenum value) — never gate onreview_statushere.html_bubbles[]is the JSON viewer-overlay payload — it is routed to the viewer, NEVER concatenated into the bake string. - Writes one
prompt_bundle(node prefixprompt:, node_id a lowercase[a-z0-9_-]+slug of thepanel_id) — payload required by the schema (the 6prompt_bundlePAYLOAD_REQUIRED fields, verbatim):source_panel_id,source_blueprint_id,style_prefix,composed_prompt,banned_vocab_scan,identity_ref_paths. Status canon: authordraft/pending→under_review→lockedon a clean validate (orrejected). Write LEGAL edges (everytype∈validate_wiki.pyEDGE_TYPES):derived_from(prompt_bundle → panel_spec) anduses_blueprint(prompt_bundle → blueprint). On retry, the failure_mode trace uses a legalderived_fromedge (prompt_bundle → failure_mode, withevidence.consulted_failure_mode+ the--reasontext — no match score; scoring is planned, not shipped); if a trigger still fires after repair, a legalfailure_ofedge (failure_mode → prompt_bundle —failure_ofpoints failure_mode → target, matching the gate + the script, trigger inevidence). There is NOgenerated_from/consulted_failure_mode/violates_failure_modeedge type in EDGE_TYPES — those would fail the release gate. Emit node IDs only to stdout — the orchestrator re-reads the node file from disk (no filename guessing).
Two engine contracts to compile to (fail-closed)
These are the same two contracts comic-author authors to — this skill is where they are enforced at emit
time, on the resolved spec, before any credit is spent:
- Every panel needs a content_svg. On the wiki node this is
blueprint.payload.content_svg(top-level on the blueprint payload — NOT nested under anycondition.key; thecondition.content_svgprefix exists ONLY in the runtimecomic.jsonthe engine reads). The blueprint'scontent_svgis the content authority + the bake's layout reference. If it isnull/ missing / not on disk (or itsfile_sha256mismatches) → refuse (exit 3). A scene-only panel still has a layout blueprint SVG; there is no such thing as a panel with nocontent_svg. - A
bakedfigure-panel must declare non-empty, ascii-tokenizableexpected_literals. Iftext_mode == "baked"and the blueprint carries a figure butexpected_literalsis empty → refuse (exit 3). Those literals become the SCREEN-TEXT WHITELIST block (below) and are exactly whatpanel_gate's blind token-diff later verifies. A scene panel with no audited numbers must betext_mode: "html"(dialogue is an HTML overlay, no baked-literal contract).
Procedure (numbered — an agent can execute this step by step)
The shipped entrypoint (do NOT hand-roll the validator):
python3 skills/comic-panel-prompt-builder/scripts/build_prompt.py <project_dir> <panel_id|panel:slug> \
[--retry --reason "<text>"]
scripts/build_prompt.py IS this procedure made executable — it reads the panel_spec + blueprint nodes
from <project_dir>/wiki/nodes/, resolves the identity lock + refs, composes the fixed-section message, and
calls the single canonical scripts/_validate.py (which owns MAX_MESSAGE_CHARS = 4000, the ~80-pattern
BANNED_VOCAB, no_baked_bubbles, real_refs — imported, never duplicated). It writes the trace files
wiki/prompt_build/<panel_slug>/{_resolved.json,_meta.json,_validation.json} and, on a clean validate, the
prompt_bundle node + its legal edges. --retry REQUIRES --reason (exit 2 otherwise) — a retry must
name the active failure it is repairing. Run python3 scripts/_validate.py --composed <f> --text-mode <m> --bubbles ... --refs ... standalone for a quick re-check of an already-composed message.
- Phase −1 · parse + scaffold. Parse
$2(thepanel_idorpanel:slugnode_id); makewiki/prompt_build/<panel_slug>/.--retrywithout--reason→ exit 2. The emitted node_id isprompt:<lowercase-slug-of-panel_id>(the schemanode_idpattern is[a-z0-9_-]+; the displaypanel_idmay carry case). Never guess output filenames. - Phase 0 · resolve + prerequisites (refuse to proceed unless ALL hold). Load into one
_resolved.json: thepanel_specnode; itsblueprintnode (viapanel_spec.payload.content_blueprint); and thestyle_prefixfromART_BIBLE.md(the world-keyedSTYLE_PREFIX[<world>]:line — §0 register + §0.5 two-world palette). Enforce:- (a)
node_type == "panel_spec"andstatus == "locked"— else exit 2 (input missing/malformed). - (b) the upstream
blueprint.status == "locked"— the schema signal that the cross-layer gate signed off (the gate's ⑥ FLIP writesstatus → locked). Theblueprintnode has noreview_statusfield; gating onreview_status == "approved"is unreachable (not even a legalstatusvalue) → never do it. Optionally also assert the legaldecisionnode /decidesedge for this blueprint exists as gate proof. Else exit 3. - (c) every ref is a REAL locked asset path, not a placeholder:
blueprint.payload.content_svgexists on disk (andfile_sha256matches), and each identity ref — resolved by followingpanel_spec.payload.asset_ids[]to its identity-sheetassetnode (the asset must bestatus: locked, and publishes a real.pngvia itsref_requirements) — is a real.png(NOTpending:*, NOTnullwhere one is required). Anullref is allowed ONLY as the documented "use project canonical" fallback; an unresolvedpending:*→ exit 3. - (d) the
style_prefixresolves and is sane: ≤ 200 chars (hard), ≤ 32 words (warn). Else exit 3. Also resolve asset names (scene/prop/identityasset_ids[]→ display names) for the whitelist/reviewer context only — names go in the whitelist, raw IDs never go in the prompt.
- (a)
- Phase 1 · compose the condition string DETERMINISTICALLY in this EXACT load-bearing layout (order is
load-bearing — it empirically drives baked-text fidelity; do NOT refactor headings or order without an A/B
test). Front = strongest conditioning weight.
- STYLE PREFIX — from
ART_BIBLE.md: tone + two-world palette + texture, world-keyed bypanel_spec.world(e.g.warm/seam/dark-cyber/starfield). NO camera/lens/lighting/quality vocab. - [BAKED DIALOGUE] — only if
text_mode == "baked"lift the panel'sbubbles[]text into the prompt (so the image model draws legible balloons). Iftext_mode == "html"(orcode): SKIP this block entirely — the bubbles are the viewer's job (see Phase 4). This is the single switch that decides baked-vs-overlay text. - SCENE COMPOSITION NARRATIVE — the scene staging authority is the
blueprint.payload.content_svglayout (the content blueprint already lays out the scene) summarized with the panel'spanel_spec.payload.side_narration. There is NOcondition.scene/condition.characters/chibi_actionon the panel_spec node — those keys live ONLY in the runtimecomic.json(do not read them off the node). The world's warm/cold contrast is by design, not drift. - "FIXED ELEMENTS (must NOT change):" — the identity lock, obtained by following
panel_spec.payload.asset_ids[]to each identity-sheetassetnode and reading itsasset.payload.identity_lock(the canonical-cast hex/beard/silhouette lock — there is NOidentity_descfield on the panel_spec node; the node-model identity authority is the asset'sidentity_lock) + the locked props the motif ledger pins for this panel. - "ALLOWED CHANGE (vs the prior panel):" — from the panel's
motifsdelta (the comic reinterpretation of "ALLOWED MOTION": what may legitimately differ from the previous panel). - "FORBIDDEN (must NOT happen):" — the FIXED baseline
["no new character entering frame", "no off-model drift", "no scene/world recolor"]+ any panel-specificmust_not_add. - "SCREEN-TEXT WHITELIST (exact characters to preserve):" — the
expected_literals[]from the blueprint (e.g.["REJECT","37","T-16:05"]) + any baked-in signage/label names. Even when HTML owns the bubbles, baked-in figure text (chips, stamps, code) still needs char-exact preservation — this whitelist is the upstream ofpanel_gate's literal diff. Write_meta.json(character/element counts) for the trace.
- STYLE PREFIX — from
- Phase 1·5 · failure_mode positive-invariant injection (retry only — the spiral active-memory hook).
This is what the SHIPPED
build_prompt.pydoes — mirror it exactly, do not hand-roll a richer version. On--retry, collect ALL ACTIVEfailure_modenodes (payload.active == true) project-wide — there is NO layer or panel scoping in the shipped code. Sort them bypayload.severityDESC (default 3 — severity ONLY, no recency term), take the top 10, and for each mode whoseencoding_style == "positive_invariant"inject itsrepair_patternUNCONDITIONALLY (no semantic matching against the composed string) — non-positive_invariantmodes are skipped here (negatives like "no missing ears" make diffusion fixate on the negated concept). The injected patterns form one "POSITIVE INVARIANTS (must be present in every panel, highest priority):" block at the FRONT of the message. Record the consult as a legalderived_fromedge (prompt_bundle → the consulted failure_mode) withevidence.consulted_failure_mode: true+ the--reasontext (there is noconsulted_failure_modeedge type). This is exactly the--reasona retry must name. (ASPIRATIONAL — planned, NOT yet implemented; do not describe as current behavior: scoping by the schema'slayerfield (∈ {prompt_pattern, visual_transition, global} — the field islayer, there is notarget_layerin the schema),recency*severityranking (recency= 1.0/age_days), asemantic_signatureweighted-Jaccard match (0.35*assets + 0.25*cterms + 0.20*kw + 0.20*frags, threshold 0.55), and a match score on the edge. The shipped injector is the severity-top-10 unconditional inject above.) - Phase 1·6 · trigger re-scan (retry only). Re-scan the FULL composed message against the
trigger_patternsof EVERY active failure_mode (not just injected ones). In the shipped script, trigger matching gates ONLY the exit-7 path: if a trigger of a non-positive_invariantmode still matches, it persists the bundle asstatus: "rejected"FIRST (so the edge endpoint resolves), writes a legalfailure_ofedge (failure_mode → prompt_bundle —failure_ofpoints failure_mode → target, the trigger inevidence; there is noviolates_failure_modeedge type) and exits 7 (a regenerate signal to the orchestrator). A matchedpositive_invariantmode never exit-7s and there is NO append-in-place repair branch — itsrepair_patternwas already injected in Phase 1·5 iff it made the severity top-10. - Phase 2 · VALIDATE = the hard gate (runs on the FULL composed message; this is the rubric). Delegate to
scripts/_validate.py(the single source):passes_all = length_ok AND no_banned_vocab AND no_baked_bubbles AND real_refs_ok. ANY failure → preserve_validation.json, set the panel'sreview_gates.storyboard_json_gate = "fail", and exit 4 — see the EXACT gate below. Do NOT silently add quotes / fix the spec — a malformed spec FAILS validation so the fix is pushed back to the authoring layer. - Phase 3 · emit. Write the
prompt_bundlenode (payload = the schema's 6 required fields exactly:{source_panel_id, source_blueprint_id, style_prefix, composed_prompt, banned_vocab_scan, identity_ref_paths}); set its statuslocked. Write the LEGAL edges (everytype∈ EDGE_TYPES):derived_from(prompt_bundle → panel_spec) anduses_blueprint(prompt_bundle → blueprint) — NOTgenerated_from(illegal, fails the release gate). Routehtml_bubbles[]to the JSON viewer overlay only — they are NOT incomposed_prompt. Append a timeline entry towiki/log.md. - Phase 4 · stdout. Emit one-line JSON
{"prompt_bundle_id":"prompt:...","panel_id":"...", "source_blueprint_id":"blueprint:..."}— the canonical orchestrator input. Setpanel_spec.review_gates.storyboard_json_gate = "pass".
The EXACT gate (deterministic fail-closed — dimensions + thresholds + veto)
This is a transform, so there is NO cross-model / scored gate here (that lives downstream in
comic-director's panel_gate). The gate is a deterministic contract/banned-vocab validator on the
COMPOSED message — ported verbatim from shot-prompt-builder / segment-intent-builder. Each dimension
is binary; ANY hit is a hard fail (no single-vote averaging — this is detect-only).
length_ok—len(composed_prompt) ≤ MAX_MESSAGE_CHARS = 4000(~600 words, the empirical backend tolerance). Over cap → fail.no_banned_vocab— the 搬运工 v2 validator: ~80 case-insensitive, word-boundary patterns the backend's own agents own. Veto = any single hit fails the whole message. The list below is the human-readable map; the single source of truth isscripts/_validate.py'sBANNED_VOCAB(imported bybuild_prompt.py, so the list never forks). Categories:- Quality padding:
\b8K\b,\b4K\b,hyperrealistic,photorealistic,ultra-realistic,cinematic,professional,award-winning,masterpiece,high/best quality,highly detailed,intricate details,trending on artstation. - Camera:
the camera, cameramoves/pans/tilts/zooms/tracks/pushes/pulls/cranes,wide/close-up/medium/long/establishing/POV shot,over-the-shoulder,dolly,tilt,pan,crane,drone,aerial,orbital,whip-pan,tracking shot,push-in,pull out,zoom,rack focus,focus pull,jib,steadicam,handheld. - Lens:
\d{2,3}mm,f/\d,bokeh,depth of field,shallow DOF,DOF,lens,wide-angle,telephoto,anamorphic,lens flare. - Lighting: bare
lighting,rim/key/fill light,three-point lighting,golden hour,blue hour,studio lighting,soft/hard light,low-key,volumetric,god rays,chiaroscuro. - Engine/brand:
Unreal Engine,Octane,V-Ray,Blender,Midjourney,Stable Diffusion,Sora,Runway,Pika. - Clichés:
epic,breathtaking,stunning,gorgeous,mesmerizing,otherworldly,surreal masterpiece.
- Quality padding:
no_baked_bubbles(comic-specific veto) — iftext_mode != "baked"and any of the panel'shtml_bubbles[]/bubbles[]quoted dialogue text appears incomposed_prompt→ fail. HTML owns the bubbles; baking them is the exact drift this gate exists to catch. (Whentext_mode == "baked"the dialogue is allowed in the BAKED DIALOGUE block by design — this veto fires only for html/code panels.)real_refs_ok(single-source ref veto) —identity_ref_paths[]must be REAL locked.pngpaths, and the ref set is exact: no silent concatenation of extra identity IDs, nopending:*, no rawasset_idstrings smuggled into the prose. (Single-source discipline — the ref-count linchpin; concatenating refs silently is forbidden.)
Exit-code contract (= the verdict surface; scripts/build_prompt.py returns these EXACT numeric codes):
0 validated + emitted + gate pass · 2 input missing / malformed CLI (--retry w/o --reason; panel_spec
not node_type panel_spec or not status: locked) · 3 upstream prereq unmet (blueprint not
status: locked / ref not real / content_svg missing / expected_literals missing on a baked
figure-panel / style_prefix bad / failure_mode query failed) · 4 banned-vocab | length | baked-bubble | ref
fail (gate → fail, _validation.json preserved) · 7 Phase 1·6 regenerate (a non-positive_invariant
mode's trigger_pattern still matches after repair; the bundle is persisted status: "rejected" and a legal
failure_of edge written).
Worked example
The reference movie's per-panel condition blocks —
../../examples/comic_m3_audit/comic.json — are the
compiled-artifact (comic.json runtime) OUTPUT shape this skill produces (the spiral engine inlines exactly
these condition.* keys). They are NOT the node fields this skill reads — those are the flat panel_spec /
blueprint / asset node payloads (the condition. prefix exists only in comic.json). Copy these output
patterns, but source each from its node field as noted:
- A baked figure-panel —
S11(the REJECT verdict). Compiled output (comic.json):condition.content_svg: "assets/reject_verdict_round1_v1.svg",text_mode: "baked",condition.expected_literals: ["REJECT","37","T-16:05"],world: "dark-cyber". Node sources:content_svg←blueprint.payload.content_svg;expected_literals←blueprint.payload.expected_literals; the identity lock ← the identity-sheetasset.payload.identity_lockreached viapanel_spec.payload. asset_ids[]. The compiler emits: STYLE PREFIX (dark-cyber palette, no camera vocab) → BAKED DIALOGUE (becausetext_mode==baked: frompanel_spec.payload.bubbles[], reviewer "Rejected. Fix it, then come back." / executor "...Copy that.") → SCENE COMPOSITION NARRATIVE (from theblueprint.content_svglayout +panel_spec.side_narration: the verdict chamber + the REVIEW·ROUND 1 card) → FIXED ELEMENTS (fromasset.identity_lock: "blue executor brown hair NO beard / green reviewer dark hair beard") → FORBIDDEN (no new character, no off-model drift) → SCREEN-TEXT WHITELISTREJECT·37·T-16:05. Those three literals are exactly whatpanel_gateblind-diffs — they MUST be present and char-exact, and this is why a baked figure-panel that omitsexpected_literalsis refused at Phase 1. - The 搬运工 line in the data. Note what is absent from every compiled
condition.scene/charactersstring (and from the node fields they were compiled from): no "the camera pushes in", no "85mm", no "cinematic lighting", no "8K". The author already speaks backend-legal; the validator is the second line of defense that keeps it that way when a style adjective sneaks in. - An HTML-bubble panel —
S22(the constellation endcard).text_mode: "html",bubbles: [],expected_literals: [], plussafe_zonesfor the HTML tagline. Here the compiler SKIPS the BAKED DIALOGUE block and routes nothing-text into the prompt; the scene string even hard-asserts "NO text, NO glyphs anywhere in the image". For a panel likeS02whose bubbles ARE drawn (text_mode: "baked", bubbles researcher/executor/reviewer), those same bubbles would instead go in the BAKED DIALOGUE block — the identicalbubbles[]field is routed to the prompt or to the viewer solely bytext_mode. That switch, applied per panel, is the whole "no baked bubbles unless baked" guard made concrete. - The single-ref discipline —
S01/S20/S21. Each pins exactly its locked identity sheet (trio_identity_sheet_v001.pngorresearcher_chibi_canonical_ref_v001.png) asidentity_ref— one exact ref set per panel, never a silent concatenation.identity_ref_paths[]in the emittedprompt_bundlemirrors precisely that set.
(The provenance of these panels — the debate→synthesize outline, the MOTIF STATE TABLE that pins each
literal, the user-approval gate — lives upstream in comic-outline-creator / comic-storyboard-creator;
by the time a panel_spec reaches this skill it is locked, and this skill only transcribes it.)
Hard do / don't (earned lessons)
- DO compose the EXACT fixed-section string
style_prefix + condition_stringdeterministically — and on retry inject the activefailure_moderepair_pattern(positive_invariant ONLY) at the FRONT. - DO run the banned-vocab + length + no-baked-bubble + real-ref validator on the COMPOSED message
(catches
ART_BIBLE/style contamination, not just per-field text) — and FAIL closed, never paper over. - DO route
html_bubbles[]to the JSON viewer overlay; the bake string carries dialogue only whentext_mode == "baked". - DON'T call Codex in the happy path — this is a pure transform; a Codex call is only ever a reported upstream bug, never a way to "fix" a malformed spec here.
- DON'T invent or "improve" a scene element, number, cast member, or style adjective — if the spec is
malformed or a ref is
pending:*, exit non-zero pointing upstream (creator bug vs blueprint-not-lockedvs ART_BIBLE contamination), do NOT patch locally. - DON'T let camera / lens / lighting / "8K hyperrealistic cinematic" padding into the prompt, and DON'T
concatenate extra identity refs — the backend owns optics,
ART_BIBLEowns style, and the ref set is exact. - DON'T emit on a blueprint that is not
status: lockedor a panel_spec that is notstatus: locked— refuse (exit 3 / exit 2). And DON'T write an edgetypeoutsidevalidate_wiki.pyEDGE_TYPES (nogenerated_from/consulted_failure_mode/violates_failure_mode— they fail the release gate).
Protocols (governance contracts this skill honors)
artifact-integrity— this compiler does NOT judge the panel it builds; it transcribes a locked spec and emits a deterministic banned-vocab proof. Numbers (expected_literals) are carried through verbatim, never originated; the pixels are judged downstream.reviewer-independence— there is no reviewer in this step (it's a transform). The downstream judge (comic-director'spanel_gate) gets the baked image + the blueprint'sexpected_literals, never this compiler's interpretation.acceptance-gate— a clean validate here is a transform pass, not an acquittal: a deterministic same-model check is allowed to confirm "the message is backend-legal", but the quality/correctness verdict on the result is the cross-modelpanel_gate, never this skill.reviewer-routing— N/A on the happy path (no model call); if a blocked retry ever escalates to an external consult, Codex atxhigh(no model pin — the CLI follows the local codex config) / Geminiauto-gemini-3, never downgraded.review-tracing— every emit logs towiki/log.md; every retry writes a legalderived_fromedge to the consultedfailure_mode(consult flag + retry reason inevidence; no match score — Jaccard scoring is planned, not shipped), and a legalfailure_ofedge if a trigger still fires, so the spiral memory is auditable (both edge types are invalidate_wiki.pyEDGE_TYPES).output-versioning— theprompt_bundlerecordsfile_sha256of the blueprint it compiled, so a re-bake traces to the exactcontent_svgversion.