editorbrain 0.51.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editorbrain",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -17,7 +17,7 @@ Creating a project/link grants neither spending nor a storage-mode change.
17
17
 
18
18
  Start with `videos/<project-id>/project.json`, its brief/direction and the brand, style and output profile it selects. Discover IDs instead of assuming names. Understand goal, audience, language, format and available tools; preserve preferences and authorized exceptions. Resolve minor choices yourself; ask only about consequential uncertainty and continue independent work while waiting.
19
19
 
20
- When present, resolved `editorial.identity` or workflow `context.identity` holds the current confirmed brand fields. These supersede older values in preserved prose. Empty fields remain undecided; keep unrelated notes and do not restore superseded values.
20
+ When present, resolved `editorial.identity` or workflow `editorialSnapshot.identity` holds the current confirmed brand fields. These supersede older values in preserved prose. Empty fields remain undecided; keep unrelated notes and do not restore superseded values.
21
21
 
22
22
  Keep each project's brand context separate, including in batches. The project's saved
23
23
  brand wins over sidebar navigation or a previous chat task. Carry project/brand/style
@@ -81,9 +81,9 @@ Use `projects list` when needed and `pull --project <id>` for immediate context;
81
81
 
82
82
  Consult [workspace files](references/workspace-files.md) when changing schemas or resolving precedence; files merely present are not all included by `resolve`. Do not load every project, guide or reference each session. Preserve customized instructions.
83
83
 
84
- Read `check_workflow` at the start and relevant checkpoints before proposals, paid generation and full rendering. Precedence is current explicit request > project `reviewMode` > workspace default. `direct` means implement/review; `directions` means fitting alternatives with labelled evidence; `sample` means a representative customer-material preview and approval. Respect existing approval. Use motion when rhythm/sound needs review. Keep the shared editorial context and exact approved artifact/revision together. Record delivery and prior decisions through [visual evidence](references/workflow-evidence.md), without creating another stage system or mutating direction just to acknowledge a review. Preserve valid approvals and explicit direct mode. A read receipt, uploaded asset or generated HTML does not prove presentation. Before full production, inspect `projectProgress.readiness`; preview preparation and technical verification stay available. Do not label a full production preview to evade review.
84
+ Read `check_workflow` at the start and relevant checkpoints before proposals, paid generation and full rendering. Route with `--summary`/`detail: "summary"`; read the complete context once (`detail: "compact"`, the newer CLI default: `context.sameAs` names keys to read from `editorialSnapshot`) and reuse it while its versions match. Precedence is current explicit request > project `reviewMode` > workspace default. `direct` means implement/review; `directions` means fitting alternatives with labelled evidence; `sample` means a representative customer-material preview and approval. Respect existing approval. Use motion when rhythm/sound needs review. Keep the shared editorial context and exact approved artifact/revision together. Record delivery and prior decisions through [visual evidence](references/workflow-evidence.md), without creating another stage system or mutating direction just to acknowledge a review. Preserve valid approvals and explicit direct mode. A read receipt, uploaded asset or generated HTML does not prove presentation. Before full production, inspect `projectProgress.readiness`; preview preparation and technical verification stay available. Do not label a full production preview to evade review.
85
85
 
86
- Read `context.memory.confirmed` with its conditions and compare `context.contextVersion` before costly work; retrieve changed documents without overwriting local edits. Suggestions are not instructions, a receipt is not compliance, and prose memory does not bypass required tokens. A web change applies when queried, not by interrupting an active tool.
86
+ Read `editorialSnapshot.memory.confirmed` with its conditions and compare the workflow `context.contextVersion` before costly work; retrieve changed documents without overwriting local edits. Suggestions are not instructions, a receipt is not compliance, and prose memory does not bypass required tokens. A web change applies when queried, not by interrupting an active tool.
87
87
 
88
88
  When available, carry the common `editorialSnapshot` through every scene/tool handoff: tokens, language, output, captions, audio and memory. Compare its shared `contextVersion`; `executionContextVersion` also covers personal integrations. For registered samples, localized corrections and project-bound final-file checks, load [production continuity](references/production-continuity.md) on demand. Preserve unchanged work; samples and feedback belong to exact versions, not the whole account.
89
89
 
@@ -168,6 +168,10 @@ execution is authorized merely by pulling a style.
168
168
 
169
169
  CLI and MCP follow the same review conditions and canonical Studio renderer.
170
170
  MCP uses `prepare_review_artifact`; see [Studio without CLI](references/mcp-studio-artifact.md).
171
+ Use [Studio review](references/studio-review.md) for exact comparison clocks, image
172
+ points and measured word cuts. Open `preferences open` / `open_preferences_studio`
173
+ when the user asks to see preferences. Proposed changes and video likes never
174
+ confirm brand memory or apply preferences automatically.
171
175
  Do not skip the artifact because CLI is absent, duplicate existing approvals, or
172
176
  change cloud/local preferences to work around host limitations. State a missing
173
177
  capability honestly. Verify presentation, then record it; never reverse that order.
@@ -42,6 +42,10 @@ Keep one workflow and its approvals; cloud-only does not mean download locally.
42
42
  MCP uses `prepare_review_artifact` for the same Studio interface as CLI; read
