editorbrain 0.37.0 → 0.38.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.37.0",
3
+ "version": "0.38.0",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -8,6 +8,16 @@ Start with `videos/<project-id>/project.json`, its brief/direction and the brand
8
8
 
9
9
  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.
10
10
 
11
+ Keep each project's brand context separate, including in batches. The project's saved
12
+ brand wins over sidebar navigation or a previous chat task. Carry project/brand/style
13
+ IDs and contextVersion together; never fill missing preferences from another brand.
14
+ Use effective resolved memory, and filter personal-resource searches by that brand.
15
+ Only explicitly shared resources may cross brands; generic library methods are reusable.
16
+ Discover the requested brand by name/ID before preparing a project; duplicate names
17
+ never justify guessing. Plan, credits, storage and membership belong to the workspace,
18
+ not its brands. Personal integrations belong to the member in that workspace. Changing
19
+ brand changes editorial context, never balance, credentials or permissions.
20
+
11
21
  Read effective `creativeDirection` from the resolved context/snapshot. `automatic` delegates unspecified aesthetic decisions per video; `guided` starts from saved choices and still resolves gaps. Neither changes quality, explicit constraints, review mode, tool access or spending. Preserve stored preferences; do not convert an automatic project direction into a reusable style without a request.
12
22
 
13
23
  If `creativeDirection.configuration.status` is `pending`, use [onboarding](references/onboarding.md) to complete only its pending categories with the user before editing, except when questionPolicy.mode is autonomous: resolve open aesthetics per project without marking categories reviewed. Preserve prefilled choices; record explicit choices or delegation, never infer confirmation from defaults. Recheck the saved state before proceeding.
@@ -104,6 +114,8 @@ Review the final artifact end to end for editorial meaning, perceptual clarity a
104
114
 
105
115
  Separate general quality principles, requirements of a technique when used, and project/style preferences. Never turn one video's feedback into a global ban, mandatory sound or personal brand for other users. Pilot approval does not validate every transfer. Use [style creator](references/style-creator.md) only when authoring styles, and [memory and review](references/memory-and-review.md) when saving scoped feedback, accepting suggestions, restoring history or sharing.
106
116
 
117
+ After user corrections, optionally propose a few scoped learnings through [memory and review](references/memory-and-review.md). Approval of a video never makes them reusable automatically. Keep autonomous edits moving; pending suggestions are not instructions. Private memory never enables product-data sharing.
118
+
107
119
  Preserve versions; save concise decisions in `direction.md`, private detailed records in `.editorbrain-local/<id>/`. Text under `videos/` can synchronize. Sync does not upload media or install fonts/plugins. Use revision-aware writes; reconcile conflicts rather than overwriting. Persist permanent IDs/hashes and intervals, never signed URLs or credentials. Keep library evidence separate from authorized production assets; clients do not operate reference ingestion.
108
120
 
109
121
  Finish with the artifact, location, checks and concrete limitations. Distinguish agent review from human approval; never promise perfect quality or guaranteed performance.
@@ -20,8 +20,8 @@ When the user asks to save an edit as a style, create a new style or improve an
20
20
  Before composing an edit with visual support, use the [media acquisition guide](references/real-media.md), including for fully animated videos. Cover the relevant beats with acquired and inspected user/web/generated resources as appropriate. Resolved/workflow `mediaAcquisition`, when available, turns the effective choices into planning guidance; it is not proof of searches or tool access. Searching EditorBrain for editing techniques is a separate job.
21
21
 
22
22
  1. Read the bundled [AGENTS.md](AGENTS.md) once for the editorial contract. Do not assume the host loads this nested file automatically.
