Repository navigation
Description
Stage A of #1439. Filed by the lead agent, model claude-opus-5-5 via anthropic.
Plan: plan v2, section "Stage" (and Design 1-7), at #1439 (comment). The plan is authoritative; this restates it.
Builds (bench probe, no engine code, no new task or surface):
bench/blur_outside_mask.py: PIL + scipy, no new dependency. Grows the mask (default 12 px), feathers it (gaussian sigma 6), blurs the crop (sigma 20), and composites the sharp crop over the blurred one through the feathered mask. Usage goes in its docstring, likebench/erode_mask.py.bench/workflows/probe-1439-refprep.json: the arms as arguments. Masking (segment, Grounding-DINO + SAM2, promptperson) and scoring (analyze_face_drift,samples_per_shot: 16, as t26) may be separate runs.bench/records/ref-prep-blur.md+.jsonin the house shape: issue, plan, date, server commit, settings, the arm-1 path taken, thenclips[]with job/run ids, arm, seed, bleed label, SFace median/min.- Only if the verdict earns it: one line in
plugins/dw/skills/minimax-h3/references/per-character.md, with the plugin version bumped asplugins/dw/README.mdrequires.
Arms: 1, the reference as it is; 2, a square recenter_crop around the mask bbox centre at about 1.75x the subject box's longer side (head and shoulders kept, per #1193); 3, the arm-2 crop with the backdrop blurred by the script.
Arm 1 source (Don's ruling, Design 4): first re-run the #484 / #487 known-bleed shot exactly (job, get_job_workflow, assets, prompt, seed) if its inputs are still on lem. Arms 2-3 prepare its portrait(s) and change nothing else. Confirm the bleed reproduces before arms 2-3. If it doesn't, record that as a finding. Fallback (inputs gone or no reproduction): the v1 gate with new busy-backdrop pictures on templates/minimax/reference-to-video at defaults, two fixed seeds, a second picture if the first shows no bleed, then "not reproduced; drop" with no arm-2/3 jobs. The record says which path ran.
GPU cap: about 1.5 h of lem GPU. Past it, stop and record what ran. Prepare only the leaking portrait if that keeps it inside the cap. If Grounding-DINO/SAM2 are missing on lem, stop and ask; don't download.
Scoring: SFace against the original, unprepared picture. Bleed is judged by eye on get_output_frames (frames 0, 12, 24, 48 + mid), labelled none / framing / backdrop / both. A difference below the 0.03 encode floor is a tie. The verdict follows plan Design 7.
Owes: ruff clean. pytest tests/test_plugin_skills.py passes if the skill changes. No unit tests for the bench script.
Deploy: none to the server (it runs at the current lem commit). Plugin-only if the skill line lands.
Passes when the record satisfies the plan's acceptance intent (every job id resolves over MCP as a completed run with the stated seed and references; arm-1 path named; arm-2/3 assets exist; frame labels agree; SFace reproduces within 0.01; segmenter, crop numbers, blur settings, the five missing tasks, GPU time and verdict stated) and every pending: #<this issue> case the tester writes passes.
Activity
dkackman commentedon Nov 19, 2026
Progress (Claude Opus 5.5,
claude-opus-5-5, provider anthropic): branchfeat/1439-A-refprep-blur, pushed (bench/blur_outside_mask.py,bench/workflows/probe-1439-refprep.json).encanto-uprising, which no longer exists on lem; Skill notes from a 24-shot H3 musical: props vs actions, landmark direction, two-person lip-sync target, crowd age, reference leak, native 1344x768; Music3 ignores per-section singers #484 item 5 names no job id. Taking the fallback.asset:bench/1439/grocer.jpg, grocery-shop shelves) arm 1, seeds 14391 / 14392: jobsbee9c7bccd1c,57c092b9464e- no bleed at frames 0/12/24/48/62 (clean empty beach, full-figure wide framing from frame 0).asset:bench/1439/market.jpg, neon night market) arm 1 on the same seeds running:432ef37f69cd,c58224e7a012.feat(bench): #1460 - ref-prep blur record: not reproduced at one refe…
Merge feat/1439-A-refprep-blur: #1460 ref-prep blur bench
dkackman commentedon Nov 19, 2026
Hand-off (Claude Opus 5.5,
claude-opus-5-5, provider anthropic).What shipped:
develop@44126e05;feat/1439-A-refprep-blur:84467523(the script and the probe workflow) andc32ec17f(the record).603649f1.Outcome: not reproduced at one reference; drop. No arm-2/3 jobs ran and no skill line lands. That is the plan's fallback branch.
Plan items:
bench/blur_outside_mask.py:--grow 12,--feather 6and--blur 20;alpha*sharp + (1-alpha)*blurred;ruffclean. No unit tests, per the plan.bench/workflows/probe-1439-refprep.json: composestemplates/minimax/reference-to-videoat its defaults, withprompt,subject(the arm) andseedas arguments.bench/records/ref-prep-blur.md+.json:clips[]: job and run ids, arm, seed, bleed label, and SFace median/min.plugins/dwis unchanged, sotests/test_plugin_skills.pydoesn't apply.Results. Four arm-1 clips: two pictures by two seeds (14391, 14392). The bleed label is none on all four, judged at frames 0/12/24/48/62. SFace median/min against the original pictures:
bee9c7bccd1c57c092b9464e432ef37f69cdc58224e7a012The scores are low because the face is small in the full-figure wide shot.
Deviations from the plan:
encanto-uprising, which is gone from lem, and Skill notes from a 24-shot H3 musical: props vs actions, landmark direction, two-person lip-sync target, crowd age, reference leak, native 1344x768; Music3 ignores per-section singers #484 item 5 names no job id.asset:bench/1439/grocer.jpg, a grocery shop;asset:bench/1439/market.jpg, a neon night market.promptargument and stored in the JSON. Its voice line still names the template's male voice reference: an audio-only confound.inline_workflow. The file is new on this branch and not on lem's checkout. The scoring ran by name, asbench/t26-face-check.dkackman commentedon Nov 19, 2026
Architecture review queued by the loop driver: this hand-off changed
dw/ordw_mcp/ondevelop(603649f184..88cb46d97b: dw/model_use.py dw/plan_downloads.py dw/server/admission.py dw/server/api_models.py dw/server/job_record.py dw/server/jobs.py dw/server/routes/jobs.py dw/server/routes/library.py ). The reviewer checks it againstdocs/ARCHITECTURE.mdbefore the tester verifies.dkackman commentedon Nov 19, 2026
Architecture review: pass (reviewer, model
claude-opus-5-5viaanthropic).Read
git log 603649f1..88cb46d9, filtered first todw/anddw_mcp/and then to commits naming #1460. I checked the result againstdocs/stabilization/harness/stage-c-guardrails.mditem 3.dw/ordw_mcp/. The issue's commits are84467523andc32ec17f(merged in44126e05). They touch onlybench/blur_outside_mask.py,bench/workflows/probe-1439-refprep.jsonandbench/records/ref-prep-blur.{md,json}.dw/changes in the range are #1445 stage A: record and serve last_job_use per Hub repo (server) #1461's work, not this issue's. They all come from1b9eefbd(last_job_use) and should be reviewed under #1445 stage A: record and serve last_job_use per Hub repo (server) #1461.scipy.ndimage. Pillow and scipy are already inpyproject.toml(Pillow>=12.3.0,scipy>=1.18.1). Nothing is hand-rolled and no dependency is added.docs/ARCHITECTURE.mdrow is affected and noCLAUDE.mdchanged.No
arch-approvedwaiver was needed. Ownership stays with the tester for verification.dkackman commentedon Nov 19, 2026
Verified. Tester:
claude-opus-5-5viaanthropic. lem runs develop @ 603649f. Every check below is an MCP call I made this session in workspacebench.Repro and stage acceptance (cases marked
pending: #1460):bee9c7bccd1c(grocer, 14391),57c092b9464e(grocer, 14392),432ef37f69cd(market, 14391) andc58224e7a012(market, 14392).get_job_workflowon each showstemplates/minimax/reference-to-videoreceiving onlyprompt,subjectandseed. Everything else is the template default.list_jobs(bench)holds only the two FLUX pictures, the four clips and the four scoring jobs. There are no segment, crop, arm-2/3 or pair jobs.list_assets(prefix="bench/1439/")returns onlygrocer.jpgandmarket.jpg.get_output_framesat frames 0, 12, 24 and 48 on all four clips shows one figure on an open beach.noneon all four.assess_outputon each clip reports no findings except the knownfull_scalewarning (+0.78 dBFS) on432ef37f69cd, which is audio only.dde677150e51rananalyze_face_driftagainstasset:bench/1439/grocer.jpg(the original picture) withsamples_per_shot: 16. It gives median 0.211 and min 0.12 over 16/16 faces, matching the record.10ee2694f376). It gives median 0.191 and min 0.049, an exact match to the record. I deleted the re-score afterwards withdelete_output(job_id=...).none, and no arm-2/3 jobs.list_taskshas no blur, composite, mask-grow or mask-box-crop task. Only the existingsegment,recenter_cropandcrop_face_trackare there.per-character.mdandstaging.mdhave no new bench: do cropped, background-blurred reference pictures stop backdrop bleed on H3 Ref2VA? (Fantastic PromptBuilder RefMods) #1439, blur or backdrop rule.get_workflow("templates/minimax/reference-to-video", variables_only=true)shows it unchanged: onesubject, 960x544, 124 frames, 9 steps,{int4},seednull, and no prep variable.list_workflows(shape="shot")has no probe-1439 or RefPrep entry.I removed the
pending: #1460lines from M-F434 through M-F440.Caveat for whoever reads the SFace numbers: the re-score's notes say
market.jpg"holds 3 faces; the largest was used". The market picture isn't a single-face portrait, so its similarity scores are against the largest face. That doesn't change the bleed labels or the drop verdict.docs(proposals): #1439 - ref-prep blur design record (drop)