Update card production workflow and workspaces

This commit is contained in:
2026-09-26 10:42:05 -07:00
parent 5e49435127
commit c09f3b815c
549 changed files with 27659 additions and 64 deletions

View File

@@ -0,0 +1,120 @@
#!/usr/bin/env python3
"""Build a provisional Ezekiel typography preview; never changes the card record."""
from pathlib import Path
import hashlib
import json
import os
import subprocess
import tempfile
import xml.etree.ElementTree as ET
from PIL import Image
HERE = Path(__file__).resolve().parent
REVISION = HERE.parent
REPO = Path(__file__).resolve().parents[6]
FONT_DIR = REPO / "fonts"
LAYOUT = json.loads((REPO / "artifacts/layers/uncommon/v3/layout.json").read_text())
ART = REVISION / "source/art-master-candidate-03.png"
OVERLAY = REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png"
LINES = [
"“Son of man, I have made you a watchman…",
"you shall give them warning from me.”",
]
REFERENCE = "Ezekiel 3:17 • ESV"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def svg(rows):
ns = "{http://www.w3.org/2000/svg}"
ET.register_namespace("", ns[1:-1])
root = ET.Element(ns + "svg", width="2000", height="2800", viewBox="0 0 2000 2800")
group = ET.SubElement(root, ns + "g", fill="#263f50", **{"text-anchor": "middle"})
for row in rows:
el = ET.SubElement(group, ns + "text", id=row["id"], x="1000", y=str(row["baseline"]),
**{"font-family": "P052" if row["role"] == "title" else "Sanctification P052",
"font-weight": "700" if row["role"] == "title" else "500",
"font-size": str(LAYOUT["fontSizes"][row["role"]])})
el.text = row["text"]
return ET.ElementTree(root)
def render(rows, path, env, tempdir):
source = tempdir / "text.svg"
svg(rows).write(source, encoding="unicode", xml_declaration=True)
subprocess.run(["inkscape", str(source), "--export-type=png", f"--export-filename={path}",
"--export-width=2000", "--export-height=2800"], check=True, env=env,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return Image.open(path).convert("RGBA")
def bounds(rows, env, tempdir):
return render(rows, tempdir / "measure.png", env, tempdir).getchannel("A").getbbox()
def main():
assert ART.is_file() and OVERLAY.is_file()
assert LAYOUT["maximumVerseLines"] == 2
assert (LAYOUT["fontSizes"]["title"], LAYOUT["fontSizes"]["verse"],
LAYOUT["fontSizes"]["reference"]) == (112, 80, 57)
manifest = json.loads((FONT_DIR / "manifest.json").read_text())
for role in ("title", "verse", "reference"):
name = manifest["productionTypography"][role]["file"]
assert digest(FONT_DIR / name) == manifest["files"][name]["sha256"]
with tempfile.TemporaryDirectory(prefix="ezekiel-type-") as scratch:
tempdir = Path(scratch)
config = tempdir / "fonts.conf"
config.write_text(f"<fontconfig><dir>{FONT_DIR}</dir><cachedir>{tempdir / 'cache'}</cachedir></fontconfig>\n")
env = dict(os.environ, FONTCONFIG_FILE=str(config))
title = {"id": "title", "role": "title", "text": "EZEKIEL", "baseline": 240}
verse = [{"id": f"verse-{i}", "role": "verse", "text": line, "baseline": y}
for i, (line, y) in enumerate(zip(LINES, LAYOUT["baselines"]["verseByLineCount"]["2"]))]
reference = {"id": "reference", "role": "reference", "text": REFERENCE, "baseline": 2643}
# Match the shared layout's visible-ink centering policy.
bb = bounds([title], env, tempdir)
title_top = LAYOUT["spacing"]["geometry"]["borderless"]["headerInnerTop"] + 20
title_bottom = 300.275 - 20
title["baseline"] += (title_top + title_bottom - bb[1] - bb[3]) / 2
vb = bounds(verse, env, tempdir)
upper = 2239.7255
# The reference uses the shared 57px face and fixed line box.
ref_box = bounds([reference], env, tempdir)
ref_line_top = reference["baseline"] - 42
assert ref_box[1] >= ref_line_top and ref_box[3] < 2680.27 - 20
shift = (upper + ref_line_top - vb[1] - vb[3]) / 2
for row in verse:
row["baseline"] += shift
rows = [title, *verse, reference]
text_layer = render(rows, tempdir / "final-text.png", env, tempdir)
ink = {}
for row in rows:
box = bounds([row], env, tempdir)
region = LAYOUT["textRegions"][row["role"]]
x, y, w, h = region
assert box and x <= box[0] and y <= box[1] and box[2] <= x + w and box[3] <= y + h, (row, box)
ink[row["id"]] = list(box)
art = Image.open(ART).convert("RGBA")
overlay = Image.open(OVERLAY).convert("RGBA")
assert art.size == overlay.size == (2000, 2800)
final = Image.alpha_composite(Image.alpha_composite(art, overlay), text_layer)
for width in (2000, 1000, 500):
image = final if width == 2000 else final.resize((width, width * 7 // 5), Image.Resampling.LANCZOS)
image.save(HERE / f"typography-prototype-01-{width}.png")
report = {
"status": "provisional typography preview only; artwork not approved; no production assembly",
"artCandidate": "03", "artSHA256": digest(ART), "overlayVersion": "uncommon/v3",
"overlaySHA256": digest(OVERLAY), "fontManifestSHA256": digest(FONT_DIR / "manifest.json"),
"title": "EZEKIEL", "verseLines": LINES, "reference": REFERENCE,
"wording": "Editorial excerpt trial; card.json retains the user's full verse.",
"fontSizes": {"title": 112, "verse": 80, "reference": 57},
"inkBounds": ink, "baselines": {row["id"]: row["baseline"] for row in rows},
"caveat": "Candidate 03 still has unresolved art-review concerns (hair/title overlap and warning-hand anatomy).",
}
(HERE / "typography-prototype-01.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,81 @@
#!/usr/bin/env python3
"""Provisional three-line, full-verse Ezekiel typography preview."""
import importlib.util
import json
import os
import tempfile
from pathlib import Path
from PIL import Image
HERE = Path(__file__).resolve().parent
spec = importlib.util.spec_from_file_location("ezekiel_preview_base", HERE / "build-typography-prototype-01.py")
base = importlib.util.module_from_spec(spec)
spec.loader.exec_module(base)
base.LAYOUT["fontSizes"]["verse"] = 76
LINES = [
"“Son of man, I have made you a watchman for the",
"house of Israel. Whenever you hear a word from",
"my mouth, you shall give them warning from me.”",
]
def main():
assert base.ART.is_file() and base.OVERLAY.is_file()
assert base.LAYOUT["maximumVerseLines"] == 2 # Card-local three-line test, not a shared-layout change.
with tempfile.TemporaryDirectory(prefix="ezekiel-type-3line-") as scratch:
tempdir = Path(scratch)
config = tempdir / "fonts.conf"
config.write_text(f"<fontconfig><dir>{base.FONT_DIR}</dir><cachedir>{tempdir / 'cache'}</cachedir></fontconfig>\n")
env = dict(os.environ, FONTCONFIG_FILE=str(config))
title = {"id": "title", "role": "title", "text": "EZEKIEL", "baseline": 240}
verse = [{"id": f"verse-{i}", "role": "verse", "text": line, "baseline": y}
for i, (line, y) in enumerate(zip(LINES, base.LAYOUT["baselines"]["verseByLineCount"]["3"]))]
reference = {"id": "reference", "role": "reference", "text": base.REFERENCE, "baseline": 2643}
bb = base.bounds([title], env, tempdir)
title_top = base.LAYOUT["spacing"]["geometry"]["borderless"]["headerInnerTop"] + 20
title_bottom = 300.275 - 20
title["baseline"] += (title_top + title_bottom - bb[1] - bb[3]) / 2
vb = base.bounds(verse, env, tempdir)
upper = 2239.7255
ref_line_top = reference["baseline"] - 42
shift = (upper + ref_line_top - vb[1] - vb[3]) / 2
for row in verse:
row["baseline"] += shift
rows = [title, *verse, reference]
text_layer = base.render(rows, tempdir / "final-text.png", env, tempdir)
ink = {}
for row in rows:
box = base.bounds([row], env, tempdir)
assert box, row
ink[row["id"]] = list(box)
art = Image.open(base.ART).convert("RGBA")
overlay = Image.open(base.OVERLAY).convert("RGBA")
assert art.size == overlay.size == (2000, 2800)
final = Image.alpha_composite(Image.alpha_composite(art, overlay), text_layer)
for width in (2000, 1000, 500):
image = final if width == 2000 else final.resize((width, width * 7 // 5), Image.Resampling.LANCZOS)
image.save(HERE / f"typography-prototype-02-{width}.png")
region = base.LAYOUT["textRegions"]["verse"]
x, y, w, h = region
report = {
"status": "provisional typography preview; artwork unapproved; no production assembly",
"artCandidate": "03", "artSHA256": base.digest(base.ART),
"overlayVersion": "uncommon/v3", "overlaySHA256": base.digest(base.OVERLAY),
"title": "EZEKIEL", "verseLines": LINES, "reference": base.REFERENCE,
"wording": "Complete user-supplied verse; card.json unchanged.",
"fontSizes": {"title": 112, "verse": 76, "reference": 57},
"inkBounds": ink, "baselines": {row["id"]: row["baseline"] for row in rows},
"nominalVerseRegion": region,
"verseHorizontalOverflow": {row["id"]: {
"left": max(0, x - ink[row["id"]][0]),
"right": max(0, ink[row["id"]][2] - (x + w)),
} for row in verse},
"layoutNote": "User accepted three lines for preview. The full quote narrowly exceeds the standard Uncommon verse field at the 76px minimum; this is not yet production-valid.",
"artCaveat": "Candidate 03 still has unresolved title/hair overlap and warning-hand anatomy review concerns.",
}
(HERE / "typography-prototype-02.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,719 @@
{
"status": "passed",
"cardId": "BP-020",
"revision": "v01",
"artApproval": {
"by": "user",
"note": "Approved; Let's start assembly",
"scope": "Candidate 03 selected for assembly despite the independent review's title/hair and warning-hand caveats; final assembled-card approval remains separate.",
"candidate": "candidate-03",
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"agentReview": "review/candidate-03-art-review.json"
},
"finalCardApproval": null,
"inputs": {
"art": {
"path": "in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png",
"sha256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22"
},
"fit": {
"cardId": "BP-020",
"revision": "v01",
"selectedCandidate": "candidate-03",
"approval": {
"by": "user",
"note": "Approved; Let's start assembly",
"scope": "Candidate 03 selected for assembly with the independent review's title/hair and warning-hand caveats retained; final assembled-card approval pending."
},
"assemblyAuthorization": "Let's start assembly",
"native": "source/art-native-candidate-03.png",
"nativeType": "independent image generation",
"nativeSHA256": "98f69a6c92e7d2d5b6a66333c6808a13ae363333051b9e0f6623bb7f5e41fe29",
"master": "source/art-master-candidate-03.png",
"masterSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"nativeDimensions": [
1060,
1484
],
"canvas": [
2000,
2800
],
"scale": 1.8867924528301887,
"crop": [
0,
0,
1060,
1484
],
"transform": "Uniform ImageMagick Lanczos resize; no crop or stretching. Master is an upscale, not additional native detail.",
"detailedProvenance": "source/art-provenance-candidate-03.json",
"prompt": "source/generation-prompt-candidate-03.txt",
"agentReview": "review/candidate-03-art-review.json",
"caveat": "User-directed assembly proceeds despite the title backing covering the upper crown and an ambiguous digit count on the warning hand. Finish masks do not repair illustration structure."
},
"cardSHA256": "49ca0220239c75edbd31db35d3eeef7f515d26631e5ed67fa7bee58346523b08",
"builderSHA256": "ad378f6d135eba54d53c0212163958ad06710938443b03926457d807eec23229"
},
"sharedLayers": {
"tier": "uncommon",
"version": "v3",
"manifestSHA256": "d7a84f1ace1b2052ae270a71b390a6a08768da6ad5816d15a2a35f2faf79a113",
"reviewStatus": "approved-spacing-static-printing-review-pending",
"assets": {
"frame-normal": {
"path": "artifacts/layers/uncommon/v3/exports/frame-normal-2000.png",
"sha256": "b7c5437332459d8eec78458e559314ed19f9d2a0d691bc99cf86c24f79284801"
},
"frame-textless": {
"path": "artifacts/layers/uncommon/v3/exports/frame-textless-2000.png",
"sha256": "b7c5437332459d8eec78458e559314ed19f9d2a0d691bc99cf86c24f79284801"
},
"backing-normal": {
"path": "artifacts/layers/uncommon/v3/exports/backing-normal-2000.png",
"sha256": "ff692033d7fa0bc3e513c4b4f5a02e8d96ea168ec51110ef6adad916713e4289"
},
"backing-borderless": {
"path": "artifacts/layers/uncommon/v3/exports/backing-borderless-2000.png",
"sha256": "9801ffa0eb7fb82b5c6e4fe6158ae8a45b584e9c38da5c221f558f1495e06728"
},
"overlay-normal": {
"path": "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png",
"sha256": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262"
}
}
},
"sharedFontManifestSHA256": "2d0b41eed9f1668dc43d10d4397517efe2eec4803c82772b6c145733f13a9f63",
"typography": {
"fonts": [
{
"role": "title",
"path": "fonts/P052-Bold.otf",
"sha256": "ba6503baaf0f9e4e40a69cc4c0e57049fbde313fe183aba8fe823208337a94af",
"size": 112,
"weight": 700,
"fallbackUsed": false,
"missingGlyphs": []
},
{
"role": "verse",
"path": "fonts/SanctificationP052-Medium.otf",
"sha256": "1e0e1f7f4a5b2899374de51e40f15446a04a5c0163d6a1943155f964c1ace1fb",
"size": 76,
"weight": 500,
"fallbackUsed": false,
"missingGlyphs": []
},
{
"role": "reference",
"path": "fonts/SanctificationP052-Medium.otf",
"sha256": "1e0e1f7f4a5b2899374de51e40f15446a04a5c0163d6a1943155f964c1ace1fb",
"size": 57,
"weight": 500,
"fallbackUsed": false,
"missingGlyphs": []
}
],
"glyphs": [
{
"id": "title-0",
"role": "title",
"text": "EZEKIEL",
"baseline": 227.70549999999997,
"objectBounds": [
762.896,
151.322,
474.768,
76.832
],
"unclippedInkBounds": [
762,
151,
1238,
229
],
"region": [
140,
130,
1720,
140
],
"pass": true
},
{
"id": "verse-0",
"role": "verse",
"text": "“Son of man, I have made you a watchman for the",
"baseline": 2342.5,
"objectBounds": [
167.04,
2286.87,
1667.36,
77.444
],
"unclippedInkBounds": [
167,
2286,
1835,
2365
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "verse-1",
"role": "verse",
"text": "house of Israel. Whenever you hear a word from",
"baseline": 2437.5,
"objectBounds": [
192.272,
2381.87,
1614.85,
77.444
],
"unclippedInkBounds": [
192,
2381,
1808,
2460
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "verse-2",
"role": "verse",
"text": "my mouth, you shall give them warning from me.”",
"baseline": 2532.5,
"objectBounds": [
151.422,
2476.87,
1694.5,
77.444
],
"unclippedInkBounds": [
151,
2476,
1846,
2555
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "reference",
"role": "reference",
"text": "Ezekiel 3:17 • ESV",
"baseline": 2643,
"objectBounds": [
769.321,
2601.39,
461.7,
42.978
],
"unclippedInkBounds": [
769,
2601,
1232,
2645
],
"region": [
160,
2580,
1680,
100
],
"pass": true
}
],
"titleOpticalShift": 0,
"fontMetrics": {
"unitsPerEm": 1000,
"hheaAscender": 726,
"hheaDescender": -274,
"headYMin": -288,
"size": 57,
"ascent": 42,
"descent": 17,
"lineGapUsed": 0
},
"referenceBaseline": 2643,
"referenceLineBox": [
2601,
2660
],
"referenceLineBoxToFlourish": 20,
"actualReferenceClearance": 35,
"upperFlourishToVerse": 46,
"verseToReferenceLineBox": 46,
"centeringError": 0,
"titleToFlourish": 71,
"stressReferences": [
{
"text": "Matthew 4:19 • NKJV",
"baseline": 2643,
"inkBounds": [
724,
2601,
1276,
2655
],
"actualClearance": 25
},
{
"text": "Genesis 3:9 • ESV",
"baseline": 2643,
"inkBounds": [
776,
2602,
1224,
2645
],
"actualClearance": 35
},
{
"text": "Exodus 3:6 • KJV",
"baseline": 2643,
"inkBounds": [
782,
2601,
1218,
2655
],
"actualClearance": 25
},
{
"text": "Philippians 2:11 • NKJV",
"baseline": 2643,
"inkBounds": [
694,
2601,
1306,
2660
],
"actualClearance": 20
}
],
"scaledRasterChecks": [
{
"width": 2000,
"text": "Matthew 4:19 • NKJV",
"actualClearance": 27,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Genesis 3:9 • ESV",
"actualClearance": 37,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Exodus 3:6 • KJV",
"actualClearance": 27,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Philippians 2:11 • NKJV",
"actualClearance": 22,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Matthew 4:19 • NKJV",
"actualClearance": 14,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Genesis 3:9 • ESV",
"actualClearance": 19,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Exodus 3:6 • KJV",
"actualClearance": 14,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Philippians 2:11 • NKJV",
"actualClearance": 11,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Matthew 4:19 • NKJV",
"actualClearance": 7,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Genesis 3:9 • ESV",
"actualClearance": 10,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Exodus 3:6 • KJV",
"actualClearance": 8,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Philippians 2:11 • NKJV",
"actualClearance": 6,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
}
],
"textLayerSHA256": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"cardLocalVerseLayout": {
"approval": {
"by": "user",
"note": "3 lines is fine; Approved"
},
"lineCount": 3,
"fontSize": 76,
"lineHeight": 95
}
},
"textMask": {
"expansionRadius": 12,
"gaussianRadius": 8,
"units": "master pixels",
"derivation": "Actual lettering alpha: MaxFilter(25), GaussianBlur(8)",
"minimumProtectionAtGlyphAlpha128": 221
},
"finishRecipe": {
"id": "ezekiel-gated-contrast-trial-v1",
"status": "user-selected for working assembly; final card and moving-light approval pending",
"userDirection": "Let's try the contrast one",
"trialRecipe": "review/finish-mask-trial-01/gated-trial.json",
"trialRecipeSHA256": "0e5107e5b2c4bc24e557c221c2efe348afa027e1034f1f307cb54e50ab368ba5",
"ridgeMap": "review/finish-mask-trial-01/gated-contrast-ridges-2000.png",
"ridgeMapSHA256": "f29b6ffd6619ddcd1c41cb4ce7c33fdafd60aa408d8873b84842826f68dc4e4d",
"trialBuilderSHA256": "c3383e664130312b5e21181aa435f5cf903c278ddb1c65c305288fb14754e1f6",
"compilerSHA256": "800e526135e511fc77df8a3058f28238983600b840b8fecde405abaad59d8775",
"basePaneRecipe": {
"id": "raw-ridges-v1",
"sha256": "23331ce56a717edb4e6f85956d11fdd98397009c4e6dd230d8c334c77571dd18",
"path": "tools/card-production/recipes/raw-ridges-v1.json",
"moduleSHA256": "8d2b5399859570f43d9b222e6d37302372d68d2b589921b3c5b161b47cd18d5c",
"rawRidgeSHA256": "cc3d1cdede5e716a385d5195c57220e496e964dbdaf69da6c26818fa02a4514c",
"paneCoverageSHA256": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"illustrationAnalyses": 1
},
"baselineBuildValidation": "review/finish-mask-trial-01/baseline/build-validation-raw-ridges.json"
},
"tools": {
"inkscape": "Inkscape 1.2.2 (b0a8486541, 2022-12-01)",
"pillow": "10.2.0",
"numpy": "1.26.4"
},
"printings": {
"normal": {
"overlay": "overlay-normal",
"text": true,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "247023a776001449fdb3fa345c0a33b9d35e404c076038070d8b0dc6b3c0cf55",
"finish-mask.png": "7564b955d69789b80d369f9d7c9febccdbf33198efbc17d46cdabc675edf8ef3",
"text-mask.png": "1a412411b3d3db1b5af8cd02563f7e51e6dd69fd42adf7d2bd4d4be04c251dfd"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "d78e5ffa40cf87ddc8e518b9fdc2d2108ef52e629f649d63660e86b06582615c",
"finish-mask.png": "2358aba5bbf6f0d99184edba80b86dfbd3baa23fa522a3ab2811eb283dd89a7f",
"text-mask.png": "5f1ec3bd99a533403a2910beb1f8ec5b3fefa34d00bd7c3b521c28225913e3f4"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "8cf47f1f734255e6dc25668dbcb6993159b824a1ee00ef9fa05bc329038486ca",
"finish-mask.png": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495",
"text-mask.png": "65670b33ddce44da01e1209d9ddfbba01b3afbd15769deb4a3e8ea939ec05459"
}
}
]
},
"boundless": {
"overlay": null,
"text": false,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "ec0b47ca7f939ee0105e78b40addead98a373c03605efee8f0d879b4b33655fe",
"finish-mask.png": "d1babb938e468a4a114fc693ef48084f0dc1e5f2754c5af391801a02ad056709",
"text-mask.png": "85fbeb48f81f5fd89c81a79be7e1d4d16837edd786733f593e0a4451be5fa52b"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "2fe77c97a3b08498a102d1897199b6bf7965b868879012776ef89d05e267e453",
"finish-mask.png": "39c5b961f56a517c9ece2ea1a038a334d53f3a26d764402089d1dcbda24fd129",
"text-mask.png": "f8732c63feae83b55d064bc73e39904d9158c4e194dfd6d30dbff7864adfd490"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "d57568b23b9154f844cc3c75f9026c7da1f06bc1cfd3bce8de24ef60779db9df",
"finish-mask.png": "c1addb4a9fe3d7c28dc22a075344a97661c5d6af10607595f7d9b7c85f931416",
"text-mask.png": "27006d9c9a2ced6159cc5a6a76ef707e22797a800df9b9e19ec1f1783fc6d767"
}
}
]
},
"borderless": {
"overlay": "backing-borderless",
"text": true,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "54884ac0f1a7b14323c1c5b55845e27a93b8f5527f705ffe88ed4de1d7b3e0cf",
"finish-mask.png": "0959a4afbf52855044063c1fcb658ebe4c6486c099a5b70b6792ea44a80d928c",
"text-mask.png": "1a412411b3d3db1b5af8cd02563f7e51e6dd69fd42adf7d2bd4d4be04c251dfd"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "c9b4dad080af2c60f4ef81ca17525d7d3ca0c3c930e49da45c146185413bbf8e",
"finish-mask.png": "9f74bff26d65b86f886c5a0c19032944d53bddeb32cda37304dfd7a14fb2ecd2",
"text-mask.png": "5f1ec3bd99a533403a2910beb1f8ec5b3fefa34d00bd7c3b521c28225913e3f4"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "3310872a64ad4208a85c32eadaa8545fcd1efae5754e3cf8c576d6d6e4a5820c",
"finish-mask.png": "3af8157e0063a36c5442fbf954918bf641ca43998f867066acb46e4cbfe1f1af",
"text-mask.png": "65670b33ddce44da01e1209d9ddfbba01b3afbd15769deb4a3e8ea939ec05459"
}
}
]
},
"textless": {
"overlay": "frame-textless",
"text": false,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "3198c26d79e901f50ce24861977d2e7d0ccef99155973eaeb3fdb79389e93086",
"finish-mask.png": "38670eda711f9d005092d5fcaf727141a498eee8f35287e9fcc9cc6838f943a0",
"text-mask.png": "85fbeb48f81f5fd89c81a79be7e1d4d16837edd786733f593e0a4451be5fa52b"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "ddb23a55875dd92074632ab7a7dfdcc72cb58a8b8503c517922db12f08119c62",
"finish-mask.png": "509af845cc615a49d19926652848d8ce9b0677ee50600310c797fb3dcd4147a9",
"text-mask.png": "f8732c63feae83b55d064bc73e39904d9158c4e194dfd6d30dbff7864adfd490"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "9063ab5b67311022c830cd88350a684faec3241a0f80dd228d145a0d75f28d40",
"finish-mask.png": "8f0a51f7588bc406546c83c396ab518ee690ecd62673ce4b2d360f9848f0be2a",
"text-mask.png": "27006d9c9a2ced6159cc5a6a76ef707e22797a800df9b9e19ec1f1783fc6d767"
}
}
]
}
},
"visualReview": {
"static": "contrast mask selected for assembly review",
"movingLight": "not performed"
},
"textContrast": {
"normal": 8.1,
"borderless": 8.1
},
"backingContrast": [
{
"printing": "normal",
"width": 2000,
"primaryRuleToCream": 4.66,
"minimum": 3
},
{
"printing": "normal",
"width": 1000,
"primaryRuleToCream": 6.13,
"minimum": 3
},
{
"printing": "normal",
"width": 500,
"primaryRuleToCream": 3.41,
"minimum": 3
},
{
"printing": "borderless",
"width": 2000,
"primaryRuleToCream": 4.66,
"minimum": 3
},
{
"printing": "borderless",
"width": 1000,
"primaryRuleToCream": 6.13,
"minimum": 3
},
{
"printing": "borderless",
"width": 500,
"primaryRuleToCream": 3.41,
"minimum": 3
}
],
"finishMaskSelection": {
"status": "trial selected",
"changes": {
"normal": {
"500": {
"baselineSHA256": "53426954cf77d3f159094b2ea519dcc3fbe19ea3dad6c5328739de1c26658e1a",
"selectedSHA256": "7564b955d69789b80d369f9d7c9febccdbf33198efbc17d46cdabc675edf8ef3"
},
"1000": {
"baselineSHA256": "4d128a7372d9bd7eb6641f45ad262193ccbd59687c1931efc416cd684fd07e81",
"selectedSHA256": "2358aba5bbf6f0d99184edba80b86dfbd3baa23fa522a3ab2811eb283dd89a7f"
},
"2000": {
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"selectedSHA256": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495"
}
},
"borderless": {
"500": {
"baselineSHA256": "24524b7b8532b3a32b7d7296a321af70606781de399341778eae85a2dc391d2f",
"selectedSHA256": "0959a4afbf52855044063c1fcb658ebe4c6486c099a5b70b6792ea44a80d928c"
},
"1000": {
"baselineSHA256": "c452b928406232dd5b65e267b79e3c5db4412c0b8bccf14031a580b5d78ddb07",
"selectedSHA256": "9f74bff26d65b86f886c5a0c19032944d53bddeb32cda37304dfd7a14fb2ecd2"
},
"2000": {
"baselineSHA256": "3e06efe55aee3a9fcc18b628fa4b67de98ac79686c7b6aae445400b1633418e1",
"selectedSHA256": "3af8157e0063a36c5442fbf954918bf641ca43998f867066acb46e4cbfe1f1af"
}
},
"textless": {
"500": {
"baselineSHA256": "7dee974fdfb8e558aec9dbe71c619aa49064d2c455fcbd69ce1a0e21b4342be6",
"selectedSHA256": "38670eda711f9d005092d5fcaf727141a498eee8f35287e9fcc9cc6838f943a0"
},
"1000": {
"baselineSHA256": "cb1c6623e02dc1184d012de6114c1b61246cbb06e5790dd984b14db63c4f2ce7",
"selectedSHA256": "509af845cc615a49d19926652848d8ce9b0677ee50600310c797fb3dcd4147a9"
},
"2000": {
"baselineSHA256": "b2be26eb1a64fed623f4526d2036b169e75b52ebab206caf5a10fec7824fb608",
"selectedSHA256": "8f0a51f7588bc406546c83c396ab518ee690ecd62673ce4b2d360f9848f0be2a"
}
},
"boundless": {
"500": {
"baselineSHA256": "df2f1c19f8ccd20a6e965f5d752623472dca86328325c2e99a5bfa3e1f413e16",
"selectedSHA256": "d1babb938e468a4a114fc693ef48084f0dc1e5f2754c5af391801a02ad056709"
},
"1000": {
"baselineSHA256": "7db3eeaf991f70fb316a86b876a3e860e61ad7c6bfb9b396be0cb6dc6d18a8ff",
"selectedSHA256": "39c5b961f56a517c9ece2ea1a038a334d53f3a26d764402089d1dcbda24fd129"
},
"2000": {
"baselineSHA256": "5edbf9ab5b956019616ff7a3b92f3eaf6892fc2620835bbb04026fb1c0ac819f",
"selectedSHA256": "c1addb4a9fe3d7c28dc22a075344a97661c5d6af10607595f7d9b7c85f931416"
}
}
}
}
}

View File

@@ -0,0 +1,37 @@
{
"cardId": "BP-020",
"revision": "v01",
"candidate": "candidate-01",
"rarity": "Uncommon",
"verdict": "needs revision for Uncommon",
"userApproval": null,
"assembly": null,
"lineage": "Independent first generation; no cumulative edit drift.",
"criteria": {
"narrativeAndFocalHierarchy": "pass",
"environmentalGlassConstruction": "pass",
"faceAndComplexionGlassConstruction": "partial",
"hairAndBeardGlassConstruction": "pass",
"handGlassConstruction": "fail",
"remainingHumanGlassConstruction": "pass",
"backgroundPeopleAndAnimals": "fail",
"anatomyOwnershipAndDepth": "pass",
"workedGlassSurface": "pass",
"lightAndColorWithinPanes": "pass",
"requestedRarityPresence": "pass",
"compositionAndLayoutSafety": "fail",
"thumbnailAndStandardSizeRead": "pass",
"generationIntegrityAndIterationDrift": "pass",
"prohibitedOrUnintendedContent": "pass"
},
"blockingFindings": [
"Uncommon v3 title backing overlays the crown, upper forehead and part of Ezekiel's gaze; his complete head is not safe.",
"The woman listener's clenched hand is mainly one smoothly shaded skin mass with crease marks, not adjacent bounded glass pieces.",
"The woman listener's cheek/jaw skin is less clearly divided than Ezekiel's and the male listener's at native and 200% scale."
],
"invariantsWorthPreserving": [
"Ezekiel's burdened expression, two coherent visible hands, and bounded face/beard glass",
"Canal-side exile setting and small listening group, with form-following glass in water, buildings and robes"
],
"nextDirection": "Make one independent replacement with the entire top 20–23% reserved for nonessential sky, foliage and distant settlement, lowering Ezekiel's complete head below the title panel. Keep listener hands naturally out of view unless they can be independently pane-built; make every visible secondary face as glass-constructed as Ezekiel's."
}

View File

@@ -0,0 +1,23 @@
# Ezekiel — candidate 01 art review
Verdict: **needs revision for Uncommon**. Ezekiel's watchman role and the canal-side exile setting read well, but the Uncommon v3 title backing covers the upper part of his head. The woman listener's visible clenched hand is primarily one shaded skin shape with creases, and her cheek/jaw construction is less clearly divided than the other faces. Candidate 01 is not selected.
| Criterion | Rating | Evidence |
|---|---|---|
| Narrative and focal hierarchy | pass | Ezekiel dominates the left foreground; his warning hand addresses the smaller, attentive group. |
| Environmental glass construction | pass | Cloud/sky, water, mudbrick buildings, palms, masonry and path use neighboring shaped pieces rather than a global crack overlay. |
| Face and complexion glass construction | partial | Ezekiel's forehead, cheek, nose and neck are pane-built; the male listener has several planes, but the woman's broad cheek and jaw read more continuously shaded. |
| Hair and beard glass construction | pass | Ezekiel and the male listener have separately bounded dark hair and beard locks; the woman's dark hair is limited but bounded. |
| Hand glass construction | fail | Ezekiel's warning and resting hands have coherent palm, thumb, wrist and finger pieces. The woman listener's clenched hand is mostly a single skin mass with crease marks. |
| Remaining human glass construction | pass | Robes, sleeves, veils and foreground backs follow plausible pane-built folds. |
| Background people and animals | fail | The secondary woman's face is only partially pane-built and her hand fails; no animals. |
| Anatomy, ownership and depth | pass | Ezekiel's arms and hands attach; the listeners have coherent overlap and no floating limbs. |
| Worked-glass surface | pass | Texture stays inside colored pieces and is gentler on skin. |
| Light and color within panes | pass | Bounded warm afternoon accents relate faces, canal and settlement without fantasy glow. |
| Requested-rarity presence | pass | Refined Uncommon setting, moderate jewel color and visual rest support the tier without overt spectacle. |
| Composition and layout safety | fail | The actual Uncommon v3 title backing at master y=60–360 obscures Ezekiel's crown and upper forehead/gaze. The footer covers only nonessential lower figures. |
| Thumbnail and standard-size read | pass | Ezekiel's blue silhouette and open hand lead to the listening exiles. |
| Generation integrity and iteration drift | pass | Clean independent native generation with clear leading; no repeated-edit smudging. |
| Prohibited or unintended content | pass | No vision imagery, military armor, written text, watermark, card frame or blank plaque. |
Inspect the saved native art, 200% crops of all visible faces and hands, background crop, thumbnail and [Uncommon coverage guide](candidate-01-layout-guide.png). One focused **independent** replacement should lower the complete head below the title coverage and either hide secondary hands naturally or construct them as bounded glass.

View File

@@ -0,0 +1,42 @@
{
"cardId": "BP-020",
"revision": "v01",
"candidate": "candidate-02",
"rarity": "Uncommon",
"verdict": "needs revision for Uncommon",
"userApproval": null,
"assembly": null,
"lineage": "Independent replacement generation, not an image-to-image edit of candidate 01; no cumulative edit drift.",
"criteria": {
"narrativeAndFocalHierarchy": "pass",
"environmentalGlassConstruction": "partial",
"faceAndComplexionGlassConstruction": "fail",
"hairAndBeardGlassConstruction": "fail",
"handGlassConstruction": "fail",
"remainingHumanGlassConstruction": "pass",
"backgroundPeopleAndAnimals": "fail",
"anatomyOwnershipAndDepth": "pass",
"workedGlassSurface": "partial",
"lightAndColorWithinPanes": "partial",
"requestedRarityPresence": "pass",
"compositionAndLayoutSafety": "pass",
"thumbnailAndStandardSizeRead": "pass",
"generationIntegrityAndIterationDrift": "pass",
"prohibitedOrUnintendedContent": "pass"
},
"blockingFindings": [
"Ezekiel's face and the two visible listener faces rely heavily on smooth modeled complexion; too few adjacent lead-bounded skin planes remain when feature drawing and shading are disregarded.",
"Ezekiel's beard and the male listener's beard rely on shaded/textured masses and drawn strands rather than clearly separate bounded locks.",
"Ezekiel's open warning palm and lower hand are mostly continuous shaded skin with crease lines. Plausible digit counts do not pass the isolated hand-pane test.",
"Several mudbrick facades read as large mottled fill areas with architectural outlines more than a deliberate assembly of neighboring glass shapes."
],
"improvementsOverCandidate01": [
"The whole focal head now clears the actual Uncommon v3 title backing.",
"Visible listener hands are naturally out of view, avoiding candidate 01's clenched-hand problem."
],
"invariantsWorthPreserving": [
"Lower, wider public-watchman composition with Ezekiel's complete head and gesture clear of title and footer",
"Restrained canal-side exilic setting and attentive secondary group"
],
"nextDirection": "Stop this pass after the one independent replacement. For a later independent candidate, preserve candidate 02's safe framing but restore candidate 01's explicit face, beard and hand pane construction; simplify secondary figures or architecture rather than letting them turn painted."
}

View File