23
- 2. If no workspace is ready, use [first edit](references/first-edit.md). For visual onboarding inside this agent, load [onboarding](references/onboarding.md) only then; discover command availability before use. Verify connection, discover or create the active project, and prepare its context without overwriting existing files. Read [CLI and MCP](references/cli-mcp.md) only for the commands needed now.
24
- 3. Read the selected project's `project.json`, brief, direction and the brand/style files it names. Resolve effective tokens and inspect available editing tools. Use `check_workflow` (CLI `editorbrain workflow check`) for creative direction, review preference, scoped memory and personal integrations. If creative configuration is pending, complete only those categories through [onboarding](references/onboarding.md) before editing. Choose the resource route before checking funds: personal integrations/native host tools do not require EditorBrain creative credits; built-in tools do. Never switch paid routes silently. On a blocker, explain the next step with a verified link and one compatible alternative; use returned recovery guidance. Declared access is not a working connection; check the needed provider in this session and read [integrations](references/integrations.md) only when using or configuring one. If `audioProduction` is present, honor its voice/SFX/loudness choices; read [audio production](references/audio-production.md) when needed. Use `context.mediaPreferences` for saved image/motion choices; fetch only needed recipes with `get_media_style` / `media style <id> --style-version <version>` (see [media preferences](references/media-preferences.md) when adapting them). Compare workflow version and `contextVersion` at later checkpoints; fetch changed context before acting. Do not load every project or library document.
23
+ 2. If no workspace is ready, use [first edit](references/first-edit.md). For visual onboarding inside this agent, load [onboarding](references/onboarding.md) only then; discover command availability before use. Verify connection, discover or create the active project, and prepare its context without overwriting existing files. Read [CLI and MCP](references/cli-mcp.md) only for the commands needed now. If connected access is team-restricted, follow its team section before retrieving context or sharing media; permissions do not override the selected project’s preferences.
24
+ 3. Match any requested brand name to its saved ID before selecting or creating a project; use compact brand/project discovery when available, and never guess between duplicates. Read the selected project's `project.json`, brief, direction and the brand/style files it names. Resolve effective tokens and inspect available editing tools. Use `check_workflow` (CLI `editorbrain workflow check`) for creative direction, review preference, scoped memory and personal integrations. If creative configuration is pending, complete only those categories through [onboarding](references/onboarding.md) before editing. Choose the resource route before checking funds: personal integrations/native host tools do not require EditorBrain creative credits; built-in tools do. Never switch paid routes silently. On a blocker, explain the next step with a verified link and one compatible alternative; use returned recovery guidance. Declared access is not a working connection; check the needed provider in this session and read [integrations](references/integrations.md) only when using or configuring one. If `audioProduction` is present, honor its voice/SFX/loudness choices; read [audio production](references/audio-production.md) when needed. Use `context.mediaPreferences` for saved image/motion choices; fetch only needed recipes with `get_media_style` / `media style <id> --style-version <version>` (see [media preferences](references/media-preferences.md) when adapting them). Compare workflow version and `contextVersion` at later checkpoints; fetch changed context before acting. Do not load every project or library document.
25
25
  4. Inspect the actual script/video yourself. Understand its argument, goal, audience, tone, rhythm, usable resources and brand restrictions. For unfamiliar multi-clip material or technical render checks, use [local production](references/local-production.md) as needed. Read compact results and fetch details only to answer a specific question. Declare what you could inspect: script, frames, motion, audio and coverage. If you cannot access a modality, keep the limitation explicit; never invent it from a filename.
26
26
  5. Ground each new edit or materially changed direction in the **edited-video reference library**, including when a favorite style is selected. Search with `search_from_brief` (CLI `editorbrain search brief --file <brief.json>`) and the project ID after inspecting the material. Read [search brief](references/search-brief.md) for the schema and [editorial evidence](references/editorial-evidence.md) for selection/adaptation. Search communicative needs, not a guessed template. A scoped revision may reuse still-valid inspected evidence and approval. The optional `search_for_edit` server-analysis path is never an automatic fallback.
27
27
  6. For a new or materially changed direction, use [editorial families](references/editorial-families.md) to load only the relevant method; a fitting saved method or small correction can reuse its decisions. Survey candidates across the video's needs, then inspect selected documents and actual frames/intervals, plus audio when sound matters. Build a coherent scene-level palette of techniques: opening, imagery, type, explanation and transitions can come from different references. A shortlist is not a single template for the whole video. Use preferences to retain, adapt or reject mechanisms; save evidence, limitations and beat-level adaptations in `direction.md`. A motion-catalog lookup does not complete this step. If evidence is inaccessible or unsuitable, disclose the gap. For factual beats, compare allowed user footage and authentic web media with authored explanation. The engine does not dictate the imagery or entire layout.
@@ -4,6 +4,28 @@ Use the connected MCP schema and `editorbrain help` to confirm the installed con
4
4
 
5
5
  API/MCP: `https://api.editorbrain.com/mcp`. The host must connect this server separately; installing a skill does not register or authorize MCP.
6
6
 
7
+ ## Brands and workspace ownership (discover availability)
8
+
9
+ `brands list --limit 20 [--after CURSOR]` / `list_brands` returns names and stable
10
+ IDs without every brand's preferences. `projects list --brand ID --limit 20`
11
+ / `list_projects({brandId:ID})` finds that brand's projects. Follow `nextCursor`
12
+ with unchanged workspace/brand. Missing or ambiguous names require selection,
13
+ never an automatic fallback. These reads do not switch another project's brand.
14
+
15
+ `workspace_info` and `/v1/me` expose `scopes`: plan, credits, storage and membership
16
+ belong to the authenticated workspace, shared across its brands. External integration
17
+ preferences belong to the authenticated member within that workspace; their provider
18
+ balance is separate. Brand identity/preferences/resources remain editorial context,
19
+ and project overrides/reviews remain per video. The authorized editorial/motion library
20
+ is reusable evidence, filtered and adapted using the selected brand's preferences.
21
+ Do not copy balances or access credentials into brand files, or imply that switching
22
+ brands creates credits. Legacy workspace members retain general access. Selecting a
23
+ brand is not permission: when the service exposes `team_access`, inspect its actual
24
+ assigned-brand/project grants. Never give a restricted collaborator a general service key.
25
+
26
+ Legacy `projects list` without flags keeps its document-based inventory contract.
27
+ Do not use an unrestricted inventory as an editing context or silently raise limits.
28
+
7
29
  ## Visual onboarding and brain analysis (discover availability)
