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.

docs: define the Studio author mutation boundary

kashorinc2d21f95f61e
diff --git a/.agents/skills/hypit/references/preview.md b/.agents/skills/hypit/references/preview.md
index 35086a51..4d60631b 100644
--- a/.agents/skills/hypit/references/preview.md
+++ b/.agents/skills/hypit/references/preview.md
@@ -76,7 +76,7 @@ stops, so a Run that opens is a Run whose Tracks all resolved.
Contributor fixtures may provide a satisfied demonstration Run, but an ordinary installed
Distribution does not use its package directory as an author workspace.
-## A timeline block is not the authored Selection
+## A timeline block retains its authored Selection
Studio keeps three stages of an item's time apart, and reading one for another misreads the program:
@@ -91,6 +91,12 @@ Studio keeps three stages of an item's time apart, and reading one for another m
A projection line connects a source to its realized window, and the projection view is read-only.
`https://narratage.hypit.ai/guide/studio-temporal-windows` is authoritative for what each stage carries.
+When the executed lineage names a Selection or Moment, dragging the realized block may issue
+`timeline.adjust` against that shared semantic identity. Script owns the inverse from semantic Anchor
+identity back to markers, so every consumer follows the edit. This does not turn the block into a
+Selection or infer a source from matching frames. Derived schedule phases and missing lineage remain
+read-only.
+
Studio is a browser preview **for a person to look at**. It is not a source of images for an
automated comparison — that is what the local still render above is for.
diff --git a/docs/guide/studio-temporal-windows.md b/docs/guide/studio-temporal-windows.md
index 8eafe1c7..a5ae0095 100644
--- a/docs/guide/studio-temporal-windows.md
+++ b/docs/guide/studio-temporal-windows.md
@@ -77,22 +77,19 @@ passes that stable view to the adapter registry. Domain packages remain unaware
required link that is absent stays unresolved; adapters do not infer it from attribute names, Spec
type names, runtime id prefixes, labels or equal spans.
-## Timeline questions that remain deliberately open
-
-Before any drag or trim writeback is enabled, the product design must decide:
-
-1. Whether the three windows appear as nested geometry in one lane, separate linked sub-lanes, or
- an overlay revealed when an item is selected.
-2. How a point-like Moment and its duration-like projection are distinguished visually.
-3. How a shared Selection communicates the blast radius across all consuming Tracks.
-4. Whether the playhead/inspector selects the semantic source, projected window, consumed
- entity or terminal realization, and how the user moves between those levels.
-5. How component-internal schedules such as Ranking reveals expand without making the primary
- timeline noisy.
-6. Which drag gesture owns which level. Moving a semantic source, changing a projection offset and
- trimming a consumption window are different edits and must never be silently substituted.
-
-Direct absolute endpoints and authored durations may be rewritten when their exact source range is
-known. Selection/Moment bindings remain read-only from the downstream rectangle: editing a semantic
-source, changing a projection expression and changing a consumption parameter are distinct
-operations. The rule is simple: difficulty is acceptable; implicit guessing is not.
+## Timeline writeback
+
+Studio exposes two author mutations: `timeline.adjust` and `parameter.adjust`. Move and trim are
+gesture payloads of the former, not additional top-level operations. The concrete write target is
+resolved from the entity's executed lineage:
+
+- a Selection-backed rectangle moves or trims that shared Selection at Script's ordered semantic
+ Anchors, and every consumer follows it;
+- a Moment-backed entity moves the shared Moment point, while an independently authored duration
+ may still own its right edge;
+- direct absolute endpoints rewrite their exact Source ranges;
+- Segment, Program and component-derived schedule phases remain read-only without a declared inverse.
+
+This is an inverse over public identities, never an inference from equal frame spans. Component
+details such as Ranking reveals use attached lanes only when their Point/Window inputs were explicitly
+externalized. Invalid domain input is refused and the author mutation is rolled back.
diff --git a/docs/zh/guide/studio-temporal-windows.md b/docs/zh/guide/studio-temporal-windows.md
index 4fb2605a..1a770c9f 100644
--- a/docs/zh/guide/studio-temporal-windows.md
+++ b/docs/zh/guide/studio-temporal-windows.md
@@ -67,11 +67,13 @@ Point 和 Window 在 ABI 与 Inspector 中保持不同:Point 显示 `At`,Win
## 写回边界
-修改语义来源、修改投影表达式、修改消费参数是三种不同操作,不能互相替代。当前规则是:
+修改语义来源、修改绝对投影端点、修改消费参数仍是不同的作者目标,但 UI 只公开
+`timeline.adjust` 与 `parameter.adjust` 两种顶层操作。`timeline.adjust` 根据实体真实记录的 lineage
+选择唯一目标:
-- 作者直接写下、且 Studio 持有唯一源码范围的绝对 `start/end` 可以移动或裁切;
-- `at + for` 只允许修改明确的 duration;
-- Selection/Moment 引用产生的下游矩形不能自动反推并移动语义来源;
-- 修改共享语义来源必须作为独立的语义层操作展示影响范围,不能伪装成普通 clip drag。
+- 来源是 Selection:move/trim 修改 Script 中该 Selection 的 Anchor markers,全部消费者一起更新;
+- 来源是 Moment:move 修改该 Moment marker,显式 `for` 仍可单独 trim-end;
+- 来源是绝对 `start/end`:修改精确的 Window 端点;
+- Segment、Program、Schedule 派生阶段或链路缺失:保持只读。
-可以暂时只读,不能隐式猜测。
+这是沿公开身份做逆变换,不是按矩形帧数反推。不能隐式猜测。
diff --git a/packages/ranking/README.md b/packages/ranking/README.md
index eacdc499..9fa43426 100644
--- a/packages/ranking/README.md
+++ b/packages/ranking/README.md
@@ -36,14 +36,14 @@ copy.
```
Column separates placement from reveal time. `rank` determines the numbered row only. Every
-non-preset Item owns one Selection whose projected window is its preferred reveal interval; the
-Column resolves those sibling candidates into non-overlapping windows inside the container's
-Segment/Selection `during` span. Candidate time, child order and rank may all differ. A preset Item
+non-preset Item owns one Selection whose projected window is its reveal interval. Every sibling
+window must already be disjoint and contained by the container's Segment/Selection `during` span;
+invalid input is refused instead of clamped or rearranged. Reveal time, child order and rank may all differ. A preset Item
has no child `during` and is settled from the beginning of the outer window.
TierBoard and TopThree triggers and terminals are explicit `TemporalPoint` values. Column outer and
-reveal candidates remain `TemporalWindow` values. Ranking consumes those projections plus
-ProgramSpace and owns only the subsequent chronological or non-overlap schedule; it does not locate
+reveal inputs remain `TemporalWindow` values. Ranking consumes those projections plus
+ProgramSpace and owns only the subsequent visual schedule; it does not locate
Moment/Selection frames internally.
The Column's `frame` is the fixed left ranking rail; `canvas` supplies the independent coordinate