@@ -0,0 +1,23 @@
# Ezekiel — candidate 02 art review
Verdict: **needs revision for Uncommon**. The independent replacement corrects candidate 01's title overlap and keeps listener hands out of view, but the human and some settlement materials regress toward shaded illustration rather than constructed stained glass. Candidate 02 is not selected.
| Criterion | Rating | Visual evidence |
|---|---|---|
| Narrative and focal hierarchy | pass | Ezekiel clearly warns a small group beside the canal, with a restrained, burdened expression. |
| Environmental glass construction | partial | Sky, water, tree, palms and paving use shaped panes; several broad mudbrick facades rely more on mottled fills and building outlines than interior pane construction. |
| Face and complexion glass construction | fail | Ezekiel's and both visible listeners' skin is primarily shaped by smooth tone and feature drawing; the isolated cheek, jaw and forehead areas lack enough bounded neighboring skin pieces. |
| Hair and beard glass construction | fail | Hair has some bounded clumps, but Ezekiel's and the male listener's beards read mainly as shaded, textured masses with drawn strands. |
| Hand glass construction | fail | Ezekiel's warning palm and lower hand have plausible fingers but largely continuous skin surfaces and crease lines, not distinct neighboring palm, thumb-base, finger-group and wrist panes. |
| Remaining human glass construction | pass | Robes, sleeves and head coverings follow broad, coherent folds. |
| Background people and animals | fail | Listener hands are concealed naturally, but the two visible secondary faces and the male beard do not meet the same glass construction standard as the scene. No animals. |
| Anatomy, ownership and depth | pass | The principal arms attach, visible digits are plausible, and figures overlap coherently. |
| Worked-glass surface | partial | Pane-contained texture works in water and garments; mottling contributes too much to the apparent modeling of masonry and skin. |
| Light and color within panes | partial | Gentle afternoon color relates the figures and canal, but several human light transitions run through smooth painted surfaces rather than bounded panes. |
| Requested-rarity presence | pass | Calm public warning, moderate jewel palette and restrained setting fit Uncommon. |
| Composition and layout safety | pass | The full crown, gaze and warning hand are clear of the actual Uncommon v3 title/footer coverage; secondary faces remain visible. |
| Thumbnail and standard-size read | pass | The watchman gesture and attentive group remain legible. |
| Generation integrity and iteration drift | pass | This is a clean independent generation. Partial native alpha was preserved in the native and flattened over white only for the fitted master; no cumulative image-to-image drift. |
| Prohibited or unintended content | pass | No visions, armored watchman, literal divine figure, text, frame, plaque or watermark. |
Reviewed the saved native at 100%, native 200% crops of Ezekiel's face, beard and both hands and the two listener faces, the non-sky environment and lower figures, thumbnail, fitted master and [Uncommon coverage guide](candidate-02-layout-guide.png). Stop after this one replacement. A future independent candidate should keep candidate 02's safe placement while restoring candidate 01's more explicit built-glass skin, hair, beard and hand treatment.

View File

@@ -0,0 +1,40 @@
{
"cardId": "BP-020",
"revision": "v01",
"candidate": "candidate-03",
"rarity": "Uncommon",
"verdict": "needs revision for Uncommon",
"userApproval": null,
"assembly": null,
"lineage": "Independent generation; no image-to-image edit of candidates 01 or 02 and no cumulative drift.",
"criteria": {
"narrativeAndFocalHierarchy": "pass",
"environmentalGlassConstruction": "pass",
"faceAndComplexionGlassConstruction": "pass",
"hairAndBeardGlassConstruction": "pass",
"handGlassConstruction": "pass",
"remainingHumanGlassConstruction": "pass",
"backgroundPeopleAndAnimals": "pass",
"anatomyOwnershipAndDepth": "partial",
"workedGlassSurface": "pass",
"lightAndColorWithinPanes": "pass",
"requestedRarityPresence": "pass",
"compositionAndLayoutSafety": "fail",
"thumbnailAndStandardSizeRead": "pass",
"generationIntegrityAndIterationDrift": "pass",
"prohibitedOrUnintendedContent": "pass"
},
"blockingFindings": [
"The actual Uncommon v3 title backing at master y=60–360 covers the upper part of Ezekiel's hair/crown. His complete head is not clear of the opaque panel.",
"The open warning hand has good pane construction but overlapping, foreshortened fingers whose exact digit count is not confidently readable at native or 200% scale."
],
"improvementsOverCandidate02": [
"Ezekiel's face, hair, beard and both hands use much clearer neighboring cut-glass pieces.",
"The visible male listener's profile and beard, the back-facing exiles, garments, boats, canal and settlement share the glass language."
],
"invariantsWorthPreserving": [
"Pane-built focal face and hands with the burdened warning gesture",
"Small exilic group and calm canal-side setting without vision imagery"
],
"nextDirection": "Do not select or assemble candidate 03. A later independent candidate should retain its human glass construction but move the entire head lower, leaving nonessential sky/foliage between the crown and title backing, and show an unambiguous five-digit warning hand."
}

View File

@@ -0,0 +1,23 @@
# Ezekiel — candidate 03 art review
Verdict: **needs revision for Uncommon**. This new independent generation substantially improves the constructed-glass people compared with candidate 02. The Uncommon v3 title backing again covers the top of Ezekiel's hair, however, and the warning hand's overlapping fingers make the exact count uncertain. Candidate 03 is not selected or approved.
| Criterion | Rating | Visual evidence |
|---|---|---|
| Narrative and focal hierarchy | pass | Ezekiel's expression and open gesture lead directly to the small exilic group. |
| Environmental glass construction | pass | Sky, tree, canal, boats, settlement and path use shaped neighboring pieces at their depicted scales. |
| Face and complexion glass construction | pass | Ezekiel's forehead, nose, cheek, jaw and neck, and the male listener's profile, retain distinct adjacent skin panes when feature drawing is disregarded. |
| Hair and beard glass construction | pass | Both visible beards and hair masses have bounded directional locks; the back-facing figures' coverings and hair remain segmented. |
| Hand glass construction | pass | Both of Ezekiel's visible hands have internal palm/thumb/wrist glass pieces, separate from the finger outlines. |
| Remaining human glass construction | pass | Robes, sleeves and secondary backs use form-following glass folds. |
| Background people and animals | pass | The one visible listener face and beard are pane-built; the other two exiles are back-facing with built-glass coverings and garments. No animals. |
| Anatomy, ownership and depth | partial | Arms and hands attach correctly, but the open hand's foreshortened, overlapping fingers do not allow a confident one-thumb-plus-four-finger count at native or 200%. |
| Worked-glass surface | pass | Satin texture stays secondary to the bounded glass shapes. |
| Light and color within panes | pass | Warm river light and cool blues remain within defined pieces. |
| Requested-rarity presence | pass | A modest public scene, clear emotional hierarchy and restrained jewel palette fit Uncommon. |
| Composition and layout safety | fail | The actual opaque title backing y=60–360 at 2000×2800 intersects Ezekiel's hair/crown. The lower backing covers only nonessential clothing/backs. |
| Thumbnail and standard-size read | pass | Ezekiel and the attentive listener profile remain clear. |
| Generation integrity and iteration drift | pass | Clean independent native file, no cumulative edit or doubled/smudged lead. |
| Prohibited or unintended content | pass | No vision, military guard, fantasy effects, text, watermark or card frame. |
Inspected the native at 100%, native 200% crops of Ezekiel's face, beard and two hands and the listener profile, the environment and lower figures, thumbnail, fitted master and [Uncommon coverage guide](candidate-03-layout-guide.png). Preserve the stronger human glass but lower the entire head in any future independent generation. No assembly has begun.

View File

@@ -0,0 +1,14 @@
# Ezekiel finish-mask correction trial 01
Status: **accepted for BP-020 v01 final approval**. The earlier [provisional approval](provisional-approval.json) remains a historical record. The previous raw-ridges masks are preserved in [baseline](baseline/) and the selected contrast masks are installed in all 12 working finish-map exports. Card faces and text masks are unchanged. This is a card-specific alternative to the approved shared `raw-ridges-v1` extraction, not a change to that recipe or the runtime shader.
The original raw-ridges extractor missed or fragmented many distant architectural, boat, water, and sky seams while reacting to mottled pigment in robes and beards. The first edge-preserving smoothing test reduced some mottling but lost more background lead. A relaxed dark-ridge test recovered background detail but amplified texture. A Canny edge test recovered seams but traced too many mere color transitions. The selected **gated-contrast** trial combines nearby edges with local dark-line contrast and keeps only a low contribution from smoothed raw ridges.
- [Artwork / current / selected comparison at 500px](comparison-gated-500.png)
- [Selected Normal trial at 1000px](selected/normal-1000-finish-mask.png) · [2000px](selected/normal-2000-finish-mask.png)
- [All four printing masks and structural checks](selected-validation.json)
- [Builder parameters](gated-trial.json)
White receives finish; black protects panel lines, frame, backing, and text. The selected trial more clearly follows distant seams and reduces broad robe mottling, though fine secondary contours remain. Static inspection is promising, but moving-light review was not performed. The user approved the exact v01 assembly with this installed mask; Foil and Holographic behavior remains unverified. This selection is card-local, not a new shared default.
Rebuild from the repository root with `python3 in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/build-selected.py`. The script regenerates the comparison stages and uses exact floating-point pane weights from the unchanged fitted art for the selected four-printing export. It writes only inside this review folder. The revision's `build.py` then installs the selected maps via [install-selected.py](install-selected.py) and records exact replaced hashes in [installation.json](installation.json).

View File