8
30
 
9
31
  Use [onboarding](onboarding.md) for `onboarding guide/create/serve/apply/sync` and
@@ -191,3 +213,70 @@ and `list_production_feedback` for exact-version review. `production verify`
191
213
  checks the local final file against current project requirements. Read
192
214
  [continuity and corrections](production-continuity.md) at that stage; technical
193
215
  verification and recording a correction never substitute for audiovisual review.
216
+
217
+ ## Updating installed instructions (discover support first)
218
+
219
+ When the user asks to update, check CLI help for `update`. In clients that support
220
+ it, `editorbrain update --dry-run` shows the selected installations; `editorbrain
221
+ update` updates the npm CLI plus current-project and existing global skills.
222
+ `--dir PATH` selects one project, `--global` selects global skills, and `--all`
223
+ includes registered projects. It never scans other folders. `skill list` shows
224
+ registrations. Read conflicts/warnings; do not claim completion from CLI version
225
+ alone. Backups protect replaced official instructions; custom files stay intact.
226
+ Older clients need `npm install -g editorbrain@latest` once to obtain this command.
227
+
228
+ Only update when requested, between editing sessions. For a project the user wants
229
+ to keep stable, `skill pin --dir PATH` protects its registered instructions from
230
+ updates on this machine; use its returned `npx editorbrain@VERSION` for the CLI as
231
+ well. It does not pin the remote API, freeze a renderer or detect an active edit.
232
+ After finishing, `skill unpin --dir PATH` permits updates again. Never unpin on the
233
+ user's behalf just to get a newer version. Reload instructions or start a new
234
+ conversation after an update. MCP authentication, personal preferences, user
235
+ styles and project media are separate and are not replaced by this operation.
236
+
237
+ ## Team collaboration (discover availability; additive candidate)
238
+
239
+ Use `editorbrain team access` / MCP `team_access` to inspect effective access.
240
+ A restricted editor uses their own device login or OAuth connection. Discover assigned
241
+ projects (`team projects`, `projects list`, `list_projects`), then resolve and check
242
+ workflow with the explicit project ID. The owner creates projects and manages shared
243
+ brand/style preferences. Project files use ordinary revision-checked writes. Never
244
+ switch to an owner's key or another workspace to bypass a denial.
245
+
246
+ For authorized uploads use `assets upload FILE --project ID --purpose preview`:
247
+ preflight and the upload bind the assigned project, share the workspace storage quota,
248
+ and reuse accessible exact hashes. Link the returned asset in that project's media
249
+ manifest, resolve the changed context, then register the sample. Local originals do
250
+ not appear on a teammate's computer automatically. Do not upload them by default.
251
+
252
+ Uploading/registering a sample does NOT share it with clients. Only after the user
253
+ requests sharing use `team share --project ID --revision UUID --confirm` or
254
+ `team_share_review`; withdrawal is explicit too. Clients use `/app/team` with their
255
+ own verified account. They see shared versions, add timed comments and approve an
256
+ exact revision. Read `team reviews --project ID [--after CURSOR]` / `team_reviews`
257
+ and existing production feedback before revising; do not infer approval or mark a
258
+ sample as final. `team comment` requires a fresh `--id` UUID reused only for retries
259
+ of identical input. Client accounts are browser-review-only in this first slice;
260
+ read-only OAuth scopes do not gain write/approval rights.
261
+
262
+ `team_scope_denied` means permission, not missing credits. `team_spending_disabled`
263
+ means a scoped member cannot spend built-in AI credits yet. Explain the specific
264
+ blocker, point to `https://editorbrain.com/app/team`, and offer an owner-produced
265
+ resource or the user's own authorized integration. Do not recommend buying credits
266
+ as a permission fix or silently charge another provider. Existing balances remain
267
+ workspace-wide; this release does not add per-person budgets or seats billing.
268
+
269
+ ### Transactional email (discover service support)
270
+
271
+ Team invitation creation can return `delivery: queued` or `copy_link`; report the
272
+ actual result and keep the returned fallback link private. `queued` and provider
273
+ `accepted` do not mean inbox delivery. Do not retry an invitation just to send
274
+ more mail; inspect `team members` for its status. The service sends email when
275
+ an explicitly shared review or approved final delivery is registered through the
276
+ existing project/team operations, whether initiated through CLI, MCP or web.
277
+ Do not send another email yourself, mark a draft complete to trigger mail, or treat
278
+ an email link as a resource permission. Local-only renders do not produce notices.
279
+ Personal email preferences live at `https://editorbrain.com/app/settings` (or
280
+ Avisos por correo in the restricted team portal), separate from brand/editing
281
+ preferences and credits. They apply to the signed-in person across spaces; a
282
+ shared API key must not change them.
@@ -7,8 +7,10 @@ Use this only when the user's environment or project is not ready. Do not re-onb
7
7
  - Discover the installed CLI (`editorbrain version`, `editorbrain help`) and MCP tools. If absent, follow the official app's installation prompt; do not invent a package or install a rendering engine without need.
8
8
  - Try installed commands individually before inspecting an installer. A denied directory scan or compound shell command does not establish that the CLI is absent or every command is forbidden. Respect the denied scope; use a separately permitted CLI/MCP operation, or report the exact operation that remains blocked. Do not reinstall or request broad shell access based only on that denial.
9
9
  - If the user wants to configure their brain here, use the visual [onboarding guide](onboarding.md) when `onboarding create` is available. It supports a local browser or portable HTML/JSON handoff; no account is needed to draft preferences. Do not claim every chat can embed or connect to local HTML. Existing users should retrieve their selected context first, preserving unsynced changes; do not start with an empty form that discards saved preferences.
10
- - For an existing account, authenticate if necessary, discover projects and use `editorbrain setup --dir <folder> --agent codex|claude|both --project <id>`. Confirm MCP `workspace_info` and CLI `status` name the same workspace. Browser consent needs the user; configuration alone is not authentication.
11
- - If no project exists, `editorbrain init --dir <new-folder> --brand <brand-id> --style <style-id> --project <project-id>` creates context and installs the harness. Authenticate before synchronization. Validate, inspect `push --dry-run`, then push that intended context. Never use init to reset a pulled project. Do not confuse an empty local draft with a remotely saved project.
10
+ - For an existing account, identify the authenticated workspace. When the request names a brand, discover `brands list` / `list_brands` (if available), match its saved name to a stable ID, then `projects list --brand ID` / `list_projects({brandId:ID})`. Follow pagination as needed. Duplicate names, no match or multiple possible projects are unresolved identity, not a reason to pick the first or reuse the last chat's context. Ask a short selection under the question policy; autonomous leaves only that work pending. For older clients, use narrow document prefixes and read identity documents only to resolve ambiguity.
11
+ - Prepare the chosen project with `editorbrain setup --dir <folder> --agent codex|claude|both --project <id>`. Confirm MCP `workspace_info` and CLI `status` name the same workspace, and `project.json.brand` matches the requested brand. Browser consent needs the user; configuration alone is not authentication.
12
+ - If the brand exists but this is a new video, create only its new project/brief/direction referencing that existing brand and an intentionally chosen saved style/output profile. Never reinitialize or overwrite that brand, reuse another customer's project, or treat a previous video as the requested new one. Pull the new project's specific context after saving.
13
+ - Only for genuinely new context, `editorbrain init --dir <new-folder> --brand <brand-id> --style <style-id> --project <project-id>` creates documents and installs the harness. Authenticate before synchronization. Validate, inspect `push --dry-run`, then push only the intended context. Never use init to reset existing remote preferences. Do not confuse an empty local draft with a remotely saved project.
12
14
  - Existing root AGENTS.md/CLAUDE.md and customized skills are preserved. Read install results and any conflict; use the returned skill path explicitly if needed. Installation is not proof the host has read it.
13
15
 
14
16
  ## Make defaults meaningful
@@ -4,7 +4,10 @@
4
4
 
5
5
  `check_workflow` / `editorbrain workflow check --project ID` returns `context.memory`,
6
6
  `context.sourceHashes`, and `context.contextVersion`. The version is distinct from
7
- workflow preference `version`. Compare both at the start and before proposals, paid
7
+ workflow preference `version`. `editorialSnapshot.contextVersion` identifies the
8
+ active render context; pending suggestions do not change it. The legacy context hash
9
+ still signals raw document changes, which can require a reread without a rerender.
10
+ Compare versions at the start and before proposals, paid
8
11
  generation and final render. A changed context requires rereading affected documents;
9
12
  it does not justify overwriting local work. Offline edits cannot see new web changes.
10
13
  `resolve` and `search_from_brief` also include scoped memory.
@@ -17,9 +20,18 @@ Optional portable memory paths:
17
20
  Each contains `schemaVersion:1`, matching `scope` (`brand`, `style`, `project`),
18
21
  `scopeId` and up to 60 `entries`. Each entry has `id`, `text`, `conditions`, `status`
19
22
  (`suggested`, `confirmed`, `disabled`), `source`, `provenance` and `updatedAt`.
