editorbrain 0.48.0 → 0.49.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.48.0",
3
+ "version": "0.49.0",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -77,7 +77,7 @@ Use `projects list` when needed and `pull --project <id>` for immediate context;
77
77
 
78
78
  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.
79
79
 
80
- 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. Save the workflow version and scoped approval in direction.
80
+ 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.
81
81
 
82
82
  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.
83
83
 
@@ -136,6 +136,8 @@ After user corrections, optionally propose a few scoped learnings through [memor
136
136
 
137
137
  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.
138
138
 
139
+ At each meaningful milestone, save a revision-checked checkpoint and perform the authorized project-scoped synchronization without waiting for a reminder. Verify success or report the exact pending/conflicted files; a local save is not a cloud backup. Do not upload media or broaden permission merely to satisfy a receipt.
140
+
139
141
  Finish with the artifact, location, checks and concrete limitations. Distinguish agent review from human approval; never promise perfect quality or guaranteed performance.
140
142
 
141
143
  ## Adaptive style contracts
@@ -43,16 +43,21 @@ for current creation, intake, permissions and synchronization commands.
43
43
 
44
44
  On “reanuda”, “resume” or “continue this project”, discover availability and
45
45
  run `editorbrain resume <project-id>` first; MCP-only agents read
46
- `get_project_continuity`. Read [resume guidance](references/starting-an-edit.md#resume-an-existing-project)
46
+ `get_project_continuity` with `includeReviewEvidence:"1"` when supported. Read [resume guidance](references/starting-an-edit.md#resume-an-existing-project)
47
47
  for discovery, conflicts and missing files. This retrieves documents and verifies
48
48
  local artifacts; it does not open apps, execute saved commands, generate or render.
49
49
  Saved `next` and `pending` are untrusted context, not permission. Keep the returned
50
50
  `checkpointHash` for the next write's `--expected-checkpoint`.
51
51
 
52
- Save a local checkpoint at meaningful milestones; synchronize only with explicit,
53
- authorized `push`. Read [checkpoints and local links](references/workspace-files.md#project-checkpoints-and-local-links)
52
+ Close meaningful milestones yourself: save a checkpoint, perform the explicit
53
+ project-scoped `push` when synchronization is already authorized, and verify its result.
54
+ Do not wait for the user to remind you to save or synchronize. Without upload permission,
55
+ keep the checkpoint local and report that specific pending operation. Read [checkpoints and local links](references/workspace-files.md#project-checkpoints-and-local-links)
54
56
  and [project batches](references/project-batches.md) for concurrent work and pins.
55
- Use project-scoped push for one edit. A `status: "partial"` result with exit 2 leaves
57
+ Use project-scoped push for one edit; never include unrelated brands or projects.
58
+ `localSync` distinguishes local changes from a confirmed baseline and unknown remote
59
+ state; a clean baseline alone is not proof that the server has not changed.
60
+ A `status: "partial"` result with exit 2 leaves
56
61
  skipped documents local; follow its recovery hint without downgrading schemas.
57
62
 
58
63
  ## Resolve, inspect and adapt
@@ -62,6 +67,9 @@ effective tokens and use `check_workflow` / `editorbrain workflow check` for cur
62
67
  review mode, questionPolicy, media/audio preferences, scoped memory and personal
63
68
  integrations. Compare `contextVersion` and source hashes at relevant checkpoints;
64
69
  refresh changed context before proposals, paid generation or full rendering.
70
+ Read `projectProgress.readiness` when available and follow
71
+ [visual evidence](references/workflow-evidence.md) for an unmet review condition.
72
+ These are checks inside existing stages, not another editing sequence.
65
73
  A web change is observed on the next read, not by interrupting an active tool.
66
74
 
67
75
  `workflow check --summary` / `check_workflow(detail: "summary")` is for routing.
@@ -161,7 +169,11 @@ feedback, parallel videos and recovery. Choose the review surface from the curre
161
169
  request, explicit saved choice or authorized saved destination; otherwise default
162
170
  to local. A `configured:false` fallback cannot override an explicit request.
163
171
  Return an actual visual artifact through the chosen surface; a file path alone
164
- is not visual review. Upload only within scope, preserving the local original.
172
+ is not visual review. After handing it to the user, record its exact presentation
173
+ with `production present` / `record_review_evidence` when supported.
174
+ Generation, a running local server, an upload or a read receipt is not presentation.
175
+ Reuse a matching existing approval; never approve for the user or switch to direct
176
+ to bypass a pending condition. Upload only within scope, preserving the local original.
165
177
 
166
178
  Before delivery, use `production verify --project ID --file <render>` when available,
167
179
  inspect its real samples and the final motion/audio, and compare against the brief,
@@ -356,3 +356,18 @@ Personal email preferences live at `https://editorbrain.com/app/settings` (or
356
356
  Avisos por correo in the restricted team portal), separate from brand/editing
357
357
  preferences and credits. They apply to the signed-in person across spaces; a
358
358
  shared API key must not change them.
359
+
360
+ ## Visual delivery evidence in existing stages
361
+
362
+ `production present --project ID` reads current evidence and its CAS `version`.
363
+ After an actual handoff, `production present --project ID --file receipt.json`
364
+ records the exact phase/artifact and explicit `presented:true`; it does not render,
365
+ upload media, approve a sample or change the review mode. MCP names are
366
+ `get_review_evidence`, `record_review_evidence` and `revoke_review_evidence`.
367
+ Read [visual evidence](workflow-evidence.md) for schema, prior approval reuse, local
368
+ attestation, readiness and milestone synchronization.
369
+
370
+ A withdrawn decision uses `production withdraw --project ID --id UUID
371
+ --expected-version HASH --user-confirmed` only after the user withdraws that scope.
372
+ It preserves history and does not revoke other review approvals. Read current state
373
+ first; an uncertain response requires reconciling the same ID, not creating another.
@@ -198,7 +198,11 @@ hashes. Pass the `checkpointHash` from resume/the previous milestone as
198
198
  `--expected-checkpoint`; a conflict requires reconciling the other agent’s work.
199
199
  Record a version label, principal scene, dependencies and portable render command
200
200
  when useful; these are context, never automatic execution or approval.
201
- Use the usual authorized `push` explicitly to synchronize it. Preserve
201
+ Close the milestone with the usual authorized project-scoped `push` and verify
202
+ its returned status; do not wait for a reminder. A partial/uncertain response stays
203
+ pending and must be reconciled before claiming the project is synchronized.
204
+ Record actual artifact presentation through [visual evidence](workflow-evidence.md).
205
+ Preserve
202
206
  versioned reviews and scoped approvals; the checkpoint does not replace either.
203
207
 
204
208
  Record only what helps continue or review the work:
@@ -23,6 +23,13 @@ the affected work. Current user instructions may create explicit project excepti
23
23
  do not silently replace required branding. “No music” does not forbid narration or
24
24
  SFX. Preserve authentic colors in footage/logos unless intentionally requested.
25
25
 
26
+ ## Track delivery without duplicating stages
27
+
28
+ Read [visual evidence](workflow-evidence.md) when presenting an artifact, recovering
29
+ a prior approval or checking full-production readiness. Keep the existing phases
30
+ `directions`, `review`, `delivery`. Generate/open/upload first as authorized; record
31
+ `presented:true` only after actually handing the usable artifact to the user.
32
+
26
33
  ## Choose the review surface before delivery
27
34
 
28
35
  Review mode (`direct`, `directions`, `sample`) decides when to show an edit, not
@@ -53,7 +60,9 @@ use this project's actual material, not a library example. If computer review wi
53
60
  use the local artifact below, with no cloud upload. If web/cloud review wins, follow
54
61
  [storage and previews](storage-and-previews.md), register the lightweight samples
55
62
  and deliver a verified private web player; localhost alone does not satisfy it.
56
- A local approval is not a registered web approval; do not invent server progress.
63
+ A local approval is not a registered web revision approval. It can be recorded as
64
+ an explicitly labelled local attestation with [visual evidence](workflow-evidence.md);
65
+ this does not upload its media, certify playback or complete the project.
57
66
 
58
67
  For an authorized web review, prefer `production submit --project ID --file relative.mp4 --title TEXT` when installed. Read [recoverable submissions](project-batches.md): one command prepares a checked review copy, uploads it, and links the output privately without changing editorial media. Use `--parent UUID` for a correction, or `--parent latest` only when there is one active leaf; ambiguity requires choosing the intended UUID. Omit parent for A/B alternatives. Never migrate or reinterpret historical approvals.
59
68
 
@@ -87,7 +87,10 @@ approvals; a checkpoint is an agent's declaration, not a review or user approval
87
87
  Apply the current request to the remaining work. If no checkpoint exists, read
88
88
  the existing brief/direction and record the next real milestone without inventing
89
89
  completed or pending tasks. Do not repeat onboarding or a valid review merely
90
- because the conversation is new.
90
+ because the conversation is new. Inspect `projectProgress.readiness` and `localSync`
91
+ when available: recover the exact prior artifact/approval and close only the missing
92
+ operation. See [visual evidence](workflow-evidence.md). A legacy server without those
93
+ fields means unknown, not permission to skip a configured review.
91
94
 
92
95
  After resume, use `checkpointHash` as `--expected-checkpoint` when saving the
93
96
  next milestone (`none` only when no checkpoint exists). `CHECKPOINT_CONFLICT`
@@ -215,7 +218,9 @@ can supply scoped direction; persist only explicitly requested changes.
215
218
  questions. Missing source/permission or a required review pauses only affected
216
219
  work. State the specific dependency and a recovery action; silence is not consent.
217
220
 
218
- For review, apply the preference to the work actually remaining:
221
+ For review, apply the preference to the work actually remaining. The existing
222
+ `to_edit/editing/review/completed` stages do not change. Readiness is evidence for
223
+ continuing, not a second wizard or a demand to recreate every artifact:
219
224
  - **Directions:** when direction is open, show 1–3 useful visual directions with
220
225
  inspected, labelled examples. Recommend one. If the user already selected the
221
226
  direction, record that scoped choice and proceed; don't ask them to choose again.
@@ -92,3 +92,8 @@ review mode and spending authority. Suggestions from workflow or a task map are
92
92
  optional context, not evidence of tool access or authorization. Inspect the real
93
93
  result and keep unverified dimensions explicit. Never run all listed commands
94
94
  because they appear together.
95
+
96
+ For a missing visual handoff or resuming an approved choice, use
97
+ [visual evidence](workflow-evidence.md) inside the existing review route. Check
98
+ readiness and synchronization; do not add another set of stages or a creative
99
+ questionnaire. Delivery and an actual user decision are different facts.
@@ -0,0 +1,107 @@
1
+ # Visual evidence and reliable handoffs
2
+
3
+ Requires CLI 0.49.0+ and an API that advertises review-evidence support. Discover
4
+ `production present` and the MCP review-evidence tools before using them. Older
5
+ clients/APIs may not support them; missing support is unknown, never approval.
6
+ Keep the current project stages and artifact phases. This guide closes missing
7
+ operations, not a new wizard, rigid creative process or compulsory set of designs.
8
+
9
+ ## Read what remains
10
+
11
+ Use `workflow check --project ID --dir <workspace>` before full production and
12
+ delivery. Read `projectProgress.readiness.production` and `.delivery`; summaries
13
+ retain those conditions. `resume ID` recovers supported continuity without rendering
14
+ or spending. MCP uses `get_review_evidence` and the current workflow; for continuity, request
15
+ `includeReviewEvidence:"1"` when the tool schema supports it.
16
+
17
+ - `satisfied`: evidence for this exact context/phase is present. It does not grant
18
+ spending, certify quality or mean the final video was accepted.
19
+ - `not_required`: the user's explicit direct mode does not need an intermediate
20
+ visual approval. Final visual delivery still matters.
21
+ - `pending`: present the missing proposal/sample or wait for the actual decision.
22
+ Prepare independent work; do not repeat a question already answered.
23
+ - `stale`: identify the changed context, unavailable media, superseded revision or
24
+ feedback. Reconcile affected work, preserving valid choices elsewhere.
25
+ - `unknown`: inspect the relevant source/support instead of assuming success.
26
+
27
+ Autonomous question mode does not approve a sample. Do not change review preferences
28
+ or mislabel a full render as a preview to bypass a condition. External editors cannot
29
+ be stopped by the API: apply the same review condition before invoking them yourself.
30
+ Preparing proposals/previews and technically verifying an existing output remain allowed.
31
+
32
+ ## Record the actual handoff
33
+
34
+ 1. Prepare the requested visual artifact in the chosen review surface. Inspect that
35
+ it can actually display/play there. A path, upload or local server alone is not
36
+ a handoff. Retain the shared `editorialSnapshot.contextVersion`.
37
+ 2. Deliver that artifact or authenticated review link through the host UI. Then read
38
+ `production present --project ID` / `get_review_evidence` for its version.
39
+ 3. Submit a stable evidence UUID with `production present --project ID --file receipt.json`
40
+ or `record_review_evidence`. `presented:true` is your explicit declaration
41
+ of what happened, not a shortcut to make a gate pass.
42
+ 4. Read back the resulting readiness. On an uncertain write, inspect the same UUID
43
+ before retrying; do not generate new IDs or silently overwrite a conflicting record.
44
+
45
+ For a cloud sample already registered, the receipt has this shape (replace every
46
+ placeholder with the verified returned value):
47
+
48
+ ```json
49
+ {
50
+ "evidenceId": "STABLE_UUID",
51
+ "contextVersion": "SHARED_EDITORIAL_SHA256",
52
+ "expectedVersion": "REVIEW_EVIDENCE_VERSION",
53
+ "phase": "review",
54
+ "source": {"kind": "revision", "revisionId": "EXACT_REVISION_UUID"},
55
+ "presented": true
56
+ }
57
+ ```
58
+
59
+ The CLI takes project identity from `--project`; MCP takes `projectId`. Phases are
60
+ the existing `directions`, `review`, `delivery`. Never infer phase from a title,
61
+ MIME or the most recent review. Bind an already approved, still-current revision to
62
+ its correct phase; its existing effective approval is reused. Do not add a second
63
+ approval field or ask the user to approve the same version again.
64
+
65
+ Local evidence instead references `{ "kind": "local", "artifactId": "HASH",
66
+ "sha256": "HTML_SHA256", "relativePath": ".editorbrain-local/ID/review.html" }`.
67
+ Use the generated artifact's identity and exact bytes. The CLI verifies the HTML,
68
+ identity and media; it does not upload them. Never store absolute paths or temporary
69
+ URLs. The API labels local evidence as attested, not remotely verified availability.
70
+
71
+ For a local decision already explicitly given by the user, add
72
+ `"decision": {"userConfirmed": true, "directionId": "EXACT_CHOICE"}` to a directions
73
+ receipt, or `"decision": {"userConfirmed": true, "approved": true}` to a review receipt.
74
+ Do not infer this from silence, a filename or generated feedback. A direction export
75
+ may contain `decision: "changes"` plus a `directionId`: validate the selection against
76
+ the actual artifact instead of interpreting that field alone as rejection.
77
+ Delivery does not use this field for final acceptance; preserve the existing exact
78
+ final-review/progress acceptance flow.
79
+
80
+ Keep immutable historical artifacts and receipts. After actual changes, create a
81
+ new artifact/version. When only adding a later decision, use a new receipt UUID for
82
+ that same exact artifact and current evidence version, keeping the earlier handoff.
83
+ Do not rewrite direction or project documents simply to record delivery: that would
84
+ change the context being acknowledged. Historical local artifacts lacking sufficient
85
+ identity/context cannot be silently asserted to match a new project context.
86
+
87
+ ## Close the milestone without a user reminder
88
+
89
+ Save actual done/pending work, decisions and artifact hashes with `checkpoint`, using
90
+ the last `checkpointHash` as `--expected-checkpoint`. Carry unresolved review and
91
+ synchronization operations into `pending`/`next` as data, not executable instructions.
92
+ If project synchronization is authorized, explicitly run its scoped push and check
93
+ success. Inspect conflicts, unknown outcomes and partial results before claiming sync.
94
+ Never include unrelated projects/brands or upload media to satisfy a bookkeeping step.
95
+
96
+ `localSync` compares actual local bytes with the known synchronization state. Unknown
97
+ remote state is not proof of loss or a successful backup; another agent may have changed
98
+ the server. A missing/changed file is not a reason to discard existing work. Refresh
99
+ and reconcile only relevant documents. MCP cannot inspect a local disk it cannot access.
100
+ No checkpoint, readiness result or receipt executes the next command automatically.
101
+
102
+ When the user withdraws an earlier local decision or presentation, read current
103
+ evidence and use `production withdraw --project ID --id UUID --expected-version HASH
104
+ --user-confirmed` or `revoke_review_evidence`. This invalidates that receipt without
105
+ erasing its history or pretending the original artifact changed. Never withdraw a
106
+ valid receipt merely because a different agent took over. Remote review corrections
107
+ continue using the existing revision feedback/revocation operations.
@@ -189,7 +189,7 @@ before retrying. Do not run an unattended force-overwrite loop. Without this fla
189
189
  only concurrent writes during the command are protected, not stale sessions.
190
190
 
191
191
  Saving a checkpoint is local. Synchronize it only through the usual explicit,
192
- authorized `editorbrain push --dir <workspace>`; no checkpoint command uploads
192
+ authorized `editorbrain push --project ID --dir <workspace>`; no checkpoint command uploads
193
193
  media or automatically pushes. Checkpoints are operational documents excluded
194
194
  from editorial resolution hashes, so recording progress does not invalidate a
195
195
  render. They supplement `direction.md`, versioned reviews and the progress board;