@@ -0,0 +1,646 @@
{
"status": "passed",
"cardId": "BP-020",
"revision": "v01",
"artApproval": {
"by": "user",
"note": "Approved; Let's start assembly",
"scope": "Candidate 03 selected for assembly despite the independent review's title/hair and warning-hand caveats; final assembled-card approval remains separate.",
"candidate": "candidate-03",
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"agentReview": "review/candidate-03-art-review.json"
},
"finalCardApproval": null,
"inputs": {
"art": {
"path": "in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png",
"sha256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22"
},
"fit": {
"cardId": "BP-020",
"revision": "v01",
"selectedCandidate": "candidate-03",
"approval": {
"by": "user",
"note": "Approved; Let's start assembly",
"scope": "Candidate 03 selected for assembly with the independent review's title/hair and warning-hand caveats retained; final assembled-card approval pending."
},
"assemblyAuthorization": "Let's start assembly",
"native": "source/art-native-candidate-03.png",
"nativeType": "independent image generation",
"nativeSHA256": "98f69a6c92e7d2d5b6a66333c6808a13ae363333051b9e0f6623bb7f5e41fe29",
"master": "source/art-master-candidate-03.png",
"masterSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"nativeDimensions": [
1060,
1484
],
"canvas": [
2000,
2800
],
"scale": 1.8867924528301887,
"crop": [
0,
0,
1060,
1484
],
"transform": "Uniform ImageMagick Lanczos resize; no crop or stretching. Master is an upscale, not additional native detail.",
"detailedProvenance": "source/art-provenance-candidate-03.json",
"prompt": "source/generation-prompt-candidate-03.txt",
"agentReview": "review/candidate-03-art-review.json",
"caveat": "User-directed assembly proceeds despite the title backing covering the upper crown and an ambiguous digit count on the warning hand. Finish masks do not repair illustration structure."
},
"cardSHA256": "e77853969d49f44433b70c9d7f51c9cec2bbc9d01e39a9ebf8503afa14cdcace",
"builderSHA256": "ad378f6d135eba54d53c0212163958ad06710938443b03926457d807eec23229"
},
"sharedLayers": {
"tier": "uncommon",
"version": "v3",
"manifestSHA256": "d7a84f1ace1b2052ae270a71b390a6a08768da6ad5816d15a2a35f2faf79a113",
"reviewStatus": "approved-spacing-static-printing-review-pending",
"assets": {
"frame-normal": {
"path": "artifacts/layers/uncommon/v3/exports/frame-normal-2000.png",
"sha256": "b7c5437332459d8eec78458e559314ed19f9d2a0d691bc99cf86c24f79284801"
},
"frame-textless": {
"path": "artifacts/layers/uncommon/v3/exports/frame-textless-2000.png",
"sha256": "b7c5437332459d8eec78458e559314ed19f9d2a0d691bc99cf86c24f79284801"
},
"backing-normal": {
"path": "artifacts/layers/uncommon/v3/exports/backing-normal-2000.png",
"sha256": "ff692033d7fa0bc3e513c4b4f5a02e8d96ea168ec51110ef6adad916713e4289"
},
"backing-borderless": {
"path": "artifacts/layers/uncommon/v3/exports/backing-borderless-2000.png",
"sha256": "9801ffa0eb7fb82b5c6e4fe6158ae8a45b584e9c38da5c221f558f1495e06728"
},
"overlay-normal": {
"path": "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png",
"sha256": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262"
}
}
},
"sharedFontManifestSHA256": "2d0b41eed9f1668dc43d10d4397517efe2eec4803c82772b6c145733f13a9f63",
"typography": {
"fonts": [
{
"role": "title",
"path": "fonts/P052-Bold.otf",
"sha256": "ba6503baaf0f9e4e40a69cc4c0e57049fbde313fe183aba8fe823208337a94af",
"size": 112,
"weight": 700,
"fallbackUsed": false,
"missingGlyphs": []
},
{
"role": "verse",
"path": "fonts/SanctificationP052-Medium.otf",
"sha256": "1e0e1f7f4a5b2899374de51e40f15446a04a5c0163d6a1943155f964c1ace1fb",
"size": 76,
"weight": 500,
"fallbackUsed": false,
"missingGlyphs": []
},
{
"role": "reference",
"path": "fonts/SanctificationP052-Medium.otf",
"sha256": "1e0e1f7f4a5b2899374de51e40f15446a04a5c0163d6a1943155f964c1ace1fb",
"size": 57,
"weight": 500,
"fallbackUsed": false,
"missingGlyphs": []
}
],
"glyphs": [
{
"id": "title-0",
"role": "title",
"text": "EZEKIEL",
"baseline": 227.70549999999997,
"objectBounds": [
762.896,
151.322,
474.768,
76.832
],
"unclippedInkBounds": [
762,
151,
1238,
229
],
"region": [
140,
130,
1720,
140
],
"pass": true
},
{
"id": "verse-0",
"role": "verse",
"text": "\u201cSon of man, I have made you a watchman for the",
"baseline": 2342.5,
"objectBounds": [
167.04,
2286.87,
1667.36,
77.444
],
"unclippedInkBounds": [
167,
2286,
1835,
2365
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "verse-1",
"role": "verse",
"text": "house of Israel. Whenever you hear a word from",
"baseline": 2437.5,
"objectBounds": [
192.272,
2381.87,
1614.85,
77.444
],
"unclippedInkBounds": [
192,
2381,
1808,
2460
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "verse-2",
"role": "verse",
"text": "my mouth, you shall give them warning from me.\u201d",
"baseline": 2532.5,
"objectBounds": [
151.422,
2476.87,
1694.5,
77.444
],
"unclippedInkBounds": [
151,
2476,
1846,
2555
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "reference",
"role": "reference",
"text": "Ezekiel 3:17 \u2022 ESV",
"baseline": 2643,
"objectBounds": [
769.321,
2601.39,
461.7,
42.978
],
"unclippedInkBounds": [
769,
2601,
1232,
2645
],
"region": [
160,
2580,
1680,
100
],
"pass": true
}
],
"titleOpticalShift": 0,
"fontMetrics": {
"unitsPerEm": 1000,
"hheaAscender": 726,
"hheaDescender": -274,
"headYMin": -288,
"size": 57,
"ascent": 42,
"descent": 17,
"lineGapUsed": 0
},
"referenceBaseline": 2643,
"referenceLineBox": [
2601,
2660
],
"referenceLineBoxToFlourish": 20,
"actualReferenceClearance": 35,
"upperFlourishToVerse": 46,
"verseToReferenceLineBox": 46,
"centeringError": 0,
"titleToFlourish": 71,
"stressReferences": [
{
"text": "Matthew 4:19 \u2022 NKJV",
"baseline": 2643,
"inkBounds": [
724,
2601,
1276,
2655
],
"actualClearance": 25
},
{
"text": "Genesis 3:9 \u2022 ESV",
"baseline": 2643,
"inkBounds": [
776,
2602,
1224,
2645
],
"actualClearance": 35
},
{
"text": "Exodus 3:6 \u2022 KJV",
"baseline": 2643,
"inkBounds": [
782,
2601,
1218,
2655
],
"actualClearance": 25
},
{
"text": "Philippians 2:11 \u2022 NKJV",
"baseline": 2643,
"inkBounds": [
694,
2601,
1306,
2660
],
"actualClearance": 20
}
],
"scaledRasterChecks": [
{
"width": 2000,
"text": "Matthew 4:19 \u2022 NKJV",
"actualClearance": 27,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Genesis 3:9 \u2022 ESV",
"actualClearance": 37,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Exodus 3:6 \u2022 KJV",
"actualClearance": 27,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Philippians 2:11 \u2022 NKJV",
"actualClearance": 22,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Matthew 4:19 \u2022 NKJV",
"actualClearance": 14,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Genesis 3:9 \u2022 ESV",
"actualClearance": 19,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Exodus 3:6 \u2022 KJV",
"actualClearance": 14,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Philippians 2:11 \u2022 NKJV",
"actualClearance": 11,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Matthew 4:19 \u2022 NKJV",
"actualClearance": 7,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Genesis 3:9 \u2022 ESV",
"actualClearance": 10,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Exodus 3:6 \u2022 KJV",
"actualClearance": 8,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Philippians 2:11 \u2022 NKJV",
"actualClearance": 6,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
}
],
"textLayerSHA256": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"cardLocalVerseLayout": {
"approval": {
"by": "user",
"note": "3 lines is fine; Approved"
},
"lineCount": 3,
"fontSize": 76,
"lineHeight": 95
}
},
"textMask": {
"expansionRadius": 12,
"gaussianRadius": 8,
"units": "master pixels",
"derivation": "Actual lettering alpha: MaxFilter(25), GaussianBlur(8)",
"minimumProtectionAtGlyphAlpha128": 221
},
"finishRecipe": {
"id": "raw-ridges-v1",
"sha256": "23331ce56a717edb4e6f85956d11fdd98397009c4e6dd230d8c334c77571dd18",
"path": "tools/card-production/recipes/raw-ridges-v1.json",
"moduleSHA256": "8d2b5399859570f43d9b222e6d37302372d68d2b589921b3c5b161b47cd18d5c",
"rawRidgeSHA256": "cc3d1cdede5e716a385d5195c57220e496e964dbdaf69da6c26818fa02a4514c",
"paneCoverageSHA256": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"illustrationAnalyses": 1
},
"tools": {
"inkscape": "Inkscape 1.2.2 (b0a8486541, 2022-12-01)",
"pillow": "10.2.0",
"numpy": "1.26.4"
},
"printings": {
"normal": {
"overlay": "overlay-normal",
"text": true,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "247023a776001449fdb3fa345c0a33b9d35e404c076038070d8b0dc6b3c0cf55",
"finish-mask.png": "53426954cf77d3f159094b2ea519dcc3fbe19ea3dad6c5328739de1c26658e1a",
"text-mask.png": "1a412411b3d3db1b5af8cd02563f7e51e6dd69fd42adf7d2bd4d4be04c251dfd"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "d78e5ffa40cf87ddc8e518b9fdc2d2108ef52e629f649d63660e86b06582615c",
"finish-mask.png": "4d128a7372d9bd7eb6641f45ad262193ccbd59687c1931efc416cd684fd07e81",
"text-mask.png": "5f1ec3bd99a533403a2910beb1f8ec5b3fefa34d00bd7c3b521c28225913e3f4"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "8cf47f1f734255e6dc25668dbcb6993159b824a1ee00ef9fa05bc329038486ca",
"finish-mask.png": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"text-mask.png": "65670b33ddce44da01e1209d9ddfbba01b3afbd15769deb4a3e8ea939ec05459"
}
}
]
},
"boundless": {
"overlay": null,
"text": false,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "ec0b47ca7f939ee0105e78b40addead98a373c03605efee8f0d879b4b33655fe",
"finish-mask.png": "df2f1c19f8ccd20a6e965f5d752623472dca86328325c2e99a5bfa3e1f413e16",
"text-mask.png": "85fbeb48f81f5fd89c81a79be7e1d4d16837edd786733f593e0a4451be5fa52b"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "2fe77c97a3b08498a102d1897199b6bf7965b868879012776ef89d05e267e453",
"finish-mask.png": "7db3eeaf991f70fb316a86b876a3e860e61ad7c6bfb9b396be0cb6dc6d18a8ff",
"text-mask.png": "f8732c63feae83b55d064bc73e39904d9158c4e194dfd6d30dbff7864adfd490"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "d57568b23b9154f844cc3c75f9026c7da1f06bc1cfd3bce8de24ef60779db9df",
"finish-mask.png": "5edbf9ab5b956019616ff7a3b92f3eaf6892fc2620835bbb04026fb1c0ac819f",
"text-mask.png": "27006d9c9a2ced6159cc5a6a76ef707e22797a800df9b9e19ec1f1783fc6d767"
}
}
]
},
"borderless": {
"overlay": "backing-borderless",
"text": true,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "54884ac0f1a7b14323c1c5b55845e27a93b8f5527f705ffe88ed4de1d7b3e0cf",
"finish-mask.png": "24524b7b8532b3a32b7d7296a321af70606781de399341778eae85a2dc391d2f",
"text-mask.png": "1a412411b3d3db1b5af8cd02563f7e51e6dd69fd42adf7d2bd4d4be04c251dfd"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "c9b4dad080af2c60f4ef81ca17525d7d3ca0c3c930e49da45c146185413bbf8e",
"finish-mask.png": "c452b928406232dd5b65e267b79e3c5db4412c0b8bccf14031a580b5d78ddb07",
"text-mask.png": "5f1ec3bd99a533403a2910beb1f8ec5b3fefa34d00bd7c3b521c28225913e3f4"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "3310872a64ad4208a85c32eadaa8545fcd1efae5754e3cf8c576d6d6e4a5820c",
"finish-mask.png": "3e06efe55aee3a9fcc18b628fa4b67de98ac79686c7b6aae445400b1633418e1",
"text-mask.png": "65670b33ddce44da01e1209d9ddfbba01b3afbd15769deb4a3e8ea939ec05459"
}
}
]
},
"textless": {
"overlay": "frame-textless",
"text": false,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "3198c26d79e901f50ce24861977d2e7d0ccef99155973eaeb3fdb79389e93086",
"finish-mask.png": "7dee974fdfb8e558aec9dbe71c619aa49064d2c455fcbd69ce1a0e21b4342be6",
"text-mask.png": "85fbeb48f81f5fd89c81a79be7e1d4d16837edd786733f593e0a4451be5fa52b"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "ddb23a55875dd92074632ab7a7dfdcc72cb58a8b8503c517922db12f08119c62",
"finish-mask.png": "cb1c6623e02dc1184d012de6114c1b61246cbb06e5790dd984b14db63c4f2ce7",
"text-mask.png": "f8732c63feae83b55d064bc73e39904d9158c4e194dfd6d30dbff7864adfd490"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "9063ab5b67311022c830cd88350a684faec3241a0f80dd228d145a0d75f28d40",
"finish-mask.png": "b2be26eb1a64fed623f4526d2036b169e75b52ebab206caf5a10fec7824fb608",
"text-mask.png": "27006d9c9a2ced6159cc5a6a76ef707e22797a800df9b9e19ec1f1783fc6d767"
}
}
]
}
},
"visualReview": {
"static": "pending",
"movingLight": "not performed"
},
"textContrast": {
"normal": 8.1,
"borderless": 8.1
},
"backingContrast": [
{
"printing": "normal",
"width": 2000,
"primaryRuleToCream": 4.66,
"minimum": 3
},
{
"printing": "normal",
"width": 1000,
"primaryRuleToCream": 6.13,
"minimum": 3
},
{
"printing": "normal",
"width": 500,
"primaryRuleToCream": 3.41,
"minimum": 3
},
{
"printing": "borderless",
"width": 2000,
"primaryRuleToCream": 4.66,
"minimum": 3
},
{
"printing": "borderless",
"width": 1000,
"primaryRuleToCream": 6.13,
"minimum": 3
},
{
"printing": "borderless",
"width": 500,
"primaryRuleToCream": 3.41,
"minimum": 3
}
]
}

View File