20
- The API validates these and provides IDs and timestamps. Prefer its memory tools.
21
- Confirmed entries guide choices only when their conditions fit. Project guidance
22
- precedes brand then style; exact required tokens still govern. Resolve prose conflicts
23
+ The API validates these and provides IDs and timestamps. New scoped learnings live
24
+ in optional `scopedEntries`, separate from legacy `entries` so old clients ignore
25
+ them safely. Combine both arrays when reading; the 60-entry cap covers their union.
26
+ Use the API to choose the collection; never flatten scopedEntries into entries. Prefer its memory tools.
27
+ Style memory requires `applicability.brandId` matching the project, including manual
28
+ preferences (CLI add/edit: `--brand ID`). Legacy style entries without a brand remain
29
+ stored but pending with `reason:brand_required`; review their origin before assigning
30
+ them. Do not assume the currently selected brand owns them. Use resolved memory for
31
+ editing; a raw style memory document may contain other brands' notes for management.
32
+ Confirmed entries guide choices only when their conditions fit. Current explicit requests and project decisions precede the selected style/series,
33
+ then general brand preferences; format learning fills unspecified choices. Exact
34
+ required constraints still govern. Resolve prose conflicts
23
35
  using the actual user request. `provenance` records a claim, not proof of human approval.
24
36
  Suggestions and disabled entries are not editing instructions.
25
37
 
@@ -46,13 +58,112 @@ registering an exact-version approval.
46
58
  Read `get_editorial_memory({scope,scopeId})` / `editorbrain memory list --scope brand --id ID`
47
59
  for the current document revision. `save_editorial_memory` supports:
48
60
  - `action:add`, `text`, optional `conditions`, explicit `status:suggested|confirmed`.
49
- - `action:confirm|disable`, `entryId`.
61
+ - `action:confirm|disable|edit|remove`, `entryId`. Edits accept text/conditions; learning changes require explicit confirmation.
50
62
  All changes require `scope`, `scopeId`, `expectedRevision` (0 creates).
51
63
  CLI equivalents: `memory add --text TEXT --conditions TEXT --status suggested --expected-revision N`
52
- or `memory confirm|disable ENTRY --expected-revision N`, plus scope/id.
64
+ or `memory confirm|disable ENTRY --expected-revision N`, plus scope/id. Confirming
65
+ a learning also requires `--user-confirmed`.
66
+ New project notes pin the project's brand; the server rejects a mismatched brand.
53
67
  Use confirmed only for a preference supported by the user's instruction. If uncertain
54
68
  about cross-project scope, save a suggestion rather than generalizing one correction.
55
69
 
