diff --git a/apps/detail-agent-pi/src/candidate-review.mjs b/apps/detail-agent-pi/src/candidate-review.mjs index f65d298e..06ab4d1e 100644 --- a/apps/detail-agent-pi/src/candidate-review.mjs +++ b/apps/detail-agent-pi/src/candidate-review.mjs @@ -195,6 +195,8 @@ export async function reviewProductionCandidate({ wholeScreen ? '按企业 Skill 复核整屏,核对尺寸线、引线、标注是否对位,文字是否压住或被遮挡,以及图文是否协调。' : '检查本图位写入整屏后的叠层对位、文字遮挡和与同屏已有图文的关系。其余图位齐备后可做整屏复核。', + 'verdict 只评价候选图本身:商品结构、颜色、材质、构图、风格以及图内的文字和标识。同屏其他图位尚未回填、模板旧文案或旧参数尚未更新、叠层对比和对位等整屏问题,写入 imageIssues、overlayFixes、copyFixes 和 screenVerdict,不作为候选 verdict 的依据。', + '图内面积小、周围纹理简单的标识或污点(例如供样铭牌)可在采用后用画布原生修补去除。候选其余部分合格时,verdict 填 pass,recommendedAction 填 canvas_adjust,并在 canvasFixes 写明位置和处理方法。标识压在商品结构上或面积较大时记入 mustRedo。', example, '整屏问题使用 composite 中的 slotNumber、nativeLayerId 或 screenFieldNumber。找不到对应编号时用 location 描述。每项填写 issue 和 suggestion。', 'subjectBounds 是按放置后像素与边缘背景色差估测的画布坐标 [x,y,w,h],并已裁到可见图框。', diff --git a/apps/detail-agent-pi/src/skills/product-image-sources/SKILL.md b/apps/detail-agent-pi/src/skills/product-image-sources/SKILL.md index d1a909a7..71ef17d0 100644 --- a/apps/detail-agent-pi/src/skills/product-image-sources/SKILL.md +++ b/apps/detail-agent-pi/src/skills/product-image-sources/SKILL.md @@ -43,7 +43,7 @@ read_output_screen 默认提供当前成片、图层差异摘要及可见模板 ## 局部修补 -小标识、污点和杂物可用原生 `paint.remove` 局部修补。用 `read_output_screen` 找到目标,需要精确坐标时用 `region` 和 `zoom` 局部放大读刻度,也可结合 `subjectBounds` 或 `layer.subjectGeometry` 确认画布坐标。矩形或多边形用 `points` 表示,末点重复首点。智能对象用 `newLayer: true` 将补片保存为剪贴图层。 +小标识、污点和杂物可用原生 `paint.remove` 局部修补。验图回执的 `recommendedAction` 为 `canvas_adjust`、`canvasFixes` 指出这类标识时,可先采用候选再修补,不必为此重新生图。用 `read_output_screen` 找到目标,需要精确坐标时用 `region` 和 `zoom` 局部放大读刻度,也可结合 `subjectBounds` 或 `layer.subjectGeometry` 确认画布坐标。矩形或多边形用 `points` 表示,末点重复首点。智能对象用 `newLayer: true` 将补片保存为剪贴图层。 `native_call` 示例(用当前版本、图层 ID 和实际坐标替换示例值): diff --git a/apps/detail-agent-pi/test/candidate-review.test.mjs b/apps/detail-agent-pi/test/candidate-review.test.mjs index 419af136..e6988371 100644 --- a/apps/detail-agent-pi/test/candidate-review.test.mjs +++ b/apps/detail-agent-pi/test/candidate-review.test.mjs @@ -18,6 +18,9 @@ test('candidate review binds the candidate and separates shown fields from numbe assert.match(system,/checks 对象内的 templateStyle/u); assert.doesNotMatch(system,/checks\.templateStyle/u); assert.doesNotMatch(review.description,/checks\.templateStyle/u); + // Round 28: 88 of 90 candidates were sent back for unfinished neighbouring slots or a removable nameplate. + assert.match(system,/verdict 只评价候选图本身/u); + assert.match(system,/recommendedAction 填 canvas_adjust/u); const result={verdict:'pass',reason:'颜色与文案相符', screenVerdict:'needs_fix',screenSummary:'文案位置需调整',templateStyle:null, copyFixes:[{field:'颜色名称',issue:'位置偏低',suggestion:'向上移动'}]};