43
43
  [Studio without CLI](references/mcp-studio-artifact.md) when preparing proposals
44
44
  or a review/delivery. A plain video/path is not a substitute for that artifact.
45
+ Use [Studio review](references/studio-review.md) for image/range comments, actual
46
+ version comparisons and preference proposals. When asked to see preferences, open
47
+ `preferences open` / `open_preferences_studio` for the selected project; nothing
48
+ is saved by a click or video approval.
45
49
 
46
50
  ## Enter at the current state
47
51
 
@@ -52,6 +56,12 @@ Use [first edit](references/first-edit.md) only for missing preparation and
52
56
  [onboarding](references/onboarding.md) only for missing preference configuration.
53
57
  Preserve customized instructions; installation does not prove the host read them.
54
58
 
59
+ Read the saved brand choices from «Cómo editas» in current context before editing.
60
+ «Que la IA decida» delegates unspecified creative decisions only: explicit choices,
61
+ avoid rules, sources, audio, review mode and spending permissions still apply.
62
+ A section confirmed in the web is not approval of a video. Project exceptions
63
+ stay with that project; never erase brand choices to enable automatic direction.
64
+
55
65
  Match a named brand/project to its saved ID through compact discovery. Never guess
56
66
  between duplicates, replace an existing brand, or borrow another workspace's
57
67
  context. New video: create its own project using the confirmed brand/style/output.
@@ -254,6 +264,12 @@ pending checks may be submitted for feedback; unknown evidence is not a pass.
254
264
  Report unverified dimensions honestly and mark final completion only after the
255
265
  required acceptance. An editing request needs the edit, not merely a plan.
256
266
 