70
+ ## Learn from corrections without changing the main editing flow
71
+
72
+ The editing agent proposes learnings from actual user corrections. There is no new
73
+ mandatory model call, classifier, review gate or automatic training. Video approval
74
+ is not approval of all its design choices. Ordinary feedback stays project-local.
75
+ In autonomous/batch mode save useful candidates as suggested; do not interrupt the
76
+ edit or promote them. A clear request such as “always for this series” can authorize
77
+ that scope; never infer it from “this version looks good”.
78
+
79
+ Discover `learning` commands in CLI help and MCP capabilities before using them;
80
+ older clients can still read their existing memory fields. `learning save --file
81
+ learning.json` calls the same API as `save_editorial_memory`. Example proposal:
82
+
83
+ ```json
84
+ {
85
+ "scope":"project", "scopeId":"my-video", "action":"add",
86
+ "expectedRevision":0, "status":"suggested",
87
+ "text":"Use a split screen when comparing two options",
88
+ "conditions":"When both options benefit from being visible together",
89
+ "learning":{"projectId":"my-video", "category":"layout",
90
+ "evidence":"The user requested replacing the circular crop in this comparison",
91
+ "version":"v3"}
92
+ }
93
+ ```
94
+
95
+ Use actual feedback, not invented reasons. `learning` records provenance, not proof
96
+ that the model inferred the right preference. Categories: captions, cuts, layout,
97
+ motion, media, sound, color, story, other. Up to 60 entries per existing memory file.
98
+ The source evidence remains private, like the other project documents.
99
+
100
+ At review/delivery, the local HTML can include up to three `learnings` with
101
+ `{id,text,conditions,origin}` (origin uses the learning fields above) and
102
+ `learningContext:{brandId,styleId,formatId?,seriesId?}` from the actual project.
103
+ No checkbox is preselected. After approving, the user can choose “Guardar lo que me
104
+ gustó”. The artifact prepares `learningRequests` for the same chat; it cannot save
105
+ cloud memory or wake the agent. Match artifact/video identity, preserve the chosen
106
+ scope and report what was actually saved. Compare learningContext to the current
107
+ project before promoting: changed brand/style/series/format means the old selection
108
+ is stale, never reinterpret it against new IDs. Do not invent proposals to fill the card.
109
+ The web review shows the existing project suggestions separately from approval.
110
+
111
+ `promote_editorial_learning` / `learning promote --file promotion.json --user-confirmed`
112
+ accepts `{projectId,entryId,target,expectedRevision,targetRevision,expectedProjectRevision,userConfirmed:true,
113
+ replaceId?,sourceScope?,sourceScopeId?}`. Read the project document, source memory and destination memory first. Targets:
114
+ - `project` (default): only this edit; source and target revisions are the same.
115
+ - `style`: the selected style within this brand, not every user of the style.
116
+ - `series` / `format`: brand memory with an exact applicability condition; requires
117
+ `project.json.memoryContext.seriesId` / `formatId`. Reuse stable IDs; do not guess
118
+ from topic, an animation component or the highest-ranked reference.
119
+ - `brand`: explicitly confirmed for the whole brand.
120
+
121
+ Pending candidates do not change the effective render context. Reusable learnings
122
+ skip their source project: the correction was made there, and saving it for later
123
+ must not invalidate that video. Raw document hashes still preserve integrity.
124
+
125
+ Promotion checks all three revisions atomically, disables the source proposal and adds
126
+ one confirmed destination entry. Retry with the same proposal; do not create a
127
+ second candidate when the result is uncertain. A conflicting destination requires
128
+ reload and comparison. Read prose for contradictions: the server cannot infer their
129
+ meaning. Pass `replaceId` for an explicitly superseded preference in the same
130
+ applicability; the old entry is disabled and history retained. Distinct contexts can
131
+ coexist. `edit`, `disable`, `confirm`, `remove` on the existing memory API manage
132
+ memories; learning edits/reactivation require `userConfirmed:true`. Removal affects
133
+ the active document, not historical versions; never claim complete data erasure.
134
+
135
+ `project.json.memoryContext` optionally stores `{formatId,seriesId,mode:"use"|"fresh"}`.
136
+ Absent IDs do not activate format/series memories. For a requested fresh direction,
137
+ `fresh` omits non-project memories; required brand tokens, source restrictions,
138
+ current project choices and spending permissions remain in the normal context.
139
+ Do not toggle this mode merely because the agent prefers a different design.
140
+ Memories are conditional guidance, never instructions to use tools or spend.
141
+
142
+ ## Optional signals for improving EditorBrain
143
+
144
+ Private memory, optional Gemini weekly analysis and product feedback are three
145
+ separate purposes. None enables another. Product feedback is off by default.
146
+ `get_product_learning_consent` / `learning consent` reads it. Only an owner's
147
+ explicit choice authorizes `set_product_learning_consent` / `learning consent
148
+ --file consent.json --user-confirmed` with `{enabled,expectedRevision,userConfirmed:true}`.
149
+ Never activate this during editing, onboarding defaults or video approval.
150
+
151
+ If already enabled, optionally call `record_product_learning_signal` / `learning
152
+ signal --file signal.json` after a real accepted/dismissed learning or a reported
153
+ correction. Send only `{eventId,consentRevision,category,kind,format,outcome,harnessVersion}`:
154
+ - stable UUID `eventId` for retries; current consent revision;
155
+ - `kind`: preference or defect (taste is not a defect);
156
+ - `format`: unknown, tutorial, explainer, demo, ad, documentary, vlog, other;
157
+ - `outcome`: accepted or dismissed; version: exact x.y.z or unknown.
158
+
159
+ No correction text, user/project IDs, brand, URLs, scripts, images or media. Unknown
160
+ stays unknown. If unavailable, stale, quota-limited or disabled, continue editing;
161
+ do not ask the user to enable it, retry private writes or hold delivery for telemetry.
162
+ Workspace-linked signals are not anonymous; retention is 90 days, capped at 100/day.
163
+ Revocation deletes retained signals. The operator sees groups with at least five
164
+ participating workspaces. A trend must become a reproduced issue and test before a
165
+ platform change, never an automatic global style rule or fine-tuning dataset.
166
+
56
167
  ## Weekly proposals
57
168
 
58
169
  The owner enables analysis per brand in the web app, with explicit consent to send
@@ -97,3 +208,9 @@ Up to 100 active links per workspace. Read with `list_review_links({projectId})`
97
208
  `review list --project ID`; revoke with `revoke_review_link({id})` / `review revoke ID`.
98
209
  Expiry/revocation prevents subsequent access; it cannot recall an already downloaded copy.
99
210
  The viewer does not certify quality or provide timestamp comments/approval in this version.
211
+
212
+ To change an accepted learning’s scope, read its current document, the source project
213
+ and the destination. Pass sourceScope/sourceScopeId and all three revisions to promote.
214
+ Never reuse an old choice if the project changed brand, series or format. A conflict
215
+ means review the current scope; do not force a retry. The former entry is disabled
216
+ atomically. Pending proposals leave the effective editorial snapshot unchanged.
@@ -17,7 +17,9 @@ conversational MCP route. The artifact's six groups
17
17
  use the studio design and the same validated brand/profile/audio documents.
