You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the long-form bench ledger, Task 10. look_hold in the LTX chain path.
Pickup can raise saturation.
The boost is skipped when the fed chroma is about 0.
An exposure ramp over 0.25 counts as a cut.
Faint edges under about 0.09 at 3 px count as texture.
Already done on #1235: the comment that last_luts is nearly first_lut.
Overlap: #1212 (LTX look_hold verification on mini-ai) and the pending look_hold default ruling in bench/records/ltx.md. Don't change the default here.
Split from #1235 (long-form deferred minors, Mac part, no H3) in Don's Claude Code session (model claude-opus-5-5 via provider anthropic). Found by the long-form bench (#1199). Verify each is still present before fixing.
triage: batch with #1241 — both edit the LTX chain path in dw/pipeline_processors/chain.py and verify on the same LTX chain run with check set; one deploy, one slow MPS verify. Don't change the look_hold default (pending ruling, #1212). (model claude-opus-5-5 via provider anthropic)
Partly fixed on develop (merge 22ea974; fix commit 4df2c4d). Model claude-sonnet-5-5, provider anthropic. The driver deploys develop to mini-ai after this session; I did not deploy. The look_hold default is untouched.
Per item (I read each against the code in chain_look.py):
Boost skipped when the fed chroma is about 0: fixed. The contrast and chroma gains are now learned separately. A greyscale keyframe no longer throws away the contrast boost measure, and the chroma gain stays 1.0. New test: test_a_greyscale_feed_still_learns_the_contrast_boost.
Pickup can raise saturation: not changed. The pickup deliberately matches the carried frame's chroma and tone, so a more saturated carried frame raises the opening's saturation. That is the match itself. I documented it in the pickup_grade docstring. Capping it would change what look_hold does, which is Don's ruling under #1199 stage 11: ltx2/chained-segments holds the look by default #1212.
Exposure ramp over 0.25 counts as a cut: not changed. I documented it as a known limit next to is_cut. Separating a ramp from a cut means changing the cut test, which needs a decision and a bench, not a quiet edit.
Faint edges under about 0.09 at 3 px count as texture: not changed. I documented the threshold in _detail. Moving it changes how much texture gets eased, so it is a tuning call that needs a bench.
The last three are open as documented limits. If you want any of them changed, say which and I'll open it as its own issue.
To verify: an LTX chain with look_hold flags that include precompensate, started from a near-greyscale keyframe. Pre-fix, precompensate never learned a contrast boost. Now it does. There is no breaking change.
Verify attempt on mini-ai (mps on mini-ai.lan, develop @ cad81c1). Model claude-opus-5-5 via provider anthropic. Incomplete: blocked, not bounced.
What I ran:
A greyscale keyframe: inline grade (saturation 0.0) on asset:uploads/turtle-cast/seed-frame.png, job ac93431f9f80.
templates/ltx2/chained-segments with that keyframe, look_hold: {"precompensate": true}, 3 segments × 49 frames, 512², seed 1242. Job ec98e746b5f4 succeeded with no warnings. Each seam logged look_hold corrected segment N (pickup, creep, texture, precompensate). assess_output(analyze_seams): seam 1 contrast_step -0.72 / saturation_step 0.12, seam 2 contrast_step 0.13 / saturation_step -0.92, no seam_frame_jump finding.
So: precompensate runs on a near-greyscale feed without error, and nothing blows up the chroma. But the item this fixes (a contrast boost is now learned when the fed chroma is about 0) can't be observed over MCP. No event, manifest field or assess probe reports the boost precompensate learned or divided out. The pre-fix and post-fix behaviour look the same from here. Filed #1251 to surface the applied gains, and linking it as a blocker.
Also found #1250: the object form {"precompensate": true} is folded to true (the realized variables show look_hold: true, and all four corrections ran) with no warning. That doesn't block this check, since precompensate ran either way. It does block isolating precompensate from pickup/creep.
The other three items (pickup raising saturation, an exposure ramp over 0.25 reading as a cut, faint edges under 0.09 reading as texture) were documented in code comments, not changed. None of that is served over MCP, so it is out of my reach. Their behaviour is unchanged by design, pending #1212.
Labels left as they are. This comes back to me once #1251 closes.
Verify on the mini-ai server (mps on mini-ai.lan, develop @ de61535). Model claude-opus-5-5 via provider anthropic. Not fixed: bouncing to the implementer.#1251 (now closed) made the learned gains visible in the seam log, so the item can be checked now.
What the fix promised (hand-off): on a greyscale feed the contrast boost is learned, and the chroma gain stays 1.0.
Repro:run_workflow("templates/ltx2/chained-segments", arguments={image: "output:grey_keyframe/20261107-195328-00ce62a2/grey_keyframe-grey.0-0.0.png", look_hold: true, segments: 3, num_frames: 49, width: 512, height: 512, seed: 1242}, workspace="default") ran as job fc6c5505666b and succeeded. The seam frames (get_output_frames(seams=true)) are greyscale at seam 1 and almost greyscale at seam 2, so the fed chroma is about 0, the case this fix covers. get_job_events(kinds=["log"]):
Chain seam 1/2: … precompensate divided out contrast 1.000, chroma 1.000 from the fed keyframe; measured opening/fed ratio contrast 1.000, chroma 0.845; running boost now contrast 1.000, chroma 0.845 …
Chain seam 2/2: … measured opening/fed ratio contrast 1.000, chroma 0.992; running boost now contrast 1.000, chroma 0.918 …
This is the reverse of what was promised. At both seams the contrast ratio is exactly 1.000. The chroma gain is learned from a near-zero fed chroma (0.845, then 0.918) when it should stay at 1.0. The #1251 verify (job 096e025b4c38, develop @ 6db8d96) logged the same values.
Control, colour keyframe: the same call without image (default keyframe, seed 1242) ran as job ff1a928761e7. There the contrast ratio is measured: contrast 0.984 at seam 1, 0.992 at seam 2 (running 0.988), with chroma 0.995 and 1.000. So contrast is learned on a colour feed. On a greyscale feed it is pinned at 1.000 and chroma is learned in its place. That suggests the near-zero-chroma guard is gating the contrast measure and not the chroma one, or the two are swapped.
The applied effect is small for now. Seam 2 divided out chroma 1.000 although the running chroma boost is 0.918, which looks like the [1, BOOST_MAX] clamp. But the item itself, "boost skipped when fed chroma is about 0", is not fixed for the contrast half, and the chroma half learns from a meaningless ratio.
The other three items (pickup raising saturation, exposure ramp > 0.25 counting as a cut, faint edges < 0.09 counting as texture) were documented, not changed, pending #1212. I did not re-test them.
triage: work — re-triage after the tester's bounce; the earlier batch with #1241 is over (#1241 is verified and closed). The fix is in PickupState.correct in dw/pipeline_processors/chain_look.py: the per-gain guard is f > _EPS, so a near-zero but nonzero fed chroma still yields a chroma ratio (0.845 in job fc6c5505666b). It needs a real 'about 0' floor. Also find out why the contrast ratio reads exactly 1.000 on a greyscale feed when it reads 0.984 on colour. Don't change the look_hold default (#1212). (model claude-opus-5-5 via provider anthropic)
Model claude-sonnet-5-5, provider anthropic. Fix 0de74974 on develop, pushed. The driver deploys it to mini-ai after this session; I did not deploy. The look_hold default is untouched. No breaking change.
Chroma half: fixed. The "about 0" guard on the fed frame's chroma was > 1e-4, so a near-grey keyframe with faint chroma (VAE residue, like the 0.845 / 0.918 ratios you saw) still produced a chroma ratio. The chroma gain now needs a fed mean chroma deviation above 0.01. Below that the chroma gain stays 1.0 and the seam log reports chroma 1.000. New test: test_a_near_greyscale_feed_does_not_learn_a_chroma_boost. It uses a faint tint, not exactly zero.
Contrast reading exactly 1.000 on a greyscale feed: not explained. I read the code and found nothing that gates the contrast measure on chroma. look() computes the luma spread independently, and the contrast ratio is opening spread over fed spread. The unit test with a greyscale feed learns contrast > 1.15. So I believe the 1.000 is the real measured ratio (the render kept the fed luma spread at 512² on that keyframe), not a swap. I could not confirm this without a run. If the contrast ratio still reads exactly 1.000 on greyscale after this deploy while a colour feed reads around 0.98, tell me and I'll dig into the render path.
To verify: the same greyscale-keyframe LTX chain with look_hold: true. Expect the seam log to show chroma ratio 1.000 and running chroma boost 1.000. Contrast should be whatever is measured.
Architecture review queued by the loop driver: this hand-off changed dw/ or dw_mcp/ on develop (0258d35d25..0de74974ec: dw/pipeline_processors/chain_look.py). The reviewer checks it against docs/ARCHITECTURE.md before the tester verifies.
Architecture review: pass. Model claude-opus-5-5, provider anthropic. I read git show 0de74974 (dw/pipeline_processors/chain_look.py) against item 3 of docs/stabilization/harness/stage-c-guardrails.md and docs/ARCHITECTURE.md. There are no findings.
Second owner: none. The change adds a per-gain floor (_CHROMA_FLOOR = 0.01) inside LookHold's ratio step. The map's "Chain look hold" row gives that step to chain_look.py, so the fix stays with its owner. It does not re-derive the measures of another module.
Build vs. buy: none. It is a threshold comparison on values already computed. No dependency in pyproject.toml applies.
The map: no update needed. The change adds no owner and moves no rule. The "Chain look hold" row still describes the module.
Context: the rationale is a comment next to the constant in chain_look.py, the module that owns it. Nothing is added to a CLAUDE.md.
There was no arch-approved label, and nothing needed waiving. I did not judge runtime behaviour, including the open question about contrast reading exactly 1.000 on greyscale. That is the tester's to check on the next verify.
Verified on the mini-ai server (mps on mini-ai.lan, develop @ ab29dfd, which contains 0de74974). Model claude-opus-5-5 via provider anthropic. Fixed.
Repro (the bounce's exact call):run_workflow("templates/ltx2/chained-segments", arguments={image: "output:grey_keyframe/20261107-195328-00ce62a2/grey_keyframe-grey.0-0.0.png", look_hold: true, segments: 3, num_frames: 49, width: 512, height: 512, seed: 1242}, workspace="default"). It ran as job fb586bf7bb79 and succeeded with no warnings. get_job_events(kinds=["log"]):
Chain seam 1/2: … measured opening/fed ratio contrast 1.000, chroma 1.000; running boost now contrast 1.000, chroma 1.000 …
Chain seam 2/2: … measured opening/fed ratio contrast 1.000, chroma 1.000; running boost now contrast 1.000, chroma 1.000 …
Before the fix, the same call logged chroma 0.845 / 0.918 (job fc6c5505666b). The chroma gain is no longer learned from a near-zero fed chroma.
Adjacent case: is the contrast ratio pinned at 1.000 on a greyscale feed? Same call with seed: 7, job 19ba336060a4:
Chain seam 1/2: … measured opening/fed ratio contrast 0.993, chroma 1.000; running boost now contrast 0.993, chroma 1.000 …
Chain seam 2/2: … measured opening/fed ratio contrast 0.994, chroma 1.007; running boost now contrast 0.993, chroma 1.004 …
On a greyscale feed, contrast is measured and learned (0.993). That resolves the open question: seed 1242's exact 1.000 is a real measurement for that render, not a gate. At seam 1 the fed frame is the grey keyframe, and chroma stayed at 1.000. At seam 2 the fed frame is segment 2's tail, and chroma was learned (1.007). I checked that frame with get_output_frames(seams=[2]), and it has clear colour (a green-yellow hat), so its fed chroma is above the floor and learning a chroma ratio there is correct.
The other three items (pickup raising saturation, an exposure ramp over 0.25 counting as a cut, faint edges under 0.09 counting as texture) were documented in code, not changed, pending #1212. MCP doesn't serve those code comments, so I didn't re-test them.
Both runs' outputs have been deleted. I added no regression case: this is a heuristic of one pipeline, and each check needs two LTX chain runs.
Activity
dkackman commentedon Nov 7, 2026
triage: batch with #1241 — both edit the LTX chain path in
dw/pipeline_processors/chain.pyand verify on the same LTX chain run withcheckset; one deploy, one slow MPS verify. Don't change thelook_holddefault (pending ruling, #1212). (modelclaude-opus-5-5via provideranthropic)fix(chain): #1242 - the look boost learns each gain on its own; docum…
Merge fix/1241-1242: #1241 #1242
dkackman commentedon Nov 7, 2026
Partly fixed on
develop(merge 22ea974; fix commit 4df2c4d). Modelclaude-sonnet-5-5, provideranthropic. The driver deploysdevelopto mini-ai after this session; I did not deploy. Thelook_holddefault is untouched.Per item (I read each against the code in
chain_look.py):test_a_greyscale_feed_still_learns_the_contrast_boost.pickup_gradedocstring. Capping it would change whatlook_holddoes, which is Don's ruling under #1199 stage 11: ltx2/chained-segments holds the look by default #1212.is_cut. Separating a ramp from a cut means changing the cut test, which needs a decision and a bench, not a quiet edit._detail. Moving it changes how much texture gets eased, so it is a tuning call that needs a bench.The last three are open as documented limits. If you want any of them changed, say which and I'll open it as its own issue.
To verify: an LTX chain with
look_holdflags that includeprecompensate, started from a near-greyscale keyframe. Pre-fix,precompensatenever learned a contrast boost. Now it does. There is no breaking change.dkackman commentedon Nov 7, 2026
Verify attempt on mini-ai (mps on mini-ai.lan, develop @ cad81c1). Model
claude-opus-5-5via provideranthropic. Incomplete: blocked, not bounced.What I ran:
grade(saturation 0.0) onasset:uploads/turtle-cast/seed-frame.png, jobac93431f9f80.templates/ltx2/chained-segmentswith that keyframe,look_hold: {"precompensate": true}, 3 segments × 49 frames, 512², seed 1242. Jobec98e746b5f4succeeded with no warnings. Each seam loggedlook_hold corrected segment N (pickup, creep, texture, precompensate).assess_output(analyze_seams): seam 1 contrast_step -0.72 / saturation_step 0.12, seam 2 contrast_step 0.13 / saturation_step -0.92, no seam_frame_jump finding.So: precompensate runs on a near-greyscale feed without error, and nothing blows up the chroma. But the item this fixes (a contrast boost is now learned when the fed chroma is about 0) can't be observed over MCP. No event, manifest field or assess probe reports the boost precompensate learned or divided out. The pre-fix and post-fix behaviour look the same from here. Filed #1251 to surface the applied gains, and linking it as a blocker.
Also found #1250: the object form
{"precompensate": true}is folded totrue(the realized variables showlook_hold: true, and all four corrections ran) with no warning. That doesn't block this check, since precompensate ran either way. It does block isolating precompensate from pickup/creep.The other three items (pickup raising saturation, an exposure ramp over 0.25 reading as a cut, faint edges under 0.09 reading as texture) were documented in code comments, not changed. None of that is served over MCP, so it is out of my reach. Their behaviour is unchanged by design, pending #1212.
Labels left as they are. This comes back to me once #1251 closes.
dkackman commentedon Nov 7, 2026
Verify on the mini-ai server (mps on mini-ai.lan, develop @ de61535). Model
claude-opus-5-5via provideranthropic. Not fixed: bouncing to the implementer. #1251 (now closed) made the learned gains visible in the seam log, so the item can be checked now.What the fix promised (hand-off): on a greyscale feed the contrast boost is learned, and the chroma gain stays 1.0.
Repro:
run_workflow("templates/ltx2/chained-segments", arguments={image: "output:grey_keyframe/20261107-195328-00ce62a2/grey_keyframe-grey.0-0.0.png", look_hold: true, segments: 3, num_frames: 49, width: 512, height: 512, seed: 1242}, workspace="default")ran as jobfc6c5505666band succeeded. The seam frames (get_output_frames(seams=true)) are greyscale at seam 1 and almost greyscale at seam 2, so the fed chroma is about 0, the case this fix covers.get_job_events(kinds=["log"]):This is the reverse of what was promised. At both seams the contrast ratio is exactly 1.000. The chroma gain is learned from a near-zero fed chroma (0.845, then 0.918) when it should stay at 1.0. The #1251 verify (job
096e025b4c38, develop @ 6db8d96) logged the same values.Control, colour keyframe: the same call without
image(default keyframe, seed 1242) ran as jobff1a928761e7. There the contrast ratio is measured: contrast 0.984 at seam 1, 0.992 at seam 2 (running 0.988), with chroma 0.995 and 1.000. So contrast is learned on a colour feed. On a greyscale feed it is pinned at 1.000 and chroma is learned in its place. That suggests the near-zero-chroma guard is gating the contrast measure and not the chroma one, or the two are swapped.The applied effect is small for now. Seam 2 divided out chroma 1.000 although the running chroma boost is 0.918, which looks like the
[1, BOOST_MAX]clamp. But the item itself, "boost skipped when fed chroma is about 0", is not fixed for the contrast half, and the chroma half learns from a meaningless ratio.The other three items (pickup raising saturation, exposure ramp > 0.25 counting as a cut, faint edges < 0.09 counting as texture) were documented, not changed, pending #1212. I did not re-test them.
Both runs' outputs have been deleted.
1 remaining item
dkackman commentedon Nov 7, 2026
triage: work — re-triage after the tester's bounce; the earlier batch with #1241 is over (#1241 is verified and closed). The fix is in
PickupState.correctindw/pipeline_processors/chain_look.py: the per-gain guard isf > _EPS, so a near-zero but nonzero fed chroma still yields a chroma ratio (0.845 in job fc6c5505666b). It needs a real 'about 0' floor. Also find out why the contrast ratio reads exactly 1.000 on a greyscale feed when it reads 0.984 on colour. Don't change thelook_holddefault (#1212). (modelclaude-opus-5-5via provideranthropic)fix(chain): #1242 - near-greyscale fed chroma below a floor is not le…
dkackman commentedon Nov 7, 2026
Model
claude-sonnet-5-5, provideranthropic. Fix0de74974ondevelop, pushed. The driver deploys it to mini-ai after this session; I did not deploy. Thelook_holddefault is untouched. No breaking change.Chroma half: fixed. The "about 0" guard on the fed frame's chroma was
> 1e-4, so a near-grey keyframe with faint chroma (VAE residue, like the 0.845 / 0.918 ratios you saw) still produced a chroma ratio. The chroma gain now needs a fed mean chroma deviation above 0.01. Below that the chroma gain stays 1.0 and the seam log reportschroma 1.000. New test:test_a_near_greyscale_feed_does_not_learn_a_chroma_boost. It uses a faint tint, not exactly zero.Contrast reading exactly 1.000 on a greyscale feed: not explained. I read the code and found nothing that gates the contrast measure on chroma.
look()computes the luma spread independently, and the contrast ratio is opening spread over fed spread. The unit test with a greyscale feed learns contrast > 1.15. So I believe the 1.000 is the real measured ratio (the render kept the fed luma spread at 512² on that keyframe), not a swap. I could not confirm this without a run. If the contrast ratio still reads exactly 1.000 on greyscale after this deploy while a colour feed reads around 0.98, tell me and I'll dig into the render path.To verify: the same greyscale-keyframe LTX chain with
look_hold: true. Expect the seam log to show chroma ratio 1.000 and running chroma boost 1.000. Contrast should be whatever is measured.dkackman commentedon Nov 7, 2026
Architecture review queued by the loop driver: this hand-off changed
dw/ordw_mcp/ondevelop(0258d35d25..0de74974ec: dw/pipeline_processors/chain_look.py). The reviewer checks it againstdocs/ARCHITECTURE.mdbefore the tester verifies.dkackman commentedon Nov 7, 2026
Architecture review: pass. Model
claude-opus-5-5, provideranthropic. I readgit show 0de74974(dw/pipeline_processors/chain_look.py) against item 3 ofdocs/stabilization/harness/stage-c-guardrails.mdanddocs/ARCHITECTURE.md. There are no findings._CHROMA_FLOOR = 0.01) insideLookHold's ratio step. The map's "Chain look hold" row gives that step tochain_look.py, so the fix stays with its owner. It does not re-derive the measures of another module.pyproject.tomlapplies.chain_look.py, the module that owns it. Nothing is added to aCLAUDE.md.There was no
arch-approvedlabel, and nothing needed waiving. I did not judge runtime behaviour, including the open question about contrast reading exactly 1.000 on greyscale. That is the tester's to check on the next verify.dkackman commentedon Nov 7, 2026
Verified on the mini-ai server (mps on mini-ai.lan, develop @ ab29dfd, which contains
0de74974). Modelclaude-opus-5-5via provideranthropic. Fixed.Repro (the bounce's exact call):
run_workflow("templates/ltx2/chained-segments", arguments={image: "output:grey_keyframe/20261107-195328-00ce62a2/grey_keyframe-grey.0-0.0.png", look_hold: true, segments: 3, num_frames: 49, width: 512, height: 512, seed: 1242}, workspace="default"). It ran as jobfb586bf7bb79and succeeded with no warnings.get_job_events(kinds=["log"]):Before the fix, the same call logged chroma 0.845 / 0.918 (job
fc6c5505666b). The chroma gain is no longer learned from a near-zero fed chroma.Adjacent case: is the contrast ratio pinned at 1.000 on a greyscale feed? Same call with
seed: 7, job19ba336060a4:On a greyscale feed, contrast is measured and learned (0.993). That resolves the open question: seed 1242's exact 1.000 is a real measurement for that render, not a gate. At seam 1 the fed frame is the grey keyframe, and chroma stayed at 1.000. At seam 2 the fed frame is segment 2's tail, and chroma was learned (1.007). I checked that frame with
get_output_frames(seams=[2]), and it has clear colour (a green-yellow hat), so its fed chroma is above the floor and learning a chroma ratio there is correct.The other three items (pickup raising saturation, an exposure ramp over 0.25 counting as a cut, faint edges under 0.09 counting as texture) were documented in code, not changed, pending #1212. MCP doesn't serve those code comments, so I didn't re-test them.
Both runs' outputs have been deleted. I added no regression case: this is a heuristic of one pipeline, and each check needs two LTX chain runs.