267
+ After the final approval, apply the workspace's `afterApproval` preference from
268
+ workflow check: `ask` (default) asks once whether to keep only the final, `final_only`
269
+ removes local working files (`clean --project ID --intermediates --confirm`) while
270
+ EditorBrain removes cloud review previews, `keep` removes nothing. Originals and the
271
+ approved final are always kept. See [after the final approval](references/storage-and-previews.md#after-the-final-approval).
272
+
257
273
  ## Additional capabilities
258
274
 
259
275
  When asked about additional execution options, query `editorbrain capabilities`
@@ -13,6 +13,22 @@ confirmations. These optional forms preserve the complete existing defaults.
13
13
  Follow `detailsArguments` when actual scripts, adaptation rules or allowed options
14
14
  are needed; a summary does not replace reading them before an edit.
15
15
 
16
+ For `check_workflow` / `workflow check`, `detail="summary"` (`--summary`) routes
17
+ only. Before editing, approvals or spending, read the complete context once and
18
+ reuse it while `version`, `context.contextVersion` and
19
+ `editorialSnapshot.executionContextVersion` are unchanged. `detail="compact"` is
20
+ that complete contract without exact duplicates and is the default of newer CLIs:
21
+ `editorialSnapshot` stays whole, `context.sameAs.editorialSnapshot` lists the keys
22
+ (memory, identity, preferences, source hashes…) to read from the snapshot,
23
+ `integrations.sameAs` points at the snapshot's entries, and only the latest read
24
+ receipt is kept (`receiptsOmitted`). `--details` / `detail="full"` (the API
25
+ default) repeats everything under `context`. Older APIs that reject `compact`
26
+ return full; the CLI compacts it locally.
27
+
28
+ CLI JSON keeps sorted keys; it is one compact line when piped (agents) and
29
+ indented in a terminal. `--pretty` or `EDITORBRAIN_PRETTY=1` forces indentation;
30
+ do not add it to agent calls.
31
+
16
32
  For exact style implementations use `list_style_packs(inventory="sources",
17
33
  sourceLimit=6)` and follow `sourcePagination.nextCursor` with `sourceAfter` until
18
34
  the relevant candidate is found. `inventory="editorial"` lists packs/techniques;
@@ -341,7 +357,8 @@ Codex can use `codex mcp login editorbrain`; Claude Code completes OAuth from `/
341
357
  Inspect the actual source yourself, then read [search brief](search-brief.md) for the request schema.
342
358
 
343
359
  ```sh
344
- editorbrain workflow check --project my-video
360
+ editorbrain workflow check --project my-video --summary # routing only
361
+ editorbrain workflow check --project my-video # complete, compact context
345
362
  editorbrain search brief --file ./.editorbrain-local/my-video/search-brief.json --project my-video
346
363
  editorbrain workflow check --project my-video --previous-version <returned-hash>
347
364
  ```
@@ -120,6 +120,14 @@ quoted, including machine startup; it is not a free instant CPU conversion.
120
120
  detail only when needed. No OCR, faces, word alignment, listening or creative
121
121
  approval is inferred. Success means a report was produced, not that checks pass.
122
122
 
123
+ Upload and render from the original or a documented helper output (`timeline`,
124
+ `review-preview`). Do not improvise high-bitrate or all-keyframe "seek" re-encodes:
125
+ one at CRF 12 with a keyframe every 0.5 s doubled an 85 s source to 253 MB and
126
+ then had to be uploaded too. If a seekable derivative is truly required, use
127
+ H.264 CRF 18–20, a keyframe interval of at most 1 s and `-movflags +faststart` at
128
+ the delivery resolution, check it is not larger than needed, upload it once and
129
+ reuse its asset.
130
+
123
131
  Do not fill silence with invented words or retranscribe just because cuts changed.
124
132
  `private_render_map_words({timeline,sources:{"source.mp4":[{text,start,end}]}})`
125
133
  retimes existing measured words through those exact cuts, including reordered or
@@ -14,12 +14,14 @@ Put private working files under `.editorbrain-local/<project-id>/`. This folder
14
14
 
15
15
  ```sh
16
16
  editorbrain media inventory --input ./footage --out .editorbrain-local/my-video/inventory-v1.json
17
- editorbrain media sample --file ./footage/demo.mov --at 0,12,30 --out .editorbrain-local/my-video/frames-v1
17
+ editorbrain media sample --file ./footage/demo.mov --at 0,12,30 --out .editorbrain-local/my-video/frames-v1 --sheet
18
18
  ```
19
19
 
20
20
  `--dir <workspace>` resolves relative paths. Explicit media inputs may be absolute local paths. Report/profile/plan paths are relative to the workspace. Inventory enumerates supported media with hashes, stream metadata and duration. Default maximum 200 files; `--max-files N` accepts 1–1000. Hidden/generated directories and symlinks are not followed; inspect skipped entries and `complete`. A declared complete inventory means the configured traversal finished, **not that any content was viewed**.
21
21
 
22
- Choose frames that answer an actual question; `--at` takes 1–12 explicit seconds. Sample times are requested seeks, not measured frame PTS. View the resulting frames before describing them. Frames establish neither motion nor audio coverage. Inspect playback/audio with available tools when those matter. Use metadata to choose which long clips need deeper inspection; no universal number of frames, shots or sources is required.
22
+ Choose frames that answer an actual question; `--at` takes 1–12 explicit seconds. Sample times are requested seeks, not measured frame PTS. View the resulting frames before describing them.
23
+
24
+ Every image opened costs context. When `media sample --help` lists `--sheet`, it also writes one contact sheet (at most 1600 px, row-major; `sheet.frames` lists the times, which are not burned into the pixels; same no-overwrite rule and SHA-256). View the sheet first and open a single frame only for a specific question: small text, a face, an exact boundary. Prefer one sheet per draft over many separate frames, and reuse observations of unchanged material. When the host supports subagents, delegate repeated visual QA across drafts to one that returns findings, not images. Frames establish neither motion nor audio coverage. Inspect playback/audio with available tools when those matter. Use metadata to choose which long clips need deeper inspection; no universal number of frames, shots or sources is required.
23
25
 
24
26
  ## Optional source-use record
25
27
 
@@ -165,5 +167,6 @@ Do not reuse geometry from the differently oriented source.
165
167
  - `--review-inputs continuity.json` adds source-word cut checks, final seam energy and declared face/overlay collisions. Bind it to the final `artifactSha256`. Cuts and transcript must share `sourceSha256`; times are seconds. Geometry must already match the final timeline, crop and normalized top-left coordinates. Missing/uncertain tracking is incomplete, not a safe face clearance. High-energy seams are listening candidates; music can cause them too.
166
168
  - Inline schema: `{schemaVersion:1,artifactSha256,cuts:{sourceSha256,parts:[{source:[start,end],final:[start,end]}]},transcript:{sourceSha256,words:[{text,start,end}]},geometry:{timeline:"final",coords:"normalized-top-left",frames:[{t,face:{x,y,w,h}}],overlays:[{id,start,end,x,y,w,h}]}}`. Cuts/transcript and geometry are independently optional. A null face means unknown.
167
169
  - File-backed alternatives: `cuts:{file:"relative/cutmap.json",sourceSha256}`, `transcript:{file:"relative/words.json",sourceSha256}`, `geometry:{trackFile:"relative/track.json",overlaysFile:"relative/overlays.json",timeline:"final",coords:"normalized-top-left"}`. Track uses `per_frame`; overlays uses `overlays`. Never pair an original transcript with montage timestamps or an untransformed source track with a cropped render. The hash declaration is supplied provenance, not automatic proof of the alignment.
170
+ - Keep one copy of each base video per project. When a renderer project (HyperFrames `assets/`, Remotion `public/`) needs the same media, point it at one shared assets folder or create a copy-on-write clone (`cp -c` on macOS APFS, `cp --reflink=auto` on Linux); never several full byte copies of the same source. Explore styles with short samples, not full-length renders per direction (see [production and review](production-and-review.md#explore-directions-with-short-samples)).
168
171
  - Run `clean --project ID` before more copies when disk is low. Inspection is read-only. After the user approves optimization, `clean --project ID --deduplicate --confirm` shares identical file blocks via copy-on-write on supported filesystems. Files remain independently editable; no hardlinks, symlinks, master deletion or recursive cleanup. Logical duplicate bytes are not guaranteed reclaimed disk space. Unsupported filesystems return an explanation. Do not run during rendering.
169
172
  - `variants create comenta --project ID --file changes.json` accepts `{cta:"...",hook:"...",instructions:"..."}` (only needed fields). This creates a local edit specification and input snapshot, not a rendered video or a synced project. Reuse base sources by path, render separately, recompute cutmap/caption/motion timing, and verify the variant. Base approval never carries over. `variants list --project ID` reports changed base context. Never copy all source media into each variant.
@@ -1,8 +1,9 @@
1
1
  # Studio artifact without the EditorBrain CLI
2
2
 
3
3
  Discover `prepare_review_artifact` in tools/list. It shares the CLI's canonical
4
- Atelier renderer: proposals or real video, Mira/Cambia/Envía, timestamp comments,
5
- optional cut map, feedback export, and Cómo funciona. It does not create a new
4
+ Atelier renderer: proposals or real video, Cambios/Texto/Revisión IA, time/range/image
5
+ comments, optional measured word map, feedback export, and Cómo funciona. Read
6
+ [Studio review](studio-review.md) for comparison metadata and preference proposals. It does not create a new
6
7
  workflow. If the server lacks this tool, report that limitation; do not silently
7
8
  skip the artifact or claim a plain MP4 is the same Studio experience.
8
9
 
@@ -26,6 +27,9 @@ or one to three directions. Every medium has `file` (portable path relative to t
26
27
  HTML), its measured `sha256`, and optional purpose/quality. The service cannot
27
28
  verify local bytes. Direction previews must be real inspected images/videos.
28
29
  Local transcript/learnings use the same bounded schema as CLI review-artifact.
30
+ The API injects actual project preferences; do not supply `studio.preferences`.
31
+ `open_preferences_studio` uses this same recipe without any media when the user
32
+ only wants to see preferences. Read [Studio review](studio-review.md).
29
33
 
30
34
  Example tool arguments (replace hashes/IDs with measured/current values):
31
35
 
@@ -45,7 +49,7 @@ import hashlib, json, os, pathlib, urllib.request
45
49
  root = pathlib.Path.cwd().resolve()
46
50
  p = json.loads((root / 'prepared.json').read_text())
47
51
  d = p['data']; t = p['template']
48
- media = ([d['video']] if d.get('video') else []) + [x['preview'] for x in d.get('directions', []) if x.get('preview')]
52
+ media = ([d['video']] if d.get('video') else []) + ([d['previousVideo']] if d.get('previousVideo') else []) + [x['preview'] for x in d.get('directions', []) if x.get('preview')]
49
53
  for m in media:
50
54
  rel = pathlib.PurePosixPath(m['uri'])
51
55
  assert not rel.is_absolute() and all(x not in ('..', '.') for x in rel.parts)
@@ -80,7 +84,10 @@ and offer the existing authorized cloud route; never silently upload or install.
80
84
  ## Remote/cloud surface
81
85
 
82
86
  Use `destination:"cloud"`. Instead of file/sha256, each medium references an exact
83
- `revisionId` already registered for this project/current context. For a video,
87
+ `revisionId` already registered for this project/current context. Optional
88
+ `previousVideo` may be a superseded historical revision of this same project; it is
89
+ read-only comparison, never current approval. Both clocks/hashes must match the
90
+ provided `studio.comparison`. Revoked media remain inaccessible. For a video,
84
91
  its immutable cut map is included if one exists; never invent/retranscribe it to
85
92
  fill the UI. For proposals, use one to three existing inspected image/video
86
93
  revisions in directions[].preview. Uploading/registering missing previews needs
@@ -2,8 +2,10 @@
2
2
 
3
3
  ## Read only the selected context
4
4
 
5
- `check_workflow` / `editorbrain workflow check --project ID` returns `context.memory`,
6
- `context.sourceHashes`, and `context.contextVersion`. The version is distinct from
5
+ `check_workflow` / `editorbrain workflow check --project ID` returns
6
+ `editorialSnapshot.memory`, `editorialSnapshot.sourceHashes` and the legacy
7
+ `context.contextVersion`; the full response repeats memory and hashes under
8
+ `context`, while compact lists them in `context.sameAs`. The version is distinct from
7
9
  workflow preference `version`. `editorialSnapshot.contextVersion` identifies the
8
10
  active render context; pending suggestions do not change it. The legacy context hash
9
11
  still signals raw document changes, which can require a reread without a rerender.
@@ -75,7 +77,7 @@ confirmed memory legitimately changes the effective context: verification return
75
77
  `PRODUCTION_CONTEXT_CONFLICT`, `changedSources` and a concrete pull command.
76
78
  Pending suggestions alone do not invalidate a render.
77
79
 
78
- `context.memory.pending` includes text, conditions, origin and scope, at most 12
80
+ `editorialSnapshot.memory.pending` includes text, conditions, origin and scope, at most 12
79
81
  entries (project first). `pendingCount`, `pendingTruncated` and `pendingScopes`
80
82
  identify the rest: read `get_editorial_memory` / `memory list` for those exact scopes.
81
83
  At delivery show the proposals and offer project / brand / discard. The existing
@@ -126,7 +126,7 @@ rejects stale files. On a conflict, reopen against current context and reconcile
126
126
  the user's choices; never force overwrite. `.editorbrain-local/` contains private
127
127
  session snapshots and answers, not synchronized documents.
128
128
 
129
- When present, resolved `editorial.identity` / workflow `context.identity` contains
129
+ When present, resolved `editorial.identity` / workflow `editorialSnapshot.identity` contains
130
130
  the current confirmed identity; it supersedes older values for the same fields
131
131
  in preserved prose. An empty string clears that field; do not revive the old value.
132
132
 
@@ -137,6 +137,10 @@ Build a representative pilot when the edit introduces substantial uncertainty. C
137
137
 
138
138
  Continue work autonomously within the requested scope. A pilot is not a request for another approval unless there is a real unresolved preference or required authorization.
139
139
 
140
+ ### Explore directions with short samples
141
+
142
+ Compare visual directions or styles as short representative samples: about 5–10 s of the passage that best tests the mechanism, rendered at the saved preview quality (`renderStorage.effectivePreferences.previewQuality`, 480 by default). Render full length only for the selected direction. Reuse approved samples by their exact hash instead of re-rendering them, and after feedback re-render only the changed passage before the next complete draft. Several full-length drafts of rejected directions cost render time, disk and review attention without adding a decision. This does not override review mode, an explicit user request for complete alternatives or required approvals.
143
+
140
144
  ## Use real timing and listen
141
145
 
142
146
  Anchor timing to the final voice, music or action. If those change, recompute dependent events. Useful measurements when precision matters include the cue, first visible frame, perceptible motion onset, readable state, hold/exit and audible SFX attack. Measure using actual frame timestamps/PTS where needed, not nominal duration alone.
@@ -305,14 +305,13 @@ description alone is not a visual review. The local interface uses EditorBrain's
305
305
  product branding; its colors are not the customer's video palette. No extra model
306
306
  is needed.
307
307
 
308
- Since CLI 0.49.1, the local artifact uses Atelier: warm paper/ink chrome and the
309
- original Thought Loop logo identify EditorBrain; preserve the customer's footage
310
- and visual direction. Its local
311
- **Mira → Cambia → Envía** navigation means watch/select, optionally annotate, then
312
- review and copy/download feedback. These are views inside the artifact, not new
313
- workflow stages or required checkpoints. The input phases remain `directions`,
314
- `review`, `delivery`. Do not require notes, repeat an already valid approval or add
315
- an intermediate review when the user explicitly chose direct editing.
308
+ The canonical Studio uses dark Atelier chrome and the approved Thought Loop logo;
309
+ preserve the customer's footage and direction. **Cambios / Texto / Revisión IA**
310
+ and **Mis preferencias** are views, not additional workflow stages. Existing
311
+ `directions`, `review`, `delivery` phases, direct mode and valid approvals remain.
312
+ Use [Studio review](studio-review.md) for image points, dragged intervals, measured
313
+ word cuts, version comparisons and preference proposals. Add `--context-file` with
314
+ the current workflow snapshot to a CLI artifact to display actual preferences.
316
315
 
317
316
  The optional **Cómo funciona** button explains the current phase: choosing a
318
317
  proposal in `directions`, requesting preview changes in `review`, or reviewing the
@@ -322,10 +321,10 @@ them to finish a tutorial. It does not advance workflow, create approval evidenc
322
321
  send feedback or upload files.
323
322
  The dialog closes with Escape, its close control or **Entendido**, returning focus
324
323
  to the button. Opening it pauses playback; closing it does not resume playback
325
- automatically. The optional **¿Cómo elijo el momento?** help in Cambia explains
324
+ automatically. The optional **¿Cómo elijo el momento?** help explains
326
325
  timestamped versus general comments.
327
326
 
328
- On **Envía**, the user copies the request into the current chat or downloads the
327
+ In **Enviar cambios**, the user copies the request into the current chat or downloads the
329
328
  feedback JSON. Copying/exporting neither sends to the agent nor uploads media nor
330
329
  approves a remote revision. Only record presentation after handing over the actual
331
330
  usable artifact; preserve the current rules in [visual evidence](workflow-evidence.md).
@@ -91,9 +91,35 @@ history. A conflict requires refreshing the selection, never forcing deletion.
91
91
  Cloud quota is released immediately; physical deletion retries asynchronously.
92
92
  Do not delete local files, references or history to bypass a protection.
93
93
 
94
- Retention of ordinary project assets: there is no automatic preview expiry. Private render temporary deliveries instead follow their explicit `expiresAt`; do not promise permanence. Referenced samples
95
- and their history are protected; revoking a link/sample does not free that storage.
96
- Never promise a 7-day deletion, silently unlink history or bypass cleanup guards.
94
+ Retention of ordinary project assets follows the workspace's **after-approval**
95
+ preference (`afterApproval` in `workflow check` and `storage_status`). Until a final
96
+ is approved nothing expires. Private render temporary deliveries instead follow
97
+ their explicit `expiresAt`; do not promise permanence. Referenced samples and their
98
+ history are protected; revoking a link/sample does not free that storage. Never
99
+ promise another deletion time, silently unlink history or bypass cleanup guards.
100
+
101
+ ## After the final approval
102
+
103
+ Most users want only the final once a video is approved. The preference decides:
104
+
105
+ | `afterApproval.mode` | What you do after the final approval |
106
+ |---|---|
107
+ | `ask` (default) | Show what would be freed: `editorbrain clean --project ID --intermediates` (local, dry) and `afterApproval.project.cloudPreviews`. Ask once: keep only the final or keep everything. On "only the final", run `clean --project ID --intermediates --confirm` and `storage preview-cleanup --project ID --user-confirmed` (MCP `request_preview_cleanup`). On "keep everything", record it with `--keep`. Offer to remember the answer (`storage after-approval --mode final-only|keep --expected-revision N --user-confirmed`, MCP `set_after_approval_preferences`); only an owner can save it. |
108
+ | `final_only` | Run `clean --project ID --intermediates --confirm` yourself and report the freed space. Cloud review previews are removed by EditorBrain after `cloudPreviewHours` (0, 24 or 168). |
109
+ | `keep` | Remove nothing. Mention that the user can change this in Storage. |
110
+
111
+ Always kept: originals, the approved final (its review copy and its local master),
112
+ checkpoint renders/sources, receipts and reports. Cloud previews keep their record
113
+ (hash, approval, history); only the bytes are deleted, so readiness and approvals
114
+ stay valid and `mediaExpired: true` explains why a removed preview no longer plays.
115
+ Re-uploading the exact same preview stores it again. Local cleanup only touches
116
+ `.editorbrain-local/<project>/`; it refuses before approval and skips anything that
117
+ changed while it ran. In autonomous question mode, defer the question to the
118
+ delivery notes instead of deleting in `ask` mode.
119
+
120
+ Keep intermediates where cleanup finds them: put working files (cuts, mattes, base
121
+ copies, style explorations, drafts, frames, mixes) under
122
+ `.editorbrain-local/<project>/work/`, not in arbitrary folders next to the project.
97
123
  Keep the fallback local; honor authorized cloud choices with selective compressed uploads and hash reuse.
98
124
  Use authenticated project review for comments; a public review link is a separate,
99
125
  explicit share and its expiration is not file deletion.
@@ -168,3 +194,5 @@ quality from operational delivery. Present/accept the exact final only after its
168
194
  execution and destination evidence are ready; no silent local fallback or spend.
169
195
  `production submit` defaults to the server’s saved preview quality and reports an
170
196
  explicit quality override. A review copy is not the stored final master.
197
+
198
+ La limpieza local conserva código, dependencias registradas, carpetas de fuentes y archivos cuya función no puede identificar. Solo elimina medios temporales en carpetas de trabajo conocidas y previews registrados; el estado actual del servidor prevalece sobre un checkpoint antiguo. No muevas originales a carpetas de trabajo para forzar su eliminación.
@@ -0,0 +1,129 @@
1
+ # Studio: review a version or propose preferences
2
+
3
+ Use the canonical Studio, not a hand-built lookalike. It keeps the existing
4
+ `directions`, `review`, `delivery` phases and readiness/evidence contract. Direct
5
+ mode and valid previous approvals still apply; these controls add no approval gate.
6
+ Read [workflow evidence](workflow-evidence.md) for presentation and
7
+ [production continuity](production-continuity.md) for registering exact versions.
8
+
9
+ ## Open the right view
10
+
11
+ - CLI review: `production review-artifact --file review.json --out .editorbrain-local/PROJECT/studio-v2.html --context-file workflow.json`. `workflow.json` is the current `workflow check --project PROJECT` response with `editorialSnapshot`; its project and contextVersion must match the artifact. Then keep the returned `production review-open` process running and present its verified loopback URL. The optional context file supplies preferences without another network request. Existing offline artifacts without it remain valid; their preferences panel honestly says the snapshot is absent.
12
+ - MCP review: `prepare_review_artifact` supplies the same renderer and the project's actual preferences automatically. See [the bounded template recipe](mcp-studio-artifact.md). Do not pass `studio.preferences` to MCP: the service owns that snapshot.
13
+ - When asked **“muéstrame mis preferencias”**, use `editorbrain preferences open --project PROJECT` or `open_preferences_studio({projectId,destination:"local"|"cloud"})`; present the resulting Studio, rather than only describing settings in chat. Local MCP uses the same template recipe and no media. CLI needs the authenticated API, serves a token-protected loopback URL and stays running. Cloud returns an authenticated project URL. Neither renders, spends credits, uploads media, applies preferences nor approves a video.
14
+
15
+ Choose local/cloud from the user's effective preferences and current request.
16
+ Never upload a local video merely to show preferences. Each project supplies its
17
+ own brand; a sidebar selection or another project's defaults cannot replace it.
18
+ Older installations may not advertise these operations: explain that and use the
19
+ available workflow; do not invent commands or claim a local file is cloud-backed.
20
+
21
+ ## What the user can do
22
+
23
+ Studio has video controls, a timeline, **Cambios / Texto / Revisión IA**, and
24
+ **Mis preferencias**. `Cómo funciona` explains copying decisions into the chat.
25
+ Nothing is sent automatically. All notes stay in browser storage until copied or
26
+ exported; preserve that warning and the export fallback when storage is blocked.
27
+
28
+ Click the timeline to seek; drag more than 0.6 seconds to mark a range, or hold
29
+ **Mantén para marcar** while it plays. **Repetir 5 s** plays the next five seconds
30
+ and highlights that interval; × removes the selection. `C` comments at the current
31
+ moment, `G` starts a general note, Space toggles playback and arrows seek one second.
32
+ Shortcuts do not fire inside fields or dialogs.
33
+
34
+ Image points are normalized `x/y` in `[0,1]`, relative to the actual visible image,
35
+ not letterboxing. Comments carry `startMs`, optional `endMs`, `kind`, `point`,
36
+ `segmentId`, and `parentCommentId` as applicable. No time means the whole video.
37
+ Export contains both readable `[0:12–0:17]` / `[Todo el video]` notes and exact JSON.
38
+ Use exact JSON milliseconds for edits; the readable labels intentionally round.
39
+
40
+ For remote persistence use the existing `request_production_changes.target` fields.
41
+ CLI: `production change --project PROJECT --revision UUID --context-version SHA
42
+ --text "Move this title" --at 12.5 --kind image --point 0.25,0.70
43
+ --parent-comment UUID` (omit parent unless it actually refers to earlier feedback).
44
+ Preserve the feedback UUID when retrying. Local comments also have UUIDs, but a
45
+ local ID is not proof it already exists remotely; never fabricate a remote record.
46
+ Save actual user corrections through `save_editorial_feedback` / `feedback add`
47
+ and the existing memory flow, without confirming reusable preferences for them.
48
+
49
+ `transcript.segments[].words` is optional and contains measured final-time
50
+ `{text,startMs,endMs}` values inside its kept phrase. A word click seeks; a double
51
+ click proposes its cut, which is shown crossed out only after saving the comment.
52
+ This never edits the media. Do not interpolate words from text or reuse source
53
+ clock times after cuts. Without measured words the phrase-level controls remain.
54
+ Removed phrases refer to their original source interval, never a made-up final time.
55
+
56
+ ## Comparing a corrected version
57
+
58
+ Supply optional `previousVideo` with the same media descriptor as `video`: CLI/local
59
+ MCP uses file + measured sha256; cloud MCP uses an existing project revisionId.
60
+ Include both exact hashes in `studio.comparison`. A historical/superseded revision
61
+ may be viewed only as the previous baseline, never approved as the current sample.
62
+ Revoked, expired or other-project/tenant media remain unavailable.
63
+
64
+ ```json
65
+ {
66
+ "studio": {
67
+ "comparison": {
68
+ "fromVersion": "v1", "toVersion": "v2",
69
+ "previousSha256": "MEASURED_PREVIOUS_SHA256",
70
+ "videoSha256": "MEASURED_CURRENT_SHA256",
71
+ "changes": [{
72
+ "id": "pause", "commentId": "ORIGINAL_FEEDBACK_UUID",
73
+ "startMs": 12000, "endMs": 14000,
74
+ "previousStartMs": 12000, "previousEndMs": 15500,
75
+ "kind": "cut", "summary": "Acorté la pausa sin cortar la frase."
76
+ }]
77
+ },
78
+ "resolutions": [{
79
+ "commentId": "ORIGINAL_FEEDBACK_UUID", "text": "Haz esta pausa más corta",
80
+ "status": "addressed", "note": "Revisa la unión y la respiración.",
81
+ "changeId": "pause"
82
+ }]
83
+ }
84
+ }
85
+ ```
86
+
87
+ Both clocks are required; after a cut they are not interchangeable. Use inspected
88
+ changed intervals, including a nonempty surrounding interval for a removed part.
89
+ Keep at most 100 changes and 100 resolutions. Status is `addressed`, `partial` or
90
+ `unable`, with a concrete reason; it is an agent declaration, not human acceptance.
91
+ A linked resolution must name its own comparison change. **Sigue mal** creates a
92
+ new note linked to the original; retain that relation instead of erasing history.
93
+ Without a real diff omit comparison. The UI then hides its controls. Keep previous
94
+ bytes immutable and inspect both versions before declaring a correction complete.
95
+
96
+ ## Honest review evidence
97
+
98
+ `studio.checks` accepts at most 20 `{label,status,detail}` entries. Map actual
99
+ `production verify.preferenceReview` / `check_render_delivery.preferenceReview`
100
+ results into `not_evaluated`, `consistent_with_declaration`,
101
+ `adaptation_recorded` or `decision_needed`. They are declarations bound to this
102
+ artifact, not pixel verification. The server uses the existing preference reviewer
103
+ for missing evidence and shows **Sin evaluar**, never fake green ticks.
104
+
105
+ `studio.waveform` optionally holds this video's `videoSha256` and up to 256 measured
106
+ normalized amplitude `peaks`. Without measurements omit it. The UI derives at most
107
+ six real thumbnails from the pinned video when the host permits canvas decoding;
108
+ no invented scene images, music wave or voice track fills unavailable data.
109
+
110
+ Preferred style rules guide creative choices. Record intentional adaptations via
111
+ the existing style-decisions mechanism; do not force every video to copy its style.
112
+ Explicit constraints, approvals and spending limits still apply. An unchecked
113
+ creative preference is not a new blanket blocker for showing a private review.
114
+
115
+ ## Preferences, likes and memory
116
+
117
+ Preferences display resolved values for this project's brand and context. Editing
118
+ rows produces `editorbrain.preference-proposal` with `applied:false`, field IDs,
119
+ before/after values, project/brand IDs and contextVersion. It is **not a JSON patch**
120
+ and does not modify documents. Re-read context, explain conflicts, confirm whether
121
+ this is only this project or a lasting preference, then use existing validated,
122
+ revision-checked writes. Read back before saying it is saved. Never apply one
123
+ project's proposal to the currently selected but unrelated sidebar brand.
124
+
125
+ Approval exports optional `likedAspects` (rhythm/captions/music/visuals/ending).
126
+ Treat them as feedback and possible **suggested project** memories. They are not
127
+ confirmation of a reusable rule. Explicit `learningRequests` remain separate and
128
+ carry the scope the user selected. Follow [memory and review](memory-and-review.md).
129
+ An empty like list is fine. Do not require likes or a preference change to approve.
@@ -83,6 +83,10 @@ owns actual quality. For text against platform UI, discover
83
83
  separately from declared boxes and manual playback. [Continuity](production-continuity.md) owns versions and
84
84
  feedback, and [motion review](motion-review.md) owns movement evidence. A technical
85
85
  pass is not creative or human approval. Preserve unaffected, approved work.
86
+ Use [Studio review](studio-review.md) for pinned image comments, measured ranges,
87
+ version comparisons and preference proposals. `preferences open --project ID`
88
+ and MCP `open_preferences_studio` show the same current context; proposals do
89
+ not change saved preferences without explicit scope and confirmation.
86
90
  Capture actual chat corrections using [memory and review](memory-and-review.md):
87
91
  save feedback and a suggested project memory before continuing; only the user
88
92
  chooses whether to retain it for this video or the brand. Never invent feedback
@@ -227,7 +227,7 @@ See [memory and review](memory-and-review.md) for memory schemas, version restor
227
227
 
228
228
  ## Private local production (CLI 0.12+)
229
229
 
230
- `.editorbrain-local/<project-id>/` contains optional inventory, source-use plans, samples and technical review reports. It is excluded from automatic workspace discovery, push/pull, resolution hashes and exports. See [local production](local-production.md) only when using those helpers. Text under `videos/` can synchronize, including `plans/` and `reviews/`; `assets/` and `renders/` are excluded. Store a deliberate short summary in `direction.md` for cross-session cloud context. Keep complete reports out of routine agent prompts.
230
+ `.editorbrain-local/<project-id>/` contains optional inventory, source-use plans, samples and technical review reports. Put this project's intermediates (cuts, mattes, base copies, drafts, style explorations, frames, mixes) under its `work/` folder so `clean --project ID --intermediates` can remove them after the final approval; see [after the final approval](storage-and-previews.md#after-the-final-approval). It is excluded from automatic workspace discovery, push/pull, resolution hashes and exports. See [local production](local-production.md) only when using those helpers. Text under `videos/` can synchronize, including `plans/` and `reviews/`; `assets/` and `renders/` are excluded. Store a deliberate short summary in `direction.md` for cross-session cloud context. Keep complete reports out of routine agent prompts.
231
231
 
232
232
  ## Optional audio production context
233
233
 
@@ -242,6 +242,15 @@ before writing. This does not alter other audio restrictions or grant spending.
242
242
 
243
243
  ## Creative decision ownership
244
244
 
245
+ The web page https://editorbrain.com/app/preferences edits the active brand’s
246
+ existing `design.md` profile and onboarding-taste blocks plus `audio.json`.
247
+ It does not introduce another preference store. Read the saved version through
248
+ CLI resolve/workflow or MCP context. The separate «Antes de editar» choice is
249
+ workspace review timing, not a brand aesthetic or a budget authorization.
250
+ Unsetting one creative choice delegates that field; confirming a section
251
+ keeps its explicit choices and delegates only what remains unspecified.
252
+
253
+
245
254
  The optional editorial profile field `creativeDirection` in brand `design.md`
246
255
  is `automatic` or `guided`; `project.json.creativeDirection` overrides it for
247
256
  that video. `resolve`, workflow context and `editorialSnapshot.creativeDirection`
@@ -33,9 +33,12 @@ Use the curated facets returned by the catalog; never reclassify a scene from it
33
33
  name or demo niche. `material` is `motion` (code graphics), `fotos` (real photos)
34
34
  or `video` (graphics over a real talking-head clip). `funcion` accepts several
35
35
  values with OR, `encuadre` is only valid with `material: "video"`, and `tresD`
36
- selects Three.js scenes. Discover labels and available values in
37
- `facetDefinitions`, `availableFacetCounts` and `facetCounts`. A zero result is
38
- not permission to drop the user's filters silently.
36
+ selects Three.js scenes. Discover available values in `availableFacetCounts`
37
+ and `facetCounts` on every page. Labels and descriptions live in the static
38
+ `facetDefinitions`: MCP returns them on each page; newer CLIs omit them
39
+ (`facetDefinitionsOmitted`) unless you pass `--facet-definitions` once per
40
+ catalog version. A zero result is not permission to drop the user's filters
41
+ silently.
39
42
 
40
43
  CLI: `editorbrain motion scenes --material video --funcion ganchos-titulos,presentar-marca --encuadre plano-medio --scene-version <version>`.
41
44
  MCP: pass those fields to `list_authored_scenes`. Keep the query, filters and