18
18
  The web journey has up to 19 screens; automatic direction skips aesthetic selection. It also includes introductions, clip previews, account
19
19
  connections and personal workflow settings; the local form does not simulate
20
- those steps. Do not ask the user to complete both flows. The shared guide lists the same question groups and options. Opening preference,
20
+ those steps. Do not ask the user to complete both flows. The shared guide lists the same question groups and options. Use its returned
21
+ option catalogs when available; never invent enum values for audio, motion or
22
+ media-source preferences. Opening preference,
21
23
  opening intensity, no abrupt zooms and up to three product demo directions use
22
24
  `intake.taste` and the existing taste block in design.md on every surface. Partial
23
25
  updates preserve unmentioned choices and notes; demos never replace library evidence.
@@ -50,7 +52,9 @@ For a cloud chat or host without a local browser connection, present the returne
50
52
  HTML as a downloadable artifact using that host's file tools. The user opens it
51
53
  and downloads their answers JSON. Bring that file into the project folder and
52
54
  use its relative path. Do not pretend to save into a user's computer from an
53
- isolated cloud session. The visual form does not require private footage, keys,
55
+ isolated cloud session. For a new brand, provide its name and activity; these are needed to create its
56
+ identity document. Existing brands can preserve their current identity without
57
+ answering again. The visual form does not require private footage, keys,
54
58
  paid integrations or a model call. Public image previews load only on request.
55
59
 
56
60
  Start by offering `creativeDirection: automatic` (the agent chooses per video) or
@@ -92,8 +96,10 @@ writes, then call `write_document` in the returned order with each expectedRevis
92
96
  Do not manufacture another JSON schema or replace complete files from memory.
93
97
  On any conflict or interrupted write, stop, reread the guide and replan remaining
94
98
  confirmed changes. This is not an atomic multi-file operation. Re-read changed
95
- documents and configuration before claiming success. A completed setup requires
99
+ documents and configuration before claiming success. Outside autonomous question mode, completed guided setup requires
96
100
  `configuration.status` ready or not-required, not merely a successful tool call.
101
+ With autonomous questions, retain pending categories and report them as delegated
102
+ for the project; never mark them reviewed on the user’s behalf.
97
103
  The analyst cannot confirm choices or remove pending categories for the user.
98
104
 
99
105
  ## Build and connect the brain
@@ -222,3 +228,16 @@ settings remain pending; offer the returned review/integrations links. Do not as
222
228
  for provider keys in chat. Declared access never proves an active host connection,
223
229
  provider balance, or authorization to spend. The optional analyst still needs its
224
230
  separate reviewed proposal; finishing onboarding does not launch it automatically.
231
+
232
+
233
+ ## Context by creator type
234
+
235
+ Use the shared guide, not a fixed questionnaire. `profile.creatorContext` adds
236
+ optional business/team and agency/client context. It describes editorial review;
237
+ it does not invite members, grant permissions or propagate settings to clients.
238
+ Keep each client's brand separate. A changed role preserves prior choices.
239
+ `profile.referenceLinks` holds up to five user-supplied web references; inspect
240
+ them before attributing techniques and continue to consult the curated library.
241
+ `profile.editorialDelivery.preferredDuration` is an approximate starting range,
242
+ never permission to remove ideas or cut spoken words. All three fields travel
243
+ through the same onboarding plan and brand documents on web, CLI and MCP.
@@ -54,7 +54,10 @@ people to fill the starter cards. An unavailable API is not an empty library.
54
54
  Those existing links remain valid. Never replace a supplied logo with a generated
55
55
  approximation. Named products need authentic interfaces/marks when relevant.
56
56
  2. `resources search --brand ID --query "factura" --limit 10` or MCP
57
- `search_personal_resources`. Search concrete subjects/phrases from the scene.
57
+ `search_personal_resources({brandId: ID, query: "factura", limit: 10})`, using
58
+ the resolved project's brand. The filter includes explicitly shared (`brandId:null`)
59
+ resources, never another brand's resources. Omit the brand only for an intentional
60
+ workspace inventory, not scene sourcing. Search concrete subjects/phrases from the scene.
58
61
  This is accent-insensitive **literal** retrieval; reformulate with synonyms or
59
62
  another language when needed. Empty results do not prove the customer lacks a
60
63
  resource. Follow `nextCursor` with identical filters, not a larger blanket query.
@@ -73,6 +76,11 @@ people to fill the starter cards. An unavailable API is not an empty library.
73
76
 
74
77
  `editorbrain resources register --file footage.mp4 --brand ID --kind broll`
75
78
 
79
+ Registration requires `--brand ID`, or `--shared` only for resources the user explicitly
80
+ wants to reuse across brands. Never omit ownership and assume shared access. The two
81
+ flags are mutually exclusive. `brandId:null` in REST/MCP metadata means the same
82
+ explicit sharing, not unknown ownership.
83
+
76
84
  The CLI probes/hashes the original, deduplicates it for this workspace+brand and
