The feedback card asks the user to rate a render, and the four feedback events
could not be joined to the render that prompted them: `studioUsageProperties`
copies only the keys the event registry declares, and none of them declared an
identifier.
The first attempt registered `render_id: 'uuid'` and forwarded `job.id`. That
value is the server render job id, shaped `<project>_2026-11-10_10-00-00`, so
the `uuid` rule rejected every real value and the join stayed broken while the
test passed on a synthetic id. That id also embeds the project id and a
timestamp, which the tracking contract deliberately keeps in the browser, so
widening the rule to `code` was not an option.
`requestStudioFeedback` now mints an opaque uuid for each prompt and forwards
that, so `shown`, `dismissed`, `interview_click` and `feedback` for one render
share a join key that carries nothing about the project. `useRenderQueue` no
longer passes the server job id, the trigger ignores a caller-supplied id, and
`tracking/README.md` describes the retained value as a browser-minted
identifier rather than a render-job id.
Validation:
- `npx vitest run --config studio/vitest.config.ts studio/src/components/feedback/feedbackTrigger.test.ts`
passes, including a new case asserting a caller-supplied job id is replaced.
- `tests/studio-tracking.test.ts` keeps the four-event uuid assertion green and
adds the negative case that a `<project>_<timestamp>` id is dropped, which is
why the rule stays `uuid`.
- `npm run typecheck:studio` and `npm run check` pass.
One pre-existing failure remains in `tests/studio-tracking.test.ts` on Windows
and is unrelated: the audio producer scan matches
`file.endsWith('/audioFxTelemetry.ts')` while the glob returns backslash
separators, so the `audio_fx_*` events are never collected. A clean checkout
gives the same six passing and one failing.
OpenMotion tracking
Catalog guide pages emit template_guide_interaction through the existing Studio transport and privacy preference. template_id always identifies the page being used, with a fresh view_id; actions are shown, edit, chapter, reference, reset, copy, open_editor, download, document and source. Document toggles include expanded; source links record intent. Download results distinguish browser_save_requested from fetch_failed, and never confirm disk persistence. Editor entry reports intent separately from its result. shown requires at least half of the preview visible for one continuous foreground second. Edits report only title or accent, never their values. Copy and editor actions report success, failure or manual fallback separately. The embedding parent pins the template identity and validates the closed event fields. This measures interaction and handoff, not user acceptance, export or reference-recreation completion. Local tests do not establish production collection.
An explicit-event package shared by the standalone MCP runtime and Motion Studio.
It has no runtime dependencies. The application consumes its TypeScript sources;
npm run build:tracking emits JavaScript and declarations for a local npm pack
from this directory. The package remains private; this change does not publish it.
For new events, start with the integration guide and agent task template.
Reporting and user control
Reporting is on by default in every application environment and version, including
stable releases, test/prerelease packages and local builds, into the existing
OpenDesign project (420348). Application version and environment remain event
properties; they do not disable collection. DEV packages retain their separate
installation/data directories and template routing.
OM events carry product=openmotion; OM reports must filter by that property,
and shared-project reports must distinguish OM from other products. The project's
public, write-only token and ingestion host are distributed in
shared/tracking-config.json; it contains no read/admin credentials and is never
included in the browser bundle. Users do not need to supply a key or opt-in flag.
Users can turn collection off in Studio's Privacy settings → Share usage data. This preference is persisted under the installation's data directory and applies to both MCP and Studio, including already-running processes and future restarts. Disabling clears pending queues and aborts in-flight delivery; accepted events cannot be recalled. A filesystem watcher propagates preference changes, and each enqueue/flush also checks the saved preference. Corrupt preference files fail closed. Re-enabling resumes collection of new events in MCP and Studio without restarting. Events discarded while disabled are not buffered or replayed.
OPENMOTION_TELEMETRY=0 (also false/off) or DO_NOT_TRACK=1 forces all collection
off and locks the Studio switch. Restart services after changing launch environment
variables. Browser Do Not Track suppresses browser collection. The environment
override takes priority over the saved preference.
For another collector, supply both OPENMOTION_POSTHOG_HOST and
OPENMOTION_POSTHOG_KEY. Partial or invalid configuration fails closed. Custom
collectors default to zero-IP mode; OPENMOTION_GEOIP=1 requires that collector to
discard IP after enrichment. Never supply a personal phx_ API key.
Keep the OM-only receiver transformation active while geo-enabled clients report to this shared project. Before removing it, stop OM collection or switch those clients to zero-IP mode. Do not revoke the shared OpenDesign token as an OM rollback.
Use OPENMOTION_TRACKING_ENV=test and a UUID in
OPENMOTION_TRACKING_TEST_RUN_ID for isolated ingestion checks; filter these records
out of product dashboards. Normal environments are production and development.
Node/Vitest tests suppress collection unless explicitly given a test run ID; CI
also forces collection off. No test should silently report into production funnels.
Marked live-ingestion checks use env=test with any application version.
Deterministic checks use fake senders and extracted stable/test/local packages
without external requests.
Studio retrieves only an enabled flag and submits semantic events to the same-origin
/motion-api/tracking endpoint. The server validates the complete batch, rejects
identity/source/credential overrides, and adds trusted common fields before posting
to PostHog /batch/. Browser Do Not Track suppresses browser collection. Network
reporting is asynchronous, with a bounded timeout; local business results never wait
for PostHog. A collector receipt confirms acceptance, not queryable ingestion.
Event producers and closed property schemas live together in events.ts.
Studio's typed API and the service's browser-admission registry are derived from
that definition; server-side validation remains mandatory. Studio configuration
loading retries transient failures with bounded backoff, stays disabled until
confirmed, and never treats a valid opt-out as a retryable failure. Callers can
inspect local queue/configuration statuses and a content-free status snapshot;
see diagnostics and retry semantics.
North-star evidence and task ledger
The runtime now records a local export task ledger before returning an accepted
export request. Each export keeps its task ID, project, optional work-round ID,
acceptance time, explicit deadline, terminal time and observed outcome. A worker
terminal result updates the same ledger and emits task_terminal; unknown or
cancelled results remain separate from success. An export whose worker vanished or
whose deadline passed is reconciled once with outcome unknown, so its accepted
entry also gets a terminal time and the same event; whichever caller closes the task
(the worker tick or a status read) states that evidence. A tick never
reconciles an export this process is still rendering, and a worker whose job was
closed that way does not restate its terminal outcome. The ledger is
installation-local, atomic and does not contain prompts, source content or
credentials.
Host run boundaries use the existing work-round ID returned by
openmotion_open_preview(action=begin). The MCP boundary emits
host_run_started and host_state_changed; a host-reported visible preview with
verified content emits host_preview_observed and host_run_delivered. A verified
technical export can also close the same run with host_run_delivered. A failed or
cancelled export emits the corresponding host terminal event. These events do not
claim a run boundary when the host did not provide a work-round ID.
Video generation, editing and export conversion
work_generation_stage records started, generated, edited and exported with the same work_id, project_id and installation identity. The native work round owns the occurrence times. A deterministic event ID per work/stage deduplicates retry delivery, and work mutations use a cross-process lock.
startedis emitted when a generation work round begins, before authoring. Export-only playback setsgeneration:false.generatedis emitted byopenmotion_open_preview(action=complete_generation)immediately after the Agent produces the requested native video artifact. This action reads the current artifact, checks its version, authored content change, duration and native lint, and records completion independently of saving, preview or export. Direct filesystem authoring follows the same path.editedis the first successful manual content edit or history step in Studio after generation. It is associated using the event's project and occurrence time. Project/asset renames, failed changes, Agent writes and asset-manager-only operations are excluded. The built-in project emits its fixedprojectidentity alongside managed project UUIDs.exportedis the first successful export of that work. MCP uses the job's frozen work identity. Studio binds the most recent generated round of the same project when accepting a render and observes the persisted native completion in the backend, including when the tab closes. An unfinished newer generation prevents borrowing an earlier completion.
Subsequent manual adjustments remain part of the same generated work until another generation round begins. A completed export keeps its original work even when another round starts. Generation version/revision identify the original completed artifact. Existing editor-save and asset-generation events retain their own meanings.
For an observation date D in Asia/Shanghai, the daily cohort contains installations that began a generation on D-1. Each attempt has 24 hours from its start. Distinct installations with a generated artifact divide by distinct initiating installations. Distinct installations that subsequently edited the same generated work divide by generated installations. Export conversion uses that same denominator. Editing is optional for export. Weekly sets are unioned across seven start-date cohorts before division.
Historical clients and work rounds without this protocol remain unavailable. The report should show “暂无数据” for uncovered dates and mixed-coverage weeks. Empty generated denominators mean no eligible sample. Generation failures with observed starts can yield a genuine 0% generation rate. Deployment of new clients and confirmation of event collection establish the reporting coverage date.
Quality evidence is explicit. Technical export, preview visibility and recorded
content review each emit check_required and check_completed with a version,
checklist, checker type and bounded evidence reference. A technical export check
does not assert visual or human acceptance. Queue workers emit queue_snapshot at
most once per minute and worker_heartbeat with bounded counts. Confirmed
correctness incidents and recovery evidence use incident_confirmed and
recovery_recorded; ordinary task failures are not incidents.
Identity, properties and privacy
account_sign_in_result reports each finished OpenDesign connector attempt with
source_product=openmotion, source_detail=openmotion_editor_login, and an
entry_id / entry_occurred_at pair created when the editor starts sign-in.
Attempts replaced within that sign-in retain the entry pair while their
attempt_id changes. A new explicit sign-in creates a new entry pair. Success
is reported only after the connector completes credential acceptance and the
local account setup finishes; browser opening or approval alone is not success.
Successful completion also reports the confirmed account ID as amr_user_id,
so account counts can deduplicate across installations and join AMR account facts.
Failures and cancellations omit that ID. The existing collection controls apply;
distinct_id remains the installation ID, without identify/alias or person merging.
Email, names, activation URLs, authorization codes and credentials are omitted.
A connector_unavailable failure adds connector_problem: npm_missing (no npm
was found to install the connector), install_failed (npm could not install it)
or start_failed (the installed connector did not run). npm output stays local.
These fields describe the local OM result; AMR handoff attribution is separate.
The account and subscription settings' Manage subscription action, and the Free / Go
plan card's Upgrade to Plus action, carry od_origin=openmotion,
od_entry_source=openmotion_manage_subscription, and a fresh od_entry_id / UTC
od_entry_at for each click. The local service builds that page address and opens it in the
system browser through a one-time account intent (/login?intentId=…) when it can. The two actions share that registered entry
source; their ui_click elements (manage_subscription and view_plans) tell them apart.
A dedicated upgrade source needs AMR to register it first. The page address
retains billing=plan and contains no account, installation or credential data.
AMR must accept the OpenMotion origin and entry source in its attribution
validation before these parameters can reach its subscription/payment events.
The Black Friday banner above the application header and the header Pricing entry link to the
website Pricing page (open-design.ai/[zh/]pricing/) with od_origin=openmotion,
od_entry_source=openmotion_manage_subscription (the OpenMotion source AMR already accepts; an unregistered
source would drop the whole attribution), a fresh od_entry_id / UTC od_entry_at per
click, and utm_source=openmotion, utm_medium=banner|header, utm_campaign=black_friday_2026. The
Pricing page keeps an inbound od_entry_id / od_entry_source as the first touch through checkout.
OpenMotion reports surface_view (area=campaign_banner, element=banner) once per page load while the
banner is shown, and ui_click for claim_offer and close_banner (area=campaign_banner) and
open_pricing (area=header), each with campaign_id=black_friday_2026. The two link clicks also send
entry_id, equal to that click's od_entry_id, so a click joins the Pricing visit and payment. utm_medium
and the click's element tell the banner and the header entry apart; dedicated entry sources need AMR to register
them first.
The campaign shows from 2026-11-21 18:00 until 2026-12-05 00:00 Beijing time. Outside that window the banner is hidden,
the Pricing entry has no badge, links omit utm_campaign and clicks omit campaign_id. A dismissed banner stays
hidden for the rest of the visitor's local day and returns the next day.
One random installation_id UUID is persisted atomically in tracking/identity.json
under each owned data directory, outside projects and versioned application caches.
Different data directories remain separate installations.
Device-level analytics uses an OS-provided stable identifier: IOPlatformUUID on macOS,
the 64-bit MachineGuid registry value on Windows, and machine-id on Linux. A bounded,
lazy read runs only when enabled tracking sends a batch. The identifier is never
persisted, logged or transmitted: HMAC-SHA256 uses it as the key with the fixed
OpenMotion-specific openmotion:device:v1 namespace and platform. Only the resulting
omd_ hash is sent as device_id, with device_id_source=platform. It is independent
of project, data directory, app version and host. MCP, Studio and worker events on
one OS device share this device hash. PostHog distinct_id continues to use the
persisted installation_id, preserving each installation's historical analytics
identity across upgrade. Different data directories remain separate analytics
identities even when their device hash is the same. No identify/alias or person-profile
migration is performed.
Unreadable, invalid or unsupported platform identifiers produce device_id=unknown
and device_id_source=unavailable, never an installation UUID presented as a device.
Device counts must filter device_id_source=platform and count distinct device_id,
not distinct_id or person IDs. Unknown events are a separate coverage measure,
not one device. Historical events without this marker used directory UUIDs in the
device field; this change does not backfill them as measured devices.
Native PostHog unique-user charts and person-based funnels/retention continue to
measure installations. Filtering by device source alone does not turn them into
device-level analyses; those need explicit aggregation by device_id. For example:
SELECT uniqExact(properties.device_id) AS active_devices
FROM events
WHERE timestamp >= now() - INTERVAL 2 DAY
AND properties.product = 'openmotion'
AND properties.device_id_source = 'platform'
This measures OS-device identities, not people or immutable physical hardware. Shared
machines count once, a person on two machines counts twice, cloned OS identifiers can
collide, and an OS reinstall can change Windows/Linux identifiers. Device context contains
no account identity, MAC address, raw platform identifier or probabilistic fingerprint. The package can
initialize an identity with a validated source label. The npm installer accepts
--utm-source NAME: an explicit install updates the saved source, while an
upgrade without the flag preserves the existing source. The installation ID
remains unchanged across both operations, and an omitted source remains null for
a new installation.
Common fields include schema/product/app version, environment, entrypoint/runtime,
platform/architecture, OS/version, runtime locale, device IANA timezone and UTC offset
(east of UTC is positive). After OpenDesign's existing GeoIP transformation, the
OM-only transformation matches product=openmotion, derives
country/first-level region/geographic timezone and removes raw IP, precise GeoIP
and person-location updates before storage. The transformation has both an event
filter and a source-code guard; non-OM events pass through unchanged. Existing
OpenDesign transformations and the project's global IP setting are unchanged.
Lookup failures leave geographic fields unknown. GeoIP describes the observable
network egress; VPNs/proxies can change it. Device timezone is a separate setting.
Network intermediaries still see the connection address. Operators must keep the
OM transformation enabled after GeoIP; it is a receiver requirement, not a guarantee
enforced by a public capture token. The earlier standalone OM project's test data
is retained and is not migrated or deleted. Custom zero-IP mode retains the fixed address
0.0.0.0, because a null property is replaced with the request IP. OM requests no
person profiles and emits no autocapture or session replay; other OpenDesign
producers retain their own settings. Upstream engine telemetry stays disabled.
Runtime and TypeScript event contracts whitelist required fields, enums, UUIDs and
bounded counts. No prompts, messages, source files, URLs, local paths, titles, raw
exceptions or credentials are accepted. Safe error categories are explicitly mapped.
The sole bounded free-text exception is the settled template-search keyword,
described below; it does not enable text on other event fields.
All retries retain the original event UUID/timestamp and PostHog $insert_id.
Bounded numeric rules also preserve fractional timings, playback rates and signed
audio/geometry measurements; non-finite or out-of-range values are rejected.
Host Agent attribution
Every event has host_agent and host_agent_source. Known declared clients map
to codex, deepseek (DeepSeek Harness/DSH), claude, cursor, opencode,
gemini, workbuddy or chatgpt; another declared client maps to other.
Missing evidence is unknown, never inferred from an installed executable,
model provider, browser user agent or the last caller of a shared backend.
mcp_client_name is included only for a bounded implementation identifier;
mcp_client_version is the client's declared numeric version, not a verified
host-application version. DSH currently declares its MCP adapter version.
The stdio runtime captures initialize.params.clientInfo per connection and also
recognizes standard per-request io.modelcontextprotocol/clientInfo metadata.
An absent declaration can fall back to OPENMOTION_HOST_AGENT, CODEX_THREAD_ID
or CLAUDECODE=1 in that MCP process, labeled launch_environment. Environment
values and thread IDs themselves are never reported. Client metadata is
self-declared analytics context, not authenticated identity or an entitlement.
The calling context follows domain operations and is persisted on export jobs
for the worker. Editor handoffs receive an opaque tracking_context query token;
the local service associates it with that opener for at most 24 hours and 256
live contexts, in memory only. The browser submits the token to its same-origin
collector and cannot supply host properties in an event. Repeated handoffs retain
their connection's token, project navigation preserves it, and another client
cannot replace an existing association. A manually opened, expired, evicted or
restarted page context reports unknown. No global last-used-host attribution is
used. These tokens are metadata references, not authorization credentials.
Provider-settings handoffs (openmotion_open_preview with target=providers)
emit the MCP-only provider_setup_opened event on successful stdio MCP calls
and append the validated entry_from parameter (agent_providers by default, or
agent_media_signed_out, agent_media_upgrade_free, agent_media_upgrade_go,
agent_media_balance_low, agent_media_key_rejected, agent_media_handbook) to
the returned previewUrl. WebMCP/non-MCP HTTP calls neither emit
provider_setup_opened nor attach entry_from to previewUrl, keeping funnel
denominators and numerators aligned. Studio Settings propagates only recognized
entry_from values onto Settings page_view and Settings ui_click events
(including account sign-in and manage-subscription clicks) while inside
Settings, and clears entry_from when navigating out of Settings (including to
brand-kit, mcp, assets, skills, or the editor). Unknown entry values
are rejected with INVALID_ARGUMENT on MCP calls, while Studio drops
unrecognized URL entry_from values; neither side accepts prompts, account IDs
or credentials.
The research sources are the supported MCP lifecycle, Codex's MCP client and DSH's client declaration.
Brand-story discovery and reuse
The opt-in brandStoriesPreview=1 template-library surface reuses the existing
Studio transport, closed registry and installation-wide privacy controls. It does
not add an SDK, identity, endpoint or automatic production-statistics refresh.
template_series_* areas describe curated template brand series; they are distinct
from the Brand Kit page's brand_* areas and catalogue IDs.
| Question / signal | Event and tuple | Reporting unit |
|---|---|---|
| Was a series card seen? | surface_view / template_series_card / card |
At least 50% visible for one uninterrupted second, visible tab, uncovered library; once per list result set and series. Returning from detail does not count it again. |
| Which entry opened it? | ui_click / template_series_card / open_detail |
One activation, with a fresh series_view_id; opening need not imply a qualified prior exposure. |
| Did posting history appear? | surface_view / template_series_detail / detail |
Once per series view when its native dialog is open, visible and uncovered. |
| Which work was inspected? | surface_view / template_series_work / detail |
Initial selected work and each actual selected-work change; returning from an overlaid detail does not add one. It means visible selection, not video load or completed viewing. |
| What helped browsing and learning? | ui_click / template_series_detail |
Intentional select_work, select_chapter, filter_option, browse_timeline, expand_learning, compare_brands, open_detail, view_repository or close_detail handlers. Same-work activation is a no-op; drag reports once on release. Hover and video progress are not formal analytics. |
| Was an instruction copied? | ui_click / template_series_detail / start_use and existing template_instruction_copy_result |
One copy_attempt_id joins click and result. clipboard_written is success; manual_fallback_shown is manual recovery, failed means instruction preparation failed. Recreate-and-submit remains a distinct template_action/instruction_kind. |
| Was motion.md handed to the browser? | ui_click / template_series_detail / download_guide and existing resource_download_result |
One download_attempt_id; browser_save_requested does not prove a file reached disk, fetch_failed carries only a bounded error code. |
Every series signal carries an opaque, deterministic 64-bit catalogue-label hash
(series_id, not a display name), result-set UUID series_list_id, entry
series_placement=discovery|top100, one-based series_position, series_rank and
series_work_count. Position counts template and series cards, excluding the intro;
rank counts series cards only. Search, sort and filter counts capture the list at
entry. A changed search/filter/sort receives its own list ID, reused on return to the
same result set within one library visit. A new library visit starts new IDs.
Renaming a catalogue label changes its series identity; this is not a user ID.
Discovery carries ranking_policy=works59-ctr41-v1 and
ranking_snapshot=ctr-20261118-v2; TOP100 carries catalog-v1 and no popularity
snapshot. These identify the shipped rule and fixed input, not a live rank service.
They do not change the confirmed sampling or 10–14-template spacing.
Work signals use existing template_id with the one-based series_work_position
within the opened collection’s chronology, regardless of its in-dialog purpose filter. Chapter clicks
use one-based chapter_index, never chapter text/timestamps. Learning sections use
adapt|habits; browse intent uses browse_method=arrow|drag and optional
direction=previous|next. Purposes reuse the bounded catalogue filter_value slug.
Names, titles, notes, instructions, URLs, raw errors and private materials are not
sent. Authoring scenes without a series-view context do not report these actions.
Opening a work's full detail reports the ordinary detail view exactly once, with
its own detail_view_id plus the same series attribution and
series_surface=template_detail. It does not manufacture a template_card click.
Direct timeline actions use series_surface=timeline without inventing a template
detail view. Existing detail copy/download/instruction/link signals inherit the
series source, including subsequent related/previous/next details until closed.
Ordinary catalogue entries retain their existing fields and meaning.
For series CTR, join qualified card exposure to later open_detail by collection
identity, entry and series_list_id under the agreed analysis window. Copy intent,
copy result, browser download handoff and completed creation are separate stages;
these events do not prove that a user sent a prompt or produced a usable video.
Exclude env=test and test-run UUIDs from production analysis. The review proxy on
56820 deliberately disables collection; marked ingestion tests use a separate
backend/data directory. Deterministic coverage lives in
brandStoryTracking.test.ts, TemplateLibraryDialog.test.tsx,
tracking.test.ts and tests/brand-story-tracking.test.ts.
Implemented signals and limits
- All registered phase-one stdio tools: accepted start and observed finish, including early-return catalog tools, the two negotiated presentation tools, input rejection, partial import and idempotent replay.
- Installer acquisition boundaries:
installation_startedis emitted when setup begins andinstallation_resultonly after registration, onboarding persistence and Skill installation complete. Both events carry the selectedhost_product; the result carriesoutcome=success. A rolled-back setup does not emit a success result. The installer accepts--utm-source; explicit installs update the saved source, untagged upgrades preserve it, and the installation ID stays stable. - All twenty-three page WebMCP tools:
webmcp_tool_startedandwebmcp_tool_finished, correlated by a freshcall_idper invocation, with the publictool_name,transport=webmcp, observedoutcomeand boundedduration_ms. These are browser-call measurements, separate from stdio MCP events and committed business results; a replayed call is still a call. Structured error replies and thrown failures count as failed calls, even when their applied effect is uncertain. Explicit aborts count ascancelled; missing or malformed replies count asunknown. A late abort does not turn a successful reply into a cancelled operation. Arguments, results, handles, paths and raw errors are excluded. Host Agent fields retain their existing page-handoff meaning; the transport marker does not identify the calling browser agent. - Tool dimensions:
mcp_tool_started/finishedandwebmcp_tool_started/finishedcarry allowlisted actions for assets, media discovery, preview, export request, archive and project management. Preview also hastarget. Missing actions meanopenfor preview andrequestfor export; invalid values are omitted. A failed call can carryerror_codeand schema-declaredinvalid_fieldandvalidation_rule, with array indices collapsed and unknown keys bucketed. Both stdio asset names still usetool_name=motion_assets; WebMCP uses the original public name. Older events may omit these dimensions. To measureread, filterproduct=openmotion, excludeenv=test, select the appropriate*_tool_finishedevent andaction=read: count distinctcall_idfor observed calls, divide successful calls (outcome=success) by all observed calls for success rate, and aggregateduration_ms(e.g. median/p95) for latency. Stdio rejected inputs haveaccepted=falseand no start event; use finished events for the denominator, or filteraccepted=trueexplicitly when measuring accepted executions only. Each invocation, including replay, is a new call. Browser and stdio are separate transports; do not sum starts and finishes or add domain-result events to call counts. This measures observed call outcomes, not paid generation completion, human media acceptance or guaranteed billing usage. - For MCP exports, use
export_request_resultto measure submission and join itsjob_idtoexport_resultfor the one terminal worker record. A failed terminal job has a boundedfailure_stageanderror_code, including interrupted or expired jobs. Polling success means the read worked. Studio UI exports use their existing separate pipeline. asset_import_resultincludes requested, added, reused and failed item counts when a batch result is available.asset_import_item_failurereports one count per allowlisted failure category per committed request. Sum itsfailed_countto break down item failures, keeping it separate from call-level outcomes.- WebMCP registration:
webmcp_registration_resultrecords one result per attempted tool registration (success,failureorcancelled), including validation/duplicate refusals and teardown cancellation. Use this event for registration counts; existing native/polyfill and registration-error events remain diagnostic signals. A disabled tool preference or absent modelContext makes no tool-registration attempt. The existing consent, Do Not Track, configuration retry and best-effort delivery policies apply to all three events. - Domain results: create/open/edit/import/restore and export request/cancel. Replayed operations do not manufacture additional domain completions. Preview returned by a tool does not imply the host opened it.
- Worker export terminal state, after render and available technical verification; it is distinct from queue acceptance and does not assert human content acceptance.
- Studio project readiness and load outcome, plus project-sidebar creation/switching.
- Motion editor exports started from the Studio UI: one
studio_export_request_resultper start attempt (accepted or rejected with a safe code) and onestudio_export_resultper accepted render when that tab observes its terminal state, joined by a browser-mintedexport_id. These renders run in the editor's own pipeline and never reach the workerexport_result, which stays MCP-only. - Motion editor manual edits: one
studio_edit_resultper committed history entry, emitted where Studio claims the entry, with a closededit_kindand thesurfacethe gesture started on. Coalesced claims of one entry report once. Writes dispatched by an in-page Agent tool are skipped; MCP edits never reach this path. Project rename and asset rename/delete report from their own commit points, and save failures reportoutcome=failurewith a status class only. - Undo/redo outcomes, UI asset imports (counts, entry point, safe category),
notices actually shown (missing FFmpeg, external file conflict, unreachable
project) and editor intent clicks through
ui_clickwithpage_name=studio; theme, language and privacy-settings choices made in the settings center use areasettings.ui_click.optioncarries the chosen value of a control with a small fixed set. - UI export events carry
video_duration_bucketfor the composition being rendered; the request event andstudio_load_resultcarryclip_count_bucket,asset_count_bucketandcomposition_count_bucket. They are read from what the editor already holds in memory at that moment and reportunknownotherwise: at load the timeline and file tree have usually not arrived, so the load values are mostlyunknownand the export request is the reliable reading. No raw duration, count or file size is sent. - Explore, the top creative navigation and the creative Studios (
studio/src/motion/exploreTracking.ts): onepage_viewper arrival on Explore (page_name=explore, withexplore_communityandmedium), the Motion, Design and Cinema Studio template landings and the Design image, Cinema and Sound forms (page_name=creative_studio, withstudio_id,scene_idandlanding) and a model overview (model_overview). Filter and tab changes inside Explore are clicks, not further views. Clicks use areascreative_nav(reported with the page the navigation is shown on),explore_tabs,explore_spotlight,explore_featured,explore_feed,explore_collection,capability_index,studio_barandmodel_overview. A generation submitted from a Studio form reportsasset_generation_submit_resultwithpage_name=creative_studioand the Studio, scene and model (model_provider+model_idsplit from the catalogue key; custom providers send neither). Other destinations are catalogue ids accepted only asslugs; prompts, example copy and model labels are never fields. The Design Studio template landing reportsstudio_id=design, landing=true. Category changes reportstudio_bar/scene_tabwithscene_idand template opens reportstudio_bar/open_templatewith bothscene_idandtemplate_id. The Motion Studio banner's editor button reportsstudio_bar/open_editorwithstudio_id=motion. The Motion Studio template shelf reusesstudio_bar/category_select,load_more,view_all_templatesandopen_template. Explore Design template cards and their Try buttons reportexplore_collection/open_templatewith their Design scenario and template IDs. The Explore banner's editor button retainsexplore_spotlight/slide_actionfor the first Motion slide. A Cinema template card usesstudio_bar/try_promptwith itstemplate_id,scene_idand zero-basedposition. Opening a template prepares a draft. Generation submission is counted separately. - Model hubs (
page=model-hub): onepage_viewwithpage_name=model_hub,hub_idandsigned_inonce the sign-in state is known; clicks in areashub_header,hub_hero,hub_videos,hub_video_detailandhub_availabilitycarryhub_id,hub_video_id(catalogue id),signed_inand, for scene filters, afilter_valueslug. Video titles, creators, post links and search text are never fields. - The template gallery shared with the website (
web/template-gallery.ts, shown in the connection dialog): copy click and the actual copy result, preview open, use, category change and one search per query, throughui_clickareatemplatesandtemplate_instruction_copy_result.template_idis the catalogue id and is accepted only as aslug; a non-matching id is omitted and the event still sent. Titles, authors and URLs are never fields. When the workspace catalogue records the template a project was created from, the same id is added tostudio_load_resultand both UI export events. - Editor events carry
project_scope;project_idis sent only when the Studio project id is a UUID. The built-in local project (idproject) reportsproject_scope=defaultand no id; names and titles are never sent. - All 78 retained Studio event names are registered in
studio-events.ts and included in the same derived browser
admission registry: startup/preview/render/performance, editor interaction,
feedback/desktop, save/error/transaction, SDK, WebMCP status and audio FX.
Existing
trackEventandtrackStudioEventcallers use the OpenMotion transport. Their adapter removes private fields before queueing; upstream tokens, transports and automatic experiment enrollment remain disabled. Feature visibility and SDK gates do not change: hidden feedback, desktop and audio-FX features emit only when their existing producer actually runs. - Manual import/export recovery uses
studio_io_actionandstudio_io_result, joined by one randomattempt_idper intentional action. The Studio-onlybeginStudioIohelper reports at most one result; automatic reads and background render updates do not create actions. Import counts cover only the files selected in that attempt, and a subsequent listing failure does not turn confirmed imports into failed imports. A successful render recheck means the query succeeded, even whenstate_after=failed. An inaccessible file isfailure/unavailable; a network result that cannot confirm availability isunknown/unknown. Opening a new window issuccesswithdelivery_status=opened; a blocked popup isfailurewithdelivery_status=popup_blocked. Passing a download to the browser reportsoutcome=unknown,file_status=availableanddelivery_status=browser_save_requested; it does not confirm a saved file. Only fixed actions, outcomes, statuses and aggregate counts are allowed: no project/task identity, file names, paths, content or full error messages. - The editor's template library reports with the names of the shared OpenMotion
tracking sheet, so its funnel lines up with the website's:
surface_viewfor the library, a gallery card, a template's detail and the instruction to copy;ui_clickareastemplate_card,template_detail,template_instructionandtemplate_discovery;template_search_result,template_filter_resultandresource_download_result. A template is identified bytemplate_idonly (a bounded slug); titles, authors and URLs are never fields.placementsays how a detail was reached:catalog,related,random(Surprise me) ornavigation(previous/next).detail_view_id,copy_attempt_id,download_attempt_idandsearch_idare random UUIDs that tie a click to its result. Recreate and Recreate-and-submit reportstart_usewithtemplate_actionand copy that same instruction; the instruction panel has no Copy control of its own, so no separate copy click is reported. Every copy reportstemplate_instruction_copy_result, and onlyclipboard_writtenis a successful copy.host_productnames the instruction variant that was copied (the library builds the Codex one), not the client the user later pastes it into. A category or filter option is sent as a lowercase slug of the stable catalogue value and omitted when it cannot be reduced to one.template_search_result.search_keywordis the one free-text field in the registry: the settled search-box value, trimmed and capped at 100 characters, sent once per keyword 500 ms after typing stops and never per keystroke. A card impression (template_card/card) is reported once the card has been at least half visible for one unbroken second and is not covered by the detail, once per search, filter and sort combination, so click-through per card can be read. Hover, scroll depth, autoplay and video progress are not reported. These events carry no project fields yet. Library exposure records the actual dialog opening, including pending or failed catalog loads; it omitsresult_countbecause that count is not known at opening. Loading retries and locale changes do not create another opening. Instruction exposure waits until at least 1% of its text enters the viewport in a visible tab, once per detail view. Recreate and Recreate-and-submit carry the samecopy_attempt_idon theirstart_useclick and copy result; Open-and-edit has no copy attempt.library_view_ididentifies an opening,discovery_idgroups search and recovery activity (reset on reopening or after 30 minutes of inactivity), andresult_set_idnames the results for the current search, filter and sort context. A search can also settle when submitted or used, but not during IME composition. Recovery exposure requires the expanded panel to intersect a visible viewport.template_search_handoff_resulttracks an instruction copy attempt with a fixed source kind and status. A manual-copy fallback remains distinct fromclipboard_written. In the library, the reference entry emitssurface_viewwithelement=referenceonce per result set when at least half of the button is visible for one second, or when clicked sooner. Count distinctresult_set_idon this view and the corresponding reference click for entry click-through. Reference source changes, opening the local file picker and copy attempts useui_clickwith the fixedsource_kind. A selected file produces onestudio_asset_import_resultwithentry_point=template_referenceandoutcome=success|failure|unknown. Cancelling the picker produces no import result. Unknown uploads do not count as failures. Events from the home entry carryreference_entry=library_home; search recovery keeps its existing attribution. Using the home action does not emit a search. File names, paths, asset and version IDs, reference links, descriptions and contact details are excluded from these events. Copying a request does not confirm Agent execution. Template request intake is not exposed. The enhanced handoff detail reuses the same click/copy-result events rather than skipping them because its layout flag is active. Clipboard failure reportsmanual_fallback_shown, and editable-project preparation reportsopen_edit. The isolated local review entry disables collection without removing those instrumentation calls. Project/source continuation remains a separate gap.
The adapter preserves fixed actions, counts, booleans and safe catalog/control
identifiers. It drops messages/stacks, file paths, selectors, composition/block
names, free-text feedback, breadcrumb text and arbitrary error names. Feedback
retains has_comment, rating, an opaque browser-minted identifier for the prompt and fixed question/answer categories; resolver
mismatches become per-kind counts, and attempt rollups retain total attempts and
distinct-operation counts without raw JSON keys. Audio parameter numbers are
bounded; string parameters retain only a fixed engine-catalog value_category and
value_kind=category. Custom effect/preset/parameter identifiers become other.
Unknown event names are ignored. Invalid required fields prevent the event from
being queued; optional invalid fields are omitted. The server still rejects
unknown fields and forged common properties rather than applying this adapter.
Coverage follows the existing producers; it does not invent new product actions.
Installer/integration/resource-read events, actual WebMCP tool-execution outcomes,
every successful editor save/import gesture and human review/adoption results
still need their own confirmed completion semantics. WebMCP status signals and
save-failure/blocked signals are not those missing success/result events.
Worker origin is worker; its caller's host context is persisted, while a full
request-to-worker operation context is not. Pending cancellation has a cancel
result but no worker completion because no worker claimed it.
Editor UI coverage has known gaps: a render whose tab reloads before it finishes, or
whose cancel the server never confirmed, has a request result but no terminal result;
caption and beat undo stacks, keyboard playback, frame stepping and source-editor saves
are not reported; edit_kind is derived from Studio's fixed history labels, so an
unmapped label reports other. Turning sharing off is itself not reported, because
the preference applies before the event could be sent.
The compatibility adapter bounds initialization-waiting calls at 64. The queue is process-local: 64 events, batches of 16, one in-flight request, a one-day TTL and retry backoff capped at one minute. Disabling aborts and drops pending data; shutdown drains for at most two seconds. Crashes, queue overflow, page termination or permanent collector rejection may lose events. Add durable delivery if product decisions require guaranteed counts. Public ingest tokens are not read/admin keys, but forged events and quota abuse still require collector-side rate limiting and monitoring; this package is not an anti-fraud boundary.
AI asset generation
The shared model gateway owns three worker events for Studio and MCP. Each carries
modality (image, video, or audio); speech and music both use audio.
| Event | Emission point | Additional fields |
|---|---|---|
media_generation_requested |
A generation submission reaches the gateway with a recognized modality, before validation and routing. | None |
media_generation_submitted |
The gateway persists a new queued job. Replaying its idempotency key returns the original job. | job_id |
media_generation_result |
The gateway persists a completed, failed, cancelled or interrupted job. Interrupted workers produce a failed result. | job_id, job_state, asset_count |
Count distinct anonymous installations per modality and window, and distinct submitted jobs. Attribute results to the original submission date. A job succeeds when it completes with at least one saved asset. The success rate divides those jobs by all submitted jobs, including cancelled, failed and unresolved jobs at the report cutoff. Inspect, list and status calls do not enter this cohort. A local save retry can update the terminal result for the same job. Use the latest result per job at the report cutoff. It does not add a model request or submission. Count outputs saved to the workspace library or project once per output. Generation uses the existing telemetry preference and installation identity.
Studio recovery keeps request acknowledgement separate from execution outcome. An uncertain export receipt reports studio_export_request_result.outcome=unknown; a later identity-matched lookup can report one terminal result with the same browser export_id. Progress loss, cancelling and an inactive unknown record never produce a failed or cancelled terminal event. studio_asset_import_result retains its entry-point categories and reports confirmed failure, unknown and pending counts separately; unknown/pending items are not counted as failed. The manual reload_editor recovery action records only an unknown handoff outcome, not confirmed recovery.
Template detail handoff coverage
The approved detail is enabled from the normal template-library entry. The legacy
templateHandoffPreview=0 compatibility switch can restore the previous detail
for a session; no query parameter is needed for the new flow.
| Question | Event and trigger | Join and deduplication |
|---|---|---|
| Did someone inspect related options? | surface_view for template_related/related after its first eligible card impression; template_card/card for each related card |
At least 50% visible for one uninterrupted second in a visible tab; once per source detail and card. Related cards and clicks include source_template_id, target template_id, source detail_view_id and displayed position. |
| Was guidance or help used? | ui_click: view_guide, back_to_template, view_full_page, handoff_help, copy_color, close_detail; surface_view template_guide/guide when the same-dialog guide opens |
The current template and detail-view UUID; a help opening counts once per opening, not per pointer move. Color clicks never carry a color value. |
| Did editable handoff resolve and open? | ui_click/start_use for open_edit, followed by template_project_result on observed create, reconcile or open completion |
The click and results share the stable operation_id for the guarded request; fresh handoff_attempt_id per operation attempt; captured initiating detail; confirmed project UUID only. |
Studio no longer emits back_to_project after removing the button. The event
registry still accepts it from older Studio versions.
Create-stage success means the preparation call resolved to an exact project,
including recovery of the same request; it is not a count of newly created projects.
An interrupted response is unknown; an authoritative empty lookup is
not_found; a failed lookup remains unknown. Opening is successful only when
the project-opening callback confirms it. Retrying an existing project never emits
another create result. retry_template_project, check_template_project and
open_prepared_project distinguish explicit recovery intents.
An opening callback is not evidence that a particular content version became
visible or that the user approved it; those downstream outcomes remain separate.
Editor save-guard rejection occurs before creation and reports a confirmed failure,
not an uncertain server result. An authoritative empty reconciliation enables
retry with the same request ID. Pending request identities are retained in bounded
session storage so reopening the library checks that request before creating;
completed requests are removed from the pending list. Unavailable storage cannot
guarantee retention after a reload.
Existing copy semantics remain: clipboard_written is the only successful copy,
and manual fallback is not success. No event claims that an external Agent received
the copied instruction, created a film, or exported it. Exact copy-to-Agent-to-work
provenance is not added by this change; do not infer adoption or output rates from
copying. No titles, material names, instructions, color values, URLs or raw errors
are admitted. Existing consent, browser admission and product=openmotion filtering
remain in force. UI tests use fake senders; live readback requires env=test and an
isolated test-run UUID.