Repository navigation
Closed
Labels
featureWork bigger than a fix: designed with Don, built in stages (harnest R11)Work bigger than a fix: designed with Don, built in stages (harnest R11)owner:testerTester's turn to actTester's turn to actstageA child issue: one stage of a featureA child issue: one stage of a featurestatus:verifiedTester confirmed the fix via a real MCP callTester confirmed the fix via a real MCP call
Description
Stage B of #606. Plan v2, section Stage B (and Design 2–4): #606 (comment). The plan comment is authoritative. This body restates it.
Filed by the feature lead, claude-opus-5-5 (anthropic).
Builds
- Template
templates/ltx2/refine-in-place. Steps:normalize_audio, which refuses a silent source.- Size and length handling, decided at build time:
- If #602 stage A: fit_to_model and restore_to_source tasks #631 (idea: fit_to_model / restore_to_source - exact size and frame-count round-trip for v2v templates #602 stage A,
fit_to_model/restore_to_source) has landed: fit →selectladder →LTX2RefinePipeline→ restore →pair_audio. - If it hasn't:
refine-clip'sloop_framestrim →selectladder →LTX2RefinePipeline→pair_audio. Comment on #602 stage B: rewire upscale-clip and refine-clip through fit/restore #632 to put adopting fit/restore inrefine-in-placein its scope.
- If #602 stage A: fit_to_model and restore_to_source tasks #631 (idea: fit_to_model / restore_to_source - exact size and frame-count round-trip for v2v templates #602 stage A,
- The refine output is saved to
intermediate/, andfinal/gets the source soundtrack paired back. - The description says the route is unsourced: the vendor's "sharpen my clip" route is the Refine-Details IC-LoRA.
- The strength knob.
selectwithrule: "index"over N dict candidates{"sigmas": [...], "noise_scale": s0}, withindex: "variable:strength". The pipeline readsprevious_result:<step>.sigmas/.noise_scale.strengthis an integer 0..N-1: 0 preserve, N-1 reinterpret, default the middle ladder.- N is 3–5, as many ladders as lem tuning can separate.
- Each ladder has three sigmas, strictly decreasing, with no trailing 0, and
noise_scale == sigmas[0].
- The ladders are tuned on lem, not copied from vrgamedevgirl: at least two sources, each strength run, and frames judged with
get_output_frames. The chosen values and their job ids go in the hand-off comment. plugins/dw/skills/ltx-2.5/SKILL.md, kept terse (about 3.8 KB of headroom):- a routing line for same-size refine;
- "schedule not a knob" reworded to "except refine-in-place's
strength"; - the
noise_scale = sigmas[0]rule; - the
costlist.
- A
workflows/templates/ltx2/README.mdrow, and acostentry from the lem runs.
No engine code knows a ladder. refine-clip and two-stage are not changed.
Owes
- A
TestLtxRefineInPlacecatalog test: each candidate'snoise_scale == sigmas[0], sigmas strictly decreasing, no trailing 0, 3–5 candidates in preserve-to-reinterpret order. - A
TEMPLATE_PIPELINE_KEYSrow intests/test_step_cache.py. - A
COMPACT_BUDGETbump with its comment paragraph. - A
plugins/dwversion bump per its README. - If #602 stage A: fit_to_model and restore_to_source tasks #631 hadn't landed: the comment on #602 stage B: rewire upscale-clip and refine-clip through fit/restore #632.
Deploy
Server (template) + plugin.
Passes when
- Its own repro works: each
strengthrun on one asset gives output at the expected size, with the soundtrack infinal/. Lowest strength stays closest to the source and highest moves farthest. Run time is flat across strengths. - and every
pending: #<this issue>case the tester writes passes.
Metadata
Metadata
Assignees
Labels
featureWork bigger than a fix: designed with Don, built in stages (harnest R11)Work bigger than a fix: designed with Don, built in stages (harnest R11)owner:testerTester's turn to actTester's turn to actstageA child issue: one stage of a featureA child issue: one stage of a featurestatus:verifiedTester confirmed the fix via a real MCP callTester confirmed the fix via a real MCP call
Activity
dkackman commentedon Oct 6, 2026
Progress (claude-opus-5-5, anthropic): branch
feat/606-B-refine-in-place@ 6a389ef has the template with five ladders tuned on lem, plus the pipeline's AudioVideo unwrap and theselectindex hardening. Still to do: the catalog, step-cache and pipeline/select tests, SKILL.md, the README row, the plugin bump, the merge, the deploy and the hand-off.feat(ltx2): #639 - refine-in-place tests, skill routing and ladder ru…
Merge branch 'feat/606-B-refine-in-place' into develop (#639)
dkackman commentedon Oct 6, 2026
Hand-off from the feature lead, claude-opus-5-5 (anthropic).
Shipped:
develop@ a08d0fc, which mergesfeat/606-B-refine-in-place(6a389ef and its follow-up). Deploy:[deploy 09:33:18] deployed develop @ a08d0fc7, healthy, mcp=true.What it covers, by plan item (Stage B, plan v2)
templates/ltx2/refine-in-place. #602 stage A: fit_to_model and restore_to_source tasks #631 had landed, so it takes the fit/restore shape:ladder(select, ruleindex,index: variable:strength)source_audio(normalize_audio, which refuses a silent source before any pipeline loads)fitted(fit_to_model)refine(LTX2RefinePipeline, saved tointermediate/)restored(restore_to_source)with_source_audio(pair_audio, written tofinal/)strengthis an integer 0–4, default 2. There are five ladders, each with three sigmas, strictly decreasing, no trailing 0, andnoise_scale == sigmas[0].ltx-2.5SKILL.md got:strength)";workflows/templates/ltx2/README.mdrow.TestLtxRefineInPlaceintests/test_catalog_structure.py;TEMPLATE_PIPELINE_KEYSrow;COMPACT_BUDGETraised from 9,400 to 9,550 (measured at 9,460), with its paragraph.Tuned ladders and evidence. Frames were judged with
get_output_frameson two sources.noise_scale= first)ep64-shot-ltx-hal.mp4ep63-shot-ltx-priya.mp4Deviations
LTX2RefinePipeline.encode_videonow accepts a dwAudioVideo, taken as its frames.fit_to_modelreturns an AudioVideo, which has nolen(), so the stage A pipeline refused the template's directprevious_result:fitted.video. There is a unit test. Thevideodoc string onget_pipeline_signaturesays this.loop_framesadapter step between fit and refine. That step converts the frames to uint8 and back. The shipped template feeds the fit's float frames directly, so pixels can differ by at most 1/255 from the tuned runs. Nothing else in the template differs.vaecomponent is placed oncuda. Encoding with the VAE on CPU hit a bfloat16 CUDA/CPU mismatch.selectindex hardening. A non-whole index such as 2.5 or "two" is now refused with "select: index must be a whole number". 2.0 and "2" are accepted. The out-of-range message now names the range, e.g. "out of range for 5 candidates (0 to 4)". The old message text is a prefix of the new one.plugins/dwversion bump.plugins/dw/README.mdsays "the plugin's version is the engine's; the release script bumps both", so a stage bump would break that rule.No MCP shape changed, so this isn't a breaking change.
dkackman commentedon Oct 6, 2026
Architecture review queued by the loop driver: this hand-off changed
dw/ordw_mcp/ondevelop(4d4809569e..a08d0fc715: dw/community_pipelines/pipeline_ltx2_refine.py dw/tasks/select.py). The reviewer checks it againstdocs/ARCHITECTURE.mdbefore the tester verifies.28 remaining items
Merge branch 'feat/606-B-refine-in-place' into develop (#639)
docs(architecture): #639 - the task-domains row names select's index …
dkackman commentedon Oct 6, 2026
Re-hand-off after the architecture review's map finding, from the feature lead, claude-opus-5-5 (anthropic).
Shipped:
develop@ c5990a4, which mergesfeat/606-B-refine-in-place(docs commit on top of 9c9f950). Deploy:[deploy 18:16:06] deployed develop @ c5990a4a, healthy, mcp=true.The finding: the map row now names select's index rule. I edited row "Task argument domains" in
docs/ARCHITECTURE.md:select's index (select_index_problem,select_rule_problems: a whole number, at least 0, and below the candidate count when the count is known, i.e. at run time or whencandidatesis a written list)".tests/test_select_validation.py::TestSelectErrors::test_an_out_of_range_literal_index_names_both_ends.tests/test_architecture_map.pypasses, the fullpytestpasses (9389 passed), andruffis clean.No code changed since 0102565. The behavior is the same as in the last hand-off, including its disclosed deviation:
strength5 and -1 are both refused atvalidate_workflowwith "…out of range for 5 candidates (0 to 4)". Everything else in the earlier hand-offs still stands. This isn't a breaking change.dkackman commentedon Oct 6, 2026
Verified against lem develop @ 14663be (contains c5990a4). Tester: claude-opus-5-5 (anthropic).
M-F093 now passes. Its −1 message was the only failure last time. Source
asset:refine/src-512x288.mp4, workspaceregression-model-specific:strength: -1: refused atvalidate_workflow, atsteps[0].task.arguments.index: "select: index -1 is out of range for 5 candidates (0 to 4)." It names the value and both ends of the range, and it doesn't wrap.strength: 5: refused at validate with the same message for 5. This is the disclosed deviation: it used to fail in the select step. The case accepts either route, and no job was made.strength: 1.5: refused atarguments.strengthwith "strength 1.5 would be realized as 1…", so it isn't truncated.strength: "1": validates clean. My follow-up last round showed it coerced to 1, and that path didn't change.Re-checks after the select refactor, which also changed
select()at run time:strengthstill defaults to 2, the middle of N=5. The constraints on width/height (32*n+0) and num_frames (8*n+1, 9+) are unchanged.source_videowith strength 0 and with strength 4 each validate clean at 1.4 min (basis observed). The three strengths have the same estimate.asset:refine/src-512x288-silent.mp4validates clean.source_audio/normalize_audio: "asset:refine/src-512x288-silent.mp4 carries no audio track…".ladder, with no files.select()still picks the right ladder.intermediate/file (refine) and onefinal/file (with_source_audio).regression-perf/M-F095.jsonlbecause this was a partial re-run.I deleted both jobs. Every pending case passes, so I removed the
pending: #639line from M-F091 to M-F095 in harnestregression-suite-model-specific.md. Closing as verified.feat(ltx2): dkackman#639 - refine-in-place template with lem-tuned st…