@@ -0,0 +1,73 @@
#!/usr/bin/env python3
"""Comparison-only edge-guided Ezekiel finish-mask trial."""
from pathlib import Path
import hashlib
import json
import subprocess
import numpy as np
from PIL import Image, ImageDraw, ImageFilter, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
FILTERED = HERE / "filtered-art.png"
SMOOTHED_RIDGES = HERE / "smoothed-ridges-2000.png"
PANES = REVISION / "source/pane-coverage.png"
TEXT = REVISION / "source/text/text-2000.png"
OVERLAY = REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png"
BASELINE = REVISION / "high/normal/finish-mask.png"
ART = REVISION / "source/art-master-candidate-03.png"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def main():
for path in (FILTERED, SMOOTHED_RIDGES, PANES, TEXT, OVERLAY, BASELINE, ART):
if not path.is_file():
raise FileNotFoundError(path)
edge_path = HERE / "canny-edges-2000.png"
subprocess.run(["convert", str(FILTERED), "-colorspace", "Gray", "-canny", "0x1+5%+15%", str(edge_path)], check=True)
edge = Image.open(edge_path).convert("L").filter(ImageFilter.MaxFilter(5))
edge_arr = np.asarray(edge, dtype=np.float32) / 255.
smoothed = np.asarray(Image.open(SMOOTHED_RIDGES).convert("L"), dtype=np.float32) / 255.
confidence = np.maximum(0.9 * edge_arr, 0.35 * smoothed)
confidence = np.clip(confidence, 0., 1.)
Image.fromarray(np.rint(confidence * 255).astype(np.uint8)).save(HERE / "edge-guided-ridges-2000.png")
pane = np.asarray(Image.open(PANES).convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(OVERLAY).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(TEXT).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
out = np.rint(pane * (1 - confidence) * (1 - active) * 255).astype(np.uint8)
master = Image.fromarray(out)
for width in (2000, 1000, 500):
image = master if width == 2000 else master.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = image.convert("RGBA")
rgba.putalpha(255)
rgba.save(HERE / f"edge-guided-normal-finish-{width}.png")
baseline = Image.open(BASELINE).convert("L").resize((500, 700), Image.Resampling.BILINEAR)
candidate = master.resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(ART).convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
sheet = Image.new("RGB", (1520, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate((("Artwork", art), ("Current mask", baseline), ("Edge-guided trial", candidate))):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-edge-guided-500.png")
report = {
"status": "experimental; not production-selected",
"method": "Kuwahara-smoothed art, ImageMagick Canny 0x1+5%+15%, 5px max dilation; combine 90% edge confidence with 35% smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"sourceSHA256": {str(path.relative_to(REPO)): digest(path) for path in (ART, PANES, TEXT, OVERLAY, FILTERED, SMOOTHED_RIDGES)},
"baselineSHA256": digest(BASELINE),
"outputs": {name: digest(HERE / name) for name in ("edge-guided-ridges-2000.png", "edge-guided-normal-finish-2000.png", "comparison-edge-guided-500.png")},
"warning": "This changes the approved raw-ridges-v1 extraction and is only a separate visual trial. No production or runtime files have been replaced.",
}
(HERE / "edge-guided-trial.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,68 @@
#!/usr/bin/env python3
"""Compare darkness-gated edge masks without touching production exports."""
from pathlib import Path
import json
import numpy as np
from PIL import Image, ImageDraw, ImageFilter, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
def smooth(lo, hi, value):
t = np.clip((value - lo) / (hi - lo), 0, 1)
return t * t * (3 - 2 * t)
def output(label, confidence, pane, active):
Image.fromarray(np.rint(confidence * 255).astype(np.uint8)).save(HERE / f"{label}-ridges-2000.png")
result = Image.fromarray(np.rint(pane * (1 - confidence) * (1 - active) * 255).astype(np.uint8))
for width in (2000, 1000, 500):
item = result if width == 2000 else result.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = item.convert("RGBA")
rgba.putalpha(255)
rgba.save(HERE / f"{label}-normal-finish-{width}.png")
return result.resize((500, 700), Image.Resampling.BILINEAR)
def main():
filtered = Image.open(HERE / "filtered-art.png").convert("L")
gray = np.asarray(filtered, dtype=np.float32) / 255.
edge = Image.open(HERE / "canny-edges-2000.png").convert("L").filter(ImageFilter.MaxFilter(7))
edge = np.asarray(edge, dtype=np.float32) / 255.
smoothed = np.asarray(Image.open(HERE / "smoothed-ridges-2000.png").convert("L"), dtype=np.float32) / 255.
pane = np.asarray(Image.open(REVISION / "source/pane-coverage.png").convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(REVISION / "source/text/text-2000.png").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
darkness = 1 - smooth(.32, .67, gray)
local_max = np.asarray(filtered.filter(ImageFilter.MaxFilter(11)), dtype=np.float32) / 255.
contrast = smooth(.02, .12, local_max - gray)
variants = {
"gated-dark": np.maximum(.25 * smoothed, .95 * edge * darkness),
"gated-contrast": np.maximum(.25 * smoothed, .95 * edge * darkness * contrast),
}
baseline = Image.open(REVISION / "high/normal/finish-mask.png").convert("L").resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(REVISION / "source/art-master-candidate-03.png").convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
views = [("Artwork", art), ("Current mask", baseline)]
for label, confidence in variants.items():
views.append((label.replace("-", " ").title(), output(label, np.clip(confidence, 0, 1), pane, active)))
sheet = Image.new("RGB", (2030, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate(views):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-gated-500.png")
(HERE / "gated-trial.json").write_text(json.dumps({
"status": "experimental; not production-selected",
"method": "Canny near-edge mask with dark-luminance gating, optionally local dark-line contrast gating, plus 25% Kuwahara-smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"parameters": {"canny": "0x1+5%+15%", "edgeDilation": 7, "darknessSmoothstep": [.32, .67], "localMaxSize": 11, "contrastSmoothstep": [.02, .12]},
"warning": "These masks are comparison-only and have not been validated under moving light or installed in any printing."
}, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,84 @@
#!/usr/bin/env python3
"""Comparison-only relaxed dark-ridge detector for Ezekiel's glass seams."""
from pathlib import Path
import hashlib
import json
import math
import sys
import numpy as np
from PIL import Image, ImageDraw, ImageFilter, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
sys.path.insert(0, str(REPO / "tools/card-production"))
from finish_masks import _shift, _smooth
FILTERED = HERE / "filtered-art.png"
PANES = REVISION / "source/pane-coverage.png"
TEXT = REVISION / "source/text/text-2000.png"
OVERLAY = REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png"
BASELINE = REVISION / "high/normal/finish-mask.png"
ART = REVISION / "source/art-master-candidate-03.png"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def detect(art):
gray = np.asarray(art.convert("RGB").filter(ImageFilter.GaussianBlur(1.2)).convert("L"), dtype=np.float32) / 255.
darkness = 1 - _smooth(0.24, 0.54, gray)
out = np.zeros_like(gray)
for index in range(8):
angle = math.pi * index / 8
for radius in (2, 4, 8, 14):
dx, dy = round(math.cos(angle) * radius), round(math.sin(angle) * radius)
shoulders = np.minimum(_shift(gray, dx, dy), _shift(gray, -dx, -dy))
ridge = _smooth(0.012, 0.055, shoulders - gray) * darkness
np.maximum(out, ridge, out=out)
return np.rint(out * 255).astype(np.uint8)
def main():
for path in (FILTERED, PANES, TEXT, OVERLAY, BASELINE, ART):
if not path.is_file():
raise FileNotFoundError(path)
ridges = detect(Image.open(FILTERED))
Image.fromarray(ridges).save(HERE / "relaxed-ridges-2000.png")
pane = np.asarray(Image.open(PANES).convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(OVERLAY).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(TEXT).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
out = np.rint(pane * (1 - ridges.astype(np.float32) / 255.) * (1 - active) * 255).astype(np.uint8)
master = Image.fromarray(out)
for width in (2000, 1000, 500):
image = master if width == 2000 else master.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = image.convert("RGBA")
rgba.putalpha(255)
rgba.save(HERE / f"relaxed-normal-finish-{width}.png")
baseline = Image.open(BASELINE).convert("L").resize((500, 700), Image.Resampling.BILINEAR)
candidate = master.resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(ART).convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
sheet = Image.new("RGB", (1520, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate((("Artwork", art), ("Current mask", baseline), ("Relaxed dark-ridge trial", candidate))):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-relaxed-500.png")
report = {
"status": "experimental; not production-selected",
"method": "Kuwahara 5x5 art, then 1.2px blurred luminance; eight-orientation opposed shoulders at 2/4/8/14px; contrast smoothstep .012-.055; darkness smoothstep .24-.54; original pane diagnostic and active Normal overlay/text alpha retained",
"sourceSHA256": {str(path.relative_to(REPO)): digest(path) for path in (ART, PANES, TEXT, OVERLAY, FILTERED)},
"baselineSHA256": digest(BASELINE),
"outputs": {name: digest(HERE / name) for name in ("relaxed-ridges-2000.png", "relaxed-normal-finish-2000.png", "comparison-relaxed-500.png")},
"warning": "This changes approved extraction parameters and is only a separate visual trial. No production or runtime files have been replaced.",
}
(HERE / "relaxed-trial.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,95 @@
#!/usr/bin/env python3
"""Package and structurally validate the selected review-only Ezekiel mask trial."""
from pathlib import Path
import hashlib
import json
import subprocess
import sys
import numpy as np
from PIL import Image
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
sys.path.insert(0, str(REPO / "tools/card-production"))
from finish_masks import prepare_illustration
ART = REVISION / "source/art-master-candidate-03.png"
TEXT = REVISION / "source/text/text-2000.png"
LAYERS = REPO / "artifacts/layers/uncommon/v3/exports"
RIDGES = HERE / "gated-contrast-ridges-2000.png"
EXPORTS = HERE / "selected"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def alpha(path):
image = Image.open(path).convert("RGBA")
assert image.size == (2000, 2800)
return np.asarray(image.getchannel("A"), dtype=np.float32) / 255.
def main():
for script in ("build.py", "build-canny.py", "build-gated.py"):
subprocess.run([sys.executable, str(HERE / script)], check=True)
art = Image.open(ART).convert("RGBA")
illustration = prepare_illustration(art)
ridges = np.asarray(Image.open(RIDGES).convert("L"), dtype=np.float32) / 255.
assert ridges.shape == illustration.pane_weights.shape == (2800, 2000)
text = alpha(TEXT)
layers = {
"normal": LAYERS / "overlay-normal-2000.png",
"borderless": LAYERS / "backing-borderless-2000.png",
"textless": LAYERS / "frame-textless-2000.png",
"boundless": None,
}
EXPORTS.mkdir(exist_ok=True)
reports = {}
for printing, overlay_path in layers.items():
oa = 0. if overlay_path is None else alpha(overlay_path)
ta = text if printing in ("normal", "borderless") else 0.
active = 1 - (1 - oa) * (1 - ta)
coverage = np.rint(illustration.pane_weights * (1 - ridges) * (1 - active) * 255).astype(np.uint8)
assert coverage.shape == (2800, 2000)
if overlay_path is not None:
assert np.all(coverage[oa == 1] == 0), printing
if isinstance(ta, np.ndarray):
assert np.all(coverage[ta == 1] == 0), printing
scalar = Image.fromarray(coverage)
files = {}
for width in (2000, 1000, 500):
image = scalar if width == 2000 else scalar.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = image.convert("RGBA")
rgba.putalpha(255)
path = EXPORTS / f"{printing}-{width}-finish-mask.png"
rgba.save(path)
check = Image.open(path).convert("RGBA")
channels = np.asarray(check)
assert check.size == (width, width * 7 // 5)
assert np.all(channels[..., 0] == channels[..., 1]) and np.all(channels[..., 1] == channels[..., 2])
assert np.all(channels[..., 3] == 255)
files[str(width)] = {"path": str(path.relative_to(REVISION)), "sha256": digest(path)}
reports[printing] = {"overlay": str(overlay_path.relative_to(REPO)) if overlay_path else None,
"usesText": isinstance(ta, np.ndarray), "files": files,
"meanMasterCoverage": round(float(coverage.mean()) / 255., 5)}
report = {
"status": "structural checks passed; experimental mask trial only; not selected for production",
"candidate": "gated-contrast",
"art": {"path": str(ART.relative_to(REPO)), "sha256": digest(ART)},
"ridgeMap": {"path": str(RIDGES.relative_to(REVISION)), "sha256": digest(RIDGES)},
"text": {"path": str(TEXT.relative_to(REPO)), "sha256": digest(TEXT)},
"paneWeightSource": "Exact floating-point weights recomputed by approved prepare_illustration from unchanged art",
"printings": reports,
"checks": ["2000/1000/500 dimensions", "opaque grayscale RGBA", "opaque overlay protection", "opaque lettering protection", "unchanged source art and card faces"],
"staticReview": "pending user review of comparison sheets and mask detail",
"movingLightReview": "not performed",
"productionReplacement": False,
}
(HERE / "selected-validation.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,79 @@
#!/usr/bin/env python3
"""Comparison-only Ezekiel finish-mask trial; never writes production exports."""
from pathlib import Path
import hashlib
import json
import subprocess
import sys
import numpy as np
from PIL import Image, ImageDraw, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
sys.path.insert(0, str(REPO / "tools/card-production"))
from finish_masks import extract_raw_ridges, RECIPE_SHA256
ART = REVISION / "source/art-master-candidate-03.png"
PANES = REVISION / "source/pane-coverage.png"
TEXT = REVISION / "source/text/text-2000.png"
OVERLAY = REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png"
BASELINE = REVISION / "high/normal/finish-mask.png"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def save_data_map(gray, path):
rgba = gray.convert("RGBA")
rgba.putalpha(255)
rgba.save(path)
def main():
for path in (ART, PANES, TEXT, OVERLAY, BASELINE):
if not path.is_file():
raise FileNotFoundError(path)
filtered_path = HERE / "filtered-art.png"
subprocess.run(["convert", str(ART), "-kuwahara", "5x5", str(filtered_path)], check=True)
filtered = Image.open(filtered_path).convert("RGB")
assert filtered.size == (2000, 2800)
ridges = extract_raw_ridges(filtered)
Image.fromarray(ridges).save(HERE / "smoothed-ridges-2000.png")
pane = np.asarray(Image.open(PANES).convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(OVERLAY).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(TEXT).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
out = np.rint(pane * (1 - ridges.astype(np.float32) / 255.) * (1 - active) * 255).astype(np.uint8)
master = Image.fromarray(out)
for width in (2000, 1000, 500):
image = master if width == 2000 else master.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
save_data_map(image, HERE / f"smoothed-normal-finish-{width}.png")
ridge_small = Image.fromarray(ridges).resize((500, 700), Image.Resampling.BILINEAR)
ridge_small.save(HERE / "smoothed-ridges-500.png")
baseline = Image.open(BASELINE).convert("L").resize((500, 700), Image.Resampling.BILINEAR)
candidate = master.resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(ART).convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
sheet = Image.new("RGB", (1520, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate((("Artwork", art), ("Current mask", baseline), ("Smoothed trial", candidate))):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-500.png")
report = {
"status": "experimental; not production-selected",
"method": "ImageMagick Kuwahara 5x5 edge-preserving smoothing of fitted art, then unchanged raw-ridges-v1 ridge extractor; original pane weights and active Normal overlay/text alpha retained",
"source": {"artSHA256": digest(ART), "paneSHA256": digest(PANES), "textSHA256": digest(TEXT), "overlaySHA256": digest(OVERLAY)},
"baselineSHA256": digest(BASELINE), "approvedRecipeSHA256": RECIPE_SHA256,
"outputs": {name: digest(HERE / name) for name in ("smoothed-ridges-2000.png", "smoothed-normal-finish-2000.png", "comparison-500.png")},
"warning": "This is not the approved raw-ridges-v1 production path and has not had moving-light review. Pane weights are loaded from the prior 8-bit diagnostic for a fast comparison.",
}
(HERE / "trial.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,19 @@
{
"status": "experimental; not production-selected",
"method": "Kuwahara-smoothed art, ImageMagick Canny 0x1+5%+15%, 5px max dilation; combine 90% edge confidence with 35% smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"sourceSHA256": {
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/pane-coverage.png": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/text/text-2000.png": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262",
"in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/filtered-art.png": "c9b3a020bd0f7b7ea236de143ea8af3a5a96ec178e9cd7ccb45fee02e0e62843",
"in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/smoothed-ridges-2000.png": "bc905f80a60915976e5cde02523b5ea1ad74b03c329aa5f395804266979a49dc"
},
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"outputs": {
"edge-guided-ridges-2000.png": "5030709dba43a4259732dffdd7028e2dfed3137e022f37d80628639899b8094b",
"edge-guided-normal-finish-2000.png": "2bbdb11ceac8de4148706a1fe8e4f332cabf3314e0d68c0c67f369bae5db42bd",
"comparison-edge-guided-500.png": "fa0ffe6bd2e49e534c563a404c6964dc1b098158241fb32901aeb3e16e0fcd12"
},
"warning": "This changes the approved raw-ridges-v1 extraction and is only a separate visual trial. No production or runtime files have been replaced."
}

View File

@@ -0,0 +1,18 @@
{
"status": "experimental; not production-selected",
"method": "Canny near-edge mask with dark-luminance gating, optionally local dark-line contrast gating, plus 25% Kuwahara-smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"parameters": {
"canny": "0x1+5%+15%",
"edgeDilation": 7,
"darknessSmoothstep": [
0.32,
0.67
],
"localMaxSize": 11,
"contrastSmoothstep": [
0.02,
0.12
]
},
"warning": "These masks are comparison-only and have not been validated under moving light or installed in any printing."
}

View File

@@ -0,0 +1,110 @@
#!/usr/bin/env python3
"""Select the reviewed contrast trial for Ezekiel's working assembly only."""
from pathlib import Path
import hashlib
import json
import shutil
import subprocess
import sys
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
VALIDATION = REVISION / "review/build-validation.json"
CARD = REVISION / "card.json"
BASELINE = HERE / "baseline"
PRINTINGS = ("normal", "borderless", "textless", "boundless")
WIDTHS = {"low": 500, "med": 1000, "high": 2000}
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def save(path, data):
path.write_text(json.dumps(data, indent=2, ensure_ascii=False) + "\n")
def main():
card = json.loads(CARD.read_text())
assert card["cardId"] == "BP-020" and card["selectedArtCandidate"] == "candidate-03"
assert card["artSHA256"] == digest(REPO / card["art"])
subprocess.run([sys.executable, str(HERE / "build-selected.py")], check=True)
trial = json.loads((HERE / "selected-validation.json").read_text())
assert trial["candidate"] == "gated-contrast" and trial["art"]["sha256"] == card["artSHA256"]
report = json.loads(VALIDATION.read_text())
assert report["status"] == "passed" and report["finishRecipe"]["id"] == "raw-ridges-v1"
assert report["inputs"]["art"]["sha256"] == card["artSHA256"]
BASELINE.mkdir(exist_ok=True)
backup_report = BASELINE / "build-validation-raw-ridges.json"
if backup_report.exists():
old = json.loads(backup_report.read_text())
assert old["finishRecipe"]["id"] == "raw-ridges-v1"
assert old["inputs"]["art"]["sha256"] == card["artSHA256"]
else:
shutil.copyfile(VALIDATION, backup_report)
changes = {}
for printing in PRINTINGS:
changes[printing] = {}
for export in report["printings"][printing]["exports"]:
label = export["resolution"]
width = WIDTHS[label]
target = REVISION / label / printing / "finish-mask.png"
source = HERE / "selected" / f"{printing}-{width}-finish-mask.png"
assert digest(target) == export["files"]["finish-mask.png"]
assert digest(source) == trial["printings"][printing]["files"][str(width)]["sha256"]
backup = BASELINE / f"{printing}-{width}-raw-ridges-finish-mask.png"
if backup.exists():
assert digest(backup) == digest(target)
else:
shutil.copyfile(target, backup)
old_sha = digest(target)
shutil.copyfile(source, target)
new_sha = digest(target)
assert new_sha == digest(source)
export["files"]["finish-mask.png"] = new_sha
changes[printing][str(width)] = {"baselineSHA256": old_sha, "selectedSHA256": new_sha}
for unchanged in ("card.png", "text-mask.png"):
unchanged_path = REVISION / label / printing / unchanged
assert digest(unchanged_path) == export["files"][unchanged]
old_recipe = report["finishRecipe"]
report["finishRecipe"] = {
"id": "ezekiel-gated-contrast-trial-v1",
"status": "user-selected for working assembly; final card and moving-light approval pending",
"userDirection": "Let's try the contrast one",
"trialRecipe": "review/finish-mask-trial-01/gated-trial.json",
"trialRecipeSHA256": digest(HERE / "gated-trial.json"),
"ridgeMap": "review/finish-mask-trial-01/gated-contrast-ridges-2000.png",
"ridgeMapSHA256": digest(HERE / "gated-contrast-ridges-2000.png"),
"trialBuilderSHA256": digest(HERE / "build-gated.py"),
"compilerSHA256": digest(HERE / "build-selected.py"),
"basePaneRecipe": old_recipe,
"baselineBuildValidation": "review/finish-mask-trial-01/baseline/build-validation-raw-ridges.json",
}
card["finishMaskSelection"] = {
"id": "ezekiel-gated-contrast-trial-v1",
"by": "user",
"note": "Let's try the contrast one",
"status": "working assembly trial; final visual approval pending",
"recipe": "review/finish-mask-trial-01/gated-trial.json",
}
save(CARD, card)
report["inputs"]["cardSHA256"] = digest(CARD)
report["visualReview"] = {"static": "contrast mask selected for assembly review", "movingLight": "not performed"}
report["finishMaskSelection"] = {"status": "trial selected", "changes": changes}
save(VALIDATION, report)
save(HERE / "installation.json", {
"status": "selected for BP-020 v01 working assembly, not final card approval",
"userDirection": "Let's try the contrast one",
"artSHA256": card["artSHA256"],
"baselineValidationSHA256": digest(backup_report),
"selectedTrialValidationSHA256": digest(HERE / "selected-validation.json"),
"changes": changes,
"cardFacesAndTextMasks": "unchanged and hash-verified",
"movingLightReview": "not performed",
})
print("BP-020 v01: gated-contrast finish maps selected for 12 working-assembly exports; card faces/text masks unchanged.")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,67 @@
{
"status": "selected for BP-020 v01 working assembly, not final card approval",
"userDirection": "Let's try the contrast one",
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"baselineValidationSHA256": "bf92206bba6cb35a740fe35f7179eaa8e18b170d972891d6920471711137f0c9",
"selectedTrialValidationSHA256": "cdf199667bb7376e1f509c78ac937d326011e6f68d2f10c690896d040498c7e7",
"changes": {
"normal": {
"500": {
"baselineSHA256": "53426954cf77d3f159094b2ea519dcc3fbe19ea3dad6c5328739de1c26658e1a",
"selectedSHA256": "7564b955d69789b80d369f9d7c9febccdbf33198efbc17d46cdabc675edf8ef3"
},
"1000": {
"baselineSHA256": "4d128a7372d9bd7eb6641f45ad262193ccbd59687c1931efc416cd684fd07e81",
"selectedSHA256": "2358aba5bbf6f0d99184edba80b86dfbd3baa23fa522a3ab2811eb283dd89a7f"
},
"2000": {
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"selectedSHA256": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495"
}
},
"borderless": {
"500": {
"baselineSHA256": "24524b7b8532b3a32b7d7296a321af70606781de399341778eae85a2dc391d2f",
"selectedSHA256": "0959a4afbf52855044063c1fcb658ebe4c6486c099a5b70b6792ea44a80d928c"
},
"1000": {
"baselineSHA256": "c452b928406232dd5b65e267b79e3c5db4412c0b8bccf14031a580b5d78ddb07",
"selectedSHA256": "9f74bff26d65b86f886c5a0c19032944d53bddeb32cda37304dfd7a14fb2ecd2"
},
"2000": {
"baselineSHA256": "3e06efe55aee3a9fcc18b628fa4b67de98ac79686c7b6aae445400b1633418e1",
"selectedSHA256": "3af8157e0063a36c5442fbf954918bf641ca43998f867066acb46e4cbfe1f1af"
}
},
"textless": {
"500": {
"baselineSHA256": "7dee974fdfb8e558aec9dbe71c619aa49064d2c455fcbd69ce1a0e21b4342be6",
"selectedSHA256": "38670eda711f9d005092d5fcaf727141a498eee8f35287e9fcc9cc6838f943a0"
},
"1000": {
"baselineSHA256": "cb1c6623e02dc1184d012de6114c1b61246cbb06e5790dd984b14db63c4f2ce7",
"selectedSHA256": "509af845cc615a49d19926652848d8ce9b0677ee50600310c797fb3dcd4147a9"
},
"2000": {
"baselineSHA256": "b2be26eb1a64fed623f4526d2036b169e75b52ebab206caf5a10fec7824fb608",
"selectedSHA256": "8f0a51f7588bc406546c83c396ab518ee690ecd62673ce4b2d360f9848f0be2a"
}
},
"boundless": {
"500": {
"baselineSHA256": "df2f1c19f8ccd20a6e965f5d752623472dca86328325c2e99a5bfa3e1f413e16",
"selectedSHA256": "d1babb938e468a4a114fc693ef48084f0dc1e5f2754c5af391801a02ad056709"
},
"1000": {
"baselineSHA256": "7db3eeaf991f70fb316a86b876a3e860e61ad7c6bfb9b396be0cb6dc6d18a8ff",
"selectedSHA256": "39c5b961f56a517c9ece2ea1a038a334d53f3a26d764402089d1dcbda24fd129"
},
"2000": {
"baselineSHA256": "5edbf9ab5b956019616ff7a3b92f3eaf6892fc2620835bbb04026fb1c0ac819f",
"selectedSHA256": "c1addb4a9fe3d7c28dc22a075344a97661c5d6af10607595f7d9b7c85f931416"
}
}
},
"cardFacesAndTextMasks": "unchanged and hash-verified",
"movingLightReview": "not performed"
}

View File

@@ -0,0 +1,18 @@
{
"cardId": "BP-020",
"revision": "v01",
"decision": "provisional acceptance of the current contrast finish-mask trial",
"approval": {
"by": "user",
"note": "Let's approve for now",
"scope": "Keep the gated-contrast masks in Ezekiel's working assembly; this does not grant final card approval or authorize promotion."
},
"selectedFinishMaskRecipe": "ezekiel-gated-contrast-trial-v1",
"normal2000FinishMaskSHA256": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495",
"installationRecordSHA256": "2990d51a63ece1ea1798a0eeaa176f1140c93de9f3d19cb3254be2abe6922042",
"remainingReview": [
"Moving-light Foil and Holographic review was not performed.",
"Candidate 03 art-review caveats about title/hair overlap and warning-hand anatomy remain."
],
"finalCardApproval": null
}

View File

@@ -0,0 +1,18 @@
{
"status": "experimental; not production-selected",
"method": "Kuwahara 5x5 art, then 1.2px blurred luminance; eight-orientation opposed shoulders at 2/4/8/14px; contrast smoothstep .012-.055; darkness smoothstep .24-.54; original pane diagnostic and active Normal overlay/text alpha retained",
"sourceSHA256": {
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/pane-coverage.png": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/text/text-2000.png": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262",
"in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/filtered-art.png": "bc4a62040446b573244c42d10cc066a8ed6d9639164f4b2b63d6c1562a00ac5c"
},
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"outputs": {
"relaxed-ridges-2000.png": "b8c29b58d685df3d831912c462007b4b37d8f201ba6e8a0fb24c8440b6b978cf",
"relaxed-normal-finish-2000.png": "803d7c8e23a8a0dc1b6f8d9034ceb0d5b86f55eeaad04441af7425a94b47148e",
"comparison-relaxed-500.png": "332d50024706a8437dca1009fd500a83292a51045a6212760c02fee21a5263b8"
},
"warning": "This changes approved extraction parameters and is only a separate visual trial. No production or runtime files have been replaced."
}

View File

@@ -0,0 +1,105 @@
{
"status": "structural checks passed; experimental mask trial only; not selected for production",
"candidate": "gated-contrast",
"art": {
"path": "in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png",
"sha256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22"
},
"ridgeMap": {
"path": "review/finish-mask-trial-01/gated-contrast-ridges-2000.png",
"sha256": "f29b6ffd6619ddcd1c41cb4ce7c33fdafd60aa408d8873b84842826f68dc4e4d"
},
"text": {
"path": "in-progress/cards/BP-020-ezekiel/revisions/v01/source/text/text-2000.png",
"sha256": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4"
},
"paneWeightSource": "Exact floating-point weights recomputed by approved prepare_illustration from unchanged art",
"printings": {
"normal": {
"overlay": "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png",
"usesText": true,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/normal-2000-finish-mask.png",
"sha256": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/normal-1000-finish-mask.png",
"sha256": "2358aba5bbf6f0d99184edba80b86dfbd3baa23fa522a3ab2811eb283dd89a7f"
},
"500": {
"path": "review/finish-mask-trial-01/selected/normal-500-finish-mask.png",
"sha256": "7564b955d69789b80d369f9d7c9febccdbf33198efbc17d46cdabc675edf8ef3"
}
},
"meanMasterCoverage": 0.4028
},
"borderless": {
"overlay": "artifacts/layers/uncommon/v3/exports/backing-borderless-2000.png",
"usesText": true,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/borderless-2000-finish-mask.png",
"sha256": "3af8157e0063a36c5442fbf954918bf641ca43998f867066acb46e4cbfe1f1af"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/borderless-1000-finish-mask.png",
"sha256": "9f74bff26d65b86f886c5a0c19032944d53bddeb32cda37304dfd7a14fb2ecd2"
},
"500": {
"path": "review/finish-mask-trial-01/selected/borderless-500-finish-mask.png",
"sha256": "0959a4afbf52855044063c1fcb658ebe4c6486c099a5b70b6792ea44a80d928c"
}
},
"meanMasterCoverage": 0.49064
},
"textless": {
"overlay": "artifacts/layers/uncommon/v3/exports/frame-textless-2000.png",
"usesText": false,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/textless-2000-finish-mask.png",
"sha256": "8f0a51f7588bc406546c83c396ab518ee690ecd62673ce4b2d360f9848f0be2a"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/textless-1000-finish-mask.png",
"sha256": "509af845cc615a49d19926652848d8ce9b0677ee50600310c797fb3dcd4147a9"
},
"500": {
"path": "review/finish-mask-trial-01/selected/textless-500-finish-mask.png",
"sha256": "38670eda711f9d005092d5fcaf727141a498eee8f35287e9fcc9cc6838f943a0"
}
},
"meanMasterCoverage": 0.59719
},
"boundless": {
"overlay": null,
"usesText": false,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/boundless-2000-finish-mask.png",
"sha256": "c1addb4a9fe3d7c28dc22a075344a97661c5d6af10607595f7d9b7c85f931416"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/boundless-1000-finish-mask.png",
"sha256": "39c5b961f56a517c9ece2ea1a038a334d53f3a26d764402089d1dcbda24fd129"
},
"500": {
"path": "review/finish-mask-trial-01/selected/boundless-500-finish-mask.png",
"sha256": "d1babb938e468a4a114fc693ef48084f0dc1e5f2754c5af391801a02ad056709"
}
},
"meanMasterCoverage": 0.68738
}
},
"checks": [
"2000/1000/500 dimensions",
"opaque grayscale RGBA",
"opaque overlay protection",
"opaque lettering protection",
"unchanged source art and card faces"
],
"staticReview": "pending user review of comparison sheets and mask detail",
"movingLightReview": "not performed",
"productionReplacement": false
}

View File

@@ -0,0 +1,18 @@
{
"status": "experimental; not production-selected",
"method": "ImageMagick Kuwahara 5x5 edge-preserving smoothing of fitted art, then unchanged raw-ridges-v1 ridge extractor; original pane weights and active Normal overlay/text alpha retained",
"source": {
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"paneSHA256": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"textSHA256": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"overlaySHA256": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262"
},
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"approvedRecipeSHA256": "23331ce56a717edb4e6f85956d11fdd98397009c4e6dd230d8c334c77571dd18",
"outputs": {
"smoothed-ridges-2000.png": "bc905f80a60915976e5cde02523b5ea1ad74b03c329aa5f395804266979a49dc",
"smoothed-normal-finish-2000.png": "9ffa4a058b6a5cab88a7ccf19e96c460e4dd26afedab07d6a2bb7b51e70d9e85",
"comparison-500.png": "2c7dc1001cdb84001c912c3b650defd1e24dd35d0b06817888f05dca2eb3a668"
},
"warning": "This is not the approved raw-ridges-v1 production path and has not had moving-light review. Pane weights are loaded from the prior 8-bit diagnostic for a fast comparison."
}

View File

@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig><dir>/home/dkzver/docker/sanctification/fonts</dir><cachedir>/home/dkzver/docker/sanctification/in-progress/cards/BP-020-ezekiel/revisions/v01/review/font-cache</cachedir></fontconfig>

View File

@@ -0,0 +1,32 @@
{
"status": "user-approved exact v01 assembly; moving-light finish review not performed",
"cardId": "BP-020",
"revision": "v01",
"artCandidate": "candidate-03",
"assembly": "Four printings at 2000, 1000 and 500px; structural builder and workspace validation passed.",
"typography": "The complete verse is present in three 76px lines on a card-local 1720px verse field. Lettering is contained by the opaque Normal and Borderless backings; title and reference are clear of ornaments.",
"staticVisual": "Four printing faces register structurally and are unchanged. The raw-ridges production mask was rejected for missing background seams and protecting robe/beard mottling. The user-selected gated-contrast working mask restores distant seams and reduces broad mottling in static comparisons; it has not been reviewed under moving light.",
"knownArtCaveats": [
"The opaque top panel cuts across the upper part of Ezekiel's hair in Normal and Borderless.",
"The open warning hand's overlapping digits remain anatomically ambiguous in the source art."
],
"movingLightReview": "not performed",
"finalCardApproval": {
"by": "user",
"note": "Let's move it in to final approval I want to see it in the harness",
"scope": "Exact BP-020 v01 assembled card with installed gated-contrast masks."
},
"finishMaskFinding": {
"workingMask": "ezekiel-gated-contrast-trial-v1",
"status": "accepted for BP-020 v01; moving-light unverified",
"baseline": "review/finish-mask-trial-01/baseline/",
"installation": "review/finish-mask-trial-01/installation.json",
"movingLight": "not performed"
},
"provisionalApproval": {
"by": "user",
"note": "Let's approve for now",
"scope": "contrast finish-mask trial in current working assembly only",
"record": "review/finish-mask-trial-01/provisional-approval.json"
}
}

View File

@@ -0,0 +1,81 @@
{
"status": "provisional typography preview; artwork unapproved; no production assembly",
"artCandidate": "03",
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"overlayVersion": "uncommon/v3",
"overlaySHA256": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262",
"title": "EZEKIEL",
"verseLines": [
"\u201cSon of man, I have made you a watchman for the",
"house of Israel. Whenever you hear a word from",
"my mouth, you shall give them warning from me.\u201d"
],
"reference": "Ezekiel 3:17 \u2022 ESV",
"wording": "Complete user-supplied verse; card.json unchanged.",
"fontSizes": {
"title": 112,
"verse": 76,
"reference": 57
},
"inkBounds": {
"title": [
762,
151,
1238,
229
],
"verse-0": [
167,
2286,
1835,
2365
],
"verse-1": [
192,
2381,
1808,
2460
],
"verse-2": [
151,
2476,
1846,
2555
],
"reference": [
769,
2601,
1232,
2645
]
},
"baselines": {
"title": 227.73749999999998,
"verse-0": 2342.3627500000002,
"verse-1": 2437.3627500000002,
"verse-2": 2532.3627500000002,
"reference": 2643
},
"nominalVerseRegion": [
160,
2260,
1680,
300
],
"verseHorizontalOverflow": {
"verse-0": {
"left": 0,
"right": 0
},
"verse-1": {
"left": 0,
"right": 0
},
"verse-2": {
"left": 9,
"right": 6
}
},
"layoutNote": "User accepted three lines for preview. The full quote narrowly exceeds the standard Uncommon verse field at the 76px minimum; this is not yet production-valid.",
"artCaveat": "Candidate 03 still has unresolved title/hair overlap and warning-hand anatomy review concerns."
}

View File

@@ -0,0 +1,11 @@
# Ezekiel typography prototype 02
Provisional three-line preview of the complete Ezekiel 3:17 (ESV) quotation on candidate 03 with the shared Uncommon v3 Normal overlay. This is a typography study only. Artwork and final assembly remain unapproved; `card.json` is unchanged.
- [Full-size preview](typography-prototype-02-2000.png) · [1000px preview](typography-prototype-02-1000.png) · [500px preview](typography-prototype-02-500.png)
- Title: P052 Bold, 112px. Verse: Sanctification P052 Medium, 76px. Reference: the same medium face, 57px.
- Three lines follow the user's preferred prototype direction. The shared Uncommon v3 layout ordinarily permits two.
- The last line's measured ink crosses the nominal verse field by 9px left and 6px right, although it remains within the cream backing. Production use needs a card-local fit decision and validation.
- Candidate 03's title-backdrop/hair overlap and warning-hand anatomy remain separate art-review concerns.
The generated bounds and input hashes are in [typography-prototype-02.json](typography-prototype-02.json). Rebuild with `python3 review/build-typography-prototype-02.py` from the revision directory.