Skip to content

Commit 47ad452

Browse files
committed
feat(effects): keyframe rows, timeline rows, and agent operations for Effect params (ADR-0063 leaves 3-4)
Every numeric Effect param renders through the shared KeyframeChannelRow (extracted from KeyframesSection with its logic in keyframe-channel-row.ts), so an Effect param keys exactly like an Overlay channel. Keyframed or welded Effects get an effect:<id> Timeline row: diamonds retime and delete, a welded bar drags its Cascade offset, an unwelded one does not. The four motion keyframe and Cascade operations accept an Effect subject, motion owns /state/effects/*/animation, appearance.set-effect-params refuses a change to a channel-owned param, and the vocabulary read lists one Effect's channels with bounds. The WebMCP browser eval derives its open-core list from the inventory; it had gone stale when validation and delivery became on-demand, and it passes again.
1 parent 9c66881 commit 47ad452

48 files changed

Lines changed: 1758 additions & 1296 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.dex/tasks.jsonl‎

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

‎docs/adr/0054-webmcp-operation-transaction-and-security-contract.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Status
44

5-
**Canon (built).** **Amended 2026-08-31:** the body opens on gfx.computer going public, which [ADR-0052](0052-public-runtime-and-retention-architecture.md) descoped that day. Nothing in the operation, transaction, or security contract depends on that: a browser agent authors through `document.modelContext` on whichever origin serves the app. **Amended 2026-09-02:** Chrome 153 is now the minimum WebMCP host; registration and execution cancellation use its separate signals, Chrome annotation hints ship, direct time units and nested runtime objects supplement the storage-native arguments, and one prepared authoring family at a time joins a bounded core tool menu. **Amended 2026-09-02 (later the same day):** registration no longer waits on the CanvasDrawElement capability gate, so a headless WebMCP browser without the renderer flag gets the same tools.
5+
**Canon (built).** **Amended 2026-08-31:** the body opens on gfx.computer going public, which [ADR-0052](0052-public-runtime-and-retention-architecture.md) descoped that day. Nothing in the operation, transaction, or security contract depends on that: a browser agent authors through `document.modelContext` on whichever origin serves the app. **Amended 2026-09-02:** Chrome 153 is now the minimum WebMCP host; registration and execution cancellation use its separate signals, Chrome annotation hints ship, direct time units and nested runtime objects supplement the storage-native arguments, and one prepared authoring family at a time joins a bounded core tool menu. **Amended 2026-09-02 (later the same day):** registration no longer waits on the CanvasDrawElement capability gate, so a headless WebMCP browser without the renderer flag gets the same tools. **Amended 2026-10-01 ([ADR-0063](0063-keyframed-effect-parameters.md)):** the four `motion` keyframe and Cascade operations accept an Effect subject, `motion` owns `/state/effects/*/animation`, `appearance.set-effect-params` refuses a write to a channel-owned param, and the vocabulary read lists one Effect's keyframe channels with their bounds. An Effect is a Cascade subject only, never an anchor.
66

77
Date: 2026-08-28
88

@@ -84,7 +84,7 @@ Read-only operations carry no revision requirement and record no history. Destro
8484

8585
**Undo and redo are shared.** Agent edits record into the same `CompositionEditHistory` the GUI uses, in one order. `gfx_composition_undo` undoes the most recent edit whoever made it. A separate agent history would let the two authors disagree about what "the last thing" was.
8686

87-
**Every mutating operation moves the Workspace focus** to the entity it touched — the Overlay it added, the Mark it retimed, the chart Block it filled. This is not decoration. It is how a person watching the screen sees what the agent did, and it is why the inventory requires a focus target on every `write` row. An operation whose subject can be more than one kind of element — a keyframe channel on the Surface, an Overlay, or a Block; a Cascade weld on any of the four anchorable entities — lists every target it may reveal, and the transaction core refuses one the row does not list. Listing one target for a multi-subject operation would force it to reveal an element it did not touch, which is the opposite of what this rule is for.
87+
**Every mutating operation moves the Workspace focus** to the entity it touched — the Overlay it added, the Mark it retimed, the chart Block it filled. This is not decoration. It is how a person watching the screen sees what the agent did, and it is why the inventory requires a focus target on every `write` row. An operation whose subject can be more than one kind of element — a keyframe channel on the Surface, an Overlay, a Block, or an Effect; a Cascade weld on any of the four anchorable entities or an Effect — lists every target it may reveal, and the transaction core refuses one the row does not list. Listing one target for a multi-subject operation would force it to reveal an element it did not touch, which is the opposite of what this rule is for.
8888

8989
**Progressive enhancement is one-directional.** With WebMCP absent or its Permissions Policy denied, the Workspace behaves exactly as it does today. Nothing in the GUI may depend on a tool being registered.
9090

Lines changed: 151 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,144 +1,153 @@
11
{
2-
"schemaVersion": 1,
3-
"generatedAt": "2026-09-02T21:05:39.449Z",
4-
"probe": "webmcp-agent-eval",
5-
"origin": "http://127.0.0.1:7364",
6-
"release": "gfx@20888f296f6b30cb29f4ed5cd50886a23de151e6",
7-
"harness": {
8-
"browser": "Chrome/153.0.8010.12",
9-
"protocolVersion": "1.3",
10-
"modelContext": true,
11-
"modelContextMembers": [
12-
"constructor",
13-
"executeTool",
14-
"getTools",
15-
"ontoolchange",
16-
"registerTool"
17-
],
18-
"secureContext": true,
19-
"canvasDrawElement": true,
20-
"exposureRefusal": null
21-
},
22-
"toolSchemaDigest": "bad09ae48dce5054ec4a79543e418863e224e5f4f5529731c00de1859d1827c4",
23-
"inventory": {
24-
"rows": 86,
25-
"agentTools": 84,
26-
"agentContext": ["capability.prepare-authoring-family"],
27-
"internalOnly": ["verification.render-frame", "verification.inspect-readable-text"]
28-
},
29-
"coldPage": {
30-
"registered": [
31-
"gfx_capability_inspect_limits",
32-
"gfx_capability_inspect_vocabulary",
33-
"gfx_composition_create_blank",
34-
"gfx_composition_create_from_starter",
35-
"gfx_composition_import_json",
36-
"gfx_composition_open",
37-
"gfx_session_inspect"
38-
],
39-
"ceiling": 9
40-
},
41-
"openComposition": {
42-
"slug": "untitled",
43-
"coreRegistered": [
44-
"gfx_capability_inspect_limits",
45-
"gfx_capability_inspect_vocabulary",
46-
"gfx_capability_prepare_family",
47-
"gfx_composition_create_blank",
48-
"gfx_composition_create_from_starter",
49-
"gfx_composition_export_json",
50-
"gfx_composition_import_json",
51-
"gfx_composition_inspect",
52-
"gfx_composition_open",
53-
"gfx_composition_set_identity",
54-
"gfx_delivery_export_video",
55-
"gfx_playhead_inspect",
56-
"gfx_playhead_seek_frame",
57-
"gfx_session_clear",
58-
"gfx_session_delete_composition",
59-
"gfx_session_inspect",
60-
"gfx_validation_inspect_findings"
61-
],
62-
"coreCeiling": 20,
63-
"disclosedCeiling": 35,
64-
"familyRegisteredCounts": { "transport": 21, "layer": 25, "content": 21, "transportAgain": 22 },
65-
"verificationToolsRegistered": []
66-
},
67-
"calls": {
68-
"vocabularyMembers": [
69-
"lower-third",
70-
"washi-tape",
71-
"watermark",
72-
"shader-fill",
73-
"cursor-trail",
74-
"counter",
75-
"instance-stack",
76-
"text-3d",
77-
"tweet-stack",
78-
"youtube-subscribe",
79-
"instagram-follow",
80-
"achievement",
81-
"source-url"
82-
],
83-
"staleWriteCode": "stale_revision",
84-
"appliedRevision": 1,
85-
"nestedContentRevision": 3,
86-
"reversibleFamilyRegistration": true,
87-
"exportedCharacterCount": 1017,
88-
"contentTrust": { "inspect": "untrusted", "exportJson": "untrusted" }
89-
},
90-
"framedDocument": {
91-
"frameRefusedByPolicy": false,
92-
"framedContextExposed": true,
93-
"toolsOwnedByFrame": [],
94-
"toolsOwnedByTopDocument": 22
95-
},
96-
"renderlessBrowser": {
97-
"harness": {
98-
"browser": "Chrome/153.0.8010.12",
99-
"protocolVersion": "1.3",
100-
"modelContext": true,
101-
"modelContextMembers": [
102-
"constructor",
103-
"executeTool",
104-
"getTools",
105-
"ontoolchange",
106-
"registerTool"
107-
],
108-
"secureContext": true,
109-
"canvasDrawElement": false,
110-
"exposureRefusal": null
111-
},
112-
"capabilityGateShown": true,
113-
"coldPageRegistered": [
114-
"gfx_capability_inspect_limits",
115-
"gfx_capability_inspect_vocabulary",
116-
"gfx_composition_create_blank",
117-
"gfx_composition_create_from_starter",
118-
"gfx_composition_import_json",
119-
"gfx_composition_open",
120-
"gfx_session_inspect"
121-
],
122-
"openCoreRegistered": [
123-
"gfx_capability_inspect_limits",
124-
"gfx_capability_inspect_vocabulary",
125-
"gfx_capability_prepare_family",
126-
"gfx_composition_create_blank",
127-
"gfx_composition_create_from_starter",
128-
"gfx_composition_export_json",
129-
"gfx_composition_import_json",
130-
"gfx_composition_inspect",
131-
"gfx_composition_open",
132-
"gfx_composition_set_identity",
133-
"gfx_delivery_export_video",
134-
"gfx_playhead_inspect",
135-
"gfx_playhead_seek_frame",
136-
"gfx_session_clear",
137-
"gfx_session_delete_composition",
138-
"gfx_session_inspect",
139-
"gfx_validation_inspect_findings"
140-
],
141-
"inspectRevision": 0
142-
},
143-
"failures": []
2+
"schemaVersion": 1,
3+
"generatedAt": "2026-10-01T22:16:21.367Z",
4+
"probe": "webmcp-agent-eval",
5+
"origin": "http://localhost:7366",
6+
"release": "gfx@effect-rows-eval",
7+
"harness": {
8+
"browser": "Chrome/154.0.8037.58",
9+
"protocolVersion": "1.3",
10+
"modelContext": true,
11+
"modelContextMembers": [
12+
"constructor",
13+
"executeTool",
14+
"getTools",
15+
"ontoolchange",
16+
"registerTool"
17+
],
18+
"secureContext": true,
19+
"canvasDrawElement": true,
20+
"exposureRefusal": null
21+
},
22+
"toolSchemaDigest": "ed3885fd12e2b0666406e41029a73076886461c9d1bfc78f187ac56c36fa374d",
23+
"inventory": {
24+
"rows": 96,
25+
"agentTools": 94,
26+
"agentContext": ["capability.prepare-authoring-family"],
27+
"internalOnly": [
28+
"verification.render-frame",
29+
"verification.inspect-readable-text"
30+
]
31+
},
32+
"coldPage": {
33+
"registered": [
34+
"gfx_capability_inspect_limits",
35+
"gfx_capability_inspect_vocabulary",
36+
"gfx_composition_create_blank",
37+
"gfx_composition_create_from_starter",
38+
"gfx_composition_import_json",
39+
"gfx_composition_open",
40+
"gfx_session_clear",
41+
"gfx_session_delete_composition",
42+
"gfx_session_inspect"
43+
],
44+
"ceiling": 9
45+
},
46+
"openComposition": {
47+
"slug": "untitled-2",
48+
"coreRegistered": [
49+
"gfx_capability_inspect_limits",
50+
"gfx_capability_inspect_vocabulary",
51+
"gfx_capability_prepare_family",
52+
"gfx_composition_create_blank",
53+
"gfx_composition_create_from_starter",
54+
"gfx_composition_export_json",
55+
"gfx_composition_import_json",
56+
"gfx_composition_inspect",
57+
"gfx_composition_open",
58+
"gfx_composition_set_identity",
59+
"gfx_playhead_inspect",
60+
"gfx_playhead_seek_frame",
61+
"gfx_session_clear",
62+
"gfx_session_delete_composition",
63+
"gfx_session_inspect"
64+
],
65+
"coreCeiling": 20,
66+
"disclosedCeiling": 35,
67+
"familyRegisteredCounts": {
68+
"transport": 19,
69+
"layer": 24,
70+
"content": 19,
71+
"transportAgain": 20
72+
},
73+
"verificationToolsRegistered": []
74+
},
75+
"calls": {
76+
"vocabularyMembers": [
77+
"lower-third",
78+
"washi-tape",
79+
"watermark",
80+
"shader-fill",
81+
"cursor-trail",
82+
"counter",
83+
"dimensional-type",
84+
"instance-stack",
85+
"text-3d",
86+
"tweet-stack",
87+
"youtube-subscribe",
88+
"instagram-follow",
89+
"achievement",
90+
"source-url"
91+
],
92+
"staleWriteCode": "stale_revision",
93+
"appliedRevision": 1,
94+
"nestedContentRevision": 3,
95+
"reversibleFamilyRegistration": true,
96+
"exportedCharacterCount": 1017,
97+
"contentTrust": { "inspect": "untrusted", "exportJson": "untrusted" }
98+
},
99+
"framedDocument": {
100+
"frameRefusedByPolicy": false,
101+
"framedContextExposed": true,
102+
"toolsOwnedByFrame": [],
103+
"toolsOwnedByTopDocument": 20
104+
},
105+
"renderlessBrowser": {
106+
"harness": {
107+
"browser": "Chrome/154.0.8037.58",
108+
"protocolVersion": "1.3",
109+
"modelContext": true,
110+
"modelContextMembers": [
111+
"constructor",
112+
"executeTool",
113+
"getTools",
114+
"ontoolchange",
115+
"registerTool"
116+
],
117+
"secureContext": true,
118+
"canvasDrawElement": false,
119+
"exposureRefusal": null
120+
},
121+
"capabilityGateShown": true,
122+
"coldPageRegistered": [
123+
"gfx_capability_inspect_limits",
124+
"gfx_capability_inspect_vocabulary",
125+
"gfx_composition_create_blank",
126+
"gfx_composition_create_from_starter",
127+
"gfx_composition_import_json",
128+
"gfx_composition_open",
129+
"gfx_session_clear",
130+
"gfx_session_delete_composition",
131+
"gfx_session_inspect"
132+
],
133+
"openCoreRegistered": [
134+
"gfx_capability_inspect_limits",
135+
"gfx_capability_inspect_vocabulary",
136+
"gfx_capability_prepare_family",
137+
"gfx_composition_create_blank",
138+
"gfx_composition_create_from_starter",
139+
"gfx_composition_export_json",
140+
"gfx_composition_import_json",
141+
"gfx_composition_inspect",
142+
"gfx_composition_open",
143+
"gfx_composition_set_identity",
144+
"gfx_playhead_inspect",
145+
"gfx_playhead_seek_frame",
146+
"gfx_session_clear",
147+
"gfx_session_delete_composition",
148+
"gfx_session_inspect"
149+
],
150+
"inspectRevision": 0
151+
},
152+
"failures": []
144153
}

‎docs/roadmap.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The capability and core parity arcs are complete. Dex carries executable edges.
6969

7070
15. **Pull production and research work by demand** — Resolve follow-ups, rubric research, Critic research, optional diagram polish, and rendering residuals remain valid but do not interrupt the ordered product runway.
7171

72-
16. 🔨 **Keyframed Effect parameters** — active (epic `fvfbrf8t`; [ADR-0063](adr/0063-keyframed-effect-parameters.md) amends [ADR-0035](adr/0035-generalized-keyframes-and-cascade.md) §3): an `effects[]` entry carries the same `animation` block an Overlay does; every numeric leaf of the Effect's params schema is a channel by dotted path, with seeds and simulation-kernel inputs frozen; the animation manifest drives those channels into the effect chain before `pack` runs, so there is one evaluator; every Effect Editor's numeric row becomes the shared keyframe row and the timeline gains an effect row; the `motion` operations accept an effect subject; frosted glass's grow and melt ramps become sugar over channels. Pack chrome, `depth-of-field`, and the Stage camera and focus stay on their own vocabulary and are the next consumers. Six ordered leaves, direct delivery, proven by the fixture `effect-keyframes-demo`. **Leaf 1 of 6 landed 2026-10-01** (`37uljr44`): the `animation` block on `effects[]`, channels derived from each params schema (`listEffectKeyframeChannels`), `frozenParams` on the seeded and simulation Effects, path-qualified channel validation, and the `effect:<id>` cascade node. **Leaf 2 landed 2026-10-01** (`h14kjao5`): the animation manifest writes `animState.effectChannels`, every frame request carries them, and the frame renderer substitutes them into authored Effects before Pack chrome on all three branches, so declared Effect channels now drive preview and export.
72+
16. 🔨 **Keyframed Effect parameters** — active (epic `fvfbrf8t`; [ADR-0063](adr/0063-keyframed-effect-parameters.md) amends [ADR-0035](adr/0035-generalized-keyframes-and-cascade.md) §3): an `effects[]` entry carries the same `animation` block an Overlay does; every numeric leaf of the Effect's params schema is a channel by dotted path, with seeds and simulation-kernel inputs frozen; the animation manifest drives those channels into the effect chain before `pack` runs, so there is one evaluator; every Effect Editor's numeric row becomes the shared keyframe row and the timeline gains an effect row; the `motion` operations accept an effect subject; frosted glass's grow and melt ramps become sugar over channels. Pack chrome, `depth-of-field`, and the Stage camera and focus stay on their own vocabulary and are the next consumers. Six ordered leaves, direct delivery, proven by the fixture `effect-keyframes-demo`. **Leaf 1 of 6 landed 2026-10-01** (`37uljr44`): the `animation` block on `effects[]`, channels derived from each params schema (`listEffectKeyframeChannels`), `frozenParams` on the seeded and simulation Effects, path-qualified channel validation, and the `effect:<id>` cascade node. **Leaf 2 landed 2026-10-01** (`h14kjao5`): the animation manifest writes `animState.effectChannels`, every frame request carries them, and the frame renderer substitutes them into authored Effects before Pack chrome on all three branches, so declared Effect channels now drive preview and export. **Leaves 3 and 4 landed 2026-10-01** (`tgoepmpb`, `ks28p600`): every numeric Effect param is a keyframe row in the inspector (the shared `KeyframeChannelRow`), keyframed or welded Effects get a Timeline row, and the four `motion` keyframe and Cascade operations take an Effect subject, so GUI and agent author the same tracks.
7373

7474
17. 🔨 **Orientation art-direction tools** — active (epic `78ojacf8`; [ADR-0039](adr/0039-pack-neutral-compositions-and-listing-hygiene.md) §4 amended 2026-09-23): reflow is authored, not automatic. One Preset still carries both orientations, and every element that affects layout or motion becomes art-directable per orientation through complete snapshots: Overlay and Diagram motion paths, the captions band, the filmed page anchor, optical Effect regions, an authored Chart frame, one consistent Customize horizontal / vertical control, and an audit of Surface layout decisions authors need to own.
7575

‎docs/user-composition-workflows.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ The Kinetic Word inspector also edits phrase membership, semantic reading order,
153153

154154
Agents prepare the owning family and use `gfx_layer_add_kinetic_word` / `gfx_layer_remove_kinetic_word`, `gfx_content_set_kinetic_word_text` / `gfx_content_set_kinetic_phrases`, `gfx_placement_set_kinetic_word_placement`, and `gfx_appearance_set_kinetic_word_appearance`. The motion family exposes the same generalized set/clear-channel operation for Kinetic Word Block ids `gfx_motion_set_kinetic_word_position_keyframe` for atomic X/Y playhead edits, and `gfx_motion_set_kinetic_word_glyph_stagger` for the per-glyph reveal delay. They take the observed Composition revision and return the same receipt, focus movement, validation, and shared undo entry as the GUI path. No tool clicks the Timeline or patches the Preset directly.
155155

156+
### Effect keyframes
157+
158+
Every numeric param in an Effect's inspector rows is a keyframe row ([ADR-0063](adr/0063-keyframed-effect-parameters.md)), the same row the Surface, Overlays, and Blocks use: the value at the playhead, then ◀ ◆ ▶, and the ease into the keyframe the playhead sits on. Without a track, typing a value edits the static param. The ◆ starts a track at the playhead from the current value, and from then on a typed value edits the keyframe at the playhead. Seeds and simulation inputs are frozen and show no ◆. An Effect with a channel or a Cascade weld gets its own Timeline row, labelled with the Effect's name. Its diamonds retime and delete like an Overlay's. An unwelded bar does not drag, because an Effect track counts from composition start; a welded bar drags its Cascade offset. Every row edit and drag is one undoable step.
159+
160+
Agents use the same `motion` operations with `subject: { kind: 'effect', effectId }`: `gfx_motion_set_keyframe_channel`, `gfx_motion_clear_keyframe_channel`, `gfx_motion_set_cascade_anchor`, and `gfx_motion_clear_cascade_anchor`. `gfx_capability_inspect_vocabulary` with `section: 'effect-type'` and an `effectType` lists that Effect's channels with their bounds and integer flag. `gfx_appearance_set_effect_params` refuses to change a param that carries keyframes and names the motion operations instead.
161+
156162
The one primary **Video track** lives beneath all five Layers in the Timeline. Drag a Media library entry there to create a Video clip. Clip body drag moves it; left trim changes Timeline start, duration, and Source start by the same frame delta; right trim changes duration; Alt/Option-drag inside slips Source time without moving the clip. Every commit lands on an integer output frame and clamps to composition bounds, neighboring half-open clips, and source coverage. The Timeline is the only surface for temporal creation, move, trim, slip, snapping, and Source-range feedback. Selecting a clip exposes only audio enabled/gain and removal in the Inspector; no duplicate numeric timing fields live in the rail. Video is not a sixth Layer and never appears in Add layer.
157163

158164
## Automated rendering

0 commit comments

Comments
 (0)