Skip to content

feat(reference-video-tools): mock unbuilt media slots with a fixed placeholder tool - #37

Merged
rponeawa merged 1 commit into
mainfrom
feat/reconstruction-placeholder-tool
Aug 22, 2026
Merged

rponeawa merged 1 commit into
mainfrom
feat/reconstruction-placeholder-tool

Conversation

@rponeawa

Copy link
Copy Markdown
Member

组件的媒体槽位声明为生成但本路由不 Build,比对 loop 仍要静帧。槽位必须 mock,且必须用固定工具——不能 hypit image 生成真图,不能 agent 手搓脚本。

make-placeholder(新 CLI 命令)

hypit-reference-video-tools make-placeholder --out slot.png --width 640 --height 360
hypit-reference-video-tools make-placeholder --out slot.mp4 --width 640 --height 360 --video --seconds 2
  • 确定性、免 Provider、免 VLM
  • PNG 默认;--video 用 ffmpeg 产短视频占位,--seconds 控时长(默认 1)
  • 比对时用 --question 把槽位区域声明为"有意占位、待 Build 填充",让观察员绕过,不再每轮报空槽

文档

  • reconstruction-loop.md:空槽差异不是修复目标 + 用固定工具 mock + --question 绕过
  • local-author-package.md:harness 不内置占位代码,从参数读占位路径
  • preview.md:still 渲染的空槽处理

两处顺带小改

  • 观察员提示词:明确全屏压暗/半透明层是覆盖内容,必须报告
  • KIE provider 默认并发 2→10

验证

  • pnpm check + 524 项测试全过
  • PNG 与 MP4 输出均实测有效

🤖 Generated with Claude Code

…aceholder tool

A component's media slots are declared as generations but not fillable on this
route, which never Builds. The comparison loop still needs a still, and mocking
the slot by hand (a generated picture, a hand-rolled placeholder script) was
both wasteful and unreliable.

make-placeholder now writes a correctly-sized, deterministic, Provider-free
placeholder for such a slot: a PNG by default, or a short solid-colour MP4 via
ffmpeg for a slot that only accepts video (--seconds sets its length, default
1). The comparison loop mocks the slot with it and scopes the comparison with
--question so the observer bypasses the region as an intentional placeholder
instead of reporting it every round. reconstruction-loop.md, local-author-
package.md and preview.md carry the rule: never `hypit image` for the mock,
never a script written by hand, the harness reads the placeholder path from its
arguments rather than shipping placeholder-drawing code.

Two small related fixes ride along:

- the visual observation prompt now names covering content explicitly — a
  wash, darkening, gradient or semi-transparent layer over the whole frame or a
  region is covering content and must be reported as such, so a darkened base
  behind an overlay is recognised rather than left to chance;
- the KIE provider's default concurrency is 10 instead of 2, used when a
  Runtime Profile omits defaultConcurrency.
@rponeawa
rponeawa merged commit 1271601 into main Aug 22, 2026
2 checks passed
@overlordkim
overlordkim deleted the feat/reconstruction-placeholder-tool branch August 26, 2026 08:06
overlordkim pushed a commit that referenced this pull request Sep 9, 2026
…tool

feat(reference-video-tools): mock unbuilt media slots with a fixed placeholder tool
overlordkim pushed a commit that referenced this pull request Sep 9, 2026
…tool

feat(reference-video-tools): mock unbuilt media slots with a fixed placeholder tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant