Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 07122c8d722b8668ea8f0413bdeca9327542c59c
parent fb2f4abb4862233dfa493758d2525f8a0b84d2ce
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed,  4 Nov 2026 05:22:25 -0500

common: a post item's `thread` object is its thread-read knobs, not a rail thread -- validateThreadEntries refused every post with a set-item thread.* knob ("timeline[n].thread must be a thread id"), so a take or cut with one could not build (the Mr. Obvious mid-5 and release-6 renders)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mcommon/lib/report/panels.mjs | 2++
Mumtool/report-to-video/threads.test.mjs | 4++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/common/lib/report/panels.mjs b/common/lib/report/panels.mjs @@ -169,6 +169,8 @@ export function validateThreadEntries(manifest) { const used = new Set(); (manifest?.timeline ?? []).forEach((e, i) => { if (e?.thread === undefined || e?.thread === null) return; + // A post item's `thread` OBJECT is its thread-read knobs (post-thread.mjs validatePostThread), not a rail thread. + if (e?.type === "post" && typeof e.thread === "object" && !Array.isArray(e.thread)) return; const where = `timeline[${i}] (${e.id ?? "?"}).thread`; if (typeof e.thread !== "string" || !e.thread) { errors.push(`${where} must be a thread id`); return; } if (e.type === "teaser") { errors.push(`${where}: a teaser belongs to no thread`); return; } diff --git a/umtool/report-to-video/threads.test.mjs b/umtool/report-to-video/threads.test.mjs @@ -82,6 +82,10 @@ test("entries: a listed thread, not on a teaser, and every thread used", () => { assert.match(errs, /nope is not in render\.chrome\.threads\.list/); assert.match(errs, /a teaser belongs to no thread/); assert.match(errs, /thread proof has no clip/); + // a post item's thread-read knobs share the key; they are not a rail thread (the Mr. Obvious mid-5 refusal, 4 Nov) + assert.deepEqual(validateThreadEntries({ render: RENDER, timeline: [...timeline, { id: "p-1", type: "post", thread: { parent: ["context"] } }] }), []); + assert.match(validateThreadEntries({ render: RENDER, timeline: [...timeline, { id: "c", type: "clip", thread: { parent: ["context"] } }] }).join(";"), /must be a thread id/); + assert.equal(threadOf({ type: "post", thread: { parent: ["context"] } }), null); assert.equal(threadOf({ thread: "bet" }), "bet"); assert.equal(threadOf({}), null); });