Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

fix(skill): keep variants on validated base

rpone107e74c5b6a3
diff --git a/docs/guide/skill.md b/docs/guide/skill.md
index 42a71f6b..a4b3dab6 100644
--- a/docs/guide/skill.md
+++ b/docs/guide/skill.md
@@ -374,10 +374,10 @@ reference comparison; Studio is only a display handoff after deterministic check
2. If the batch will perform paid generation, check HypiHub OAuth first; when missing, explain and run `hypit auth login`, then `hypit runtime up`. Child agents do not repeatedly ask for login and may not bypass the environment gate with a credentialless path.
3. Every new package is completed once in staging: `package.json`, activation, Manifest, Types, Producers, Validators, Surface/decoder, Fragment, README and preview, plus package/graph/preview/layout validation. Freeze its digest before injecting it into children.
-The main agent makes global decisions before any child agent starts:
+The main agent makes global decisions before any child agent starts; variant expansion uses the validated base's complete SVML/SVS/SVRun and does not inspect repository examples:
```text
-baseline-validated → examples-inspected → format-plan-frozen → slate-drafted
+baseline-validated → base-inspected → format-plan-frozen → slate-drafted
→ vocabulary-enumerated → component-plan-frozen → package-gaps-classified
→ workload-disclosed → package-gaps-resolved → slate-frozen → projects-copied
→ variants-dispatched → variants-complete → aggregate-checked
@@ -387,7 +387,7 @@ baseline-validated → examples-inspected → format-plan-frozen → slate-draft
Tools and outputs are:
1. `variant_state start` records the base, count, request and delivery mode.
-2. `brief-intake.md`, examples and playbooks produce `format-plan.json`.
+2. Read the base project's complete sources, brief/route evidence and playbooks to produce `format-plan.json`; do not inspect repository examples.
3. The main agent writes distinct direction quotas in `slate.json`; their counts add up to N. Each direction carries a shared brief and allowed file scope. `variant_init` expands the quotas into numbered concrete variants when dispatching, so a 100-item batch does not require 100 hand-written briefs.
4. `list_svml_packages` and `inspect_svml_vocabulary` produce global vocabulary evidence and
`component-plan.json`.
@@ -414,7 +414,7 @@ The batch is intentionally “copy first, then edit”:
| Step | Main agent or child work | Tool or document | Durable result and reason |
|---|---|---|---|
| 1. Validate base | Confirm the parent creation/revision final gate and record its digest. | `route_state/revision_state reconcile`, `variant_state start` | Every child starts from the same known-good Film graph. |
-| 2. Decide the slate | Inspect examples, choose the expansion directions and quotas whose total is N, and freeze each direction's Format DNA and allowed scope. | `brief-intake.md`, `playbooks/index.md`, `format-plan.json`, `slate.json` | Creative directions are decided once globally; dispatch expands each quota into a unique numbered child brief. |
+| 2. Decide the slate | Use the validated base and the author's request to choose directions and quotas totaling N, and freeze each direction's Format DNA and allowed scope; do not inspect examples. | `playbooks/index.md`, base Source/brief, `format-plan.json`, `slate.json` | Creative directions are decided once globally; dispatch expands each quota into a unique numbered child brief. |
| 3. Decide vocabulary/workload | Inspect packages and public vocabulary, choose reuse/composition/new package, then disclose fast/medium/new-package counts. | `list_svml_packages`, `inspect_svml_vocabulary`, `component-plan.json`, `variant_state checkpoint` | The author knows the cost/time impact before agents start; no child discovers a package gap halfway through. |
| 4. Stage new packages | Develop each distinct local package once, validate it in staging, freeze its digest and mark it ready. | `route_state --route variant-package`, `local-author-package.md`, `validate_local_author_packages`, `preview_check`, `layout_check` | Shared package work is reused safely and cannot mutate installed packages. |
| 5. Copy the base | Clone the project with copy-on-write where possible, retain authored assets/source, remove generated state/results and old Build bindings, inject only ready packages. | `variant_init` | Each child is independent, reproducible and free of stale paid/generated artifacts. |
diff --git a/docs/zh/guide/skill.md b/docs/zh/guide/skill.md
index 7caf7fe0..fb248246 100644
--- a/docs/zh/guide/skill.md
+++ b/docs/zh/guide/skill.md
@@ -329,10 +329,10 @@ Revision 不调用 VLM 或参考比对;Studio 只是确定性检查通过后
2. 批次需要付费生成时,先检查 HypiHub OAuth;缺失时由 agent 说明并执行 `hypit auth login`,再运行 `hypit runtime up`。不要让每个子 agent 重复询问登录,也不能用无凭据路径绕过环境门禁。
3. 新包必须在 staging 中单独完成:`package.json`、activation、Manifest、Types、Producers、Validators、Surface/decoder、Fragment、README、preview,以及包/graph/preview/layout 验证;冻结 digest 后才能注入子项目。
-主 agent 在任何子 agent 启动前完成全局决策:
+主 agent 在任何子 agent 启动前完成全局决策;变体直接使用已验证母项目的完整 SVML/SVS/SVRun,不读取仓库 examples:
```text
-baseline-validated → examples-inspected → format-plan-frozen → slate-drafted
+baseline-validated → base-inspected → format-plan-frozen → slate-drafted
→ vocabulary-enumerated → component-plan-frozen → package-gaps-classified
→ workload-disclosed → package-gaps-resolved → slate-frozen → projects-copied
→ variants-dispatched → variants-complete → aggregate-checked
@@ -342,7 +342,7 @@ baseline-validated → examples-inspected → format-plan-frozen → slate-draft
具体工作和产物:
1. `variant_state start` 记录母项目、数量、请求和交付模式。
-2. `brief-intake.md`、examples 和 playbooks 生成 `format-plan.json`。
+2. 读取母项目完整 Source、brief/route 证据和 playbooks,生成 `format-plan.json`;不读取仓库 examples。
3. 主 agent 在 `slate.json` 中写出若干个不重复的变体方向和数量配额,所有配额之和正好为 N;每个方向声明共享 brief 和允许修改的文件范围。`variant_init` 在派发时再确定性展开成带编号的具体变体,因此 100 个变体不需要主 agent 手写 100 个 brief。
4. `list_svml_packages` 与 `inspect_svml_vocabulary` 形成全局词汇证据和 `component-plan.json`。
5. 工作量披露快速(只改 SVML)、中等(改 SVS/Run 或切换组件)和新包任务;每种新包只在 staging 开发一次,并以 digest 冻结。
@@ -363,7 +363,7 @@ baseline-copied → brief-frozen → change-scope-frozen → guidance-loaded
| 步骤 | 主 agent 或子 agent 的工作 | 工具或文档 | 持久化结果与作用 |
|---|---|---|---|
| 1. 验证母项目 | 确认父路线/Revision 已通过最终门禁并记录 digest。 | `route_state/revision_state reconcile`、`variant_state start` | 所有子项目从同一个已知良好的 Film graph 出发。 |
-| 2. 决定 Slate | 检查 examples,决定变体方向及数量配额(总和为 N),冻结每个方向的 Format DNA 和允许范围。 | `brief-intake.md`、`playbooks/index.md`、`format-plan.json`、`slate.json` | 创意方向一次全局决定;派发时按方向配额展开唯一编号的子项目。 |
+| 2. 决定 Slate | 根据已验证母项目和用户请求决定变体方向及数量配额(总和为 N),冻结每个方向的 Format DNA 和允许范围;不检查 examples。 | `playbooks/index.md`、母项目 Source/brief、`format-plan.json`、`slate.json` | 创意方向一次全局决定;派发时按方向配额展开唯一编号的子项目。 |
| 3. 决定词汇和工作量 | 检查包与公开词汇,决定复用/组合/新包,并披露快速、中等、新包数量。 | `list_svml_packages`、`inspect_svml_vocabulary`、`component-plan.json`、`variant_state checkpoint` | 子 agent 启动前用户就知道时间和成本影响,不会做到一半才发现缺包。 |
| 4. 预先开发新包 | 每个不同缺口只开发一次,在 staging 验证、冻结 digest、标记 ready。 | `route_state --route variant-package`、`local-author-package.md`、`validate_local_author_packages`、`preview_check`、`layout_check` | 多个变体安全复用同一个包,且不会修改安装包。 |
| 5. 先复制母项目 | 尽可能 copy-on-write,保留作者资产和 Source,删除生成状态/结果和旧 Build 绑定,只注入已 ready 的包。 | `variant_init` | 每个子项目独立、可复现,没有过期的付费产物或生成结果。 |
diff --git a/skills/hypit/SKILL.md b/skills/hypit/SKILL.md
index d6c9c2d5..db5ca1ad 100644
--- a/skills/hypit/SKILL.md
+++ b/skills/hypit/SKILL.md
@@ -248,11 +248,13 @@ invalid. Never commit `.env` or copy its secret values into route state, Source,
creation route.
- A request for many independent versions after reconstruction, original authoring or revision, or
from a validated existing project → read `references/variant-expansion/route.md`. The main agent
- inspects examples, freezes format/Slate/component decisions, enumerates vocabulary, discloses the
- fast/medium/new-package workload, and resolves package gaps before copying or dispatching variant
- agents. Initial presenter/product/brand adaptation attached to a reconstruction remains inside the
- reconstruction route; it is not Revision. Variant expansion defaults to mechanically checked
- Source and performs no visual review or paid Build unless the author explicitly requests outputs.
+ uses the validated base project's complete SVML/SVS/SVRun, freezes format/Slate/component decisions,
+ enumerates vocabulary, discloses the fast/medium/new-package workload, and resolves package gaps
+ before copying or dispatching variant agents. Do not inspect repository `examples/` on this route;
+ examples are only for an initial original-authoring request. Initial presenter/product/brand
+ adaptation attached to a reconstruction remains inside the reconstruction route; it is not Revision.
+ Variant expansion defaults to mechanically checked Source and performs no visual review or paid Build
+ unless the author explicitly requests outputs.
- If original authoring or reconstruction created a project-local package, wait until that route is
complete, read `references/package-promotion.md`, and judge whether the component has clear, high
reuse value across unrelated videos. Only when that bar is met, ask the author whether they want the
diff --git a/skills/hypit/references/variant-expansion/route.md b/skills/hypit/references/variant-expansion/route.md
index add81ab0..9a59875a 100644
--- a/skills/hypit/references/variant-expansion/route.md
+++ b/skills/hypit/references/variant-expansion/route.md
@@ -47,7 +47,7 @@ Use `--delivery-mode build` only when the author explicitly requested finished v
batch stages are:
```text
-baseline-validated → examples-inspected → format-plan-frozen → slate-drafted
+baseline-validated → base-inspected → format-plan-frozen → slate-drafted
→ vocabulary-enumerated → component-plan-frozen → package-gaps-classified
→ workload-disclosed → package-gaps-resolved → slate-frozen → projects-copied
→ variants-dispatched → variants-complete → aggregate-checked
@@ -75,19 +75,19 @@ project leaves this route and starts `../revision/route.md` with `--parent-route
`variant_check` after Revision has started. Later batch reconciliation validates the immutable check
that completed the original variant and does not reinterpret Revision edits as batch scope escape.
-## 2. Inspect examples and freeze format decisions
+## 2. Inspect the validated base and freeze format decisions
-**Read now:** `../brief-intake.md`, then inspect complete projects under the checkout's `examples/`
-directory when it exists. Recover intent, Hook, narrative development and the relationship between
-visuals, audio and text. README clone sets are useful evidence of the intended expansion pattern, but
-their Source, people, products, claims and assets are not templates.
+Do not inspect the checkout's `examples/` directory on this route. The validated base project's complete
+`main.svml`, Recipe Source, Run Source and persisted brief/route evidence are the authority for intent,
+Hook, narrative development and the relationship between visuals, audio and text. Reading an unrelated
+example here can replace the base's format with another project's implementation and confuse child agents.
**Read now:** `../playbooks/index.md`. Select each direction's format from its intent. Read the matching
format file named by that index completely and the craft files its footer names. Keep the base format
by default. A switch among ranking, street interview, podcast or another format is a high-change
direction and must be explicit in the plan.
-Persist `format-plan.json`. Each direction entry records its id, quota, example basis and digest,
+Persist `format-plan.json`. Each direction entry records its id, quota, base-project basis and digest,
playbook path, and frozen Format DNA: Hook, narrative progression, speaker/role grammar, layout system,
timing model, caption/overlay behavior, audio relationship and what must remain invariant. The
dispatch step carries that direction entry into each numbered child. Checkpoint
@@ -116,7 +116,7 @@ shared brief and allowed scope inherited by its concrete variants:
}
```
-The main agent chooses the directions from the examples and divides the requested count among them.
+The main agent chooses the directions from the validated base and the author's request, then divides the requested count among them.
`variant_init` expands each direction deterministically into numbered concrete variants (for example,
`ranking-host-01` through `ranking-host-20`) and persists each generated brief in that child's
`.hypit/variant-brief.json`. A child may make its concrete creative choice within the direction, but
@@ -238,8 +238,8 @@ projects and refuses conflicting destinations.
## 8. Dispatch variant agents in bounded waves
The main agent supplies each variant agent only its copied project and the fixed plan entry for its
-direction. The main
-agent, not the child, has already chosen examples, format, Format DNA, component strategy and scope.
+direction. The main agent, not the child, has already chosen the base-derived format, Format DNA,
+component strategy and scope.
Checkpoint `variants-dispatched` only after the agents have actually been assigned; route-state files
created by `variant_init` are not proof of dispatch.
@@ -252,8 +252,8 @@ Every variant agent reads:
4. `../authoring.md`, `../script-time.md` and `../preview.md`;
5. the assigned package README and inspection evidence.
-Checkpoint `guidance-loaded` after those reads. The agent does not rescan examples or replace the
-format/component decision.
+Checkpoint `guidance-loaded` after those reads. The agent does not scan examples or replace the
+base-derived format/component decision.
Vocabulary behavior is fixed: