Archilyzer · Source

archilyzer

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

commit a45d216408adfe6d4c10abe314a5845ba0f31699
parent 524b66aa6e5417253911378f931b784beed1d6e5
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed,  4 Nov 2026 00:50:57 -0500

umtool: render.posts is shared -- the combo counter's validator refused the redaction's `redact` (and would `slurs`), so a cut with redacted words failed its lint on main (the Mr. Obvious cuts); it checks only its own key now and leaves the others to post-redact.mjs

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

Diffstat:
Mumtool/report-to-video/post-combo.mjs | 3++-
Mumtool/report-to-video/post-combo.test.mjs | 5+++++
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/umtool/report-to-video/post-combo.mjs b/umtool/report-to-video/post-combo.mjs @@ -418,7 +418,8 @@ export function validatePostComboRender(render) { const p = render?.posts; if (p === undefined || p === null) return []; if (!isObj(p)) return ["render.posts must be an object (its `combo` knobs)"]; - const errors = Object.keys(p).filter((k) => k !== "combo").map((k) => `render.posts.${k} is not a knob (combo)`); + // render.posts is shared: `redact` and `slurs` are post-redact.mjs's (validatePostsRender checks them). + const errors = Object.keys(p).filter((k) => !["combo", "redact", "slurs"].includes(k)).map((k) => `render.posts.${k} is not a knob (combo, redact, slurs)`); if (p.combo === undefined) return errors; if (!isObj(p.combo)) return [...errors, "render.posts.combo must be an object of knobs"]; return [...errors, ...knobErrors(p.combo, "render.posts.combo", Object.keys(COMBO_DEFAULTS))]; diff --git a/umtool/report-to-video/post-combo.test.mjs b/umtool/report-to-video/post-combo.test.mjs @@ -249,3 +249,8 @@ test("the sound's print: the same clip re-encoded matches, another sound does no p.done(); } }); + +test("render.posts is shared: the combo validator leaves redact and slurs to post-redact.mjs (a cut with redacted words built again)", () => { + assert.deepEqual(validatePostComboRender({ posts: { redact: [{ term: "Someone" }], slurs: { on: true }, combo: { on: true } } }), []); + assert.match(validatePostComboRender({ posts: { comb: {} } }).join(" "), /render\.posts\.comb is not a knob/); +});