feat(archive): sync dossiers 48-70, 2026-11-28 wire harvest, zoology dossiers 65-69, and lecture transcripts
This commit is contained in:
1 parent
85c5bab5e7
commit
3b5bb057ef
79 files changed
+18063
-1415
No files matched your search
@@ -273,7 +273,15 @@ def render_md_and_pdf(rows, out_md: str, out_pdf: str):
|
||||
doc.build(story, onFirstPage=add_page_number, onLaterPages=add_page_number)
|
||||
|
||||
|
||||
def render_png(rows, out_png: str):
|
||||
def render_png(
|
||||
rows,
|
||||
out_png: str,
|
||||
header_title: str = "INGGLISH AQ ARCHIVE — MASTER BIDIRECTIONAL EVALUATION TIER LIST (S+ TO F)",
|
||||
header_subtitle: str | None = None,
|
||||
footer_text: str | None = None,
|
||||
write_atomic: bool = True,
|
||||
custom_tier_defs: list | None = None,
|
||||
):
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
|
||||
FONT_BOLD = "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"
|
||||
@@ -294,7 +302,7 @@ def render_png(rows, out_png: str):
|
||||
f_empty_bold = ImageFont.truetype(FONT_BOLD, 18)
|
||||
f_footer = ImageFont.truetype(FONT_REG, 15)
|
||||
|
||||
tier_defs = [
|
||||
default_tier_defs = [
|
||||
("S+", "95 – 100 pts", "APEX LOCK", "#FF4D4D", "0 Dossiers in Tier S+", ""),
|
||||
("S", "90 – 94 pts", "CANONICAL", "#FF7F7F", "0 Dossiers in Tier S", ""),
|
||||
("A", "81 – 89 pts [3⁴]", "STRUCTURAL", "#FFBF7F", "0 Dossiers in Tier A", ""),
|
||||
@@ -324,6 +332,7 @@ def render_png(rows, out_png: str):
|
||||
"Rejected by Post-Write Arithmetic Audit (100% of archive equations verified exact with 0 sum mismatches).",
|
||||
),
|
||||
]
|
||||
tier_defs = [tuple(t) for t in custom_tier_defs] if custom_tier_defs else default_tier_defs
|
||||
|
||||
W = 1960
|
||||
MARGIN_X = 28
|
||||
@@ -360,13 +369,18 @@ def render_png(rows, out_png: str):
|
||||
draw.line([(0, HEADER_H - 8), (W, HEADER_H - 8)], fill="#333640", width=2)
|
||||
draw.text(
|
||||
(MARGIN_X, 22),
|
||||
"INGGLISH AQ ARCHIVE — MASTER BIDIRECTIONAL EVALUATION TIER LIST (S+ TO F)",
|
||||
header_title,
|
||||
fill="#F5F6F8",
|
||||
font=f_title,
|
||||
)
|
||||
sub_str = (
|
||||
header_subtitle
|
||||
if header_subtitle
|
||||
else f"All {len(rows)} Dossiers ({tot_eqs} Verified Equations) | Graded on Option #4: Hybrid Numogrammatic Curve (Class S >= 90, Class A >= 81 [3⁴], Class B >= 72, C/D/F < 72)"
|
||||
)
|
||||
draw.text(
|
||||
(MARGIN_X, 68),
|
||||
f"All {len(rows)} Dossiers ({tot_eqs} Verified Equations) | Graded on Option #4: Hybrid Numogrammatic Curve (Class S >= 90, Class A >= 81 [3⁴], Class B >= 72, C/D/F < 72)",
|
||||
sub_str,
|
||||
fill="#A5AAB5",
|
||||
font=f_subtitle,
|
||||
)
|
||||
@@ -415,46 +429,86 @@ def render_png(rows, out_png: str):
|
||||
draw.rounded_rectangle([cx0 + 12, cy0 + 14, cx0 + 60, cy0 + 40], radius=5, fill="#15171C", outline=bg, width=1)
|
||||
draw_centered((cx0 + 12, cy0 + 14, cx0 + 60, cy0 + 40), c["rank"], f_card_rank, bg)
|
||||
|
||||
score_txt = f"{c['curve_score']}/100 (Raw {c['raw_score']})"
|
||||
score_txt = c.get("score_badge_text") or f"{c['curve_score']}/100 (Raw {c['raw_score']})"
|
||||
sb_w = 158
|
||||
draw.rounded_rectangle([cx1 - sb_w - 12, cy0 + 14, cx1 - 12, cy0 + 40], radius=5, fill="#15171C", outline="#454A59", width=1)
|
||||
draw_centered((cx1 - sb_w - 12, cy0 + 14, cx1 - 12, cy0 + 40), score_txt, f_card_rank, "#F0F2F5")
|
||||
|
||||
codes = f"Eval {c['eval_num']} • Dossier {c['dossier_num']}"
|
||||
draw.text((cx0 + 70, cy0 + 19), codes, fill="#9DA3B4", font=f_card_dossier)
|
||||
codes = c.get("badge_code") or f"Eval {c['eval_num']} • Dossier {c['dossier_num']}"
|
||||
draw.text((cx0 + 70, cy0 + 19), codes[:22], fill="#9DA3B4", font=f_card_dossier)
|
||||
draw.text((cx0 + 14, cy0 + 47), c["title"], fill="#FFFFFF", font=f_card_title)
|
||||
draw.line([(cx0 + 14, cy0 + 74), (cx1 - 14, cy0 + 74)], fill="#363A47", width=1)
|
||||
|
||||
draw.text((cx0 + 14, cy0 + 80), "• " + c["lock1"], fill="#FFD97D", font=f_card_lock)
|
||||
draw.text((cx0 + 14, cy0 + 99), "• " + c["lock2"], fill="#A8E6CF", font=f_card_lock)
|
||||
|
||||
stats = f"IsoW: {c['iso_w_pct']:.1f}% | PrimeW: {c['prime_ing_pct']:.1f}% | Mean|Δ|: {c['mean_delta']:.1f} | Pad: {c['pad_pct']:.1f}%"
|
||||
stats = c.get("stat_bar_text") or f"IsoW: {c['iso_w_pct']:.1f}% | PrimeW: {c['prime_ing_pct']:.1f}% | Mean|Δ|: {c['mean_delta']:.1f} | Pad: {c['pad_pct']:.1f}%"
|
||||
draw.rounded_rectangle([cx0 + 10, cy1 - 32, cx1 - 10, cy1 - 8], radius=4, fill="#1A1C23")
|
||||
draw.text((cx0 + 16, cy1 - 28), stats, fill="#CED3E0", font=f_card_stat)
|
||||
|
||||
cur_y += th + ROW_GAP
|
||||
|
||||
fy = H - FOOTER_H + 16
|
||||
foot_str = (
|
||||
footer_text
|
||||
if footer_text
|
||||
else "Rubric Dimensions (20 pts each): D1 = CMUdict Purity & Mean Clause Drift | D2 = Independent Domain-Native Collision Density | D3 = Repdigit & Prime Word Architecture (+Rarity Bonus) | D4 = Epistemological Fit | D5 = Anti-Padding Rate"
|
||||
)
|
||||
draw.text(
|
||||
(MARGIN_X, fy),
|
||||
"Rubric Dimensions (20 pts each): D1 = CMUdict Purity & Mean Clause Drift | D2 = Independent Domain-Native Collision Density | D3 = Repdigit & Prime Word Architecture (+Rarity Bonus) | D4 = Epistemological Fit | D5 = Anti-Padding Rate",
|
||||
foot_str,
|
||||
fill="#8C92A4",
|
||||
font=f_footer,
|
||||
)
|
||||
img.save(out_png, "PNG", optimize=True)
|
||||
if write_atomic:
|
||||
tmp_png = out_png + ".tmp"
|
||||
img.save(tmp_png, "PNG", optimize=True)
|
||||
os.replace(tmp_png, out_png)
|
||||
else:
|
||||
img.save(out_png, "PNG", optimize=True)
|
||||
|
||||
|
||||
def main():
|
||||
import json
|
||||
ap = argparse.ArgumentParser()
|
||||
ap.add_argument("--archive-dir", default="/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive")
|
||||
ap.add_argument("--rows-json", default=None, help="Optional pre-computed cohort JSON (e.g. Assemblage Builds from technocapital-singularity-zoology).")
|
||||
ap.add_argument("--header-title", default="INGGLISH AQ ARCHIVE — MASTER BIDIRECTIONAL EVALUATION TIER LIST (S+ TO F)")
|
||||
ap.add_argument("--header-subtitle", default=None)
|
||||
ap.add_argument("--footer-text", default=None)
|
||||
ap.add_argument("--skip-md", action="store_true", help="When --rows-json already generated custom Markdown, only compile PDF and PNG.")
|
||||
ap.add_argument("--out-md", default="/workspace/ingglish-hyperdope-gematria/dossier-bidirectional-eval-tier-list.md")
|
||||
ap.add_argument("--out-pdf", default="/workspace/ingglish-hyperdope-gematria/dossier-bidirectional-eval-tier-list.pdf")
|
||||
ap.add_argument("--out-png", default="/workspace/ingglish-hyperdope-gematria/dossier-bidirectional-eval-tier-list.png")
|
||||
args = ap.parse_args()
|
||||
|
||||
rows = collect_evaluations(args.archive_dir)
|
||||
render_md_and_pdf(rows, args.out_md, args.out_pdf)
|
||||
render_png(rows, args.out_png)
|
||||
if args.rows_json:
|
||||
with open(args.rows_json, "r", encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
rows = data["rows"] if isinstance(data, dict) and "rows" in data else data
|
||||
custom_tier_defs = data.get("tier_defs") if isinstance(data, dict) else None
|
||||
if not args.skip_md:
|
||||
render_md_and_pdf(rows, args.out_md, args.out_pdf)
|
||||
elif args.out_pdf and args.out_md and os.path.exists(args.out_md):
|
||||
# Compile PDF from existing custom Markdown via build_wire_report_pdf.py
|
||||
import subprocess, sys
|
||||
build_script = os.path.join(os.path.dirname(__file__), "build_wire_report_pdf.py")
|
||||
subprocess.run(
|
||||
[sys.executable, build_script, "--md", args.out_md, "--pdf", args.out_pdf, "--title", args.header_title],
|
||||
check=True,
|
||||
)
|
||||
render_png(
|
||||
rows,
|
||||
args.out_png,
|
||||
header_title=args.header_title,
|
||||
header_subtitle=args.header_subtitle,
|
||||
footer_text=args.footer_text,
|
||||
custom_tier_defs=custom_tier_defs,
|
||||
)
|
||||
else:
|
||||
rows = collect_evaluations(args.archive_dir)
|
||||
render_md_and_pdf(rows, args.out_md, args.out_pdf)
|
||||
render_png(rows, args.out_png)
|
||||
print(f"Ranked {len(rows)} evaluations -> {args.out_md}, {args.out_pdf}, {args.out_png}")
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user