commit 52bf93d301dac480ce1ca72d8a2195db75b9db21
parent 17f2a9c64e6c924bd5343ca6bf1ec1995150003f
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 17 Nov 2026 17:02:11 -0500
tuningStale never judges a value the line owns, takes included (review 1, SHOULD 3)
A line that asked only its own takes (5, its character's 4) recorded tuningAsked "preset" and
tuningOwn {takes: 5}; tuningStale compared 5 with 4 and listed it stale for ever, and every plain
press passed the 5 back. madeOf now says what the read's line owned (a take's tuningOwn, a thread
piece's read.tuned[role].tuning), and tuningStale leaves those values out of the comparison. `cast
stale`, the bench's count and the Reads page read the same rows (the agreement test still holds).
plainPressFresh.test.mjs test 2: re-read, picked, fresh; a sampler value it does not own still judged.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/umtool/lib/report/plainPressFresh.test.mjs b/umtool/lib/report/plainPressFresh.test.mjs
@@ -86,6 +86,11 @@ test("a line that owned its takes keeps them through a plain press (tuningOwn),
assert.equal(again.tuning.takes, 5);
assert.deepEqual(again.tuningOwn, { takes: 5 });
assert.equal(again.tuning.temperature, 0.75, "the character's sampler");
+ // REVIEW 1, SHOULD 3: a value the line owns is never judged against the character's -- picked, it is fresh (it was
+ // stale for ever before: 5 takes against the character's 4, passed back on every press).
+ await pick(p, 1);
+ assert.deepEqual(tuningStale(await read(p), resolverFor({ cast: castDoc(now) }), { settingTakes: 3 }), []);
+ assert.deepEqual(tuningStale(await read(p), resolverFor({ cast: castDoc({ ...LIVELY, temperature: 0.4, takes: 4 }) }), { settingTakes: 3 }).map((r) => r.id), ["p-7"], "the sampler it does not own is still judged");
});
test("an older take (no tuningOwn) asked true owns every recorded value; one recorded \"preset\" owns none (the known limit)", () => {
diff --git a/umtool/report-to-video/cast.mjs b/umtool/report-to-video/cast.mjs
@@ -838,11 +838,16 @@ export function madeOf(e, take, role = "post", seen = new Set()) {
const part = parts.find((p) => p?.role === role && typeof p?.take !== "string" && isObj(p?.tuning));
// Where it came from: the piece's own part says so (one asked its explicit defaults has a provenance and no tuning).
const said = parts.find((p) => p?.role === role && typeof p?.take !== "string" && p?.tuningAsked !== undefined);
+ // THE VALUES ITS LINE OWNED (lane reads-find, review 1): a thread piece's `read.tuned[role].tuning` (the read's own
+ // values for it), else the take's `tuningOwn` -- never judged against a character's (a plain press passes them back).
+ const tuned = isObj(take?.read?.tuned) && isObj(take.read.tuned[role]) ? take.read.tuned[role] : null;
+ const own = tuned ? (isObj(tuned.tuning) ? tuned.tuning : null) : role === "post" || !parts.some((p) => p?.role === role) ? (isObj(take?.tuningOwn) ? take.tuningOwn : null) : null;
return {
tuning: part ? part.tuning : isObj(take?.tuning) ? take.tuning : null,
// A thread read's part says where its own tuning came from; else the take does.
asked: said?.tuningAsked ?? part?.tuningAsked ?? take?.tuningAsked,
reading: Number.isInteger(take?.reading) ? take.reading : 0,
+ own,
};
}
@@ -875,6 +880,8 @@ function screenReadsOf(take) {
* where its tuning came from but records a SAMPLER value off the defaults was asked so (S1's flags; its takes are
* never looked at here: they record the editor's setting at the time, which may have changed since);
* a thread read's part that is another take answers as that take does (madeOf);
+ * - a value its line OWNS (the take's `tuningOwn`, a thread piece's `read.tuned[role].tuning`; lane reads-find) is
+ * never compared, its takes included;
* - the tuning it was made with (none recorded: the defaults) differs from the character's: the sampler's five
* values, each a default when unsaid; `takes` ONLY when the character names its takes (a read with none of its own
* records the editor's setting, `settingTakes`); the reading is never compared (a reading is a pick, not a setting).
@@ -899,7 +906,9 @@ export function tuningStale(manifest, resolve, { settingTakes = ORPHEUS_DEFAULT_
if (how.asked === true || (how.asked === undefined && off)) continue;
const wantT = characterTuningNormal(want.tuning);
const wantS = samplerOf(wantT);
- const differs = SAMPLER_FIELDS.some((k) => madeS[k] !== wantS[k]) || (wantT.takes !== undefined && (madeTakes ?? settingTakes) !== wantT.takes);
+ // A value the line OWNS (madeOf's `own`, takes included) is the line's, never the character's: not compared.
+ const owns = (k) => isObj(how.own) && typeof how.own[k] === "number";
+ const differs = SAMPLER_FIELDS.some((k) => !owns(k) && madeS[k] !== wantS[k]) || (!owns("takes") && wantT.takes !== undefined && (madeTakes ?? settingTakes) !== wantT.takes);
if (!differs) continue;
rows.push({
id: e.id, handle: handleKey(r.handle), role: r.role, character: want.character,