commit 017352a48b512eae8796b4c3b1c73d80a1c19f9c
parent 8383ab5f1607d430b877ac79fb0f3cfbeb24171c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 13 Nov 2026 02:04:16 -0500
umtool screens pin: the enforced lint, drawing refusals, warnings and new-read plan of round-1 screens pinned too
review round 1 (h): post-screens-pin2.test.mjs also hashes enforcedLint (with and without an
anonymous character), screenDrawErrors, validateThreadReadWarnings and threadReadPlan's pieces over
the same six items -- recorded at 8383ab5f, which the reviewer's d1.mjs shows identical to main.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
1 file changed, 82 insertions(+), 0 deletions(-)
diff --git a/umtool/report-to-video/post-screens-pin2.test.mjs b/umtool/report-to-video/post-screens-pin2.test.mjs
@@ -138,3 +138,85 @@ test("an item with round-1 screens and none of the round-2 keys draws, plans, ke
}
assert.deepEqual(now, PINNED);
});
+
+// THE LINT AND THE READ PLAN (review round 1, h): the build's enforced lint (with and without an anonymous character),
+// the drawing's refusals, the lint's thread-read warnings and what a NEW thread read would read, over the same items.
+// Recorded at 847224ed, which the reviewer's d1.mjs shows identical to main (7b8f5268) for every one of these.
+import { enforcedLint } from "./build-video.mjs";
+import { validateThreadReadWarnings } from "./post-thread.mjs";
+import { screenDrawErrors } from "./post-screens.mjs";
+import { threadReadPlan } from "../lib/report/postThreadRead.mjs";
+
+function lintOutputs(e) {
+ const render = { width: 1920, height: 1080, fps: 30, postNarration: { lead: 0.4 } };
+ const manifest = { schemaVersion: 1, slug: "x", title: "x", render, timeline: [e] };
+ const anon = { set: new Set(["secretkid"]), doc: { characters: [{ id: "kid", name: "Kid A", handles: ["secretkid"], anonymous: true }] } };
+ const plan = (() => {
+ try {
+ return threadReadPlan(manifest, e, {}).pieces.map((p) => ({ role: p.role, voice: p.voice, text: p.text, handle: p.handle ?? null, from: p.from ?? null }));
+ } catch (err) {
+ return `THROW ${String(err?.message ?? err)}`;
+ }
+ })();
+ return {
+ lint: sha(enforcedLint(manifest, { validators: false }, { cut: manifest, anonymity: { set: new Set(), doc: null } })),
+ lintAnon: sha(enforcedLint(manifest, { validators: false }, { cut: manifest, anonymity: anon })),
+ draw: sha(screenDrawErrors(e)),
+ warn: sha(validateThreadReadWarnings(manifest)),
+ readPlan: sha(plan),
+ };
+}
+
+const LINT_PINNED = {
+ "dmAndMail": {
+ "lint": "2ba45145f10cbcd18f9f78839ea156686d3df020",
+ "lintAnon": "2ba45145f10cbcd18f9f78839ea156686d3df020",
+ "draw": "97d170e1550eee4afc0af065b78cda302a97674c",
+ "warn": "0001f53272bdf6a9d6a211634657143bdae27be1",
+ "readPlan": "5d24f6279d52fe58d0c62dfe004d67d66f0a74c4"
+ },
+ "omitDim": {
+ "lint": "2ba45145f10cbcd18f9f78839ea156686d3df020",
+ "lintAnon": "2ba45145f10cbcd18f9f78839ea156686d3df020",
+ "draw": "97d170e1550eee4afc0af065b78cda302a97674c",
+ "warn": "0001f53272bdf6a9d6a211634657143bdae27be1",
+ "readPlan": "776b955f61f2c44bd2688daf06ed01375508b067"
+ },
+ "postShot": {
+ "lint": "cc2cb0cff41dc543477479108d2dbe20ecf90874",
+ "lintAnon": "cc2cb0cff41dc543477479108d2dbe20ecf90874",
+ "draw": "97d170e1550eee4afc0af065b78cda302a97674c",
+ "warn": "7e73eebe078bd9d686c660053fb87b5985f12789",
+ "readPlan": "e225065294fc39aeb38519833628fa25decc7b93"
+ },
+ "pictureOnly": {
+ "lint": "93089484fb1ad7bdc6005a5017337ba1e4a3ab89",
+ "lintAnon": "93089484fb1ad7bdc6005a5017337ba1e4a3ab89",
+ "draw": "97d170e1550eee4afc0af065b78cda302a97674c",
+ "warn": "b148a0c52437adc918dafda161cc7fe5c905c2e3",
+ "readPlan": "a3773d01cc3bb65d42a76f9667fa95515a6b028e"
+ },
+ "notNarrated": {
+ "lint": "8d3287fcb8a085b6302aa66fe06b2d945e6ffa41",
+ "lintAnon": "8d3287fcb8a085b6302aa66fe06b2d945e6ffa41",
+ "draw": "97d170e1550eee4afc0af065b78cda302a97674c",
+ "warn": "bcd16048b2c13d4d99a4061232aaa05fb2c8d1b3",
+ "readPlan": "5d24f6279d52fe58d0c62dfe004d67d66f0a74c4"
+ },
+ "lineTakes": {
+ "lint": "2ba45145f10cbcd18f9f78839ea156686d3df020",
+ "lintAnon": "2ba45145f10cbcd18f9f78839ea156686d3df020",
+ "draw": "97d170e1550eee4afc0af065b78cda302a97674c",
+ "warn": "0001f53272bdf6a9d6a211634657143bdae27be1",
+ "readPlan": "5d24f6279d52fe58d0c62dfe004d67d66f0a74c4"
+ }
+};
+
+test("the same items' enforced lint, drawing refusals, thread-read warnings and new-read plan are BYTE-IDENTICAL to main", () => {
+ const now = Object.fromEntries(Object.entries(FIXTURES).map(([k, e]) => [k, lintOutputs(e)]));
+ if (process.env.PIN_RECORD === "1") {
+ console.log(JSON.stringify(now, null, 1));
+ return;
+ }
+ assert.deepEqual(now, LINT_PINNED);
+});