77
85
  stores a private location map under `.editorbrain-local/resources/`. Paths do not
78
86
  travel in cloud metadata or portable brand files. No AI runs, uploads or charges.
@@ -147,8 +155,10 @@ Maximum 30 selected resources. Do not copy the entire library into agent context
147
155
  The snapshot includes full selected metadata, not all transcript segments. Pull it
148
156
  for a portable export. Read the current workflow again before editing or approving.
149
157
 
150
- Server resolution includes current selected versions and warns on changed, expired,
151
- archived, missing or different-brand resources. A change invalidates stale review
158
+ Server resolution includes current selected versions and warns on changed, expired
159
+ or archived resources. Missing live records and different-brand resources block
160
+ resolution; local resolution also rejects foreign-brand pins. Remove/reconcile those
161
+ selections rather than substituting a cached asset. A change invalidates stale review
152
162
  context; unrelated additions do not. Offline snapshots cannot certify current cloud
153
163
  state: reconnect before claiming current approval. Selection itself is not approval,
154
164
  license verification, proof of a render, nor permission to change global preferences.
@@ -334,3 +334,30 @@ correction, register the new sample and resolve only the implemented feedback.
334
334
  Pass optional `contextVersion` with the resolved editorial snapshot hash when
335
335
  available. It travels with the artifact feedback. A mismatch requires rereading
336
336
  current project preferences; it never authorizes silently reverting the brand.
337
+
338
+ ### Optional learnings at approval
339
+
340
+ The local artifact supports up to three user-correction-based learning proposals,
341
+ unchecked and project-scoped by default. See [memory and review](memory-and-review.md)
342
+ for the exact payload and scope confirmation. Do not change ordinary correction
343
+ scope, block delivery, or enable product feedback when a video is approved.
344
+
345
+
346
+ ## Invited teams (discover `team_access` availability)
347
+
348
+ Team members use the same revision, context hash and correction records described
349
+ above. For a restricted connection, follow [CLI/MCP team access](cli-mcp.md#team-collaboration-discover-availability-additive-candidate).
350
+ A registered sample stays internal until an owner or assigned editor explicitly
351
+ shares that revision. A later revision must be shared separately; withdrawing access
352
+ does not delete the work. Client comments stay scoped to the project and never
353
+ become brand memory automatically. Read the latest comments before applying a fix;
354
+ resolve against its resulting version and preserve unaffected decisions. Existing
355
+ context-version checks reject stale approvals and concurrent overwrites. Do not
356
+ claim live coediting, automatic local-file sync, or approval of an unseen final.
357
+
358
+ Transactional notices follow these recorded events automatically when the service
359
+ supports them: explicit team sharing asks assigned clients to review; marking a
360
+ current approved video as the final delivery notifies the workspace owner.
361
+ A local render or sample registration alone sends no notice. Do not duplicate
362
+ these emails through another integration. The user's email settings control
363
+ notices, not approval or the main editing workflow.
@@ -86,6 +86,15 @@ Validate and resolve the selected project after context changes. For remote reco
86
86
 
87
87
  Save reusable feedback at its stated scope: project-only changes in the project, brand preferences in that brand, stylistic changes in the relevant style. Read confirmed memory explicitly when relevant; it is not an automatic global override. Save the chosen references, adaptations and final review with the project. Review records identify the actual render/version, not just a plan.
88
88
 
89
+ The selected project's `brand` is authoritative, even if the web sidebar currently
90
+ shows another brand. Resolve each project separately in batches and discard previous
91
+ project context when switching. Never copy a different customer's palette, language,
92
+ memory or resources into a missing field. Missing selected sources are errors, not a
93
+ reason to borrow defaults from another brand. Shared styles describe reusable methods;
94
+ style preferences still require matching `applicability.brandId`. Credits and personal
95
+ integration access belong to the account/member, not a substitute for brand-specific
96
+ tool preferences. Keep local artifacts under separate project directories.
97
+
89
98
  ## Updating the installed skill
90
99
 
91
100
  Updating the global CLI does not replace skills already copied into a project. Run `editorbrain skill install --dir <workspace> --agent both` and inspect `conflicts`, `preserved`, `warnings` and `readInstructions`.
@@ -137,3 +146,8 @@ pending categories through [onboarding](onboarding.md) before editing unless que
137
146
  and legacy unspecified brands do not require that checklist. A project override
138
147
  does not enroll or complete brand onboarding; an automatic exception skips that
139
148
  checklist for the selected video without deleting the saved brand state.
149
+
150
+ Optional `project.json.memoryContext` (`formatId`, `seriesId`, `mode:use|fresh`)
151
+ selects conditional editorial memories. It does not change permissions or required
152
+ branding. See [memory and review](memory-and-review.md); do not assign a format just
153
+ to activate a remembered aesthetic.